import { $APP, shadow$provide } from "./shared.js";
const shadow_esm_import = function(x) { return import(x) };
var $app$util$text$content$dom__GT_cljs$$,$app$main$data$workspace$shapes$delete_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$,$goog$functions$throttle$$,$module$contents$goog$array_slice$$,$module$contents$goog$array_splice$$,$cljs$tools$reader$macro_terminating_QMARK_$$,$app$common$math$sq$$,$goog$dom$getElementsByClass$$,$beicon$v2$core$sub_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$util$dom$select_target$$,$app$util$dom$get_parent_with_selector$$,$app$util$dom$valid_QMARK_$$,$app$util$dom$set_value_BANG_$$,
$app$util$dom$set_style_BANG_$$,$app$util$dom$is_in_viewport_QMARK_$$,$rumext$v2$throttle$$,$app$common$types$tokens_lib$get_set_names$$,$app$common$types$tokens_lib$get_sets_at_path$$,$app$common$types$tokens_lib$enable_sets$$,$app$common$types$tokens_lib$disable_sets$$,$app$common$types$tokens_lib$set_path_exists_QMARK_$$,$app$common$types$tokens_lib$set_group_path_exists_QMARK_$$,$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$,$app$common$types$tokens_lib$get_all_tokens$$,$app$main$ui$hooks$sortable_container_STAR_$$,
$app$render_wasm$mem$read_null_terminated_string$$,$app$render_wasm$api$webgl$capture_canvas_pixels$$,$app$render_wasm$text_editor$text_editor_start$$,$app$render_wasm$text_editor$text_editor_set_cursor_from_point$$,$app$render_wasm$text_editor$text_editor_move_cursor$$,$app$render_wasm$text_editor$text_editor_stop$$,$app$util$text$content$to_dom$create_random_key$$,$app$util$keyboard$mod_event_QMARK_$$,$app$util$array$normalize_to_array$$,$app$util$array$without_nils$$,$app$util$array$filter$$,$app$util$text_editor$editor_select_all$$,
$app$util$text_editor$cursor_to_end$$,$app$main$data$tinycolor$__GT_string$$,$app$main$ui$css_cursors$get_dynamic$$,$cljs$tools$reader$ending_line_col_info$$,$cljs$tools$reader$starting_line_col_info$$,$app$render_wasm$text_editor$text_editor_insert_text$$,$app$util$dom$left_mouse_QMARK_$$,$app$render_wasm$api$begin_shapes_loading_BANG_$$,$app$render_wasm$serializers$translate_browser$$,$app$main$data$workspace$colors$recent_color_equal_QMARK_$$,$app$main$data$workspace$specialized_panel$interrupt_QMARK_$$,
$app$util$shape_icon$get_shape_icon_by_type$$,$app$util$mouse$mouse_click_event_QMARK_$$,$app$main$data$workspace$texts$focus_editor$$,$app$common$types$shape$interactions$has_offset_effect_QMARK_$$,$app$common$types$shape$interactions$has_way_QMARK_$$,$app$main$data$workspace$notifications$finalize$$,$app$main$ui$hooks$use_ref_callback$$,$app$main$ui$hooks$use_update_ref$$,$cljs$core$partition_by$cljs$0core$0IFn$0_invoke$0arity$02$$,$cljs$core$not_any_QMARK_$$,$cljs$core$not_every_QMARK_$$,$cljs$tools$reader$flatten_map$$,
$app$common$path_names$merge_path_item_with_dot$$,$app$render_wasm$api$yield_to_browser$$,$promesa$impl$promise$all$$,$cljs$spec$alpha$explain_data_STAR_$$,$cljs$core$Namespace$$,$app$common$types$color$remove_hash$$,$app$common$data$macros$truncate$$,$app$util$array$sort_BANG_$$,$app$main$ui$workspace$viewport$utils$text_transform$$,$app$common$geom$shapes$intersect$on_segment_QMARK_$$,$app$common$geom$shapes$intersect$orientation$$,$app$common$files$helpers$hidden_parent_QMARK_$$,$app$main$data$helpers$split_text_shapes$$,
$app$common$files$helpers$unframed_shape_QMARK_$$,$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$main$data$workspace$tokens$library_edit$start_token_set_edition$$,$app$main$data$workspace$colors$update_colorpicker_gradient$$,$app$main$data$workspace$common$toggle_toolbar_visibility$$,$app$main$data$modal$update_props$$,$app$main$data$workspace$tokens$library_edit$clear_tokens_paths$$,
$app$main$data$workspace$set_clipboard_style$$,$app$main$data$workspace$set_annotations_expanded$$,$app$main$data$workspace$start_rename_page_item$$,$app$main$data$workspace$set_margins_selected$$,$app$main$data$workspace$set_gap_selected$$,$app$main$data$workspace$set_paddings_selected$$,$app$main$data$workspace$show_page_item_context_menu$$,$app$main$data$workspace$set_assets_group_open$$,$app$main$data$workspace$set_assets_section_open$$,$app$main$data$workspace$workspace_focus_lost$$,$app$main$data$workspace$path$selection$update_area_selection$$,
$app$main$data$workspace$path$drawing$reset_last_handler$$,$app$main$data$workspace$colors$pick_color_select$$,$app$main$data$workspace$colors$pick_color$$,$app$main$data$workspace$selection$update_selrect$$,$app$main$data$workspace$colors$select_colorpicker_gradient_stop$$,$app$common$types$file$get_base_font_size$$,$app$main$data$workspace$texts$cursor_to_end$$,$app$main$data$workspace$texts$select_all$$,$app$main$data$helpers$update_file$cljs$0core$0IFn$0_invoke$0arity$03$$,$clojure$set$superset_QMARK_$$,
$app$common$files$tokens$shapes_applied_all_QMARK_$$,$cljs$tools$reader$unquote_QMARK_$$,$cljs$tools$reader$unquote_splicing_QMARK_$$,$app$main$data$workspace$set_preview_blend_mode$$,$cljs$core$js_reserved_QMARK_$$,$app$render_wasm$api$apply_canvas_blur$$,$app$render_wasm$api$webgl$clear_canvas_pixels$$,$app$main$data$workspace$grid_layout$editor$remove_selection$$,$app$main$data$workspace$path$selection$path_handler_leave$$,$app$main$data$workspace$path$selection$path_pointer_leave$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_creation$$,
$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu$$,$app$main$data$workspace$tokens$library_edit$assign_token_node_context_menu$$,$app$main$data$workspace$tokens$library_edit$assign_token_context_menu$$,$app$main$data$workspace$unset_preview_blend_mode$$,$app$main$data$workspace$stop_rename_page_item$$,$app$main$data$workspace$unselect_all_assets$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$workspace$viewport$finish_panning$$,$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing$$,
$app$main$data$workspace$grid_layout$editor$clear_selection$$,$app$main$data$workspace$path$selection$clear_area_selection$$,$app$main$data$workspace$path$drawing$close_path_drag_end$$,$app$main$data$workspace$colors$activate_colorpicker_image$$,$app$main$data$workspace$colors$finalize_colorpicker$$,$app$main$data$workspace$colors$clear_color_components$$,$app$main$data$workspace$texts$clean_text_modifier$$,$app$main$data$workspace$texts$update_editor$$,$app$main$data$workspace$specialized_panel$clear_specialized_panel$$,
$app$main$data$project$finalize_project$$,$app$main$data$persistence$discard_persistence_state$$,$app$main$data$workspace$set_annotations_id_for_create$$,$app$util$text$content$to_dom$set_dataset$$,$app$main$ui$hooks$use_rxsub$$,$app$common$geom$shapes$intersect$intersects_line_ellipse_QMARK_$$,$app$common$types$color$hex__GT_hsv$$,$app$common$types$color$sort_colors$$,$rumext$v2$use_debounce$$,$app$common$types$pages_list$get_last_page$$,$app$main$data$workspace$clear_assets_section_open$$,$app$main$data$workspace$colors$update_colorpicker_gradient_opacity$$,
$app$main$data$workspace$tokens$library_edit$clear_token_set_edition$$,$app$main$data$workspace$comments$handle_comment_layer_click$$,$app$main$data$workspace$common$initialized_QMARK_$$,$app$main$data$workspace$zoom$finish_zooming$$,$app$main$data$workspace$tokens$errors$resolve_error_assoc_message$$,$app$main$data$workspace$tokens$errors$resolve_error_message$$,$app$main$ui$workspace$viewport$utils$format_viewbox$$,$app$main$data$workspace$viewport$update_viewport_size$$,$app$main$data$workspace$drawing$set_default_size$$,
$app$main$data$workspace$transforms$fix_init_point$$,$app$main$data$workspace$tokens$library_edit$start_token_set_creation$$,$app$main$data$workspace$colors$stop_picker$$,$app$main$data$workspace$colors$start_picker$$,$app$main$data$workspace$show_track_context_menu$$,$app$main$data$workspace$versions$update_versions_state$$,$app$main$data$workspace$drawing$change_orientation$$,$app$common$files$variant$get_primary_component$$,$cljs$core$TaggedLiteral$$,$cljs$tools$reader$garg$$,$app$main$data$workspace$versions$fetch_versions$$,
$app$main$data$workspace$versions$unlock_version$$,$app$main$data$workspace$versions$lock_version$$,$app$main$data$workspace$versions$delete_version$$,$app$main$data$workspace$versions$init_versions_state$$,$app$main$data$workspace$rename_file$$,$app$main$data$workspace$libraries$unlink_file_from_library$$,$app$main$data$workspace$versions$rename_version$$,$app$main$data$tinycolor$hex_without_hash_prefix_QMARK_$$,$app$main$data$workspace$pages$finalize_page$$,$app$main$data$workspace$texts$gen_name$$,
$app$common$types$shape$interactions$allowed_animation_QMARK_$$,$app$common$geom$shapes$intersect$is_point_inside_nonzero_QMARK_$$,$app$common$geom$shapes$intersect$intersects_lines_QMARK_$$,$app$main$data$workspace$libraries$set_file_shared$$,$app$main$data$workspace$fix_deleted_fonts$fix_deleted_font$$,$app$main$data$workspace$versions$pin_version$$,$app$main$data$workspace$texts$save_font$$,$app$common$geom$point$resize$$,$app$main$data$workspace$interactions$move_overlay_pos$$,$app$main$data$workspace$path$streams$get_angle$$,
$promesa$core$all$$,$malli$error$_get$$,$app$common$types$tokens_lib$split_set_str_path_prefix$$,$app$main$data$workspace$colors$split_color_components$$,$app$common$types$color$library_color__GT_color$$,$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$fonts$get_node_fonts$$,$app$common$types$shape$layout$cells_in_area$$,$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$common$types$shape$layout$cells_by_column$$,$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$,
$app$common$types$shape$layout$cells_by_row$$,$app$common$types$shape$layout$remove_cell_areas_after$$,$app$common$types$shape$layout$remove_cell_areas$$,$app$main$data$workspace$tokens$library_edit$remove_paths_recursively$$,$app$main$data$workspace$colors$remove_gradient_stop$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$workspace$tokens$errors$detail_errors$$,$app$main$data$workspace$tokens$errors$humanize_errors$$,$app$main$data$workspace$show_grid_cell_context_menu$$,$app$main$data$workspace$pages$delete_page_components$$,
$app$common$types$color$offset_spread$$,$app$common$types$shape$layout$swap_track_content$$,$app$common$data$invert_map$$,$app$common$types$tokens_lib$get_json_format$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$common$types$color$hsv__GT_rgb$$,$app$main$data$workspace$grid_layout$editor$locate_board$$,$app$util$dom$bounding_rect__GT_rect$$,$app$common$geom$shapes$text$overlaps_position_data_QMARK_$$,$app$main$data$workspace$viewport$initialize_viewport$$,$app$common$types$tokens_lib$legacy_json__GT_dtcg_json$$,
$app$main$data$workspace$fix_deleted_fonts$generate_page_changes$$,$cljs$spec$alpha$abbrev$$,$app$main$data$workspace$transforms$get_handler_resize_origin$$,$app$main$data$workspace$transforms$get_handler_multiplier$$,$app$common$types$shape$interactions$calc_overlay_pos_initial$$,$app$common$types$shape$interactions$set_destination$$,$app$common$types$shape$interactions$set_action_type$$,$app$common$geom$shapes$distance_selrect$$,$app$common$geom$shapes$intersect$intersects_lines_ellipse_QMARK_$$,
$app$common$types$path$get_handler$$,$app$common$types$path$segment$curve_closest_point$$,$app$common$types$path$segment$path__GT_lines$$,$app$common$types$path$segment$closest_point$$,$app$util$dom$get_delta_position$$,$app$common$geom$shapes$has_point_rect_QMARK_$$,$app$main$data$helpers$get_selrect$$,$app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$,$app$common$geom$point$normal_right$$,$app$main$data$persistence$discard_commit$$,$app$common$types$color$interpolate_color$$,$app$common$types$color$interpolate_gradient$$,
$app$common$types$color$uniform_spread_QMARK_$$,$app$common$types$color$hsv__GT_hex$$,$cljs$tools$reader$resolve_symbol$$,$cljs$tools$reader$register_gensym$$,$cljs$tools$reader$register_arg$$,$cljs$tools$reader$check_eof_error$$,$cljs$tools$reader$read_regex$$,$cljs$tools$reader$read_token$$,$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$04$$,$cljs$tools$reader$read_char_STAR_$$,$cljs$tools$reader$read_unmatched_delimiter$$,$cljs$tools$reader$read_keyword$$,$cljs$tools$reader$read_symbol$$,
$app$main$data$exports$assets$show_workspace_export_frames_dialog$$,$app$main$data$workspace$colors$sort_colorpicker_stops$$,$app$common$text$fix_gradients$$,$app$common$text$build_style_index$$,$app$render_wasm$text_editor$merge_exported_texts_into_content$$,$app$render_wasm$text_editor$text_editor_sync_content$$,$app$common$types$variant$compare_properties$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$common$types$color$uniform_spread$$,$app$util$webapi$read_file_as_text$$,$app$util$strings$matches_search$$,
$app$common$types$variant$find_boolean_pair$$,$app$common$types$file$get_shape_in_copy$$,$app$util$text_editor$get_content_changes$$,$app$common$types$shape_tree$start_page_index$$,$app$common$geom$shapes$intersect$overlaps_text_QMARK_$$,$app$common$geom$shapes$intersect$overlaps_QMARK_$$,$app$common$types$shape$interactions$remove_interactions$$,$app$main$data$workspace$colors$get_color_from_colorpicker_state$$,$app$main$data$workspace$colors$colorpicker_onchange_runner$$,$app$main$data$workspace$colors$initialize_colorpicker$$,
$app$main$data$workspace$colors$materialize_color_components$$,$app$main$data$workspace$colors$activate_colorpicker_gradient$$,$app$util$text$content$to_dom$get_styles_from_attrs$$,$app$main$data$persistence$merge_commit$$,$app$common$path_names$sort_by_children$$,$app$common$path_names$compact_path$$,$app$common$data$reorder$$,$cljs$core$sorted_map$$,$app$common$path_names$join_path_with_dot$$,$app$common$path_names$group_by_first_segment$$,$app$common$path_names$sort_and_group_segments$$,$app$common$path_names$build_tree_root$$,
$app$common$path_names$butlast_path$$,$app$common$types$token$join_font_family$$,$app$main$data$workspace$texts$generate_typography_name$$,$app$common$types$path$get_handlers$$,$app$common$types$path$segment$is_curve_QMARK_$$,$cljs$core$dedupe$cljs$0core$0IFn$0_invoke$0arity$00$$,$app$main$data$fonts$update_recent_font$$,$app$common$path_names$inside_path_QMARK_$$,$app$main$features$use_feature$$,$app$render_wasm$api$set_focus_mode$$,$app$render_wasm$api$end_shapes_loading_BANG_$$,$app$main$data$workspace$versions$create_version$$,
$app$main$refs$workspace_grid_edition_id$$,$app$main$refs$workspace_token_in_selected_set$$,$app$main$refs$grid_layout_child_QMARK_$$,$app$main$refs$flex_layout_child_QMARK_$$,$app$main$refs$all_layout_child_QMARK_$$,$app$main$refs$is_layout_child_QMARK_$$,$app$main$refs$shape_parents$$,$app$main$refs$objects_by_id$$,$app$main$refs$object_by_id$$,$app$main$refs$token_sets_at_path_all_active$$,$app$main$refs$workspace_token_theme$$,$app$main$data$modal$allow_click_outside_BANG_$$,$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$01$$,
$app$main$data$workspace$viewport$start_panning$$,$app$main$data$workspace$zoom$start_zooming$$,$app$common$types$shape$interactions$flow_to_QMARK_$$,$app$common$types$shape$interactions$flow_origin_QMARK_$$,$app$common$types$shape$interactions$has_direction_QMARK_$$,$app$common$types$shape$interactions$has_easing_QMARK_$$,$app$common$types$shape$interactions$has_duration_QMARK_$$,$app$common$types$shape$interactions$has_animation_QMARK_$$,$app$common$types$shape$interactions$has_overlay_opts$$,$app$common$types$shape$interactions$destination_QMARK_$$,
$app$main$data$workspace$bool$bool__GT_group$$,$app$common$types$modifiers$change_orientation_modifiers$$,$app$main$data$workspace$transforms$rotation_modifiers$$,$app$common$types$modifiers$resize_parent$cljs$0core$0IFn$0_invoke$0arity$05$$,$app$common$types$modifiers$move_parent$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$common$types$tokens_lib$group_by_type$$,$app$main$ui$hooks$resize$use_resize_observer$$,$app$util$queue$cancel_process_BANG_$$,$app$main$data$workspace$thumbnails$clear_queue_BANG_$$,
$app$main$data$persistence$update_file_revn$$,$app$main$data$persistence$update_status$$,$app$main$data$persistence$persist_commit$$,$app$main$data$persistence$append_commit$$,$app$main$data$persistence$initialize_persistence$$,$app$render_wasm$api$on_webgl_context_lost$$,$app$render_wasm$api$clear_canvas$$,$app$render_wasm$api$webgl$draw_imagedata_to_webgl$$,$app$render_wasm$api$webgl$restore_previous_canvas_pixels$$,$cljs$tools$reader$impl$utils$ReaderConditional$$,$cljs$tools$reader$impl$utils$reader_conditional$$,
$cljs$tools$reader$add_meta$$,$cljs$tools$reader$syntax_quote_coll$$,$cljs$tools$reader$syntax_quote_STAR_$$,$app$common$logic$tokens$toggle_token_set_group$$,$app$common$files$tokens$shapes_ids_by_applied_attributes$$,$app$main$data$workspace$select_assets$$,$app$main$data$workspace$check_in_asset$$,$app$main$data$workspace$toggle_selected_assets$$,$app$main$data$workspace$grid_layout$editor$select_track_cells$$,$app$main$data$workspace$grid_layout$editor$hover_grid_cell$$,$app$main$data$workspace$guides$set_hover_guide$$,
$app$main$data$workspace$path$selection$deselect_all$$,$app$main$data$workspace$path$selection$path_handler_enter$$,$app$main$data$workspace$path$selection$path_pointer_enter$$,$app$main$data$workspace$thumbnails$extract_frame_changes$$,$app$main$refs$parents_by_ids$$,$app$main$data$workspace$path$edition$move_selected_path_point$$,$app$main$data$workspace$path$edition$modify_handler$$,$app$main$data$workspace$path$selection$select_node_area$$,$app$main$data$workspace$path$selection$handle_area_selection$$,
$app$common$geom$shapes$transforms$update_shapes_geometry$$,$app$common$geom$shapes$update_shapes_geometry$$,$app$main$data$workspace$grid_layout$editor$add_to_selection$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$common$types$shape$layout$valid_area_cells_QMARK_$$,$app$common$types$shape$layout$duplicate_cells$$,$app$common$types$shape_tree$get_root_shapes$$,$app$common$types$shape_tree$get_root_frames_ids$$,$app$common$files$shapes_builder$create_svg_shapes$cljs$0core$0IFn$0_invoke$0arity$07$$,$app$common$geom$shapes$fit_frame$fit_frame_modifiers$$,
$app$render_wasm$api$shapes_in_tree_order$$,$app$main$data$workspace$interactions$connected_frame_QMARK_$$,$app$common$files$helpers$component_touched_QMARK_$$,$app$main$data$workspace$colors$update_colorpicker_stops$$,$app$main$data$workspace$colors$update_colorpicker_add_stop$$,$app$main$data$workspace$colors$update_colorpicker_add_auto$$,$app$render_wasm$api$set_canvas_size$$,$app$util$text$content$to_dom$get_paragraph_styles$$,$app$main$data$workspace$layout$ensure_layout$$,$app$main$data$workspace$initialize_workspace_layout$$,
$app$main$data$workspace$tokens$library_edit$add_path$$,$app$main$data$workspace$tokens$library_edit$toggle_token_path$$,$app$common$types$variant$same_variant_QMARK_$$,$app$main$data$workspace$select_single_asset$$,$app$main$data$workspace$grid_layout$editor$set_selection$$,$app$main$data$workspace$path$selection$select_node$$,$app$main$ui$hooks$with_focus_objects$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$main$data$workspace$shape_layout$hover_layout_track$$,$app$main$data$workspace$path$streams$move_handler_stream$$,
$app$main$data$workspace$path$streams$move_points_stream$$,$app$common$attrs$get_text_attrs_multi$$,$app$main$data$workspace$interactions$get_target_frame$$,$app$main$data$workspace$interactions$move_edit_interaction$$,$app$main$data$workspace$colors$update_colorpicker$$,$app$main$data$workspace$clipboard$copy_selected_text$$,$app$main$data$workspace$specialized_panel$open_specialized_panel$$,$app$main$data$workspace$modifiers$set_rotation_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$modifiers$calculate_update_modifiers$$,
$app$main$data$workspace$modifiers$update_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$texts$commit_update_text_modifier$$,$app$common$types$shape$layout$reorder_grid_tracks$$,$app$common$types$shape$layout$reorder_grid_track$$,$cljs$tools$reader$read_dispatch$$,$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$05$$,$cljs$tools$reader$read_delimited$$,$cljs$tools$reader$read_list$$,$cljs$tools$reader$read_vector$$,$cljs$tools$reader$read_map$$,$cljs$tools$reader$read_number$$,
$cljs$tools$reader$escape_char$$,$cljs$tools$reader$read_string_STAR_$$,$cljs$tools$reader$wrapping_reader$$,$cljs$tools$reader$read_meta$$,$cljs$tools$reader$read_set$$,$cljs$tools$reader$read_discard$$,$cljs$tools$reader$read_symbolic_value$$,$cljs$tools$reader$read_suppress$$,$cljs$tools$reader$read_cond_delimited$$,$cljs$tools$reader$read_cond$$,$cljs$tools$reader$read_fn$$,$cljs$tools$reader$read_arg$$,$cljs$tools$reader$read_unquote$$,$cljs$tools$reader$read_syntax_quote$$,$cljs$tools$reader$read_namespaced_map$$,
$cljs$tools$reader$macros$$,$cljs$tools$reader$dispatch_macros$$,$cljs$tools$reader$read_tagged$$,$cljs$tools$reader$read_STAR_$$,$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$,$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$,$app$main$data$workspace$libraries$go_to_component_file$$,$app$main$data$workspace$comments$handle_interrupt$$,$app$main$data$workspace$comments$initialize_comments$$,$app$main$data$workspace$selection$deselect_all$$,$app$main$data$workspace$show_component_in_assets$$,
$app$main$data$common$go_to_feedback$$,$app$main$rasterizer$render_node$$,$app$util$text_editor$setup_block_styles$$,$app$common$types$fills$prepend$$,$app$main$data$workspace$media$create_shapes_svg$$,$app$main$data$workspace$bool$group__GT_bool$$,$app$util$text_editor$insert_text$$,$app$util$text_editor$apply_block_styles_to_content$$,$app$util$worker$ask_buffered_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$snap$get_snap_points$$,$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$,
$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$selection$select_shapes_by_current_selrect$$,$app$main$data$workspace$selection$handle_area_selection$$,$app$main$broadcast$event$$,$app$common$text$parse_draft_styles$$,$app$common$text$convert_from_draft$$,$app$util$text_editor$export_content$$,$app$util$text$content$to_dom$set_styles$$,$app$util$text$content$to_dom$create_element$cljs$0core$0IFn$0_invoke$0arity$03$$,
$app$util$text$content$to_dom$create_paragraph$$,$app$util$text$content$to_dom$create_root$$,$app$util$text$content$styles$get_style_defaults$$,$app$main$data$workspace$layout$load_layout_state$$,$app$main$data$workspace$colors$show_palette$$,$app$main$data$workspace$layout$load_layout_flags$$,$app$main$data$fonts$add_recent_font$$,$app$main$ui$hooks$use_persisted_state$$,$app$main$ui$hooks$use_shared_state$$,$app$main$data$workspace$update_nudge$$,$app$main$data$workspace$finalize_workspace$$,$app$main$data$workspace$clipboard$copy_selected_css_nested$$,
$app$main$data$workspace$clipboard$copy_selected_css$$,$app$main$ui$dashboard$subscription$main_menu_power_up_STAR_$$,$app$main$data$workspace$tokens$library_edit$drop_error$$,$app$main$data$style_dictionary$resolve_tokens_with_verbose_errors$$,$app$main$data$workspace$tokens$errors$error_ex_info$$,$app$main$data$workspace$clipboard$on_clipboard_permission_error$$,$app$main$data$workspace$media$upload_fill_image$$,$app$util$color$get_color_name$$,$app$main$data$workspace$pages$initialize_page_STAR_$$,
$app$main$data$workspace$modifiers$set_wasm_modifiers$$,$app$main$data$workspace$transforms$resize_text_editor$$,$app$render_wasm$api$set_objects_sync$$,$app$render_wasm$api$process_shapes_chunk$$,$app$render_wasm$api$set_objects_async$$,$app$render_wasm$api$set_objects$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$util$code_gen$markup_svg$generate_formatted_markup$$,$app$main$data$workspace$clipboard$copy_selected_svg$$,$app$main$data$workspace$libraries$update_component_thumbnail_sync$$,$app$main$data$workspace$libraries$update_component_thumbnail$$,
$app$main$data$workspace$thumbnails$watch_state_changes$$,$malli$util$assoc_in$cljs$0core$0IFn$0_invoke$0arity$04$$,$malli$error$_resolve_direct_error$$,$malli$error$humanize$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$common$schema$valid_QMARK_$$,$app$main$data$plugins$update_plugin_permissions_peek$$,$app$main$data$plugins$update_plugins_permissions_peek$$,$app$common$types$tokens_lib$export_dtcg_multi_file$$,$app$main$data$workspace$colors$add_recent_color$$,$app$main$data$workspace$colors$update_colorpicker_color$$,
$app$main$data$workspace$colors$activate_colorpicker_color$$,$app$main$data$workspace$colors$apply_color_from_colorpicker$$,$app$main$data$workspace$path$drawing$start_path_from_point$$,$app$main$data$workspace$path$drawing$close_path_drag_start$$,$app$common$schema$validation_errors$$,$app$common$schema$assoc_key$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$common$types$tokens_lib$walk_sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$common$logic$tokens$calculate_move_token_set_or_set_group$$,
$app$common$types$tokens_lib$sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$common$types$tokens_lib$parse_single_set_dtcg_json$$,$app$common$logic$libraries$add_shape_to_main$$,$app$common$logic$tokens$generate_toggle_token_set_group$$,$app$common$logic$tokens$generate_delete_token_set_group$$,$app$common$logic$libraries$update_grid_main_attrs$$,$app$common$logic$libraries$update_flex_child_main_attrs$$,$app$common$logic$libraries$generate_sync_shape_inverse$$,$app$common$logic$libraries$generate_reset_component$$,
$app$common$logic$variant_properties$generate_reorder_variant_poperties$$,$app$common$logic$libraries$prepare_restore_component$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$common$logic$libraries$generate_restore_component$$,$app$common$logic$libraries$generate_duplicate_component$$,$app$common$files$shapes_helpers$prepare_create_empty_artboard$$,$app$common$logic$libraries$generate_duplicate_changes$$,$app$common$files$changes_builder$del_page$$,$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens$$,
$app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$main$data$workspace$tokens$library_edit$create_token$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$workspace$tokens$library_edit$duplicate_token$$,$app$main$data$workspace$tokens$library_edit$rename_token_set_group$$,$app$main$data$workspace$update_component_annotation$$,$app$main$data$workspace$relocate_page$$,$app$main$data$workspace$variants$reorder_variant_poperties$$,$app$main$data$workspace$shape_layout$create_cell_board$$,
$app$main$data$workspace$shape_layout$duplicate_layout_track$$,$app$main$data$workspace$pages$delete_page$$,$app$main$data$workspace$pages$duplicate_page$$,$app$main$data$workspace$interactions$rename_flow$$,$app$main$data$workspace$interactions$remove_flow$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$workspace$interactions$add_flow$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$data$workspace$interactions$add_flow_selected_frame$$,$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page$$,
$app$main$data$workspace$path$edition$drag_selected_points$$,$app$main$data$workspace$path$edition$split_segments$$,$app$main$data$workspace$libraries$touch_component$$,$app$main$data$workspace$libraries$launch_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$libraries$component_changed$$,$app$main$data$workspace$libraries$watch_component_changes$$,$app$main$data$workspace$libraries$update_component$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$main$data$workspace$libraries$update_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$,
$app$main$data$workspace$libraries$reset_component$$,$app$main$data$workspace$libraries$reset_components$$,$app$main$data$workspace$libraries$detach_components$$,$app$main$data$workspace$libraries$restore_component$$,$app$main$data$workspace$libraries$restore_components$$,$app$main$data$workspace$libraries$add_multiple_components$$,$app$main$data$workspace$libraries$delete_media$$,$app$main$data$workspace$media$add_shapes_and_component$$,$app$main$data$workspace$media$process_svg_component$$,$app$main$data$workspace$media$process_img_component$$,
$app$main$data$workspace$media$upload_media_components$$,$app$main$data$workspace$shape_layout$merge_cells$$,$app$main$data$workspace$colors$reorder_strokes$$,$app$main$data$workspace$colors$remove_all_strokes$$,$app$main$data$workspace$colors$remove_stroke$$,$app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$texts$commit_position_data$$,$app$main$data$workspace$texts$commit_resize_text$$,
$app$main$data$workspace$colors$remove_fill$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$colors$detach_fill$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$colors$add_fill$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$data$workspace$colors$apply_color_from_palette$$,$app$main$data$workspace$colors$apply_color_from_assets$$,$app$main$data$workspace$texts$remove_text_modifier$$,$app$main$data$workspace$texts$finalize_editor_state$$,$app$main$data$workspace$texts$initialize_editor_state$$,
$app$main$data$workspace$transforms$selected_fit_content$$,$app$main$data$workspace$transforms$t_app$0main$0data$0workspace$0transforms67400$$,$app$main$data$workspace$transforms$start_resize$$,$app$main$data$workspace$start_resize$$,$app$main$data$workspace$libraries$component_multi_swap$$,$app$main$data$workspace$tokens$library_edit$drop_token_set$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_group$$,$app$main$data$workspace$tokens$library_edit$delete_token_set_group$$,$app$main$data$workspace$tokens$library_edit$import_tokens_lib$$,
$app$main$data$workspace$tokens$library_edit$toggle_token_set_group$$,$app$main$data$workspace$tokens$application$get_token_properties$$,$app$main$data$workspace$transforms$start_rotate$$,$app$main$data$workspace$transforms$change_orientation$$,$app$main$data$workspace$bool$change_bool_type$$,$app$main$data$workspace$bool$bool_to_group$$,$app$main$data$workspace$bool$group_to_bool$$,$app$main$data$workspace$tokens$application$apply_token_on_selected$$,$app$main$data$workspace$set_shape_proportion_lock$$,
$app$main$data$workspace$shape_layout$reorder_layout_track$$,$app$main$data$workspace$variants$combine_selected_as_variants$$,$app$main$data$workspace$interactions$finish_move_overlay_pos$$,$app$main$data$workspace$interactions$start_move_overlay_pos$$,$app$main$data$workspace$interactions$remove_all_interactions_nav_to$$,$app$main$data$workspace$interactions$add_new_interaction$cljs$0core$0IFn$0_invoke$0arity$02$$,$app$main$data$workspace$interactions$finish_edit_interaction$$,$app$main$data$workspace$interactions$start_edit_interaction$$,
$app$main$data$workspace$path$edition$create_node_at_position$$,$app$main$data$workspace$path$edition$start_move_handler$$,$app$main$data$workspace$path$edition$start_move_path_point$$,$app$main$data$workspace$path$shortcuts$get_tooltip$$,$app$main$data$workspace$colors$reorder_shadows$$,$app$main$data$workspace$colors$add_shadow$$,$app$main$data$workspace$colors$change_hide_fill_on_export$$,$app$main$data$workspace$colors$reorder_fills$$,$app$main$data$workspace$texts$add_typography$$,$app$main$data$workspace$texts$update_all_attrs$$,
$app$main$data$workspace$shortcuts$get_tooltip$$,$app$main$data$workspace$pages$select_frame_tool$$,$app$main$data$workspace$pages$initialize_page$$,$app$main$data$workspace$versions$restore_version$$,$app$main$data$workspace$clipboard$paste_from_event$$,$app$main$data$workspace$clipboard$paste_from_clipboard$$,$cljs$spec$alpha$explain_printer$$,$cljs$spec$alpha$assert_STAR_$$,$instaparse$auto_flatten_seq$conj_flat$$,$instaparse$auto_flatten_seq$delve$$,$instaparse$auto_flatten_seq$flat_seq$cljs$0core$0IFn$0_invoke$0arity$02$$,
$instaparse$auto_flatten_seq$AutoFlattenSeq$$,$instaparse$auto_flatten_seq$hash_cat$$,$instaparse$auto_flatten_seq$auto_flatten_seq$$,$instaparse$auto_flatten_seq$afs_QMARK_$$,$instaparse$auto_flatten_seq$true_count$$,$instaparse$auto_flatten_seq$FlattenOnDemandVector$$,$JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$,$instaparse$auto_flatten_seq$convert_afs_to_vec$$,$instaparse$print$paren_for_tags$$,$instaparse$print$regexp_replace$$,$instaparse$print$regexp__GT_str$$,
$instaparse$print$number__GT_hex_padded$$,$instaparse$print$char_range__GT_str$$,$instaparse$print$combinators__GT_str$$,$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$,$instaparse$print$rule__GT_str$$,$instaparse$print$Parser__GT_str$$,$instaparse$failure$print_reason$$,$instaparse$failure$pprint_failure$$,$instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,
$instaparse$util$regexp_flags$$,$instaparse$reduction$singleton_QMARK_$$,$instaparse$reduction$apply_reduction$$,$instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$,$instaparse$combinators_source$opt$$,$instaparse$combinators_source$plus$$,$instaparse$combinators_source$star$$,$instaparse$combinators_source$rep$$,$instaparse$combinators_source$string$$,$instaparse$combinators_source$string_ci$$,$instaparse$combinators_source$unicode_char$cljs$0core$0IFn$0_invoke$0arity$02$$,
$instaparse$combinators_source$regexp$$,$instaparse$combinators_source$nt$$,$instaparse$combinators_source$look$$,$instaparse$combinators_source$neg$$,$instaparse$combinators_source$hide$$,$instaparse$combinators_source$hide_tag$$,$instaparse$combinators_source$unhide_all_content$$,$instaparse$combinators_source$unhide_tags$$,$instaparse$combinators_source$unhide_all$$,$instaparse$combinators_source$auto_whitespace$$,$goog$i18n$uChar$fromCharCode$$,$goog$i18n$uChar$getCodePointAround$$,$instaparse$gll$_parse$$,
$instaparse$gll$_full_parse$$,$instaparse$gll$Failure$$,$instaparse$gll$Tramp$$,$instaparse$gll$make_tramp$cljs$0core$0IFn$0_invoke$0arity$05$$,$instaparse$gll$make_success$$,$instaparse$gll$total_success_QMARK_$$,$instaparse$gll$Node$$,$instaparse$gll$push_stack$$,$instaparse$gll$push_message$$,$instaparse$gll$listener_exists_QMARK_$$,$instaparse$gll$full_listener_exists_QMARK_$$,$instaparse$gll$result_exists_QMARK_$$,$instaparse$gll$node_get$$,$instaparse$gll$safe_with_meta$$,$instaparse$gll$push_result$$,
$instaparse$gll$push_listener$$,$instaparse$gll$push_full_listener$$,$instaparse$gll$push_negative_listener$$,$instaparse$gll$fail$$,$instaparse$gll$step$$,$instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$,$instaparse$gll$NodeListener$$,$instaparse$gll$LookListener$$,$instaparse$gll$TopListener$$,$instaparse$gll$string_parse$$,$instaparse$gll$string_full_parse$$,$instaparse$gll$string_case_insensitive_parse$$,$instaparse$gll$string_case_insensitive_full_parse$$,$instaparse$gll$char_range_parse$$,
$instaparse$gll$char_range_full_parse$$,$instaparse$gll$re_match_at_front$$,$instaparse$gll$regexp_parse$$,$instaparse$gll$regexp_full_parse$$,$instaparse$gll$cat_parse$$,$instaparse$gll$cat_full_parse$$,$instaparse$gll$plus_parse$$,$instaparse$gll$plus_full_parse$$,$instaparse$gll$rep_parse$$,$instaparse$gll$rep_full_parse$$,$instaparse$gll$star_parse$$,$instaparse$gll$star_full_parse$$,$instaparse$gll$alt_parse$$,$instaparse$gll$alt_full_parse$$,$instaparse$gll$ordered_alt_parse$$,$instaparse$gll$ordered_alt_full_parse$$,
$instaparse$gll$opt_parse$$,$instaparse$gll$opt_full_parse$$,$instaparse$gll$non_terminal_parse$$,$instaparse$gll$non_terminal_full_parse$$,$instaparse$gll$lookahead_parse$$,$instaparse$gll$lookahead_full_parse$$,$instaparse$gll$negative_lookahead_parse$$,$instaparse$gll$epsilon_parse$$,$instaparse$gll$epsilon_full_parse$$,$instaparse$gll$start_parser$$,$instaparse$gll$parse$$,$instaparse$gll$build_node_with_meta$$,$instaparse$cfg$string_PLUS_$$,$instaparse$cfg$make_cfg$$,$instaparse$cfg$escape$$,
$instaparse$cfg$process_string$$,$instaparse$cfg$process_regexp$$,$instaparse$cfg$check_grammar$$,$instaparse$cfg$build_parser$cljs$0core$0IFn$0_invoke$0arity$03$$,$instaparse$cfg$build_parser_from_combinators$$,$instaparse$transform$merge_meta$$,$instaparse$abnf$project$$,$instaparse$abnf$merge_core$$,$instaparse$abnf$alt_preserving_hide_tag$$,$instaparse$abnf$build_parser$$,$instaparse$viz$span$$,$instaparse$repeat$empty_result_QMARK_$$,$instaparse$repeat$parse_from_index$$,$instaparse$repeat$select_parse$$,
$instaparse$repeat$repeat_parse_no_tag$cljs$0core$0IFn$0_invoke$0arity$05$$,$instaparse$repeat$repeat_parse$cljs$0core$0IFn$0_invoke$0arity$05$$,$instaparse$repeat$repeat_parse_with_header$$,$instaparse$repeat$try_repeating_parse_strategy_with_header$$,$instaparse$repeat$try_repeating_parse_strategy$$,$instaparse$core$unhide_parser$$,$instaparse$core$Parser$$,$instaparse$core$map__GT_Parser$$,$instaparse$core$parser$$,$instaparse$core$parser$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$instaparse$core$failure_QMARK_$$,
$app$util$simple_math$expr_eval$$,$app$main$ui$workspace$colorpicker$color_inputs$parse_hex$$,$app$main$ui$workspace$colorpicker$color_inputs$color_inputs$$,$app$main$ui$ds$controls$utilities$hint_message$hint_message_STAR_$$,$app$main$ui$ds$controls$utilities$label$label_STAR_$$,$app$main$ui$workspace$colorpicker$color_tokens$token_empty_state_STAR_$$,$app$main$ui$workspace$colorpicker$color_tokens$list_item_STAR_$$,$app$main$ui$workspace$colorpicker$color_tokens$grid_item_STAR_$$,$app$main$ui$workspace$colorpicker$color_tokens$group__GT_paths$$,
$app$main$ui$workspace$colorpicker$color_tokens$set_section_STAR_$$,$app$main$ui$workspace$colorpicker$color_tokens$label_group_or_set$$,$app$main$ui$workspace$colorpicker$color_tokens$filter_combined_tokens$$,$app$main$ui$workspace$colorpicker$color_tokens$sort_combined_tokens$$,$app$main$ui$workspace$colorpicker$color_tokens$token_section_STAR_$$,$app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,$app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$,$app$main$ui$workspace$sidebar$options$rows$color_row$color_token_row_STAR_$$,
$app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,$app$main$ui$workspace$colorpicker$gradients$format_rgb$$,$app$main$ui$workspace$colorpicker$gradients$gradient__GT_string$$,$app$main$ui$workspace$colorpicker$gradients$stop_input_row_STAR_$$,$app$main$ui$workspace$colorpicker$gradients$gradients_STAR_$$,$app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,$app$main$ui$workspace$colorpicker$harmony$color__GT_point$$,$app$main$ui$workspace$colorpicker$harmony$harmony_selector$$,
$app$main$ui$workspace$colorpicker$hsva$hsva_selector$$,$app$main$ui$workspace$colorpicker$libraries$libraries$$,$app$main$ui$workspace$colorpicker$ramp$value_saturation_selector$$,$app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$,$app$main$ui$workspace$colorpicker$ramp$ramp_selector_STAR_$$,$app$main$ui$workspace$colorpicker$opacity__GT_string$$,$app$main$ui$workspace$colorpicker$use_color_picker_css_variables_BANG_$$,$app$main$ui$workspace$colorpicker$colorpicker$$,$app$main$ui$workspace$colorpicker$calculate_position$$,
$app$main$ui$workspace$colorpicker$group_sets$$,$app$main$ui$workspace$colorpicker$combine_groups_with_resolved$$,$app$main$ui$workspace$colorpicker$filter_non_empty_sets$$,$app$main$ui$workspace$colorpicker$add_tokens_to_sets$$,$app$main$ui$workspace$colorpicker$filter_active_sets$$,$app$main$ui$workspace$colorpicker$colorpicker_modal$$,$app$main$ui$workspace$sidebar$assets$common$apply_filters$$,$app$main$ui$workspace$sidebar$assets$common$add_group$$,$app$main$ui$workspace$sidebar$assets$common$rename_group$$,
$app$main$ui$workspace$sidebar$assets$common$ungroup$$,$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$,$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$,$app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,$app$main$ui$workspace$sidebar$assets$common$section_icon$$,$app$main$ui$workspace$sidebar$assets$common$should_display_asset_count_QMARK_$$,$app$main$ui$workspace$sidebar$assets$common$asset_section_STAR_$$,$app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,
$app$main$ui$workspace$sidebar$assets$common$create_assets_group$$,$app$main$ui$workspace$sidebar$assets$common$on_drop_asset$$,$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset$$,$app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$,$app$main$ui$workspace$sidebar$assets$common$create_counter_element$$,$app$main$ui$workspace$sidebar$assets$common$set_drag_image$$,$app$main$ui$workspace$sidebar$assets$common$on_asset_drag_start$$,$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset_group$$,
$app$main$ui$workspace$sidebar$assets$common$on_drop_asset_group$$,$app$main$ui$workspace$sidebar$assets$common$component_item_thumbnail_STAR_$$,$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$$,$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$main$ui$workspace$context_menu$prevent_default$$,$app$main$ui$workspace$context_menu$menu_entry_STAR_$$,$app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
$app$main$ui$workspace$context_menu$context_menu_edit_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_layer_position_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_flip_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_thumbnail_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_rename_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_group_STAR_$$,$app$main$ui$workspace$context_menu$context_focus_mode_menu_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_path_STAR_$$,
$app$main$ui$workspace$context_menu$context_menu_layer_options_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_prototype_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_layout_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_component_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_delete_STAR_$$,$app$main$ui$workspace$context_menu$page_item_context_menu_STAR_$$,$app$main$ui$workspace$context_menu$viewport_context_menu_STAR_$$,$app$main$ui$workspace$context_menu$grid_track_context_menu_STAR_$$,
$app$main$ui$workspace$context_menu$grid_cells_context_menu_STAR_$$,$app$main$ui$workspace$context_menu$context_menu_STAR_$$,$app$main$ui$workspace$coordinates$coordinates$$,$app$main$ui$workspace$libraries$get_library_summary$$,$app$main$ui$workspace$libraries$adapt_backend_summary$$,$app$main$ui$workspace$libraries$describe_library$$,$app$main$ui$workspace$libraries$library_description_STAR_$$,$app$main$ui$workspace$libraries$sample_library_entry_STAR_$$,$app$main$ui$workspace$libraries$libraries_tab_STAR_$$,
$app$main$ui$workspace$libraries$extract_assets$$,$app$main$ui$workspace$libraries$updates_tab_STAR_$$,$app$main$ui$workspace$libraries$libraries_dialog$$,$app$main$ui$workspace$libraries$v2_info_dialog$$,$app$main$ui$workspace$nudge$on_keydown$$,$app$main$ui$workspace$nudge$nudge_modal$$,$app$main$ui$workspace$color_palette$recent_colors_palette_STAR_$$,$app$main$ui$workspace$color_palette$make_library_colors_ref$$,$app$main$ui$workspace$color_palette$file_color_palette_STAR_$$,$app$main$ui$workspace$color_palette_ctx_menu$extract_colors$$,
$app$main$ui$workspace$color_palette_ctx_menu$color_palette_ctx_menu_STAR_$$,$app$main$ui$workspace$text_palette$typography_item$$,$app$main$ui$workspace$text_palette$palette$$,$app$main$ui$workspace$text_palette_ctx_menu$text_palette_ctx_menu$$,$app$main$ui$workspace$palette$calculate_palette_style$$,$app$main$ui$workspace$palette$palette_STAR_$$,$app$main$ui$workspace$main_menu$file_menu_STAR_$$,$app$main$ui$workspace$main_menu$menu$$,$app$main$ui$workspace$left_header$left_header_STAR_$$,$app$main$data$workspace$history$initialize_history$$,
$app$main$ui$workspace$right_header$right_header_STAR_$$,$app$main$data$workspace$assets$get_current_assets_ordering$$,$app$main$data$workspace$assets$get_current_assets_list_style$$,$app$main$ui$workspace$sidebar$assets$groups$asset_group_title_STAR_$$,$app$main$ui$workspace$sidebar$assets$groups$group_assets$$,$app$main$ui$workspace$sidebar$assets$groups$name_group_dialog$$,$app$main$ui$workspace$sidebar$assets$colors$color_item$$,$app$main$ui$workspace$sidebar$assets$colors$colors_section_STAR_$$,
$app$main$ui$components$editable_label$editable_label_STAR_$$,$app$main$ui$workspace$sidebar$assets$components$get_component_root_and_container$$,$app$main$ui$workspace$sidebar$assets$components$components_item_STAR_$$,$app$main$ui$workspace$sidebar$assets$components$components_section_STAR_$$,$app$main$ui$components$editable_select$editable_select$$,$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$,$app$main$ui$workspace$sidebar$options$menus$typography$get_next_font$$,$app$main$ui$workspace$sidebar$options$menus$typography$get_prev_font$$,
$app$main$ui$workspace$sidebar$options$menus$typography$filter_fonts$$,$app$main$ui$workspace$sidebar$options$menus$typography$font_selector_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$typography$row_renderer$$,$app$main$ui$workspace$sidebar$options$menus$typography$font_options$$,$app$main$ui$workspace$sidebar$options$menus$typography$spacing_options$$,$app$main$ui$workspace$sidebar$options$menus$typography$text_transform_options$$,$app$main$ui$workspace$sidebar$options$menus$typography$text_options$$,
$app$main$ui$workspace$sidebar$options$menus$typography$typography_entry$$,$app$main$ui$workspace$sidebar$assets$typographies$typography_item$$,$app$main$ui$workspace$sidebar$assets$typographies$typographies_section_STAR_$$,$app$main$ui$workspace$sidebar$assets$file_library$create_file_ref$$,$app$main$ui$workspace$sidebar$assets$file_library$use_library_ref$$,$app$main$ui$workspace$sidebar$assets$file_library$use_selected$$,$app$main$ui$workspace$sidebar$assets$file_library$file_library_title_STAR_$$,
$app$main$ui$workspace$sidebar$assets$file_library$extend_selected$$,$app$main$ui$workspace$sidebar$assets$file_library$file_library_content_STAR_$$,$app$main$ui$workspace$sidebar$assets$file_library$file_library_STAR_$$,$app$main$ui$workspace$sidebar$assets$assets_local_library_STAR_$$,$app$main$ui$workspace$sidebar$debug$debug_panel_STAR_$$,$app$main$ui$workspace$sidebar$debug_shape_info$get_attrs$$,$app$main$ui$workspace$sidebar$debug_shape_info$shape_link$$,$app$main$ui$workspace$sidebar$debug_shape_info$cells_render$$,
$app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_attr$$,$app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_info_STAR_$$,$app$main$ui$workspace$sidebar$history$get_object$$,$app$main$ui$workspace$sidebar$history$extract_operation$$,$app$main$ui$workspace$sidebar$history$parse_change$$,$app$main$ui$workspace$sidebar$history$resolve_shape_types$$,$app$main$ui$workspace$sidebar$history$entry__GT_message$$,$app$main$ui$workspace$sidebar$history$entry__GT_icon$$,$app$main$ui$workspace$sidebar$history$is_shape_QMARK_$$,
$app$main$ui$workspace$sidebar$history$parse_entry$$,$app$main$ui$workspace$sidebar$history$safe_name$$,$app$main$ui$workspace$sidebar$history$select_entry$$,$app$main$ui$workspace$sidebar$history$history_entry_details$$,$app$main$ui$workspace$sidebar$history$history_entry$$,$app$main$ui$workspace$sidebar$history$history_toolbox_STAR_$$,$app$main$ui$workspace$sidebar$layers$frame_wrapper$$,$app$main$ui$workspace$sidebar$layers$calc_reparented_objects$$,$app$main$ui$workspace$sidebar$layers$match_filters_QMARK_$$,
$app$main$ui$workspace$sidebar$layers$use_search$$,$app$main$ui$workspace$sidebar$layers$on_scroll$$,$app$main$ui$workspace$sidebar$options$drawing$frame$options_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$align$align_options_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$bool$bool_options_STAR_$$,$app$main$ui$ds$controls$combobox$combobox_STAR_$$,$app$main$ui$ds$controls$switch$0$switch_STAR_$$,$app$main$ui$ds$product$input_with_meta$input_with_meta_STAR_$$,$app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$variants_help_modal$variants_help_modal$$,$app$main$ui$workspace$sidebar$options$menus$component$component_annotation_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$get_variant_malformed_warning_message$$,$app$main$ui$workspace$sidebar$options$menus$component$get_variant_duplicated_warning_message$$,$app$main$ui$workspace$sidebar$options$menus$component$get_components_with_duplicated_variant_props_and_values$$,$app$main$ui$workspace$sidebar$options$menus$component$get_main_ids_with_duplicated_variant_props_and_values$$,
$app$main$ui$workspace$sidebar$options$menus$component$get_variant_options$$,$app$main$ui$workspace$sidebar$options$menus$component$component_variant_property_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_variant_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_variant_copy_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_swap_item_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_swap_group_title_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$01$$,$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$ui$workspace$sidebar$options$menus$component$same_component_file_QMARK_$$,$app$main$ui$workspace$sidebar$options$menus$component$same_component_QMARK_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_swap_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_pill_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$component$component_menu_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$move_empty_items_to_end$$,$app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_property_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$grid_cell$set_self_alignment$$,$app$main$ui$ds$controls$checkbox$checkbox_STAR_$$,$app$main$ui$ds$controls$utilities$token_field$token_field_STAR_$$,
$app$main$ui$ds$controls$numeric_input$parse_value$$,$app$main$ui$ds$controls$numeric_input$get_option_by_name$$,$app$main$ui$ds$controls$numeric_input$get_token_op$$,$app$main$ui$ds$controls$numeric_input$clean_token_name$$,$app$main$ui$ds$controls$numeric_input$token__GT_dropdown_option$$,$app$main$ui$ds$controls$numeric_input$generate_dropdown_options$$,$app$main$ui$ds$controls$numeric_input$filter_token_groups_by_name$$,$app$main$ui$ds$controls$numeric_input$focusable_option_QMARK_$$,$app$main$ui$ds$controls$numeric_input$first_focusable_id$$,
$app$main$ui$ds$controls$numeric_input$next_focus_index$$,$app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens$$,$app$main$ui$ds$controls$numeric_input$numeric_input_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$event_type_name$$,$app$main$ui$workspace$sidebar$options$menus$interactions$action_summary$$,$app$main$ui$workspace$sidebar$options$menus$interactions$get_frames_options$$,$app$main$ui$workspace$sidebar$options$menus$interactions$get_shared_frames_options$$,$app$main$ui$workspace$sidebar$options$menus$interactions$prototype_pill_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$interactions$flow_item_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$interaction_item_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$page_flows_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$shape_flows_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$interactions_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$interactions$interactions_menu_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_flex$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$wrap_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$align_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$align_content_row$$,
$app$main$ui$workspace$sidebar$options$menus$layout_container$justify_content_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$simple_padding_selection_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$multiple_padding_selection_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$padding_section_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_focus$$,
$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$gap_section_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_grid$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_edit_mode$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$manage_values$$,
$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_track_info$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_columns_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$open_flex_help$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$open_grid_help$$,$app$main$ui$workspace$sidebar$options$menus$blur$create_blur$$,$app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,
$app$main$ui$workspace$sidebar$options$menus$layer$opacity__GT_string$$,$app$main$ui$workspace$sidebar$options$menus$layer$on_change$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margin$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_simple_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_multiple_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_section_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_horizontal$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_vertical$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$align_self_row$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_size_constraints_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$border_radius$all_equal_QMARK_$$,$app$main$ui$workspace$sidebar$options$menus$measures$type__GT_options$$,$app$main$ui$workspace$sidebar$options$menus$measures$select_measure_keys$$,
$app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,$app$main$ui$workspace$sidebar$options$common$advanced_options_STAR_$$,$app$main$ui$workspace$sidebar$options$rows$shadow_row$shadow_row_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$shadow$remove_shadow_by_index$$,$app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,$app$main$ui$workspace$sidebar$options$rows$stroke_row$stroke_row_STAR_$$,$app$main$ui$workspace$sidebar$options$shapes$bool$options_STAR_$$,
$app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,$app$main$ui$workspace$sidebar$options$shapes$circle$options_STAR_$$,$app$main$ui$workspace$sidebar$options$menus$color_selection$prepare_colors$$,$app$main$ui$workspace$sidebar$options$menus$color_selection$retrieve_color_operations$$,$app$common$geom$grid$calculate_generic_grid$$,$app$common$geom$grid$calculate_column_grid$$,$app$common$geom$grid$calculate_row_grid$$,$app$common$geom$grid$calculate_square_grid$$,$app$common$geom$grid$grid_gutter$$,
$app$common$geom$grid$grid_areas$$,$app$main$data$workspace$grid$add_frame_grid$$,$app$main$data$workspace$grid$remove_frame_grid$$,$app$main$data$workspace$grid$set_frame_grid$$,$app$main$data$workspace$grid$set_default_grid$$,$app$main$ui$workspace$sidebar$options$menus$frame_grid$get_size_options$$,$app$main$ui$workspace$sidebar$options$menus$frame_grid$frame_grid$$,$app$main$ui$workspace$sidebar$options$shapes$frame$options_STAR_$$,$app$util$text$ui$closest_text_editor_content$$,$app$main$ui$workspace$sidebar$options$menus$text$text_align_options$$,
$app$main$ui$workspace$sidebar$options$menus$text$text_direction_options$$,$app$main$ui$workspace$sidebar$options$menus$text$vertical_align$$,$app$main$ui$workspace$sidebar$options$menus$text$grow_options$$,$app$main$ui$workspace$sidebar$options$menus$text$text_decoration_options$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_eq$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_sel$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_eq$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_sel$$,
$app$main$ui$workspace$sidebar$options$shapes$path$options_STAR_$$,$app$main$ui$workspace$sidebar$options$shapes$rect$options_STAR_$$,$app$main$ui$workspace$sidebar$options$shapes$svg_raw$parse_color$$,$app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_fill_values$$,$app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_stroke_values$$,$app$main$ui$workspace$sidebar$options$shapes$svg_raw$options_STAR_$$,$app$main$ui$workspace$sidebar$options$shapes$text$options_STAR_$$,$app$main$ui$workspace$sidebar$options$single_shape_options_STAR_$$,
$app$main$ui$workspace$sidebar$options$specialized_panel_STAR_$$,$app$main$ui$workspace$sidebar$options$design_menu_STAR_$$,$app$main$ui$workspace$sidebar$options$inspect_tab_STAR_$$,$app$main$ui$workspace$sidebar$options$on_option_tab_change$$,$app$main$ui$workspace$sidebar$options$options_content_STAR_$$,$app$main$ui$workspace$sidebar$options$make_page_objects_ref$$,$app$main$ui$workspace$sidebar$shortcuts$converted_chars_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$,$app$main$ui$workspace$sidebar$shortcuts$add_translation$$,
$app$main$ui$workspace$sidebar$shortcuts$shortcuts__GT_subsections$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts_keys_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$shortcut_row_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$section_title_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$shortcut_subsection_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$shortcut_section_STAR_$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts_container_STAR_$$,$app$main$ui$workspace$sidebar$sitemap$make_page_ref$$,
$app$main$ui$workspace$sidebar$sitemap$page_item$$,$app$main$ui$workspace$sidebar$sitemap$page_item_wrapper$$,$app$main$ui$workspace$sidebar$sitemap$pages_list_STAR_$$,$app$main$ui$workspace$sidebar$sitemap$sitemap_STAR_$$,$app$main$ui$ds$product$avatar$avatar_STAR_$$,$app$main$ui$ds$product$milestone$milestone_STAR_$$,$app$main$ui$ds$utilities$date$date_STAR_$$,$app$main$ui$ds$product$milestone_group$milestone_group_STAR_$$,$app$main$ui$workspace$sidebar$versions$get_versions_stored_days$$,$app$main$ui$workspace$sidebar$versions$get_versions_warning_subtext$$,
$app$main$ui$workspace$sidebar$versions$group_snapshots$$,$app$main$ui$workspace$sidebar$versions$open_restore_version_dialog$$,$app$main$ui$workspace$sidebar$versions$version_entry_STAR_$$,$app$main$ui$workspace$sidebar$versions$snapshot_entry_STAR_$$,$app$main$ui$workspace$sidebar$versions$versions_toolbox_STAR_$$,$app$main$ui$workspace$tokens$management$context_menu$key_in_map_QMARK_$$,$app$main$ui$workspace$tokens$management$context_menu$clean_separators$$,$app$main$ui$workspace$tokens$management$context_menu$attribute_actions$$,
$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,$app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$,$app$main$ui$workspace$tokens$management$context_menu$layout_spacing_items$$,$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_padding$$,$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_margin$$,$app$main$ui$workspace$tokens$management$context_menu$spacing_attribute_actions$$,$app$main$ui$workspace$tokens$management$context_menu$sizing_attribute_actions$$,
$app$main$ui$workspace$tokens$management$context_menu$update_shape_radius_for_corners$$,$app$main$ui$workspace$tokens$management$context_menu$default_actions$$,$app$main$ui$workspace$tokens$management$context_menu$allowed_shape_attributes$$,$app$main$ui$workspace$tokens$management$context_menu$menu_actions$$,$app$main$ui$workspace$tokens$management$context_menu$selection_actions$$,$app$main$ui$workspace$tokens$management$context_menu$prevent_default$$,$app$main$ui$workspace$tokens$management$context_menu$menu_entry$$,
$app$main$ui$workspace$tokens$management$context_menu$token_context_menu_tree$$,$app$main$ui$workspace$tokens$management$context_menu$token_context_menu$$,$app$main$ui$ds$layers$layer_button$layer_button_STAR_$$,$app$main$data$workspace$tokens$color$resolved_token_bullet_color$$,$app$main$ui$ds$foundations$utilities$token$token_status$token_status_icon_STAR_$$,$app$main$ui$workspace$tokens$management$token_pill$partially_applied_attr$$,$app$main$ui$workspace$tokens$management$token_pill$translate_and_format$$,
$app$main$ui$workspace$tokens$management$token_pill$contains_reference_value_QMARK_$$,$app$main$ui$workspace$tokens$management$token_pill$applied_all_attributes_QMARK_$$,$app$main$ui$workspace$tokens$management$token_pill$attributes_match_selection_QMARK_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$main$ui$workspace$tokens$management$token_tree$token_tree_STAR_$$,$app$main$ui$workspace$tokens$management$group$token_section_icon$$,$app$main$ui$workspace$tokens$management$group$token_group_STAR_$$,
$app$main$ui$workspace$tokens$management$node_context_menu$prevent_default$$,$app$main$ui$workspace$tokens$management$node_context_menu$token_node_context_menu_STAR_$$,$app$main$ui$workspace$tokens$management$selected_set_info_STAR_$$,$app$main$ui$workspace$tokens$management$tokens_section_STAR_$$,$app$main$ui$workspace$tokens$sets$helpers$on_update_token_set$$,$app$main$ui$workspace$tokens$sets$helpers$on_update_token_set_group$$,$app$main$ui$workspace$tokens$sets$helpers$on_create_token_set$$,$app$main$ui$workspace$tokens$sets$lists$on_start_creation$$,
$app$main$ui$workspace$tokens$sets$lists$editing_label_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$checkbox_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$inline_add_button_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$add_button_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$sets_tree_set_group_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$sets_tree_set_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$token_sets_tree_STAR_$$,$app$main$ui$workspace$tokens$sets$lists$controlled_sets_list_STAR_$$,
$app$main$ui$workspace$tokens$sets$on_select_token_set_click$$,$app$main$ui$workspace$tokens$sets$on_toggle_token_set_click$$,$app$main$ui$workspace$tokens$sets$on_toggle_token_set_group_click$$,$app$main$ui$workspace$tokens$sets$sets_list_STAR_$$,$app$main$ui$workspace$tokens$sets$context_menu$prevent_default$$,$app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$,$app$main$ui$workspace$tokens$sets$context_menu$menu_STAR_$$,$app$main$ui$workspace$tokens$sets$context_menu$token_set_context_menu_STAR_$$,
$app$main$ui$workspace$tokens$themes$theme_selector$themes_list$$,$app$main$ui$workspace$tokens$themes$theme_selector$open_tokens_theme_modal$$,$app$main$ui$workspace$tokens$themes$theme_selector$theme_options$$,$app$main$ui$workspace$tokens$themes$theme_selector$theme_selector$$,$app$main$ui$workspace$tokens$themes$themes_header_STAR_$$,$app$main$ui$workspace$tokens$sidebar$token_sets_list_STAR_$$,$app$main$ui$workspace$tokens$sidebar$token_management_section_STAR_$$,$app$main$ui$workspace$tokens$sidebar$import_export_button_STAR_$$,
$app$main$ui$workspace$tokens$sidebar$tokens_sidebar_tab_STAR_$$,$app$main$ui$workspace$sidebar$collapse_button_STAR_$$,$app$main$ui$workspace$sidebar$on_close_document_history$$,$app$main$ui$workspace$sidebar$right_sidebar_STAR_$$,$app$main$ui$workspace$sidebar$sidebar_STAR_$$,$app$util$zip$writer$$,$app$util$zip$add$$,$app$util$zip$read_as_text$$,$app$util$zip$close$$,$app$main$ui$workspace$tokens$export$0$modal$export_tab_STAR_$$,$app$main$ui$workspace$tokens$export$0$modal$single_file_tab_STAR_$$,
$app$main$ui$workspace$tokens$export$0$modal$download_tokens_zip_BANG_$$,$app$main$ui$workspace$tokens$export$0$modal$multi_file_tab_STAR_$$,$app$main$ui$workspace$tokens$export$0$modal$export_modal_body_STAR_$$,$app$main$ui$workspace$tokens$export$0$export_modal_STAR_$$,$app$main$data$workspace$tokens$import_export$group_by_value$$,$app$main$data$workspace$tokens$import_export$show_unknown_types_warning$$,$app$main$data$workspace$tokens$import_export$decode_json$$,$app$main$data$workspace$tokens$import_export$parse_decoded_json$$,
$app$main$data$workspace$tokens$import_export$validate_library$$,$app$main$data$workspace$tokens$import_export$import_file_stream$$,$app$main$data$workspace$tokens$import_export$import_directory_stream$$,$app$main$ui$workspace$tokens$import$0$modal$on_stream_imported$$,$app$main$ui$workspace$tokens$import$0$modal$import_type_dropdown_STAR_$$,$app$main$ui$workspace$tokens$import$0$modal$has_token_files_QMARK_$$,$app$main$ui$workspace$tokens$import$0$modal$validate_token_files$$,$app$main$ui$workspace$tokens$import$0$modal$import_modal_body_STAR_$$,
$app$main$ui$workspace$tokens$import$0$import_modal_STAR_$$,$app$main$ui$forms$form_input_STAR_$$,$app$main$ui$forms$form_submit_STAR_$$,$app$main$ui$forms$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$resolve_value$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$hex__GT_color_obj$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$ramp_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$color_input_STAR_$$,
$app$main$ui$workspace$tokens$management$forms$controls$color_input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$indexed_color_input_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$resolve_value$$,$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$fonts_combobox_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$on_composite_combobox_token_change$cljs$0core$0IFn$0_invoke$0arity$04$$,
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$composite_fonts_combobox_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value_tokenscript$$,$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value$$,$app$main$ui$workspace$tokens$management$forms$controls$input$input_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$input$on_composite_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,
$app$main$ui$workspace$tokens$management$forms$controls$input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$,$app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$,$app$main$ui$workspace$tokens$management$forms$controls$select$select_indexed_STAR_$$,$app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens$$,$app$main$data$workspace$tokens$remapping$scan_token_value_references$$,$app$main$data$workspace$tokens$remapping$scan_workspace_token_references$$,
$app$main$data$workspace$tokens$remapping$remap_tokens$$,$app$main$data$workspace$tokens$remapping$count_token_references$$,$app$main$ui$workspace$tokens$management$forms$validators$check_self_reference$$,$app$main$ui$workspace$tokens$management$forms$validators$validate_resolve_token$$,$app$main$ui$workspace$tokens$management$forms$validators$validate_token_with$$,$app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$,$app$main$ui$workspace$tokens$management$forms$validators$check_coll_self_reference$$,
$app$main$ui$workspace$tokens$management$forms$generic_form$get_value_for_validator$$,$app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$color$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$font_family$check_font_family_token_self_reference$$,$app$main$ui$workspace$tokens$management$forms$font_family$validate_font_family_token$$,$app$main$ui$workspace$tokens$management$forms$font_family$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$shadow$check_shadow_token_self_reference$$,
$app$main$ui$workspace$tokens$management$forms$shadow$check_empty_shadow_token$$,$app$main$ui$workspace$tokens$management$forms$shadow$validate_shadow_token$$,$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$,$app$main$ui$workspace$tokens$management$forms$shadow$shadow_formset_STAR_$$,$app$main$ui$workspace$tokens$management$forms$shadow$composite_form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$shadow$reference_form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$shadow$tabs_wrapper_STAR_$$,
$app$main$ui$workspace$tokens$management$forms$shadow$make_schema$$,$app$main$ui$workspace$tokens$management$forms$shadow$make_default_value$$,$app$main$ui$workspace$tokens$management$forms$shadow$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$typography$check_typography_token_self_reference$$,$app$main$ui$workspace$tokens$management$forms$typography$check_empty_typography_token$$,$app$main$ui$workspace$tokens$management$forms$typography$validate_typography_token$$,$app$main$ui$workspace$tokens$management$forms$typography$composite_form_STAR_$$,
$app$main$ui$workspace$tokens$management$forms$typography$reference_form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$typography$tabs_wrapper_STAR_$$,$app$main$ui$workspace$tokens$management$forms$typography$make_schema$$,$app$main$ui$workspace$tokens$management$forms$typography$form_STAR_$$,$app$main$ui$workspace$tokens$management$forms$form_container$form_container_STAR_$$,$app$main$ui$workspace$tokens$management$forms$modals$calculate_position$$,$app$main$ui$workspace$tokens$management$forms$modals$use_viewport_position_style$$,
$app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$boolean_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$border_radius_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$color_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$stroke_width_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$box_shadow_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$sizing_modal$$,
$app$main$ui$workspace$tokens$management$forms$modals$dimensions_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$number_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$opacity_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$other_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$rotation_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$spacing_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$string_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$typography_modal$$,
$app$main$ui$workspace$tokens$management$forms$modals$font_size_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$letter_spacing_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$font_familiy_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$text_case_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$text_decoration_modal$$,$app$main$ui$workspace$tokens$management$forms$modals$font_weight_modal$$,$app$main$ui$workspace$tokens$remapping_modal$token_remapping_modal$$,
$app$main$data$workspace$tokens$typography$set_base_font_size$$,$app$main$ui$workspace$tokens$settings$menu$token_settings_STAR_$$,$app$main$ui$workspace$tokens$settings$token_settings_modal_STAR_$$,$app$main$ui$workspace$tokens$themes$create_modal$empty_themes$$,$app$main$ui$workspace$tokens$themes$create_modal$themes_overview$$,$app$main$ui$workspace$tokens$themes$create_modal$theme_inputs_STAR_$$,$app$main$ui$workspace$tokens$themes$create_modal$theme_modal_buttons_STAR_$$,$app$main$ui$workspace$tokens$themes$create_modal$make_lib_with_theme$$,
$app$main$ui$workspace$tokens$themes$create_modal$edit_create_theme_STAR_$$,$app$main$ui$workspace$tokens$themes$create_modal$has_prev_view$$,$app$main$ui$workspace$tokens$themes$create_modal$edit_theme$$,$app$main$ui$workspace$tokens$themes$create_modal$create_theme$$,$app$main$ui$workspace$tokens$themes$create_modal$themes_modal_body_STAR_$$,$app$main$ui$workspace$tokens$themes$create_modal$token_themes_modal$$,$app$main$ui$flex_controls$common$flex_display_pill$$,$app$main$ui$workspace$viewport$viewport_ref$init_observer$$,
$app$main$ui$workspace$viewport$viewport_ref$on_change_bounds$$,$app$main$ui$workspace$viewport$viewport_ref$create_viewport_ref$$,$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$,$app$main$ui$flex_controls$gap$gap_display$$,$app$main$ui$flex_controls$gap$gap_rects$$,$app$main$ui$flex_controls$gap$gap_control$$,$app$main$ui$flex_controls$margin$margin_display$$,$app$main$ui$flex_controls$margin$margin_rects$$,$app$main$ui$flex_controls$margin$margin_control$$,$app$main$ui$flex_controls$padding$padding_display$$,
$app$main$ui$flex_controls$padding$padding_rects$$,$app$main$ui$flex_controls$padding$padding_control$$,$app$main$ui$workspace$shapes$path$editor$path_point_STAR_$$,$app$main$ui$workspace$shapes$path$editor$path_handler_STAR_$$,$app$main$ui$workspace$shapes$path$editor$path_preview_STAR_$$,$app$main$ui$workspace$shapes$path$editor$path_snap_STAR_$$,$app$main$ui$workspace$shapes$path$editor$path_editor_STAR_$$,$app$main$ui$workspace$shapes$text$editor$block_component$$,$app$main$ui$workspace$shapes$text$editor$styles_fn$$,
$app$main$ui$workspace$shapes$text$editor$get_blocks_to_setup$$,$app$main$ui$workspace$shapes$text$editor$get_blocks_to_add_styles$$,$app$main$ui$workspace$shapes$text$editor$shape__GT_justify$$,$app$main$ui$workspace$shapes$text$editor$text_editor_svg$$,$app$main$ui$workspace$shapes$text$text_edition_outline$text_edition_outline$$,$app$main$ui$workspace$shapes$text$v2_editor$get_contrast_color$$,$app$main$ui$workspace$shapes$text$v2_editor$load_fonts_BANG_$$,$app$main$ui$workspace$shapes$text$v2_editor$initialize_event_handlers$$,
$app$main$ui$workspace$shapes$text$v2_editor$get_color_from_content$$,$app$main$ui$workspace$shapes$text$v2_editor$get_default_text_color$$,$app$main$ui$workspace$shapes$text$v2_editor$shape__GT_justify$$,$$jscomp$scope$m743970774$0$getRangeRects$$,$app$util$text_position_data$parse_text_nodes$$,$app$util$text_svg_position$parse_text_nodes$$,$app$util$text_svg_position$resolve_font$$,$app$util$text_svg_position$process_text_node$$,$app$util$text_svg_position$calc_text_node_positions$$,$app$util$text_svg_position$calc_position_data$$,
$app$main$ui$workspace$shapes$text$viewport_texts_html$fix_position$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$update_shape_with_content$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_shape$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_modifier$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$text_properties_equal_QMARK_$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$text_changes_renderer$$,$app$main$ui$workspace$shapes$text$viewport_texts_html$text_modifiers_renderer$$,
$app$main$ui$workspace$viewport$actions$on_pointer_down$$,$app$main$ui$workspace$viewport$actions$on_move_selected$$,$app$main$ui$workspace$viewport$actions$on_frame_select$$,$app$main$ui$workspace$viewport$actions$on_frame_enter$$,$app$main$ui$workspace$viewport$actions$on_frame_leave$$,$app$main$ui$workspace$viewport$actions$on_click$$,$app$main$ui$workspace$viewport$actions$on_double_click$$,$app$main$ui$workspace$viewport$actions$on_context_menu$$,$app$main$ui$workspace$viewport$actions$on_menu_selected$$,
$app$main$ui$workspace$viewport$actions$on_pointer_up$$,$app$main$ui$workspace$viewport$actions$on_pointer_enter$$,$app$main$ui$workspace$viewport$actions$on_pointer_leave$$,$app$main$ui$workspace$viewport$actions$on_key_down$$,$app$main$ui$workspace$viewport$actions$on_key_up$$,$app$main$ui$workspace$viewport$actions$on_pointer_move$$,$app$main$ui$workspace$viewport$actions$schedule_zoom_BANG_$$,$app$main$ui$workspace$viewport$actions$schedule_scroll_BANG_$$,$app$main$ui$workspace$viewport$actions$on_mouse_wheel$$,
$app$main$ui$workspace$viewport$actions$on_drag_enter$$,$app$main$ui$workspace$viewport$actions$on_drag_over$$,$app$main$ui$workspace$viewport$actions$on_drop$$,$app$main$ui$workspace$viewport$actions$on_paste$$,$app$main$ui$workspace$viewport$debug$debug_content_bounds$$,$app$main$ui$workspace$viewport$debug$debug_layout_lines$$,$app$main$ui$workspace$viewport$debug$debug_parent_bounds$$,$app$main$ui$workspace$viewport$debug$debug_grid_layout$$,$app$main$ui$workspace$viewport$debug$debug_text_wasm_position_data$$,
$app$main$ui$workspace$viewport$drawarea$make_edit_path_ref$$,$app$main$ui$workspace$viewport$drawarea$generic_draw_area_STAR_$$,$app$main$ui$workspace$viewport$drawarea$path_draw_area_STAR_$$,$app$main$ui$workspace$viewport$drawarea$draw_area_STAR_$$,$app$main$ui$workspace$viewport$frame_grid$square_grid$$,$app$main$ui$workspace$viewport$frame_grid$layout_grid$$,$app$main$ui$workspace$viewport$frame_grid$frame_clip_area$$,$app$main$ui$workspace$viewport$frame_grid$has_grid_QMARK_$$,$app$main$ui$workspace$viewport$gradients$shadow$$,
$app$main$ui$workspace$viewport$gradients$gradient_color_handler$$,$app$main$ui$workspace$viewport$gradients$gradient_handler_transformed$$,$app$main$ui$workspace$viewport$gradients$gradient_handlers_impl_STAR_$$,$app$main$ui$workspace$viewport$grid_layout_editor$apply_to_point$$,$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$,$app$main$ui$workspace$viewport$grid_layout_editor$grid_edition_actions$$,$app$main$ui$workspace$viewport$grid_layout_editor$grid_editor_frame$$,$app$main$ui$workspace$viewport$grid_layout_editor$plus_btn$$,
$app$main$ui$workspace$viewport$grid_layout_editor$use_drag$$,$app$main$ui$workspace$viewport$grid_layout_editor$resize_cell_handler$$,$app$main$ui$workspace$viewport$grid_layout_editor$grid_cell_area_label$$,$app$main$ui$workspace$viewport$grid_layout_editor$use_resize_track$$,$app$main$ui$workspace$viewport$grid_layout_editor$resize_track_handler$$,$app$main$ui$workspace$viewport$grid_layout_editor$marker_shape_d$$,$app$main$ui$workspace$viewport$grid_layout_editor$track_marker$$,$app$main$ui$workspace$viewport$rulers$get_ruler_params$$,
$app$main$ui$workspace$viewport$rulers$rulers_inside_path$$,$app$main$ui$workspace$viewport$rulers$rulers_text$$,$app$main$ui$workspace$viewport$rulers$viewport_frame$$,$app$main$ui$workspace$viewport$rulers$selection_area$$,$app$main$ui$workspace$viewport$guides$use_guide$$,$app$main$ui$workspace$viewport$guides$is_guide_inside_frame_QMARK_$$,$app$main$ui$workspace$viewport$guides$new_guide_area_STAR_$$,$app$main$data$workspace$grid_layout$shortcuts$esc_pressed$$,$app$main$ui$workspace$viewport$hooks$setup_dom_events$$,
$app$main$ui$workspace$viewport$hooks$setup_viewport_size$$,$app$main$ui$workspace$viewport$hooks$setup_cursor$$,$app$main$ui$workspace$viewport$hooks$setup_keyboard$$,$app$main$ui$workspace$viewport$hooks$setup_hover_shapes$$,$app$main$ui$workspace$viewport$hooks$setup_viewport_modifiers$$,$app$main$ui$workspace$viewport$hooks$inside_vbox$$,$app$main$ui$workspace$viewport$hooks$setup_active_frames$$,$app$main$ui$workspace$viewport$hooks$setup_shortcuts$$,$app$main$ui$workspace$viewport$outline$outline$$,
$app$main$ui$workspace$viewport$outline$shape_outlines$$,$app$main$ui$workspace$viewport$interactions$on_pointer_down$$,$app$main$ui$workspace$viewport$interactions$connect_to_shape$$,$app$main$ui$workspace$viewport$interactions$connect_to_point$$,$app$main$ui$workspace$viewport$interactions$interaction_marker$$,$app$main$ui$workspace$viewport$interactions$interaction_path$$,$app$main$ui$workspace$viewport$interactions$interaction_handle$$,$app$main$ui$workspace$viewport$interactions$overlay_marker$$,
$app$main$ui$workspace$viewport$interactions$interactions$$,$app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move$$,$app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay$$,$app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move_wasm$$,$app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay_wasm_STAR_$$,$app$main$ui$workspace$viewport$presence$active_cursors$$,$app$main$ui$workspace$viewport$selection$selection_rect$$,$app$main$ui$workspace$viewport$selection$calculate_handlers$$,
$app$main$ui$workspace$viewport$selection$rotation_handler$$,$app$main$ui$workspace$viewport$selection$resize_point_handler$$,$app$main$ui$workspace$viewport$selection$resize_side_handler$$,$app$main$ui$workspace$viewport$selection$controls_selection_STAR_$$,$app$main$ui$workspace$viewport$selection$controls_handlers_STAR_$$,$app$main$ui$workspace$viewport$selection$text_edition_selection$$,$app$main$ui$workspace$viewport$selection$multiple_handlers_STAR_$$,$app$main$ui$workspace$viewport$selection$multiple_selection_STAR_$$,
$app$main$ui$workspace$viewport$selection$single_handlers_STAR_$$,$app$main$ui$workspace$viewport$selection$single_selection_STAR_$$,$app$main$ui$workspace$viewport$selection$area_STAR_$$,$app$main$ui$workspace$viewport$selection$handlers_STAR_$$,$app$main$ui$workspace$viewport$snap_distances$half_point$$,$app$main$ui$workspace$viewport$snap_distances$shape_distance_segment$$,$app$main$ui$workspace$viewport$snap_distances$calculate_segments$$,$app$main$ui$workspace$viewport$snap_distances$query_worker$$,
$app$main$ui$workspace$viewport$snap_distances$shape_distance$$,$app$main$ui$workspace$viewport$snap_distances$snap_distances$$,$app$main$ui$workspace$viewport$snap_points$snap_point$$,$app$main$ui$workspace$viewport$snap_points$snap_line$$,$app$main$ui$workspace$viewport$snap_points$get_snap$$,$app$main$ui$workspace$viewport$snap_points$add_point_to_snaps$$,$app$main$ui$workspace$viewport$snap_points$process_snap_lines$$,$app$main$ui$workspace$viewport$snap_points$snap_feedback$$,$app$main$ui$workspace$viewport$path_actions$check_enabled$$,
$app$main$ui$workspace$viewport$path_actions$path_actions_STAR_$$,$app$main$ui$workspace$viewport$top_bar$view_only_bar_STAR_$$,$app$main$ui$workspace$viewport$top_bar$path_edition_bar_STAR_$$,$app$main$ui$workspace$viewport$top_bar$grid_edition_bar_STAR_$$,$app$main$ui$workspace$viewport$widgets$pixel_grid_STAR_$$,$app$main$ui$workspace$viewport$widgets$cursor_tooltip_STAR_$$,$app$main$ui$workspace$viewport$widgets$frame_flow_STAR_$$,$app$main$ui$workspace$viewport$widgets$frame_flows_STAR_$$,$app$main$ui$workspace$viewport$widgets$button_add_STAR_$$,
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$,$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$,$app$render_wasm$text_editor_input$text_editor_input$$,$app$main$ui$workspace$viewport_wasm$apply_modifiers_to_selected$$,$app$main$ui$workspace$viewport_wasm$viewport_STAR_$$,$app$main$ui$workspace$viewport$apply_modifiers_to_selected$$,$app$main$ui$workspace$viewport$viewport_classic_STAR_$$,$app$main$ui$workspace$viewport$viewport_STAR_$$,
$app$main$ui$workspace$workspace_content_STAR_$$,$app$main$ui$workspace$workspace_loader_STAR_$$,$app$main$ui$workspace$make_team_ref$$,$app$main$ui$workspace$make_file_ref$$,$app$main$ui$workspace$make_page_ref$$,$app$main$ui$workspace$workspace_inner_STAR_$$,$cljs$core$CHAR_MAP$$,$cljs$core$js_reserved_arr$$,$cljs$core$js_reserved$$,$cljs$core$NS_CACHE$$,$cljs$tools$reader$READ_EOF$$,$cljs$tools$reader$READ_FINISHED$$,$cljs$tools$reader$_STAR_read_delim_STAR_$$,$cljs$tools$reader$_STAR_suppress_read_STAR_$$,
$cljs$tools$reader$NO_MATCH$$,$cljs$tools$reader$arg_env$$,$cljs$tools$reader$gensym_env$$,$app$$,$app$main$$,$app$main$data$workspace$initialize_layout_70146$$,$app$main$data$workspace$finalize_workspace_70243$$,$app$main$data$workspace$rename_file_70261$$,$app$main$data$workspace$update_nudge_70269$$,$app$main$data$workspace$relocate_page_70332$$,$app$main$data$workspace$set_shape_proportion_lock_70353$$,$app$main$data$workspace$workspace_focus_lost_70362$$,$app$main$data$workspace$set_assets_section_open_70365$$,
$app$main$data$workspace$clear_assets_section_open_70368$$,$app$main$data$workspace$set_assets_group_open_70371$$,$app$main$data$workspace$toggle_selected_assets_70374$$,$app$main$data$workspace$select_single_asset_70377$$,$app$main$data$workspace$select_assets_70380$$,$app$main$data$workspace$unselect_all_assets_70385$$,$app$main$data$workspace$show_component_in_assets_70389$$,$app$main$data$workspace$show_page_item_context_menu_70405$$,$app$main$data$workspace$show_track_context_menu_70410$$,$app$main$data$workspace$show_grid_cell_context_menu_70419$$,
$app$main$data$workspace$set_paddings_selected_70463$$,$app$main$data$workspace$set_gap_selected_70468$$,$app$main$data$workspace$set_margins_selected_70481$$,$app$main$data$workspace$start_rename_page_item_70499$$,$app$main$data$workspace$stop_rename_page_item_70510$$,$app$main$data$workspace$update_component_annotation_70518$$,$app$main$data$workspace$set_annotations_expanded_70528$$,$app$main$data$workspace$set_annotations_id_for_create_70540$$,$app$main$data$workspace$set_preview_blend_mode_70552$$,
$app$main$data$workspace$unset_preview_blend_mode_70562$$,$app$main$data$workspace$set_clipboard_style_70583$$,$app$main$store$$,$app$main$data$modal$update_modal_props_51600$$,$app$main$data$common$go_to_feedback_52229$$,$app$main$broadcast$event_51975$$,$app$render_wasm$wasm$canvas$$,$app$render_wasm$wasm$canvas_pixels$$,$app$render_wasm$wasm$gl_context_handle$$,$app$render_wasm$wasm$gl_context$$,$app$render_wasm$api$default_context_options$$,$app$main$data$persistence$update_status_54606$$,$app$main$data$persistence$update_file_revn_54623$$,
$app$main$data$persistence$discard_commit_54645$$,$app$main$data$persistence$append_commit_54660$$,$app$main$data$persistence$discard_persistence_state_54685$$,$app$main$data$persistence$persist_commit_54705$$,$app$main$data$persistence$run_persistence_task_54743$$,$app$main$data$persistence$initialize_persistence_54772$$,$app$main$data$plugins$update_plugins_permissions_peek_54778$$,$app$main$data$fonts$add_recent_font_55019$$,$app$main$data$project$finalize_project_54903$$,$app$main$data$workspace$zoom$start_zooming_65547$$,
$app$main$data$workspace$zoom$finish_zooming_65571$$,$app$main$data$workspace$selection$update_selrect_65931$$,$app$main$data$workspace$selection$handle_area_selection_65939$$,$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$,$app$main$data$workspace$bool$group_to_bool_66528$$,$app$main$data$workspace$bool$bool_to_group_66547$$,$app$main$data$workspace$bool$change_bool_type_66580$$,$app$main$data$workspace$media$upload_fill_image_66618$$,$app$main$data$workspace$media$process_img_component_66660$$,
$app$main$data$workspace$media$process_svg_component_66663$$,$app$main$data$workspace$layout$ensure_layout_65645$$,$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$,$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$,$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$,$app$main$data$workspace$thumbnails$watch_state_changes_66352$$,$app$main$data$workspace$modifiers$update_modifiers_67092$$,$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$,
$app$main$data$workspace$transforms$change_orientation_67442$$,$app$main$data$workspace$transforms$start_rotate_67461$$,$app$main$data$workspace$transforms$selected_fit_content_67771$$,$app$main$data$workspace$transforms$resize_text_editor_67797$$,$app$main$data$workspace$libraries$delete_media_67931$$,$app$main$data$workspace$libraries$add_multiple_components_68039$$,$app$main$data$workspace$libraries$duplicate_component_68069$$,$app$main$data$workspace$libraries$restore_component_68087$$,$app$main$data$workspace$libraries$restore_components_68091$$,
$app$main$data$workspace$libraries$detach_components_68111$$,$app$main$data$workspace$libraries$nav_to_component_file_68132$$,$app$main$data$workspace$libraries$reset_component_68248$$,$app$main$data$workspace$libraries$reset_components_68258$$,$app$main$data$workspace$libraries$update_component_68279$$,$app$main$data$workspace$libraries$update_component_sync_68301$$,$app$main$data$workspace$libraries$launch_component_sync_68316$$,$app$main$data$workspace$libraries$update_component_thumbnail_68325$$,
$app$main$data$workspace$libraries$component_multi_swap_68355$$,$app$main$data$workspace$libraries$touch_component_68429$$,$app$main$data$workspace$libraries$component_changed_68432$$,$app$main$data$workspace$libraries$watch_component_changes_68440$$,$app$main$data$workspace$libraries$set_file_shared_68458$$,$app$main$data$workspace$libraries$detach_library_68483$$,$app$main$data$workspace$texts$update_editor_68502$$,$app$main$data$workspace$texts$focus_editor_68513$$,$app$main$data$workspace$texts$finalize_editor_state_68543$$,
$app$main$data$workspace$texts$initialize_editor_state_68575$$,$app$main$data$workspace$texts$editor_select_all_68584$$,$app$main$data$workspace$texts$cursor_to_end_68594$$,$app$main$data$workspace$texts$commit_resize_text_68800$$,$app$main$data$workspace$texts$resize_text_68833$$,$app$main$data$workspace$texts$save_font_68838$$,$app$main$data$workspace$texts$commit_update_text_modifier_68847$$,$app$main$data$workspace$texts$update_text_modifier_68854$$,$app$main$data$workspace$texts$clean_text_modifier_68862$$,
$app$main$data$workspace$texts$remove_text_modifier_68866$$,$app$main$data$workspace$texts$commit_position_data_68873$$,$app$main$data$workspace$texts$update_position_data_68887$$,$app$main$data$workspace$texts$update_all_attrs_68914$$,$app$main$data$workspace$texts$add_typography_68935$$,$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$,$app$main$data$workspace$clipboard$paste_from_event_69078$$,$app$main$data$workspace$clipboard$copy_selected_svg_69085$$,$app$main$data$workspace$clipboard$copy_selected_css_69091$$,
$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$,$app$main$data$workspace$clipboard$copy_selected_text_69099$$,$app$main$data$workspace$colors$show_palette_69075$$,$app$main$data$workspace$colors$start_picker_69115$$,$app$main$data$workspace$colors$stop_picker_69127$$,$app$main$data$workspace$colors$pick_color_69131$$,$app$main$data$workspace$colors$pick_color_select_69143$$,$app$main$data$workspace$colors$reorder_fills_69253$$,$app$main$data$workspace$colors$add_fill_69306$$,$app$main$data$workspace$colors$detach_fill_69321$$,
$app$main$data$workspace$colors$remove_fill_69331$$,$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$,$app$main$data$workspace$colors$change_stroke_attrs_69369$$,$app$main$data$workspace$colors$add_shadow_69380$$,$app$main$data$workspace$colors$remove_stroke_69387$$,$app$main$data$workspace$colors$remove_all_strokes_69399$$,$app$main$data$workspace$colors$reorder_shadow_69404$$,$app$main$data$workspace$colors$reorder_strokes_69408$$,$app$main$data$workspace$colors$apply_color_from_palette_69427$$,
$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$,$app$main$data$workspace$colors$add_recent_color_69451$$,$app$main$data$workspace$colors$apply_color_from_asserts_69462$$,$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$,$app$main$data$workspace$colors$initialize_colorpicker_69482$$,$app$main$data$workspace$colors$finalize_colorpicker_69485$$,$app$main$data$workspace$colors$update_colorpicker_69491$$,$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$,
$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$,$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$,$app$main$data$workspace$colors$update_colorpicker_stops_69514$$,$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$,$app$main$data$workspace$colors$remove_gradient_stop_69527$$,$app$main$data$workspace$colors$update_colorpicker_color_69533$$,$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$,$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$,
$app$main$data$workspace$colors$activate_colorpicker_color_69545$$,$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$,$app$main$data$workspace$colors$activate_colorpicker_image_69552$$,$app$main$data$workspace$drawing$change_orientation_68490$$,$app$main$data$workspace$drawing$change_preset_68494$$,$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$,$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$,$app$main$data$workspace$path$drawing$start_path_from_point_68223$$,
$app$main$data$workspace$path$drawing$reset_last_handler_68351$$,$app$main$data$workspace$path$selection$path_pointer_enter_68107$$,$app$main$data$workspace$path$selection$path_pointer_leave_68114$$,$app$main$data$workspace$path$selection$path_handler_enter_68127$$,$app$main$data$workspace$path$selection$path_handler_leave_68137$$,$app$main$data$workspace$path$selection$select_node_area_68146$$,$app$main$data$workspace$path$selection$select_node_68162$$,$app$main$data$workspace$path$selection$deselect_all_68169$$,
$app$main$data$workspace$path$selection$update_area_selection_68179$$,$app$main$data$workspace$path$selection$clear_area_selection_68188$$,$app$main$data$workspace$path$selection$handle_area_selection_68206$$,$app$main$data$workspace$path$edition$modify_handler_68231$$,$app$main$data$workspace$path$edition$move_point_68289$$,$app$main$data$workspace$path$edition$start_move_path_point_68296$$,$app$main$data$workspace$path$edition$drag_selected_points_68307$$,$app$main$data$workspace$path$edition$start_move_handler_68344$$,
$app$main$data$workspace$path$edition$split_segments_68378$$,$app$main$data$workspace$path$edition$create_node_at_position_68384$$,$app$main$data$workspace$comments$initialize_comments_68528$$,$app$main$data$workspace$comments$handle_interrupt_68549$$,$app$main$data$workspace$comments$handle_comment_layer_click_68556$$,$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$,$app$main$data$workspace$guides$set_hover_guide_68564$$,$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$,
$app$main$data$workspace$interactions$rename_flow_68674$$,$app$main$data$workspace$interactions$add_new_interaction_68685$$,$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$,$app$main$data$workspace$interactions$start_edit_interaction_68705$$,$app$main$data$workspace$interactions$move_edit_interaction_68710$$,$app$main$data$workspace$interactions$finish_edit_interaction_68723$$,$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$,$app$main$data$workspace$interactions$move_overlay_pos_68733$$,
$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$,$app$main$data$workspace$notifications$finalize_69088$$,$app$main$data$workspace$pages$select_frame_tool_68788$$,$app$main$data$workspace$pages$initialize_page_STAR__68821$$,$app$main$data$workspace$pages$initialize_page_68841$$,$app$main$data$workspace$pages$finalize_page_68850$$,$app$main$data$workspace$pages$duplicate_page_68917$$,$app$main$data$workspace$pages$delete_page_68993$$,$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$,
$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$,$app$main$data$workspace$grid_layout$editor$set_selection_68891$$,$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$,$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$,$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$,$app$main$data$workspace$grid_layout$editor$locate_board_68938$$,$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$,$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$,
$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$,$app$main$data$workspace$shape_layout$hover_layout_track_69727$$,$app$main$data$workspace$shape_layout$merge_cells_69787$$,$app$main$data$workspace$shape_layout$create_cell_board_69809$$,$app$main$data$workspace$variants$reorder_variant_properties_69976$$,$app$main$data$workspace$variants$combine_selected_as_variants_70103$$,$app$main$data$workspace$viewport$initialize_viewport_69022$$,$app$main$data$workspace$viewport$update_viewport_size_69041$$,
$app$main$data$workspace$viewport$start_panning_69057$$,$app$main$data$workspace$viewport$finish_panning_69061$$,$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$,$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$,$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$,$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$,$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$,$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$,
$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$,$app$main$data$workspace$tokens$library_edit$drop_error_71294$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$,$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$,$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$,$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$,$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$,
$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$,$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$,$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$,$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$,$app$main$data$workspace$versions$init_versions_state_71394$$,
$app$main$data$workspace$versions$update_versions_state_71406$$,$app$main$data$workspace$versions$fetch_versions_71419$$,$app$main$data$workspace$versions$create_version_71437$$,$app$main$data$workspace$versions$rename_version_71449$$,$app$main$data$workspace$versions$restore_version_71467$$,$app$main$data$workspace$versions$delete_version_71484$$,$app$main$data$workspace$versions$pin_version_71501$$,$app$main$data$workspace$versions$lock_version_71514$$,$app$main$data$workspace$versions$unlock_version_71528$$;
$app$util$text$content$dom__GT_cljs$$=function($root$jscomp$47$$){return $APP.$app$util$text$content$from_dom$create_root$$($root$jscomp$47$$)};$app$main$data$workspace$shapes$delete_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$=function($page_id$jscomp$113$$,$ids$jscomp$73$$){return $APP.$app$main$data$workspace$shapes$delete_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($page_id$jscomp$113$$,$ids$jscomp$73$$)};
$goog$functions$throttle$$=function($f$jscomp$6$$,$interval$jscomp$1$$){function $fire$$(){$timeout$jscomp$4$$=$APP.$goog$global$$.setTimeout($handleTimeout$$,$interval$jscomp$1$$);let $args$jscomp$8$$=$storedArgs$$;$storedArgs$$=[];$f$jscomp$6$$.apply(void 0,$args$jscomp$8$$)}function $handleTimeout$$(){$timeout$jscomp$4$$=0;$shouldFire$$&&($shouldFire$$=!1,$fire$$())}let $timeout$jscomp$4$$=0,$shouldFire$$=!1,$storedArgs$$=[];return function($var_args$jscomp$61$$){$storedArgs$$=arguments;$timeout$jscomp$4$$?
$shouldFire$$=!0:$fire$$()}};$module$contents$goog$array_slice$$=function($arr$jscomp$48$$,$start$jscomp$14$$,$opt_end$jscomp$9$$){return arguments.length<=2?Array.prototype.slice.call($arr$jscomp$48$$,$start$jscomp$14$$):Array.prototype.slice.call($arr$jscomp$48$$,$start$jscomp$14$$,$opt_end$jscomp$9$$)};
$module$contents$goog$array_splice$$=function($arr$jscomp$47$$,$index$jscomp$109$$,$howMany$jscomp$1$$,$var_args$jscomp$73$$){return Array.prototype.splice.apply($arr$jscomp$47$$,$module$contents$goog$array_slice$$(arguments,1))};$cljs$tools$reader$macro_terminating_QMARK_$$=function($ch$jscomp$25$$){switch($ch$jscomp$25$$){case '"':case ";":case "@":case "^":case "`":case "~":case "(":case ")":case "[":case "]":case "{":case "}":case "\\":return!0;default:return!1}};
$app$common$math$sq$$=function($v$jscomp$94$$){return $v$jscomp$94$$*$v$jscomp$94$$};$goog$dom$getElementsByClass$$=function($className$jscomp$1$$,$opt_el$jscomp$2$$){var $parent$jscomp$107$$=$opt_el$jscomp$2$$||document;return $parent$jscomp$107$$.querySelectorAll&&$parent$jscomp$107$$.querySelector?$parent$jscomp$107$$.querySelectorAll("."+$className$jscomp$1$$):$APP.$goog$dom$getElementsByTagNameAndClass_$$(document,"*",$className$jscomp$1$$,$opt_el$jscomp$2$$)};
$beicon$v2$core$sub_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$=function($ob$jscomp$8$$,$next_fn$jscomp$2$$,$error_fn$jscomp$2$$){$APP.$beicon$v2$core$subscribe$cljs$0core$0IFn$0_invoke$0arity$03$$($ob$jscomp$8$$,$next_fn$jscomp$2$$,$error_fn$jscomp$2$$)};$app$util$dom$select_target$$=function($event$jscomp$25$$){return $event$jscomp$25$$!=null?$event$jscomp$25$$.target.select():null};
$app$util$dom$get_parent_with_selector$$=function($current$jscomp$10_node$jscomp$179$$,$selector$jscomp$7$$){for(;;){var $JSCompiler_inline_result$jscomp$1446_or__5025__auto__$jscomp$inline_7792$$=($JSCompiler_inline_result$jscomp$1446_or__5025__auto__$jscomp$inline_7792$$=$current$jscomp$10_node$jscomp$179$$==null)?$JSCompiler_inline_result$jscomp$1446_or__5025__auto__$jscomp$inline_7792$$:$current$jscomp$10_node$jscomp$179$$.matches($selector$jscomp$7$$);if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1446_or__5025__auto__$jscomp$inline_7792$$))return $current$jscomp$10_node$jscomp$179$$;
$current$jscomp$10_node$jscomp$179$$=$current$jscomp$10_node$jscomp$179$$.parentElement}};$app$util$dom$valid_QMARK_$$=function($node$jscomp$189_temp__5825__auto__$jscomp$107$$){return $node$jscomp$189_temp__5825__auto__$jscomp$107$$!=null?($node$jscomp$189_temp__5825__auto__$jscomp$107$$=$node$jscomp$189_temp__5825__auto__$jscomp$107$$.validity,$APP.$cljs$core$truth_$$($node$jscomp$189_temp__5825__auto__$jscomp$107$$)?$node$jscomp$189_temp__5825__auto__$jscomp$107$$.valid:null):null};
$app$util$dom$set_value_BANG_$$=function($node$jscomp$192$$,$value$jscomp$369$$){return $node$jscomp$192$$!=null?$node$jscomp$192$$.value=$value$jscomp$369$$:null};$app$util$dom$set_style_BANG_$$=function($node$jscomp$217$$,$style$jscomp$9$$,$value$jscomp$374$$){return $node$jscomp$217$$!=null?$node$jscomp$217$$.style.setProperty($style$jscomp$9$$,$value$jscomp$374$$):null};
$app$util$dom$is_in_viewport_QMARK_$$=function($element$jscomp$53_rect$jscomp$10$$){if($element$jscomp$53_rect$jscomp$10$$!=null){$element$jscomp$53_rect$jscomp$10$$=$element$jscomp$53_rect$jscomp$10$$.getBoundingClientRect();var $height$jscomp$39$$=function(){var $or__5025__auto__$jscomp$302$$=window.innerHeight;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$302$$)?$or__5025__auto__$jscomp$302$$:document.documentElement.clientHeight}(),$width$jscomp$47$$=function(){var $or__5025__auto__$jscomp$303$$=
window.innerWidth;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$303$$)?$or__5025__auto__$jscomp$303$$:document.documentElement.clientWidth}();return $element$jscomp$53_rect$jscomp$10$$.top>=0&&$element$jscomp$53_rect$jscomp$10$$.left>=0&&$element$jscomp$53_rect$jscomp$10$$.bottom<=$height$jscomp$39$$&&$element$jscomp$53_rect$jscomp$10$$.right<=$width$jscomp$47$$}return null};
$rumext$v2$throttle$$=function($component$jscomp$6$$,$ms$jscomp$37$$){return function($props_44850$$){var $tmp$jscomp$6$$=(0,$APP.$rumext$v2$useState$$)($props_44850$$),$state$jscomp$45$$=$tmp$jscomp$6$$[0],$set_state$$=$tmp$jscomp$6$$[1],$ref$jscomp$14$$=(0,$APP.$rumext$v2$useRef$$)(!1),$render$$=(0,$APP.$rumext$v2$useMemo$$)(function(){return $goog$functions$throttle$$(function($v$jscomp$499$$){return $APP.$rumext$v2$ref_val$$($ref$jscomp$14$$)?null:$set_state$$($v$jscomp$499$$)},$ms$jscomp$37$$)},
[]);(0,$APP.$rumext$v2$useEffect$$)(function(){return $render$$($props_44850$$)},[$props_44850$$]);(0,$APP.$rumext$v2$useEffect$$)(function(){return function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($ref$jscomp$14$$,!0)}},[]);return(0,$APP.$rumext$v2$create_element$$)($component$jscomp$6$$,$state$jscomp$45$$)}};
$app$common$types$tokens_lib$get_set_names$$=function($JSCompiler_temp$jscomp$1449__$jscomp$1292$$){if($JSCompiler_temp$jscomp$1449__$jscomp$1292$$!=null&&$JSCompiler_temp$jscomp$1449__$jscomp$1292$$.$app$common$types$tokens_lib$ITokenSets$get_set_names$arity$1$!=null)$JSCompiler_temp$jscomp$1449__$jscomp$1292$$=$JSCompiler_temp$jscomp$1449__$jscomp$1292$$.$app$common$types$tokens_lib$ITokenSets$get_set_names$arity$1$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$);else{var $m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$=
$app$common$types$tokens_lib$get_set_names$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$==null?null:$JSCompiler_temp$jscomp$1449__$jscomp$1292$$)];if($m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$!=null)$JSCompiler_temp$jscomp$1449__$jscomp$1292$$=$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$.$cljs$core$IFn$_invoke$arity$1$?$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$):
$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$);else if($m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$=$app$common$types$tokens_lib$get_set_names$$._,$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$!=null)$JSCompiler_temp$jscomp$1449__$jscomp$1292$$=$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$.$cljs$core$IFn$_invoke$arity$1$?$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$):
$m__5372__auto__$jscomp$inline_7796_m__5374__auto__$jscomp$inline_7795$$($JSCompiler_temp$jscomp$1449__$jscomp$1292$$);else throw $APP.$cljs$core$missing_protocol$$("ITokenSets.get-set-names",$JSCompiler_temp$jscomp$1449__$jscomp$1292$$);}return $JSCompiler_temp$jscomp$1449__$jscomp$1292$$};
$app$common$types$tokens_lib$get_sets_at_path$$=function($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,$path_str$jscomp$5$$){if($JSCompiler_temp$jscomp$1450__$jscomp$1296$$!=null&&$JSCompiler_temp$jscomp$1450__$jscomp$1296$$.$app$common$types$tokens_lib$ITokenSets$get_sets_at_path$arity$2$!=null)$JSCompiler_temp$jscomp$1450__$jscomp$1296$$=$JSCompiler_temp$jscomp$1450__$jscomp$1296$$.$app$common$types$tokens_lib$ITokenSets$get_sets_at_path$arity$2$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,$path_str$jscomp$5$$);
else{var $m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$=$app$common$types$tokens_lib$get_sets_at_path$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$==null?null:$JSCompiler_temp$jscomp$1450__$jscomp$1296$$)];if($m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$!=null)$JSCompiler_temp$jscomp$1450__$jscomp$1296$$=$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,
$path_str$jscomp$5$$):$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,$path_str$jscomp$5$$);else if($m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$=$app$common$types$tokens_lib$get_sets_at_path$$._,$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$!=null)$JSCompiler_temp$jscomp$1450__$jscomp$1296$$=$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,$path_str$jscomp$5$$):$m__5372__auto__$jscomp$inline_7801_m__5374__auto__$jscomp$inline_7800$$($JSCompiler_temp$jscomp$1450__$jscomp$1296$$,$path_str$jscomp$5$$);else throw $APP.$cljs$core$missing_protocol$$("ITokenSets.get-sets-at-path",$JSCompiler_temp$jscomp$1450__$jscomp$1296$$);}return $JSCompiler_temp$jscomp$1450__$jscomp$1296$$};
$app$common$types$tokens_lib$enable_sets$$=function($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,$set_names$jscomp$3$$){if($JSCompiler_temp$jscomp$1451__$jscomp$1302$$!=null&&$JSCompiler_temp$jscomp$1451__$jscomp$1302$$.$app$common$types$tokens_lib$ITokenTheme$enable_sets$arity$2$!=null)$JSCompiler_temp$jscomp$1451__$jscomp$1302$$=$JSCompiler_temp$jscomp$1451__$jscomp$1302$$.$app$common$types$tokens_lib$ITokenTheme$enable_sets$arity$2$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,$set_names$jscomp$3$$);
else{var $m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$=$app$common$types$tokens_lib$enable_sets$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$==null?null:$JSCompiler_temp$jscomp$1451__$jscomp$1302$$)];if($m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$!=null)$JSCompiler_temp$jscomp$1451__$jscomp$1302$$=$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,
$set_names$jscomp$3$$):$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,$set_names$jscomp$3$$);else if($m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$=$app$common$types$tokens_lib$enable_sets$$._,$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$!=null)$JSCompiler_temp$jscomp$1451__$jscomp$1302$$=$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,$set_names$jscomp$3$$):$m__5372__auto__$jscomp$inline_7806_m__5374__auto__$jscomp$inline_7805$$($JSCompiler_temp$jscomp$1451__$jscomp$1302$$,$set_names$jscomp$3$$);else throw $APP.$cljs$core$missing_protocol$$("ITokenTheme.enable-sets",$JSCompiler_temp$jscomp$1451__$jscomp$1302$$);}return $JSCompiler_temp$jscomp$1451__$jscomp$1302$$};
$app$common$types$tokens_lib$disable_sets$$=function($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,$set_names$jscomp$5$$){if($JSCompiler_temp$jscomp$1452__$jscomp$1306$$!=null&&$JSCompiler_temp$jscomp$1452__$jscomp$1306$$.$app$common$types$tokens_lib$ITokenTheme$disable_sets$arity$2$!=null)$JSCompiler_temp$jscomp$1452__$jscomp$1306$$=$JSCompiler_temp$jscomp$1452__$jscomp$1306$$.$app$common$types$tokens_lib$ITokenTheme$disable_sets$arity$2$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,$set_names$jscomp$5$$);
else{var $m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$=$app$common$types$tokens_lib$disable_sets$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$==null?null:$JSCompiler_temp$jscomp$1452__$jscomp$1306$$)];if($m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$!=null)$JSCompiler_temp$jscomp$1452__$jscomp$1306$$=$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,
$set_names$jscomp$5$$):$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,$set_names$jscomp$5$$);else if($m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$=$app$common$types$tokens_lib$disable_sets$$._,$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$!=null)$JSCompiler_temp$jscomp$1452__$jscomp$1306$$=$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,$set_names$jscomp$5$$):$m__5372__auto__$jscomp$inline_7811_m__5374__auto__$jscomp$inline_7810$$($JSCompiler_temp$jscomp$1452__$jscomp$1306$$,$set_names$jscomp$5$$);else throw $APP.$cljs$core$missing_protocol$$("ITokenTheme.disable-sets",$JSCompiler_temp$jscomp$1452__$jscomp$1306$$);}return $JSCompiler_temp$jscomp$1452__$jscomp$1306$$};
$app$common$types$tokens_lib$set_path_exists_QMARK_$$=function($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,$path$jscomp$178$$){if($JSCompiler_temp$jscomp$1453__$jscomp$1357$$!=null&&$JSCompiler_temp$jscomp$1453__$jscomp$1357$$.$app$common$types$tokens_lib$ITokensLib$set_path_exists_QMARK_$arity$2$!=null)$JSCompiler_temp$jscomp$1453__$jscomp$1357$$=$JSCompiler_temp$jscomp$1453__$jscomp$1357$$.$app$common$types$tokens_lib$ITokensLib$set_path_exists_QMARK_$arity$2$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,
$path$jscomp$178$$);else{var $m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$=$app$common$types$tokens_lib$set_path_exists_QMARK_$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$==null?null:$JSCompiler_temp$jscomp$1453__$jscomp$1357$$)];if($m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$!=null)$JSCompiler_temp$jscomp$1453__$jscomp$1357$$=$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,$path$jscomp$178$$):$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,$path$jscomp$178$$);else if($m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$=$app$common$types$tokens_lib$set_path_exists_QMARK_$$._,$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$!=
null)$JSCompiler_temp$jscomp$1453__$jscomp$1357$$=$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,$path$jscomp$178$$):$m__5372__auto__$jscomp$inline_7816_m__5374__auto__$jscomp$inline_7815$$($JSCompiler_temp$jscomp$1453__$jscomp$1357$$,$path$jscomp$178$$);else throw $APP.$cljs$core$missing_protocol$$("ITokensLib.set-path-exists?",
$JSCompiler_temp$jscomp$1453__$jscomp$1357$$);}return $JSCompiler_temp$jscomp$1453__$jscomp$1357$$};
$app$common$types$tokens_lib$set_group_path_exists_QMARK_$$=function($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,$path$jscomp$180$$){if($JSCompiler_temp$jscomp$1454__$jscomp$1359$$!=null&&$JSCompiler_temp$jscomp$1454__$jscomp$1359$$.$app$common$types$tokens_lib$ITokensLib$set_group_path_exists_QMARK_$arity$2$!=null)$JSCompiler_temp$jscomp$1454__$jscomp$1359$$=$JSCompiler_temp$jscomp$1454__$jscomp$1359$$.$app$common$types$tokens_lib$ITokensLib$set_group_path_exists_QMARK_$arity$2$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,$path$jscomp$180$$);
else{var $m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$=$app$common$types$tokens_lib$set_group_path_exists_QMARK_$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$==null?null:$JSCompiler_temp$jscomp$1454__$jscomp$1359$$)];if($m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$!=null)$JSCompiler_temp$jscomp$1454__$jscomp$1359$$=$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,
$path$jscomp$180$$):$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,$path$jscomp$180$$);else if($m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$=$app$common$types$tokens_lib$set_group_path_exists_QMARK_$$._,$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$!=null)$JSCompiler_temp$jscomp$1454__$jscomp$1359$$=$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,$path$jscomp$180$$):$m__5372__auto__$jscomp$inline_7821_m__5374__auto__$jscomp$inline_7820$$($JSCompiler_temp$jscomp$1454__$jscomp$1359$$,$path$jscomp$180$$);else throw $APP.$cljs$core$missing_protocol$$("ITokensLib.set-group-path-exists?",$JSCompiler_temp$jscomp$1454__$jscomp$1359$$);}return $JSCompiler_temp$jscomp$1454__$jscomp$1359$$};
$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$=function($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,$group_path$jscomp$2$$){if($JSCompiler_temp$jscomp$1455__$jscomp$1377$$!=null&&$JSCompiler_temp$jscomp$1455__$jscomp$1377$$.$app$common$types$tokens_lib$ITokensLib$sets_at_path_all_active_QMARK_$arity$2$!=null)$JSCompiler_temp$jscomp$1455__$jscomp$1377$$=$JSCompiler_temp$jscomp$1455__$jscomp$1377$$.$app$common$types$tokens_lib$ITokensLib$sets_at_path_all_active_QMARK_$arity$2$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,
$group_path$jscomp$2$$);else{var $m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$=$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$==null?null:$JSCompiler_temp$jscomp$1455__$jscomp$1377$$)];if($m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$!=null)$JSCompiler_temp$jscomp$1455__$jscomp$1377$$=$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,$group_path$jscomp$2$$):$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,$group_path$jscomp$2$$);else if($m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$=$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$._,$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$!=
null)$JSCompiler_temp$jscomp$1455__$jscomp$1377$$=$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,$group_path$jscomp$2$$):$m__5372__auto__$jscomp$inline_7826_m__5374__auto__$jscomp$inline_7825$$($JSCompiler_temp$jscomp$1455__$jscomp$1377$$,$group_path$jscomp$2$$);else throw $APP.$cljs$core$missing_protocol$$("ITokensLib.sets-at-path-all-active?",
$JSCompiler_temp$jscomp$1455__$jscomp$1377$$);}return $JSCompiler_temp$jscomp$1455__$jscomp$1377$$};
$app$common$types$tokens_lib$get_all_tokens$$=function($JSCompiler_temp$jscomp$1456__$jscomp$1381$$){if($JSCompiler_temp$jscomp$1456__$jscomp$1381$$!=null&&$JSCompiler_temp$jscomp$1456__$jscomp$1381$$.$app$common$types$tokens_lib$ITokensLib$get_all_tokens$arity$1$!=null)$JSCompiler_temp$jscomp$1456__$jscomp$1381$$=$JSCompiler_temp$jscomp$1456__$jscomp$1381$$.$app$common$types$tokens_lib$ITokensLib$get_all_tokens$arity$1$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$);else{var $m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$=
$app$common$types$tokens_lib$get_all_tokens$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$==null?null:$JSCompiler_temp$jscomp$1456__$jscomp$1381$$)];if($m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$!=null)$JSCompiler_temp$jscomp$1456__$jscomp$1381$$=$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$.$cljs$core$IFn$_invoke$arity$1$?$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$):
$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$);else if($m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$=$app$common$types$tokens_lib$get_all_tokens$$._,$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$!=null)$JSCompiler_temp$jscomp$1456__$jscomp$1381$$=$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$.$cljs$core$IFn$_invoke$arity$1$?$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$):
$m__5372__auto__$jscomp$inline_7830_m__5374__auto__$jscomp$inline_7829$$($JSCompiler_temp$jscomp$1456__$jscomp$1381$$);else throw $APP.$cljs$core$missing_protocol$$("ITokensLib.get-all-tokens",$JSCompiler_temp$jscomp$1456__$jscomp$1381$$);}return $JSCompiler_temp$jscomp$1456__$jscomp$1381$$};
$app$main$ui$hooks$sortable_container_STAR_$$=function($children$jscomp$197_props_52077$$){$children$jscomp$197_props_52077$$=$children$jscomp$197_props_52077$$.children;var $global_drag_end$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$hooks$sortable_ctx$$),{value:$global_drag_end$$,children:$children$jscomp$197_props_52077$$})};
$app$render_wasm$mem$read_null_terminated_string$$=function($bytes$jscomp$9_ptr$jscomp$5$$){if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($bytes$jscomp$9_ptr$jscomp$5$$)?$bytes$jscomp$9_ptr$jscomp$5$$!==0:$bytes$jscomp$9_ptr$jscomp$5$$)){var $heap$jscomp$2$$=$APP.$app$render_wasm$mem$get_heap_u8$$(),$JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$;a:{for($JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$=$bytes$jscomp$9_ptr$jscomp$5$$;;){if($heap$jscomp$2$$[$JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$]===
0)break a;$JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$+=1}$JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$=void 0}$bytes$jscomp$9_ptr$jscomp$5$$=$heap$jscomp$2$$.slice($bytes$jscomp$9_ptr$jscomp$5$$,$JSCompiler_inline_result$jscomp$10523_idx$jscomp$inline_12536$$);return(new TextDecoder("utf-8")).decode($bytes$jscomp$9_ptr$jscomp$5$$)}return null};
$app$render_wasm$api$webgl$capture_canvas_pixels$$=function(){if($APP.$cljs$core$truth_$$($app$render_wasm$wasm$canvas$$)){var $context$jscomp$28$$=$app$render_wasm$wasm$gl_context$$,$width$jscomp$103$$=$app$render_wasm$wasm$canvas$$.width,$height$jscomp$94$$=$app$render_wasm$wasm$canvas$$.height,$buffer$jscomp$66$$=new Uint8ClampedArray($width$jscomp$103$$*$height$jscomp$94$$*4);$context$jscomp$28$$.readPixels(0,0,$width$jscomp$103$$,$height$jscomp$94$$,$context$jscomp$28$$.RGBA,$context$jscomp$28$$.UNSIGNED_BYTE,
$buffer$jscomp$66$$);return $app$render_wasm$wasm$canvas_pixels$$=new ImageData($buffer$jscomp$66$$,$width$jscomp$103$$,$height$jscomp$94$$)}return null};
$app$render_wasm$text_editor$text_editor_start$$=function($buffer$jscomp$68_id$jscomp$320$$){return $APP.$app$render_wasm$wasm$context_initialized_QMARK_$$?($buffer$jscomp$68_id$jscomp$320$$=$APP.$app$common$uuid$get_u32$$($buffer$jscomp$68_id$jscomp$320$$),(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_start)($buffer$jscomp$68_id$jscomp$320$$[0],$buffer$jscomp$68_id$jscomp$320$$[1],$buffer$jscomp$68_id$jscomp$320$$[2],$buffer$jscomp$68_id$jscomp$320$$[3])):null};
$app$render_wasm$text_editor$text_editor_set_cursor_from_point$$=function($x$jscomp$1165$$,$y$jscomp$404$$){return $APP.$app$render_wasm$wasm$context_initialized_QMARK_$$?(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_set_cursor_from_point)($x$jscomp$1165$$,$y$jscomp$404$$):null};
$app$render_wasm$text_editor$text_editor_move_cursor$$=function($direction$jscomp$12$$,$extend_selection$$){$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_move_cursor)($direction$jscomp$12$$,$APP.$cljs$core$truth_$$($extend_selection$$)?1:0)};
$app$render_wasm$text_editor$text_editor_stop$$=function(){return $APP.$app$render_wasm$wasm$context_initialized_QMARK_$$?(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_stop)():null};$app$util$text$content$to_dom$create_random_key$$=function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(36)};$app$util$keyboard$mod_event_QMARK_$$=function($event$jscomp$74$$){return $event$jscomp$74$$.$mod$===!0};
$app$util$array$normalize_to_array$$=function($o$jscomp$267$$){return $APP.$cljs$core$array_QMARK_$$($o$jscomp$267$$)?$o$jscomp$267$$:[$o$jscomp$267$$]};$app$util$array$without_nils$$=function($o$jscomp$268$$){return $o$jscomp$268$$.filter(function($v$jscomp$575$$){return $v$jscomp$575$$!=null})};$app$util$array$filter$$=function($pred$jscomp$82$$,$o$jscomp$269$$){return $o$jscomp$269$$.filter($pred$jscomp$82$$)};$app$util$text_editor$editor_select_all$$=function($state$jscomp$487$$){return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.selectAll($state$jscomp$487$$)};
$app$util$text_editor$cursor_to_end$$=function($state$jscomp$497$$){return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.cursorToEnd($state$jscomp$497$$)};$app$main$data$tinycolor$__GT_string$$=function($tc$jscomp$4$$,$format$jscomp$34$$){return $tc$jscomp$4$$.toString(function(){switch($format$jscomp$34$$){case "rgba":return"rgb";case "hsva":return"hsv";case "rgb":return"rgb";case "hsv":return"hsv";default:return"hex"}}())};
$app$main$ui$css_cursors$get_dynamic$$=function($name$jscomp$395$$,$rotation$jscomp$17$$){return"cursor-"+($name$jscomp$395$$??"")+"-"+($APP.$cljs$core$mod$$(Math.floor($rotation$jscomp$17$$/10)*10,360)??"")};
$cljs$tools$reader$ending_line_col_info$$=function($rdr$jscomp$60$$){return $APP.$cljs$tools$reader$reader_types$indexing_reader_QMARK_$$($rdr$jscomp$60$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$rdr$jscomp$60$$.$cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1$(null),$rdr$jscomp$60$$.$cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1$(null)],null):null};
$cljs$tools$reader$starting_line_col_info$$=function($rdr$jscomp$59$$){return $APP.$cljs$tools$reader$reader_types$indexing_reader_QMARK_$$($rdr$jscomp$59$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$rdr$jscomp$59$$.$cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1$(null),$rdr$jscomp$59$$.$cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1$(null)-1|0],null):null};
$app$render_wasm$text_editor$text_editor_insert_text$$=function($buf$jscomp$18_text$jscomp$28$$){if($APP.$app$render_wasm$wasm$context_initialized_QMARK_$$){$buf$jscomp$18_text$jscomp$28$$=(new TextEncoder).encode($buf$jscomp$18_text$jscomp$28$$);var $heapu8$jscomp$1$$=$APP.$app$render_wasm$mem$get_heap_u8$$(),$offset$jscomp$145$$=$APP.$app$render_wasm$mem$alloc$$($buf$jscomp$18_text$jscomp$28$$.byteLength);$APP.$app$render_wasm$mem$write_buffer$$($offset$jscomp$145$$,$heapu8$jscomp$1$$,$buf$jscomp$18_text$jscomp$28$$);
(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_insert_text)();$APP.$app$render_wasm$mem$free$$()}};$app$util$dom$left_mouse_QMARK_$$=function($bevent$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$bevent$$.nativeEvent.which)};
$app$render_wasm$api$begin_shapes_loading_BANG_$$=function(){$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$shapes_loading_QMARK_$$,!0);var $frame_id$jscomp$34$$=$APP.$app$render_wasm$wasm$internal_frame_id$$,$was_pending$$=$APP.$cljs$core$_deref$$($APP.$app$render_wasm$api$pending_render$$);$APP.$cljs$core$truth_$$($frame_id$jscomp$34$$)&&(cancelAnimationFrame($frame_id$jscomp$34$$),$APP.$app$render_wasm$wasm$internal_frame_id$$=null);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$pending_render$$,
!1);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$deferred_render_QMARK_$$,$was_pending$$)};$app$render_wasm$serializers$translate_browser$$=function($browser$jscomp$5$$){switch($browser$jscomp$5$$ instanceof $APP.$cljs$core$Keyword$$?$browser$jscomp$5$$.$fqn$:null){case "firefox":return 0;case "chrome":return 1;case "safari":return 2;case "edge":return 3;case "unknown":return 4;default:return 4}};
$app$main$data$workspace$colors$recent_color_equal_QMARK_$$=function($c1$jscomp$36$$,$c2$jscomp$24$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c1$jscomp$36$$,$c2$jscomp$24$$)||$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($c1$jscomp$36$$)!=null&&$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($c2$jscomp$24$$)!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($c1$jscomp$36$$),$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($c2$jscomp$24$$))};
$app$main$data$workspace$specialized_panel$interrupt_QMARK_$$=function($e$jscomp$322$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($e$jscomp$322$$,$APP.$cljs$cst$3430$interrupt$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($e$jscomp$322$$,$APP.$cljs$cst$3485$app_DOT_main_DOT_data_DOT_workspace_DOT_specialized_panel_SLASH_interrupt$$)};
$app$util$shape_icon$get_shape_icon_by_type$$=function($type$jscomp$549$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$549$$,$APP.$cljs$cst$1609$component$$))return"component";switch($type$jscomp$549$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$549$$.$fqn$:null){case "frame":return"board";case "image":return"img";case "shape":return"path";case "text":return"text";case "mask":return"mask";case "group":return"group";default:return null}};
$app$util$mouse$mouse_click_event_QMARK_$$=function($v$jscomp$570$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1924$click$$,$v$jscomp$570$$.type)};
$app$main$data$workspace$texts$focus_editor$$=function(){typeof $app$main$data$workspace$texts$focus_editor_68513$$==="undefined"&&($app$main$data$workspace$texts$focus_editor_68513$$=function($meta68514$$){this.$meta68514$=$meta68514$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3841$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_focus_editor$$},$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68515$$,$meta68514__$1$$){return new $app$main$data$workspace$texts$focus_editor_68513$$($meta68514__$1$$)},$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68514$},$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$potok$v2$core$EffectEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$focus_editor_68513$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2061$$,$state$jscomp$507$$){var $editor$jscomp$2$$=$APP.$cljs$cst$2183$workspace_editor$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$507$$),$element$jscomp$70$$=$APP.$cljs$core$truth_$$($editor$jscomp$2$$)?$editor$jscomp$2$$.element:null;return $APP.$cljs$core$truth_$$($editor$jscomp$2$$.focus)?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $editor$jscomp$2$$.focus()}):
$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($element$jscomp$70$$)?$element$jscomp$70$$.focus:$element$jscomp$70$$)?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $element$jscomp$70$$.focus()}):null});return new $app$main$data$workspace$texts$focus_editor_68513$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$shape$interactions$has_offset_effect_QMARK_$$=function($interaction$jscomp$29$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$29$$),$APP.$cljs$cst$1926$navigate$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$29$$)),
$APP.$cljs$cst$1943$slide$$)};
$app$common$types$shape$interactions$has_way_QMARK_$$=function($interaction$jscomp$25$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$25$$),$APP.$cljs$cst$1926$navigate$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$25$$)),$APP.$cljs$cst$1943$slide$$)};
$app$main$data$workspace$notifications$finalize$$=function($_$jscomp$2349$$){typeof $app$main$data$workspace$notifications$finalize_69088$$==="undefined"&&($app$main$data$workspace$notifications$finalize_69088$$=function($_$jscomp$2350$$,$meta69089$$){this.$_$=$_$jscomp$2350$$;this.$meta69089$=$meta69089$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$notifications$finalize_69088$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$notifications$finalize_69088$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4203$app_DOT_main_DOT_data_DOT_workspace_DOT_notifications_SLASH_finalize$$},$app$main$data$workspace$notifications$finalize_69088$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69090$$,$meta69089__$1$$){return new $app$main$data$workspace$notifications$finalize_69088$$(this.$_$,$meta69089__$1$$)},$app$main$data$workspace$notifications$finalize_69088$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69089$});return new $app$main$data$workspace$notifications$finalize_69088$$($_$jscomp$2349$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$hooks$use_ref_callback$$=function($f$jscomp$805$$){var $ptr$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($f$jscomp$805$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($ptr$jscomp$2$$,{f:$f$jscomp$805$$})});return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){function $G__52221$$($var_args$jscomp$1101$$){var $G__52222__i_args$jscomp$245$$=null;if(arguments.length>
0){$G__52222__i_args$jscomp$245$$=0;for(var $G__52222__a$$=Array(arguments.length-0);$G__52222__i_args$jscomp$245$$<$G__52222__a$$.length;)$G__52222__a$$[$G__52222__i_args$jscomp$245$$]=arguments[$G__52222__i_args$jscomp$245$$+0],++$G__52222__i_args$jscomp$245$$;$G__52222__i_args$jscomp$245$$=new $APP.$cljs$core$IndexedSeq$$($G__52222__a$$,0,null)}return $G__52221__delegate$$.call(this,$G__52222__i_args$jscomp$245$$)}function $G__52221__delegate$$($args$jscomp$244$$){var $obj$jscomp$191$$=$APP.$rumext$v2$ref_val$$($ptr$jscomp$2$$);
return $obj$jscomp$191$$?$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($obj$jscomp$191$$.f,$args$jscomp$244$$):null}$G__52221$$.$cljs$lang$maxFixedArity$=0;$G__52221$$.$cljs$lang$applyTo$=function($arglist__52223_args$jscomp$246$$){$arglist__52223_args$jscomp$246$$=$APP.$cljs$core$seq$$($arglist__52223_args$jscomp$246$$);return $G__52221__delegate$$($arglist__52223_args$jscomp$246$$)};$G__52221$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__52221__delegate$$;return $G__52221$$}())};
$app$main$ui$hooks$use_update_ref$$=function($value$jscomp$450$$){var $ref$jscomp$24$$=(0,$APP.$rumext$v2$use_ref$$)($value$jscomp$450$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value$jscomp$450$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($ref$jscomp$24$$,$value$jscomp$450$$)});return $ref$jscomp$24$$};
$cljs$core$partition_by$cljs$0core$0IFn$0_invoke$0arity$02$$=function($f$jscomp$294$$,$coll$jscomp$765$$){return new $APP.$cljs$core$LazySeq$$(null,function(){var $temp__5825__auto__$jscomp$28$$=$APP.$cljs$core$seq$$($coll$jscomp$765$$);if($temp__5825__auto__$jscomp$28$$){var $fst$$=$APP.$cljs$core$first$$($temp__5825__auto__$jscomp$28$$),$fv$$=$f$jscomp$294$$.$cljs$core$IFn$_invoke$arity$1$?$f$jscomp$294$$.$cljs$core$IFn$_invoke$arity$1$($fst$$):$f$jscomp$294$$($fst$$),$run$$=$APP.$cljs$core$cons$$($fst$$,
$APP.$cljs$core$take_while$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__23934_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($fv$$,$f$jscomp$294$$.$cljs$core$IFn$_invoke$arity$1$?$f$jscomp$294$$.$cljs$core$IFn$_invoke$arity$1$($p1__23934_SHARP_$$):$f$jscomp$294$$($p1__23934_SHARP_$$))},$APP.$cljs$core$next$$($temp__5825__auto__$jscomp$28$$)));return $APP.$cljs$core$cons$$($run$$,$cljs$core$partition_by$cljs$0core$0IFn$0_invoke$0arity$02$$($f$jscomp$294$$,new $APP.$cljs$core$LazySeq$$(null,
function(){return $APP.$cljs$core$drop$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$count$$($run$$),$temp__5825__auto__$jscomp$28$$)},null,null)))}return null},null,null)};$cljs$core$not_any_QMARK_$$=function($pred$jscomp$3$$,$coll$jscomp$277$$){return $APP.$cljs$core$not$$($APP.$cljs$core$some$$($pred$jscomp$3$$,$coll$jscomp$277$$))};$cljs$core$not_every_QMARK_$$=function($pred$jscomp$1$$,$coll$jscomp$275$$){return!$APP.$cljs$core$every_QMARK_$$($pred$jscomp$1$$,$coll$jscomp$275$$)};
$cljs$tools$reader$flatten_map$$=function($G__25059_form$jscomp$18_s$jscomp$173$$){$G__25059_form$jscomp$18_s$jscomp$173$$=$APP.$cljs$core$seq$$($G__25059_form$jscomp$18_s$jscomp$173$$);for(var $G__25060_key_vals$$=$APP.$cljs$core$_as_transient$$($APP.$cljs$core$PersistentVector$EMPTY$$);;)if($G__25059_form$jscomp$18_s$jscomp$173$$){var $e$jscomp$127$$=$APP.$cljs$core$first$$($G__25059_form$jscomp$18_s$jscomp$173$$);$G__25059_form$jscomp$18_s$jscomp$173$$=$APP.$cljs$core$next$$($G__25059_form$jscomp$18_s$jscomp$173$$);
$G__25060_key_vals$$=$APP.$cljs$core$conj_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$conj_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__25060_key_vals$$,$APP.$cljs$core$_key$$($e$jscomp$127$$)),$APP.$cljs$core$_val$$($e$jscomp$127$$))}else return $APP.$cljs$core$seq$$($APP.$cljs$core$_persistent_BANG_$$($G__25060_key_vals$$))};
$app$common$path_names$merge_path_item_with_dot$$=function($path$jscomp$159$$,$name$jscomp$177$$){return $APP.$cljs$core$empty_QMARK_$$($path$jscomp$159$$)?$name$jscomp$177$$:$APP.$cljs$core$empty_QMARK_$$($name$jscomp$177$$)?$path$jscomp$159$$:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$159$$)," • ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$177$$)].join("")};
$app$render_wasm$api$yield_to_browser$$=function(){return $APP.$promesa$core$create$cljs$0core$0IFn$0_invoke$0arity$01$$(function($resolve$jscomp$24$$){return requestAnimationFrame(function(){return $resolve$jscomp$24$$.$cljs$core$IFn$_invoke$arity$1$?$resolve$jscomp$24$$.$cljs$core$IFn$_invoke$arity$1$(null):$resolve$jscomp$24$$(null)})})};
$promesa$impl$promise$all$$=function($promises$$){return $promises$$.reduce(($acc$jscomp$79$$,$p$jscomp$117$$)=>$acc$jscomp$79$$.then($results$$=>$APP.$JSCompiler_StaticMethods_fmap$$($APP.$promesa$impl$promise$coerce$$($p$jscomp$117$$),$v$jscomp$291$$=>{$results$$.push($v$jscomp$291$$);return $results$$})),$APP.$promesa$impl$promise$resolved$$([]))};
$cljs$spec$alpha$explain_data_STAR_$$=function($spec$jscomp$21$$,$x$jscomp$882$$){var $path$jscomp$124_temp__5825__auto__$jscomp$77$$=$APP.$cljs$core$PersistentVector$EMPTY$$,$via$jscomp$4$$=$APP.$cljs$core$PersistentVector$EMPTY$$,$in$$jscomp$43$$=$APP.$cljs$core$PersistentVector$EMPTY$$;$path$jscomp$124_temp__5825__auto__$jscomp$77$$=$APP.$cljs$spec$alpha$explain_STAR_$$($APP.$cljs$spec$alpha$specize$$.$cljs$core$IFn$_invoke$arity$1$($spec$jscomp$21$$),$path$jscomp$124_temp__5825__auto__$jscomp$77$$,
$via$jscomp$4$$,$in$$jscomp$43$$,$x$jscomp$882$$);return $APP.$cljs$core$truth_$$($path$jscomp$124_temp__5825__auto__$jscomp$77$$)?$APP.$cljs$core$empty_QMARK_$$($path$jscomp$124_temp__5825__auto__$jscomp$77$$)?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$979$cljs_DOT_spec_DOT_alpha_SLASH_problems$$,$path$jscomp$124_temp__5825__auto__$jscomp$77$$,$APP.$cljs$cst$980$cljs_DOT_spec_DOT_alpha_SLASH_spec$$,$spec$jscomp$21$$,$APP.$cljs$cst$981$cljs_DOT_spec_DOT_alpha_SLASH_value$$,
$x$jscomp$882$$],null):null};$cljs$core$Namespace$$=function($obj$jscomp$102$$,$name$jscomp$117$$){this.$obj$=$obj$jscomp$102$$;this.name=$name$jscomp$117$$;this.$cljs$lang$protocol_mask$partition0$$=6291456;this.$cljs$lang$protocol_mask$partition1$$=0};$app$common$types$color$remove_hash$$=function($color$jscomp$13$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($color$jscomp$13$$,"#")?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$13$$,1):$color$jscomp$13$$};
$app$common$data$macros$truncate$$=function($s$jscomp$288$$){var $JSCompiler_temp_const$jscomp$1468$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$,$y__5114__auto__$jscomp$inline_7839$$=$APP.$cljs$core$count$$($s$jscomp$288$$);return $JSCompiler_temp_const$jscomp$1468$$.call($APP.$cljs$core$subs$$,$s$jscomp$288$$,0,200<$y__5114__auto__$jscomp$inline_7839$$?200:$y__5114__auto__$jscomp$inline_7839$$)};
$app$util$array$sort_BANG_$$=function($a$jscomp$390$$){$APP.$module$contents$goog$array_sort$$($a$jscomp$390$$,$APP.$cljs$core$compare$$);return $a$jscomp$390$$};
$app$main$ui$workspace$viewport$utils$text_transform$$=function($p__71971_x$jscomp$1225$$,$zoom$jscomp$49$$){var $map__71972__$1_y$jscomp$446$$=$APP.$cljs$core$__destructure_map$$($p__71971_x$jscomp$1225$$);$p__71971_x$jscomp$1225$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71972__$1_y$jscomp$446$$,$APP.$cljs$cst$1499$x$$);$map__71972__$1_y$jscomp$446$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71972__$1_y$jscomp$446$$,$APP.$cljs$cst$1500$y$$);var $inv_zoom$$=1/
$zoom$jscomp$49$$;return"scale("+($inv_zoom$$??"")+", "+($inv_zoom$$??"")+") translate("+$zoom$jscomp$49$$*$p__71971_x$jscomp$1225$$+", "+$zoom$jscomp$49$$*$map__71972__$1_y$jscomp$446$$+")"};
$app$common$geom$shapes$intersect$on_segment_QMARK_$$=function($p__48766_qx$$,$p__48767_px$jscomp$5$$,$p__48768_rx$jscomp$11$$){var $map__48769__$1_qy$$=$APP.$cljs$core$__destructure_map$$($p__48766_qx$$);$p__48766_qx$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48769__$1_qy$$,$APP.$cljs$cst$1499$x$$);$map__48769__$1_qy$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48769__$1_qy$$,$APP.$cljs$cst$1500$y$$);var $map__48770__$1_py$jscomp$4$$=$APP.$cljs$core$__destructure_map$$($p__48767_px$jscomp$5$$);
$p__48767_px$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48770__$1_py$jscomp$4$$,$APP.$cljs$cst$1499$x$$);$map__48770__$1_py$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48770__$1_py$jscomp$4$$,$APP.$cljs$cst$1500$y$$);var $map__48771__$1_ry$jscomp$5$$=$APP.$cljs$core$__destructure_map$$($p__48768_rx$jscomp$11$$);$p__48768_rx$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48771__$1_ry$jscomp$5$$,$APP.$cljs$cst$1499$x$$);
$map__48771__$1_ry$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48771__$1_ry$jscomp$5$$,$APP.$cljs$cst$1500$y$$);return $p__48766_qx$$<=Math.max($p__48767_px$jscomp$5$$,$p__48768_rx$jscomp$11$$)&&$p__48766_qx$$>=Math.min($p__48767_px$jscomp$5$$,$p__48768_rx$jscomp$11$$)&&$map__48769__$1_qy$$<=Math.max($map__48770__$1_py$jscomp$4$$,$map__48771__$1_ry$jscomp$5$$)&&$map__48769__$1_qy$$>=Math.min($map__48770__$1_py$jscomp$4$$,$map__48771__$1_ry$jscomp$5$$)};
$app$common$geom$shapes$intersect$orientation$$=function($p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$,$p2$jscomp$42_x2$jscomp$27$$,$p3$jscomp$9_x3$jscomp$2$$){var $map__48763__$1_y1$jscomp$31$$=$APP.$cljs$core$__destructure_map$$($p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$);$p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48763__$1_y1$jscomp$31$$,$APP.$cljs$cst$1499$x$$);$map__48763__$1_y1$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48763__$1_y1$jscomp$31$$,
$APP.$cljs$cst$1500$y$$);var $map__48764__$1_y2$jscomp$29$$=$APP.$cljs$core$__destructure_map$$($p2$jscomp$42_x2$jscomp$27$$);$p2$jscomp$42_x2$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48764__$1_y2$jscomp$29$$,$APP.$cljs$cst$1499$x$$);$map__48764__$1_y2$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48764__$1_y2$jscomp$29$$,$APP.$cljs$cst$1500$y$$);var $map__48765__$1_y3$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($p3$jscomp$9_x3$jscomp$2$$);
$p3$jscomp$9_x3$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48765__$1_y3$jscomp$2$$,$APP.$cljs$cst$1499$x$$);$map__48765__$1_y3$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48765__$1_y3$jscomp$2$$,$APP.$cljs$cst$1500$y$$);$p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$=($map__48764__$1_y2$jscomp$29$$-$map__48763__$1_y1$jscomp$31$$)*($p3$jscomp$9_x3$jscomp$2$$-$p2$jscomp$42_x2$jscomp$27$$)-($map__48765__$1_y3$jscomp$2$$-$map__48764__$1_y2$jscomp$29$$)*
($p2$jscomp$42_x2$jscomp$27$$-$p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$);return $p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$>0?$APP.$cljs$cst$1878$app_DOT_common_DOT_geom_DOT_shapes_DOT_intersect_SLASH_clockwise$$:$p1$jscomp$53_v$jscomp$517_x1$jscomp$29$$<0?$APP.$cljs$cst$1879$app_DOT_common_DOT_geom_DOT_shapes_DOT_intersect_SLASH_counter_clockwise$$:$APP.$cljs$cst$1880$app_DOT_common_DOT_geom_DOT_shapes_DOT_intersect_SLASH_coplanar$$};
$app$common$files$helpers$hidden_parent_QMARK_$$=function($objects$jscomp$28$$,$shape_id$jscomp$6$$){for(;;){var $parent_id$jscomp$4$$=$APP.$app$common$files$helpers$get_parent_id$$($objects$jscomp$28$$,$shape_id$jscomp$6$$);if($parent_id$jscomp$4$$==null||$shape_id$jscomp$6$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_id$jscomp$6$$,$APP.$app$common$uuid$zero$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parent_id$jscomp$4$$,$APP.$app$common$uuid$zero$$))return!1;
if($APP.$cljs$core$truth_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$28$$,$parent_id$jscomp$4$$),$APP.$cljs$cst$1604$hidden$$)))return!0;$shape_id$jscomp$6$$=$parent_id$jscomp$4$$}};
$app$main$data$helpers$split_text_shapes$$=function($objects$jscomp$115$$,$G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$){$G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$=$APP.$cljs$core$seq$$($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$);for(var $G__49305_G__49308_text_ids$$=$APP.$cljs$core$PersistentVector$EMPTY$$,$G__49306_G__49309_shape_ids$jscomp$2$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;){var $id$jscomp$157_temp__5823__auto__$jscomp$107$$=$APP.$cljs$core$first$$($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$);
if($APP.$cljs$core$truth_$$($id$jscomp$157_temp__5823__auto__$jscomp$107$$)){var $shape$jscomp$145$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$115$$,$id$jscomp$157_temp__5823__auto__$jscomp$107$$);$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$145$$)?($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$=$APP.$cljs$core$rest$$($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$),$G__49305_G__49308_text_ids$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__49305_G__49308_text_ids$$,
$id$jscomp$157_temp__5823__auto__$jscomp$107$$)):($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$=$APP.$cljs$core$rest$$($G__49304_G__49307_ids$jscomp$20_ids__$1$jscomp$1$$),$G__49306_G__49309_shape_ids$jscomp$2$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__49306_G__49309_shape_ids$jscomp$2$$,$id$jscomp$157_temp__5823__auto__$jscomp$107$$))}else return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__49305_G__49308_text_ids$$,$G__49306_G__49309_shape_ids$jscomp$2$$],
null)}};$app$common$files$helpers$unframed_shape_QMARK_$$=function($shape$jscomp$14$$){return $shape$jscomp$14$$!=null&&!$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$14$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$14$$?.$frame_id$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$14$$,$APP.$cljs$cst$1591$frame_id$$),$APP.$app$common$uuid$zero$$)};
$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$04$$=function($stream$jscomp$21$$,$deps$jscomp$13$$,$on_subscribe$jscomp$2$$,$on_dispose$$){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$($deps$jscomp$13$$,function(){if($APP.$cljs$core$truth_$$($stream$jscomp$21$$)){var $sub$jscomp$3$$=$APP.$beicon$v2$core$subscribe$cljs$0core$0IFn$0_invoke$0arity$02$$($stream$jscomp$21$$,$on_subscribe$jscomp$2$$);return function(){$APP.$beicon$v2$core$_dispose$$($sub$jscomp$3$$);return $APP.$cljs$core$truth_$$($on_dispose$$)?
$on_dispose$$.$cljs$core$IFn$_invoke$arity$0$?$on_dispose$$.$cljs$core$IFn$_invoke$arity$0$():$on_dispose$$():null}}return null})};$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$03$$=function($stream$jscomp$20$$,$deps$jscomp$12$$,$on_subscribe$jscomp$1$$){$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$04$$($stream$jscomp$20$$,$deps$jscomp$12$$,$on_subscribe$jscomp$1$$,null)};
$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$=function($stream$jscomp$19$$,$on_subscribe$$){$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$03$$($stream$jscomp$19$$,[],$on_subscribe$$)};
$app$main$data$workspace$tokens$library_edit$start_token_set_edition$$=function($edition_id$$){typeof $app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$=function($edition_id$jscomp$1$$,$meta71518$$){this.$edition_id$=$edition_id$jscomp$1$$;this.$meta71518$=$meta71518$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4553$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_start_token_set_edition$$},$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71519$$,$meta71518__$1$$){return new $app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$(this.$edition_id$,
$meta71518__$1$$)},$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71518$},$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2577$$,$state$jscomp$910$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$910$$,
$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4554$token_set_edition_id$$,this.$edition_id$)});return new $app$main$data$workspace$tokens$library_edit$start_token_set_edition_71517$$($edition_id$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker_gradient$$=function($changes$jscomp$221$$){typeof $app$main$data$workspace$colors$update_colorpicker_gradient_69539$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_gradient_69539$$=function($changes$jscomp$222$$,$meta69540$$){this.$changes$=$changes$jscomp$222$$;this.$meta69540$=$meta69540$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4056$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_gradient$$},$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69541$$,$meta69540__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_gradient_69539$$(this.$changes$,
$meta69540__$1$$)},$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69540$},$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_gradient_69539$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2211$$,$state$jscomp$606$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$606$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2199$colorpicker$$,$APP.$cljs$cst$1708$gradient$$],null),$APP.$cljs$core$merge$$,this.$changes$)});return new $app$main$data$workspace$colors$update_colorpicker_gradient_69539$$($changes$jscomp$221$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$common$toggle_toolbar_visibility$$=function(){typeof $app$main$data$workspace$common$toggle_toolbar_visibility_65795$$==="undefined"&&($app$main$data$workspace$common$toggle_toolbar_visibility_65795$$=function($meta65796$$){this.$meta65796$=$meta65796$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3624$app_DOT_main_DOT_data_DOT_workspace_DOT_common_SLASH_toggle_toolbar_visibility$$},$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65797$$,$meta65796__$1$$){return new $app$main$data$workspace$common$toggle_toolbar_visibility_65795$$($meta65796__$1$$)},$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta65796$},$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$common$toggle_toolbar_visibility_65795$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1906$$,$state$jscomp$372$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$372$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$3622$hide_toolbar$$],null),$APP.$cljs$core$not$$)});return new $app$main$data$workspace$common$toggle_toolbar_visibility_65795$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$modal$update_props$$=function($props$jscomp$87$$){typeof $app$main$data$modal$update_modal_props_51600$$==="undefined"&&($app$main$data$modal$update_modal_props_51600$$=function($_type$jscomp$1$$,$props$jscomp$88$$,$meta51601$$){this.$_type$=$_type$jscomp$1$$;this.props=$props$jscomp$88$$;this.$meta51601$=$meta51601$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$modal$update_modal_props_51600$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$modal$update_modal_props_51600$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$2297$app_DOT_main_DOT_data_DOT_modal_SLASH_update_modal_props$$},$app$main$data$modal$update_modal_props_51600$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_51602$$,$meta51601__$1$$){return new $app$main$data$modal$update_modal_props_51600$$(this.$_type$,this.props,$meta51601__$1$$)},$app$main$data$modal$update_modal_props_51600$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta51601$},$app$main$data$modal$update_modal_props_51600$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$modal$update_modal_props_51600$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1422$$,$state$jscomp$105$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$2295$app_DOT_main_DOT_data_DOT_modal_SLASH_modal$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$105$$))?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$105$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2295$app_DOT_main_DOT_data_DOT_modal_SLASH_modal$$,$APP.$cljs$cst$573$props$$],null),$APP.$cljs$core$merge$$,this.props):$state$jscomp$105$$});return new $app$main$data$modal$update_modal_props_51600$$($APP.$cljs$cst$2199$colorpicker$$,$props$jscomp$87$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$clear_tokens_paths$$=function(){typeof $app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$=function($meta71136$$){this.$meta71136$=$meta71136$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4520$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_clear_tokens_paths$$},$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71137$$,$meta71136__$1$$){return new $app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$($meta71136__$1$$)},
$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71136$},$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2547$$,$state$jscomp$882$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$882$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$cst$4521$unfolded_token_paths$$],null),$APP.$cljs$core$PersistentVector$EMPTY$$)});return new $app$main$data$workspace$tokens$library_edit$clear_tokens_paths_71135$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_clipboard_style$$=function($style$jscomp$46$$){typeof $app$main$data$workspace$set_clipboard_style_70583$$==="undefined"&&($app$main$data$workspace$set_clipboard_style_70583$$=function($style$jscomp$47$$,$meta70584$$){this.style=$style$jscomp$47$$;this.$meta70584$=$meta70584$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4375$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_clipboard_style$$},$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70585$$,$meta70584__$1$$){return new $app$main$data$workspace$set_clipboard_style_70583$$(this.style,$meta70584__$1$$)},$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70584$},$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_clipboard_style_70583$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2505$$,$state$jscomp$858$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$858$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,
$APP.$cljs$cst$2187$clipboard_style$$],null),this.style)});return new $app$main$data$workspace$set_clipboard_style_70583$$($style$jscomp$46$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_annotations_expanded$$=function($expanded$jscomp$4$$){typeof $app$main$data$workspace$set_annotations_expanded_70528$$==="undefined"&&($app$main$data$workspace$set_annotations_expanded_70528$$=function($expanded$jscomp$5$$,$meta70529$$){this.$expanded$=$expanded$jscomp$5$$;this.$meta70529$=$meta70529$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4368$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_annotations_expanded$$},$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70530$$,$meta70529__$1$$){return new $app$main$data$workspace$set_annotations_expanded_70528$$(this.$expanded$,$meta70529__$1$$)},$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70529$},$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_annotations_expanded_70528$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2499$$,$state$jscomp$853$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$853$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4369$workspace_annotations$$,
$APP.$cljs$cst$3420$expanded$$],null),this.$expanded$)});return new $app$main$data$workspace$set_annotations_expanded_70528$$($expanded$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$start_rename_page_item$$=function($id$jscomp$735$$){typeof $app$main$data$workspace$start_rename_page_item_70499$$==="undefined"&&($app$main$data$workspace$start_rename_page_item_70499$$=function($id$jscomp$736$$,$meta70500$$){this.id=$id$jscomp$736$$;this.$meta70500$=$meta70500$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4365$app_DOT_main_DOT_data_DOT_workspace_SLASH_start_rename_page_item$$},$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70501$$,$meta70500__$1$$){return new $app$main$data$workspace$start_rename_page_item_70499$$(this.id,$meta70500__$1$$)},$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70500$},$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$start_rename_page_item_70499$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2496$$,$state$jscomp$850$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$850$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,
$APP.$cljs$cst$2169$page_item$$],null),this.id)});return new $app$main$data$workspace$start_rename_page_item_70499$$($id$jscomp$735$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_margins_selected$$=function($margins_selected$$){typeof $app$main$data$workspace$set_margins_selected_70481$$==="undefined"&&($app$main$data$workspace$set_margins_selected_70481$$=function($margins_selected$jscomp$1$$,$meta70482$$){this.$margins_selected$=$margins_selected$jscomp$1$$;this.$meta70482$=$meta70482$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_margins_selected_70481$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_margins_selected_70481$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4363$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_margins_selected$$},$app$main$data$workspace$set_margins_selected_70481$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70483$$,$meta70482__$1$$){return new $app$main$data$workspace$set_margins_selected_70481$$(this.$margins_selected$,$meta70482__$1$$)},$app$main$data$workspace$set_margins_selected_70481$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70482$},$app$main$data$workspace$set_margins_selected_70481$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_margins_selected_70481$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2494$$,$state$jscomp$846$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$846$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,
$APP.$cljs$cst$2182$margins_selected$$],null),this.$margins_selected$)});return new $app$main$data$workspace$set_margins_selected_70481$$($margins_selected$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_gap_selected$$=function($gap_selected$$){typeof $app$main$data$workspace$set_gap_selected_70468$$==="undefined"&&($app$main$data$workspace$set_gap_selected_70468$$=function($gap_selected$jscomp$1$$,$meta70469$$){this.$gap_selected$=$gap_selected$jscomp$1$$;this.$meta70469$=$meta70469$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_gap_selected_70468$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$set_gap_selected_70468$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4362$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_gap_selected$$},$app$main$data$workspace$set_gap_selected_70468$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70470$$,$meta70469__$1$$){return new $app$main$data$workspace$set_gap_selected_70468$$(this.$gap_selected$,$meta70469__$1$$)},$app$main$data$workspace$set_gap_selected_70468$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70469$},$app$main$data$workspace$set_gap_selected_70468$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_gap_selected_70468$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2493$$,$state$jscomp$845$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$845$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$2181$gap_selected$$],
null),this.$gap_selected$)});return new $app$main$data$workspace$set_gap_selected_70468$$($gap_selected$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_paddings_selected$$=function($paddings_selected$$){typeof $app$main$data$workspace$set_paddings_selected_70463$$==="undefined"&&($app$main$data$workspace$set_paddings_selected_70463$$=function($paddings_selected$jscomp$1$$,$meta70464$$){this.$paddings_selected$=$paddings_selected$jscomp$1$$;this.$meta70464$=$meta70464$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4361$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_paddings_selected$$},$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70465$$,$meta70464__$1$$){return new $app$main$data$workspace$set_paddings_selected_70463$$(this.$paddings_selected$,$meta70464__$1$$)},$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70464$},$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_paddings_selected_70463$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2492$$,$state$jscomp$844$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$844$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,
$APP.$cljs$cst$2180$paddings_selected$$],null),this.$paddings_selected$)});return new $app$main$data$workspace$set_paddings_selected_70463$$($paddings_selected$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$show_page_item_context_menu$$=function($p__70403$$){var $map__70404__$1$$=$APP.$cljs$core$__destructure_map$$($p__70403$$),$position$jscomp$156$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70404__$1$$,$APP.$cljs$cst$1660$position$$),$page$jscomp$98$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70404__$1$$,$APP.$cljs$cst$1608$page$$);typeof $app$main$data$workspace$show_page_item_context_menu_70405$$==="undefined"&&($app$main$data$workspace$show_page_item_context_menu_70405$$=
function($p__70403$jscomp$1$$,$map__70404$jscomp$1$$,$params$jscomp$299$$,$position$jscomp$157$$,$page$jscomp$99$$,$meta70406$$){this.$p__70403$=$p__70403$jscomp$1$$;this.$map__70404$=$map__70404$jscomp$1$$;this.params=$params$jscomp$299$$;this.position=$position$jscomp$157$$;this.page=$page$jscomp$99$$;this.$meta70406$=$meta70406$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4352$app_DOT_main_DOT_data_DOT_workspace_SLASH_show_page_item_context_menu$$},$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70407$$,$meta70406__$1$$){return new $app$main$data$workspace$show_page_item_context_menu_70405$$(this.$p__70403$,this.$map__70404$,
this.params,this.position,this.page,$meta70406__$1$$)},$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70406$},$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_page_item_context_menu_70405$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$show_context_menu$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$(this.params,
$APP.$cljs$cst$945$kind$$,$APP.$cljs$cst$1608$page$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1906$selected$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.page)]))))});return new $app$main$data$workspace$show_page_item_context_menu_70405$$($p__70403$$,$map__70404__$1$$,$map__70404__$1$$,$position$jscomp$156$$,$page$jscomp$98$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_assets_group_open$$=function($file_id$jscomp$263$$,$section$jscomp$14$$,$path$jscomp$243$$,$open_QMARK_$jscomp$6$$){typeof $app$main$data$workspace$set_assets_group_open_70371$$==="undefined"&&($app$main$data$workspace$set_assets_group_open_70371$$=function($file_id$jscomp$264$$,$section$jscomp$15$$,$path$jscomp$244$$,$open_QMARK_$jscomp$7$$,$meta70372$$){this.$file_id$=$file_id$jscomp$264$$;this.section=$section$jscomp$15$$;this.path=$path$jscomp$244$$;this.$open_QMARK_$=
$open_QMARK_$jscomp$7$$;this.$meta70372$=$meta70372$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4341$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_assets_group_open$$},$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_70373$$,$meta70372__$1$$){return new $app$main$data$workspace$set_assets_group_open_70371$$(this.$file_id$,this.section,this.path,this.$open_QMARK_$,$meta70372__$1$$)},$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70372$},$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_assets_group_open_70371$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2477$$,$state$jscomp$831$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$831$$,new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$4339$open_status$$,this.$file_id$,$APP.$cljs$cst$4342$groups$$,this.section,this.path],null),this.$open_QMARK_$)});return new $app$main$data$workspace$set_assets_group_open_70371$$($file_id$jscomp$263$$,$section$jscomp$14$$,$path$jscomp$243$$,$open_QMARK_$jscomp$6$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_assets_section_open$$=function($file_id$jscomp$261$$,$section$jscomp$12$$,$open_QMARK_$jscomp$4$$){typeof $app$main$data$workspace$set_assets_section_open_70365$$==="undefined"&&($app$main$data$workspace$set_assets_section_open_70365$$=function($file_id$jscomp$262$$,$section$jscomp$13$$,$open_QMARK_$jscomp$5$$,$meta70366$$){this.$file_id$=$file_id$jscomp$262$$;this.section=$section$jscomp$13$$;this.$open_QMARK_$=$open_QMARK_$jscomp$5$$;this.$meta70366$=$meta70366$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4337$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_assets_section_open$$},$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70367$$,
$meta70366__$1$$){return new $app$main$data$workspace$set_assets_section_open_70365$$(this.$file_id$,this.section,this.$open_QMARK_$,$meta70366__$1$$)},$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70366$},$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_assets_section_open_70365$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2475$$,$state$jscomp$829$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$829$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$4339$open_status$$,this.$file_id$,this.section],null),this.$open_QMARK_$)});return new $app$main$data$workspace$set_assets_section_open_70365$$($file_id$jscomp$261$$,$section$jscomp$12$$,$open_QMARK_$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$workspace_focus_lost$$=function(){typeof $app$main$data$workspace$workspace_focus_lost_70362$$==="undefined"&&($app$main$data$workspace$workspace_focus_lost_70362$$=function($meta70363$$){this.$meta70363$=$meta70363$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4335$app_DOT_main_DOT_data_DOT_workspace_SLASH_workspace_focus_lost$$},$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70364$$,$meta70363__$1$$){return new $app$main$data$workspace$workspace_focus_lost_70362$$($meta70363__$1$$)},$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70363$},$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$workspace_focus_lost_70362$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2474$$,$state$jscomp$828$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$828$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$4336$show_distances_QMARK_$$],null),!1)});return new $app$main$data$workspace$workspace_focus_lost_70362$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$update_area_selection$$=function($rect$jscomp$41$$){typeof $app$main$data$workspace$path$selection$update_area_selection_68179$$==="undefined"&&($app$main$data$workspace$path$selection$update_area_selection_68179$$=function($rect$jscomp$42$$,$meta68180$$){this.rect=$rect$jscomp$42$$;this.$meta68180$=$meta68180$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4128$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_update_area_selection$$},$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68181$$,$meta68180__$1$$){return new $app$main$data$workspace$path$selection$update_area_selection_68179$$(this.rect,
$meta68180__$1$$)},$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68180$},$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$update_area_selection_68179$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2264$$,$state$jscomp$663$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$663$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1589$selrect$$],null),this.rect)});return new $app$main$data$workspace$path$selection$update_area_selection_68179$$($rect$jscomp$41$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$drawing$reset_last_handler$$=function(){typeof $app$main$data$workspace$path$drawing$reset_last_handler_68351$$==="undefined"&&($app$main$data$workspace$path$drawing$reset_last_handler_68351$$=function($meta68352$$){this.$meta68352$=$meta68352$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4116$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_drawing_SLASH_reset_last_handler$$},$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68353$$,$meta68352__$1$$){return new $app$main$data$workspace$path$drawing$reset_last_handler_68351$$($meta68352__$1$$)},$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68352$},$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$reset_last_handler_68351$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2255_id$jscomp$656$$,$state$jscomp$654$$){$_$jscomp$2255_id$jscomp$656$$=$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$654$$);return $APP.$cljs$core$assoc_in$$($state$jscomp$654$$,
new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2255_id$jscomp$656$$,$APP.$cljs$cst$3426$prev_handler$$],null),null)});return new $app$main$data$workspace$path$drawing$reset_last_handler_68351$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$pick_color_select$$=function($shift_QMARK_$jscomp$10$$){typeof $app$main$data$workspace$colors$pick_color_select_69143$$==="undefined"&&($app$main$data$workspace$colors$pick_color_select_69143$$=function($value$jscomp$577$$,$shift_QMARK_$jscomp$11$$,$meta69144$$){this.value=$value$jscomp$577$$;this.$shift_QMARK_$=$shift_QMARK_$jscomp$11$$;this.$meta69144$=$meta69144$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4020$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_pick_color_select$$},$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69145$$,$meta69144__$1$$){return new $app$main$data$workspace$colors$pick_color_select_69143$$(this.value,this.$shift_QMARK_$,$meta69144__$1$$)},
$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69144$},$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$pick_color_select_69143$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2172$$,$state$jscomp$575$$){return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$575$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$4016$picked_color_select$$],null),this.value),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$4017$picked_shift_QMARK_$$],null),this.$shift_QMARK_$)});return new $app$main$data$workspace$colors$pick_color_select_69143$$(!0,$shift_QMARK_$jscomp$10$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$pick_color$$=function($rgba$jscomp$5$$){typeof $app$main$data$workspace$colors$pick_color_69131$$==="undefined"&&($app$main$data$workspace$colors$pick_color_69131$$=function($rgba$jscomp$6$$,$meta69132$$){this.$rgba$=$rgba$jscomp$6$$;this.$meta69132$=$meta69132$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$pick_color_69131$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$colors$pick_color_69131$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4018$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_pick_color$$},$app$main$data$workspace$colors$pick_color_69131$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69133$$,$meta69132__$1$$){return new $app$main$data$workspace$colors$pick_color_69131$$(this.$rgba$,$meta69132__$1$$)},$app$main$data$workspace$colors$pick_color_69131$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69132$},$app$main$data$workspace$colors$pick_color_69131$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$pick_color_69131$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2171$$,$state$jscomp$574$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$574$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,
$APP.$cljs$cst$4019$picked_color$$],null),this.$rgba$)});return new $app$main$data$workspace$colors$pick_color_69131$$($rgba$jscomp$5$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$selection$update_selrect$$=function($selrect$jscomp$44$$){typeof $app$main$data$workspace$selection$update_selrect_65931$$==="undefined"&&($app$main$data$workspace$selection$update_selrect_65931$$=function($selrect$jscomp$45$$,$meta65932$$){this.$selrect$=$selrect$jscomp$45$$;this.$meta65932$=$meta65932$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3479$app_DOT_main_DOT_data_DOT_workspace_DOT_selection_SLASH_update_selrect$$},$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65933$$,$meta65932__$1$$){return new $app$main$data$workspace$selection$update_selrect_65931$$(this.$selrect$,$meta65932__$1$$)},
$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta65932$},$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$update_selrect_65931$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1841$$,$state$jscomp$315$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$315$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1589$selrect$$],null),this.$selrect$)});return new $app$main$data$workspace$selection$update_selrect_65931$$($selrect$jscomp$44$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$select_colorpicker_gradient_stop$$=function($index$jscomp$308$$){typeof $app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$==="undefined"&&($app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$=function($index$jscomp$309$$,$meta69543$$){this.index=$index$jscomp$309$$;this.$meta69543$=$meta69543$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4066$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_select_colorpicket_gradient_stop$$},$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69544$$,$meta69543__$1$$){return new $app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$(this.index,
$meta69543__$1$$)},$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69543$},$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2212$$,$state$jscomp$607$$){var $self__$jscomp$5215$$=
this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$607$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$39$$){var $temp__5823__auto__$jscomp$180$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$39$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1717$stops$$,$self__$jscomp$5215$$.index],null));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$180$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($state__$1$jscomp$39$$,
$APP.$cljs$cst$4048$current_color$$,$temp__5823__auto__$jscomp$180$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4046$editing_stop$$,$self__$jscomp$5215$$.index])):$state__$1$jscomp$39$$})});return new $app$main$data$workspace$colors$select_colorpicket_gradient_stop_69542$$($index$jscomp$308$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$file$get_base_font_size$$=function($file_data$jscomp$53$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($file_data$jscomp$53$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$871$options$$,$APP.$cljs$cst$2528$base_font_size$$],null),"16px")};
$app$main$data$workspace$texts$cursor_to_end$$=function($p__68590$$){var $map__68591__$1$$=$APP.$cljs$core$__destructure_map$$($p__68590$$),$id$jscomp$595$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68591__$1$$,$APP.$cljs$cst$266$id$$);typeof $app$main$data$workspace$texts$cursor_to_end_68594$$==="undefined"&&($app$main$data$workspace$texts$cursor_to_end_68594$$=function($p__68590$jscomp$1$$,$map__68591$jscomp$1$$,$shape$jscomp$562$$,$id$jscomp$596$$,$meta68595$$){this.$p__68590$=
$p__68590$jscomp$1$$;this.$map__68591$=$map__68591$jscomp$1$$;this.shape=$shape$jscomp$562$$;this.id=$id$jscomp$596$$;this.$meta68595$=$meta68595$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3846$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_cursor_to_end$$},
$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68596$$,$meta68595__$1$$){return new $app$main$data$workspace$texts$cursor_to_end_68594$$(this.$p__68590$,this.$map__68591$,this.shape,this.id,$meta68595__$1$$)},$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68595$},$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$texts$cursor_to_end_68594$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2067$$,$state$jscomp$513$$){return $APP.$app$common$data$update_in_when$$($state$jscomp$513$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2184$workspace_editor_state$$,this.id],null),$app$util$text_editor$cursor_to_end$$)});return new $app$main$data$workspace$texts$cursor_to_end_68594$$($p__68590$$,$map__68591__$1$$,
$map__68591__$1$$,$id$jscomp$595$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$select_all$$=function($p__68582$$){var $map__68583__$1$$=$APP.$cljs$core$__destructure_map$$($p__68582$$),$id$jscomp$593$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68583__$1$$,$APP.$cljs$cst$266$id$$);typeof $app$main$data$workspace$texts$editor_select_all_68584$$==="undefined"&&($app$main$data$workspace$texts$editor_select_all_68584$$=function($p__68582$jscomp$1$$,$map__68583$jscomp$1$$,$shape$jscomp$560$$,$id$jscomp$594$$,$meta68585$$){this.$p__68582$=
$p__68582$jscomp$1$$;this.$map__68583$=$map__68583$jscomp$1$$;this.shape=$shape$jscomp$560$$;this.id=$id$jscomp$594$$;this.$meta68585$=$meta68585$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3845$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_editor_select_all$$},
$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68586$$,$meta68585__$1$$){return new $app$main$data$workspace$texts$editor_select_all_68584$$(this.$p__68582$,this.$map__68583$,this.shape,this.id,$meta68585__$1$$)},$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68585$},$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$editor_select_all_68584$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2066$$,$state$jscomp$512$$){return $APP.$app$common$data$update_in_when$$($state$jscomp$512$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2184$workspace_editor_state$$,this.id],null),$app$util$text_editor$editor_select_all$$)});return new $app$main$data$workspace$texts$editor_select_all_68584$$($p__68582$$,
$map__68583__$1$$,$map__68583__$1$$,$id$jscomp$593$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$data$helpers$update_file$cljs$0core$0IFn$0_invoke$0arity$03$$=function($state$jscomp$70$$,$file_id$jscomp$7$$,$f$jscomp$773$$){return $APP.$app$common$data$update_in_when$$($state$jscomp$70$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,$file_id$jscomp$7$$],null),$f$jscomp$773$$)};
$clojure$set$superset_QMARK_$$=function($set1$jscomp$1$$,$set2$jscomp$1$$){return $APP.$cljs$core$count$$($set1$jscomp$1$$)>=$APP.$cljs$core$count$$($set2$jscomp$1$$)&&$APP.$cljs$core$every_QMARK_$$(function($p1__24272_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($set1$jscomp$1$$,$p1__24272_SHARP_$$)},$set2$jscomp$1$$)};
$app$common$files$tokens$shapes_applied_all_QMARK_$$=function($ids_by_attributes$$,$shape_ids$jscomp$15$$,$attributes$jscomp$19$$){return $APP.$cljs$core$every_QMARK_$$(function($p1__69762_SHARP_$$){return $clojure$set$superset_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($ids_by_attributes$$,$p1__69762_SHARP_$$),$shape_ids$jscomp$15$$)},$attributes$jscomp$19$$)};
$cljs$tools$reader$unquote_QMARK_$$=function($form$jscomp$17$$){return $APP.$cljs$core$seq_QMARK_$$($form$jscomp$17$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($form$jscomp$17$$),$APP.$cljs$cst$234$clojure_DOT_core_SLASH_unquote$$)};$cljs$tools$reader$unquote_splicing_QMARK_$$=function($form$jscomp$16$$){return $APP.$cljs$core$seq_QMARK_$$($form$jscomp$16$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($form$jscomp$16$$),$APP.$cljs$cst$233$clojure_DOT_core_SLASH_unquote_splicing$$)};
$app$main$data$workspace$set_preview_blend_mode$$=function($ids$jscomp$240$$,$blend_mode$jscomp$4$$){typeof $app$main$data$workspace$set_preview_blend_mode_70552$$==="undefined"&&($app$main$data$workspace$set_preview_blend_mode_70552$$=function($ids$jscomp$241$$,$blend_mode$jscomp$5$$,$meta70553$$){this.ids=$ids$jscomp$241$$;this.$blend_mode$=$blend_mode$jscomp$5$$;this.$meta70553$=$meta70553$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4372$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_preview_blend_mode$$},$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70554$$,$meta70553__$1$$){return new $app$main$data$workspace$set_preview_blend_mode_70552$$(this.ids,this.$blend_mode$,$meta70553__$1$$)},
$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70553$},$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_preview_blend_mode_70552$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2502$$,$state$jscomp$855$$){var $self__$jscomp$6209$$=this;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__70548_SHARP_$$,
$p2__70549_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__70548_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2201$workspace_preview_blend$$,$p2__70549_SHARP_$$],null),$self__$jscomp$6209$$.$blend_mode$)},$state$jscomp$855$$,$self__$jscomp$6209$$.ids)});return new $app$main$data$workspace$set_preview_blend_mode_70552$$($ids$jscomp$240$$,$blend_mode$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$cljs$core$js_reserved_QMARK_$$=function($x$jscomp$652$$){$cljs$core$js_reserved$$==null&&($cljs$core$js_reserved$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__24179_SHARP_$$,$p2__24180_SHARP_$$){$p1__24179_SHARP_$$[$p2__24180_SHARP_$$]=!0;return $p1__24179_SHARP_$$},{},$cljs$core$js_reserved_arr$$));return $cljs$core$js_reserved$$.hasOwnProperty($x$jscomp$652$$)};
$app$render_wasm$api$apply_canvas_blur$$=function(){$APP.$cljs$core$truth_$$($app$render_wasm$wasm$canvas$$)&&$app$util$dom$set_style_BANG_$$($app$render_wasm$wasm$canvas$$,"filter","blur(4px)");var $controls_to_blur$$=$APP.$app$util$dom$query_all$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$goog$dom$getElement$$("viewport-controls"),".blurrable");$APP.$cljs$core$run_BANG_$$(function($p1__54317_SHARP_$$){return $app$util$dom$set_style_BANG_$$($p1__54317_SHARP_$$,"filter","blur(4px)")},$controls_to_blur$$)};
$app$render_wasm$api$webgl$clear_canvas_pixels$$=function(){if($APP.$cljs$core$truth_$$($app$render_wasm$wasm$canvas$$)){var $context_53541_controls_to_unblur_53542$$=$app$render_wasm$wasm$gl_context$$;$context_53541_controls_to_unblur_53542$$.clearColor(0,0,0,0);$context_53541_controls_to_unblur_53542$$.clear($context_53541_controls_to_unblur_53542$$.COLOR_BUFFER_BIT);$context_53541_controls_to_unblur_53542$$.clear($context_53541_controls_to_unblur_53542$$.DEPTH_BUFFER_BIT);$context_53541_controls_to_unblur_53542$$.clear($context_53541_controls_to_unblur_53542$$.STENCIL_BUFFER_BIT);
$app$util$dom$set_style_BANG_$$($app$render_wasm$wasm$canvas$$,"filter","none");$context_53541_controls_to_unblur_53542$$=$APP.$app$util$dom$query_all$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$goog$dom$getElement$$("viewport-controls"),".blurrable");$APP.$cljs$core$run_BANG_$$(function($p1__53529_SHARP_$$){return $app$util$dom$set_style_BANG_$$($p1__53529_SHARP_$$,"filter","none")},$context_53541_controls_to_unblur_53542$$);return $app$render_wasm$wasm$canvas_pixels$$=null}return null};
$app$main$data$workspace$grid_layout$editor$remove_selection$$=function($grid_id$jscomp$7$$,$cell_id$jscomp$7$$){typeof $app$main$data$workspace$grid_layout$editor$remove_selection_68900$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$remove_selection_68900$$=function($grid_id$jscomp$8$$,$cell_id$jscomp$8$$,$meta68901$$){this.$grid_id$=$grid_id$jscomp$8$$;this.$cell_id$=$cell_id$jscomp$8$$;this.$meta68901$=$meta68901$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4236$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_remove_selection$$},$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68902$$,$meta68901__$1$$){return new $app$main$data$workspace$grid_layout$editor$remove_selection_68900$$(this.$grid_id$,this.$cell_id$,$meta68901__$1$$)},$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68901$},$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$remove_selection_68900$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2373$$,$state$jscomp$750$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$750$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,this.$grid_id$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$disj$$,this.$cell_id$)});return new $app$main$data$workspace$grid_layout$editor$remove_selection_68900$$($grid_id$jscomp$7$$,$cell_id$jscomp$7$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$path_handler_leave$$=function($index$jscomp$323$$,$prefix$jscomp$54$$){typeof $app$main$data$workspace$path$selection$path_handler_leave_68137$$==="undefined"&&($app$main$data$workspace$path$selection$path_handler_leave_68137$$=function($index$jscomp$324$$,$prefix$jscomp$55$$,$meta68138$$){this.index=$index$jscomp$324$$;this.prefix=$prefix$jscomp$55$$;this.$meta68138$=$meta68138$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4123$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_path_handler_leave$$},$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68139$$,
$meta68138__$1$$){return new $app$main$data$workspace$path$selection$path_handler_leave_68137$$(this.index,this.prefix,$meta68138__$1$$)},$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68138$},$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_handler_leave_68137$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2260_id$jscomp$661$$,$state$jscomp$659$$){$_$jscomp$2260_id$jscomp$661$$=$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$659$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$659$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2260_id$jscomp$661$$,$APP.$cljs$cst$4122$hover_handlers$$],null),$APP.$cljs$core$disj$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.index,this.prefix],null))});return new $app$main$data$workspace$path$selection$path_handler_leave_68137$$($index$jscomp$323$$,$prefix$jscomp$54$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$path_pointer_leave$$=function($position$jscomp$134$$){typeof $app$main$data$workspace$path$selection$path_pointer_leave_68114$$==="undefined"&&($app$main$data$workspace$path$selection$path_pointer_leave_68114$$=function($position$jscomp$135$$,$meta68115$$){this.position=$position$jscomp$135$$;this.$meta68115$=$meta68115$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4120$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_path_pointer_leave$$},$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68116$$,$meta68115__$1$$){return new $app$main$data$workspace$path$selection$path_pointer_leave_68114$$(this.position,
$meta68115__$1$$)},$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68115$},$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_pointer_leave_68114$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2258_id$jscomp$659$$,$state$jscomp$657$$){$_$jscomp$2258_id$jscomp$659$$=
$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$657$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$657$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2258_id$jscomp$659$$,$APP.$cljs$cst$4119$hover_points$$],null),$APP.$cljs$core$disj$$,this.position)});return new $app$main$data$workspace$path$selection$path_pointer_leave_68114$$($position$jscomp$134$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$clear_token_set_creation$$=function(){typeof $app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$=function($meta71549$$){this.$meta71549$=$meta71549$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4558$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_clear_token_set_creation$$},$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71550$$,$meta71549__$1$$){return new $app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$($meta71549__$1$$)},
$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71549$},$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2580$$,$state$jscomp$913$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$913$$,
$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4556$token_set_new_path$$)});return new $app$main$data$workspace$tokens$library_edit$clear_token_set_creation_71548$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu$$=function($p__71487$$){var $map__71489__$1$$=$APP.$cljs$core$__destructure_map$$($p__71487$$),$position$jscomp$164$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71489__$1$$,$APP.$cljs$cst$1660$position$$);typeof $app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$=function($p__71487$jscomp$1$$,
$map__71489$jscomp$1$$,$params$jscomp$316$$,$position$jscomp$165$$,$meta71492$$){this.$p__71487$=$p__71487$jscomp$1$$;this.$map__71489$=$map__71489$jscomp$1$$;this.params=$params$jscomp$316$$;this.position=$position$jscomp$165$$;this.$meta71492$=$meta71492$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4550$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_assign_token_set_context_menu$$},$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71493$$,$meta71492__$1$$){return new $app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$(this.$p__71487$,
this.$map__71489$,this.params,this.position,$meta71492__$1$$)},$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71492$},$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2575$$,$state$jscomp$908$$){return $APP.$cljs$core$truth_$$(this.params)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$908$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4551$token_set_context_menu$$,this.params):$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$908$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4551$token_set_context_menu$$)});return new $app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu_71491$$($p__71487$$,
$map__71489__$1$$,$map__71489__$1$$,$position$jscomp$164$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$assign_token_node_context_menu$$=function($p__71473$$){var $map__71477__$1$$=$APP.$cljs$core$__destructure_map$$($p__71473$$),$position$jscomp$162$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71477__$1$$,$APP.$cljs$cst$1660$position$$);typeof $app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$=function($p__71473$jscomp$1$$,
$map__71477$jscomp$1$$,$params$jscomp$314$$,$position$jscomp$163$$,$meta71479$$){this.$p__71473$=$p__71473$jscomp$1$$;this.$map__71477$=$map__71477$jscomp$1$$;this.params=$params$jscomp$314$$;this.position=$position$jscomp$163$$;this.$meta71479$=$meta71479$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4548$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_show_token_node_context_menu$$},$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71480$$,$meta71479__$1$$){return new $app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$(this.$p__71473$,
this.$map__71477$,this.params,this.position,$meta71479__$1$$)},$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71479$},$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2574$$,$state$jscomp$907$$){return $APP.$cljs$core$truth_$$(this.params)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$907$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4549$token_node_context_menu$$,this.params):$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$907$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4549$token_node_context_menu$$)});return new $app$main$data$workspace$tokens$library_edit$show_token_node_context_menu_71478$$($p__71473$$,
$map__71477__$1$$,$map__71477__$1$$,$position$jscomp$162$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$assign_token_context_menu$$=function($p__71457$$){var $map__71459__$1$$=$APP.$cljs$core$__destructure_map$$($p__71457$$),$position$jscomp$160$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71459__$1$$,$APP.$cljs$cst$1660$position$$);typeof $app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$=function($p__71457$jscomp$1$$,$map__71459$jscomp$1$$,
$params$jscomp$312$$,$position$jscomp$161$$,$meta71463$$){this.$p__71457$=$p__71457$jscomp$1$$;this.$map__71459$=$map__71459$jscomp$1$$;this.params=$params$jscomp$312$$;this.position=$position$jscomp$161$$;this.$meta71463$=$meta71463$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4547$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_show_token_context_menu$$},$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71464$$,$meta71463__$1$$){return new $app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$(this.$p__71457$,this.$map__71459$,this.params,this.position,$meta71463__$1$$)},$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71463$},$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2573$$,$state$jscomp$906$$){return $APP.$cljs$core$truth_$$(this.params)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$906$$,$APP.$cljs$cst$2119$workspace_tokens$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2168$token_context_menu$$,this.params):$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$906$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$2168$token_context_menu$$)});return new $app$main$data$workspace$tokens$library_edit$show_token_context_menu_71462$$($p__71457$$,$map__71459__$1$$,$map__71459__$1$$,$position$jscomp$160$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$unset_preview_blend_mode$$=function($ids$jscomp$242$$){typeof $app$main$data$workspace$unset_preview_blend_mode_70562$$==="undefined"&&($app$main$data$workspace$unset_preview_blend_mode_70562$$=function($ids$jscomp$243$$,$meta70563$$){this.ids=$ids$jscomp$243$$;this.$meta70563$=$meta70563$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4373$app_DOT_main_DOT_data_DOT_workspace_SLASH_unset_preview_blend_mode$$},$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70564$$,$meta70563__$1$$){return new $app$main$data$workspace$unset_preview_blend_mode_70562$$(this.ids,$meta70563__$1$$)},$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70563$},$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$unset_preview_blend_mode_70562$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2503$$,$state$jscomp$856$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__70560_SHARP_$$,$p2__70561_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__70560_SHARP_$$,
$APP.$cljs$cst$2201$workspace_preview_blend$$,$APP.$cljs$core$dissoc$$,$p2__70561_SHARP_$$)},$state$jscomp$856$$,this.ids)});return new $app$main$data$workspace$unset_preview_blend_mode_70562$$($ids$jscomp$242$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$stop_rename_page_item$$=function(){typeof $app$main$data$workspace$stop_rename_page_item_70510$$==="undefined"&&($app$main$data$workspace$stop_rename_page_item_70510$$=function($meta70511$$){this.$meta70511$=$meta70511$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4366$app_DOT_main_DOT_data_DOT_workspace_SLASH_stop_rename_page_item$$},$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70512$$,$meta70511__$1$$){return new $app$main$data$workspace$stop_rename_page_item_70510$$($meta70511__$1$$)},$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70511$},$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$stop_rename_page_item_70510$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2497_local$jscomp$21$$,$state$jscomp$851$$){$_$jscomp$2497_local$jscomp$21$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1905$workspace_local$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$851$$),$APP.$cljs$cst$2169$page_item$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$851$$,
$APP.$cljs$cst$1905$workspace_local$$,$_$jscomp$2497_local$jscomp$21$$)});return new $app$main$data$workspace$stop_rename_page_item_70510$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$unselect_all_assets$cljs$0core$0IFn$0_invoke$0arity$01$$=function($file_id$jscomp$271$$){typeof $app$main$data$workspace$unselect_all_assets_70385$$==="undefined"&&($app$main$data$workspace$unselect_all_assets_70385$$=function($file_id$jscomp$272$$,$meta70386$$){this.$file_id$=$file_id$jscomp$272$$;this.$meta70386$=$meta70386$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4346$app_DOT_main_DOT_data_DOT_workspace_SLASH_unselect_all_assets$$},$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70387$$,$meta70386__$1$$){return new $app$main$data$workspace$unselect_all_assets_70385$$(this.$file_id$,$meta70386__$1$$)},$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70386$},$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$unselect_all_assets_70385$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2481$$,$state$jscomp$835$$){return $APP.$cljs$core$truth_$$(this.$file_id$)?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$835$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$dissoc$$,this.$file_id$):$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$835$$,$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1906$selected$$)});return new $app$main$data$workspace$unselect_all_assets_70385$$($file_id$jscomp$271$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$viewport$finish_panning$$=function(){typeof $app$main$data$workspace$viewport$finish_panning_69061$$==="undefined"&&($app$main$data$workspace$viewport$finish_panning_69061$$=function($meta69062$$){this.$meta69062$=$meta69062$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4296$app_DOT_main_DOT_data_DOT_workspace_DOT_viewport_SLASH_finish_panning$$},$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69063$$,$meta69062__$1$$){return new $app$main$data$workspace$viewport$finish_panning_69061$$($meta69062__$1$$)},$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69062$},$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$finish_panning_69061$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2428$$,$state$jscomp$794$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$794$$,$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4297$panning$$)});return new $app$main$data$workspace$viewport$finish_panning_69061$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing$$=function($grid_id$jscomp$13$$){typeof $app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$=function($grid_id$jscomp$14$$,$meta68930$$){this.$grid_id$=$grid_id$jscomp$14$$;this.$meta68930$=$meta68930$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4239$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_stop_grid_layout_editing$$},$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68931$$,$meta68930__$1$$){return new $app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$(this.$grid_id$,
$meta68930__$1$$)},$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68930$},$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2376$$,$state$jscomp$753$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$753$$,
$APP.$cljs$cst$2200$workspace_grid_edition$$,$APP.$cljs$core$dissoc$$,this.$grid_id$)});return new $app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing_68929$$($grid_id$jscomp$13$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid_layout$editor$clear_selection$$=function($grid_id$jscomp$9$$){typeof $app$main$data$workspace$grid_layout$editor$clear_selection_68910$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$clear_selection_68910$$=function($grid_id$jscomp$10$$,$meta68911$$){this.$grid_id$=$grid_id$jscomp$10$$;this.$meta68911$=$meta68911$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4237$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_clear_selection$$},$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68912$$,$meta68911__$1$$){return new $app$main$data$workspace$grid_layout$editor$clear_selection_68910$$(this.$grid_id$,
$meta68911__$1$$)},$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68911$},$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$clear_selection_68910$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2374$$,$state$jscomp$751$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$751$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,this.$grid_id$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1906$selected$$)});return new $app$main$data$workspace$grid_layout$editor$clear_selection_68910$$($grid_id$jscomp$9$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$clear_area_selection$$=function(){typeof $app$main$data$workspace$path$selection$clear_area_selection_68188$$==="undefined"&&($app$main$data$workspace$path$selection$clear_area_selection_68188$$=function($meta68189$$){this.$meta68189$=$meta68189$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4129$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_clear_area_selection$$},$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68190$$,$meta68189__$1$$){return new $app$main$data$workspace$path$selection$clear_area_selection_68188$$($meta68189__$1$$)},$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68189$},$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$clear_area_selection_68188$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2265$$,$state$jscomp$664$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$664$$,$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1589$selrect$$)});
return new $app$main$data$workspace$path$selection$clear_area_selection_68188$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$drawing$close_path_drag_end$$=function(){typeof $app$main$data$workspace$path$drawing$close_path_drag_end_68215$$==="undefined"&&($app$main$data$workspace$path$drawing$close_path_drag_end_68215$$=function($meta68216$$){this.$meta68216$=$meta68216$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4104$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_drawing_SLASH_close_path_drag_end$$},$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68217$$,$meta68216__$1$$){return new $app$main$data$workspace$path$drawing$close_path_drag_end_68215$$($meta68216__$1$$)},$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68216$},$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$close_path_drag_end_68215$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2241_id$jscomp$650$$,$state$jscomp$640$$){$_$jscomp$2241_id$jscomp$650$$=$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$640$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$640$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2241_id$jscomp$650$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$3426$prev_handler$$)});return new $app$main$data$workspace$path$drawing$close_path_drag_end_68215$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$activate_colorpicker_image$$=function(){typeof $app$main$data$workspace$colors$activate_colorpicker_image_69552$$==="undefined"&&($app$main$data$workspace$colors$activate_colorpicker_image_69552$$=function($meta69553$$){this.$meta69553$=$meta69553$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4068$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_activate_colorpicker_image$$},$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69554$$,$meta69553__$1$$){return new $app$main$data$workspace$colors$activate_colorpicker_image_69552$$($meta69553__$1$$)},$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69553$},$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$activate_colorpicker_image_69552$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2216$$,$state$jscomp$610$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$610$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$42$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$42$$,
$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1596$image$$),$APP.$cljs$cst$4046$editing_stop$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,$APP.$cljs$cst$1708$gradient$$]))})});return new $app$main$data$workspace$colors$activate_colorpicker_image_69552$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$finalize_colorpicker$$=function(){typeof $app$main$data$workspace$colors$finalize_colorpicker_69485$$==="undefined"&&($app$main$data$workspace$colors$finalize_colorpicker_69485$$=function($meta69486$$){this.$meta69486$=$meta69486$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4055$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_finalize_colorpicker$$},$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69487$$,$meta69486__$1$$){return new $app$main$data$workspace$colors$finalize_colorpicker_69485$$($meta69486__$1$$)},$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69486$},$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$finalize_colorpicker_69485$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2201$$,$state$jscomp$596$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$596$$,$APP.$cljs$cst$2199$colorpicker$$)});return new $app$main$data$workspace$colors$finalize_colorpicker_69485$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$clear_color_components$$=function($data$jscomp$374$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($data$jscomp$374$$,$APP.$cljs$cst$2955$hex$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$744$alpha$$,$APP.$cljs$cst$1727$r$$,$APP.$cljs$cst$1728$g$$,$APP.$cljs$cst$1509$b$$,$APP.$cljs$cst$1884$h$$,$APP.$cljs$cst$4052$s$$,$APP.$cljs$cst$2947$v$$,$APP.$cljs$cst$1596$image$$]))};
$app$main$data$workspace$texts$clean_text_modifier$$=function($id$jscomp$614$$){typeof $app$main$data$workspace$texts$clean_text_modifier_68862$$==="undefined"&&($app$main$data$workspace$texts$clean_text_modifier_68862$$=function($id$jscomp$615$$,$meta68863$$){this.id=$id$jscomp$615$$;this.$meta68863$=$meta68863$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3864$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_clean_text_modifier$$},$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68864$$,$meta68863__$1$$){return new $app$main$data$workspace$texts$clean_text_modifier_68862$$(this.id,$meta68863__$1$$)},$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68863$},$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$clean_text_modifier_68862$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2085$$,$state$jscomp$531$$){var $self__$jscomp$4853$$=this,$current_value$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$531$$,
$APP.$cljs$cst$2198$workspace_text_modifier$$),$self__$jscomp$4853$$.id);return $APP.$beicon$v2$core$delay$$(100,(0,$APP.$beicon$v2$core$of$$)(function($state__$1$jscomp$25$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$25$$,$APP.$cljs$cst$2198$workspace_text_modifier$$),$self__$jscomp$4853$$.id)===$current_value$$?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state__$1$jscomp$25$$,$APP.$cljs$cst$2198$workspace_text_modifier$$,
$APP.$cljs$core$dissoc$$,$self__$jscomp$4853$$.id):$state__$1$jscomp$25$$}))});return new $app$main$data$workspace$texts$clean_text_modifier_68862$$($id$jscomp$614$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$update_editor$$=function($editor$$){typeof $app$main$data$workspace$texts$update_editor_68502$$==="undefined"&&($app$main$data$workspace$texts$update_editor_68502$$=function($editor$jscomp$1$$,$meta68503$$){this.editor=$editor$jscomp$1$$;this.$meta68503$=$meta68503$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$update_editor_68502$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$texts$update_editor_68502$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3840$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_editor$$},$app$main$data$workspace$texts$update_editor_68502$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68504$$,$meta68503__$1$$){return new $app$main$data$workspace$texts$update_editor_68502$$(this.editor,$meta68503__$1$$)},$app$main$data$workspace$texts$update_editor_68502$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68503$},$app$main$data$workspace$texts$update_editor_68502$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_editor_68502$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2060$$,$state$jscomp$506$$){return this.editor!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$506$$,$APP.$cljs$cst$2183$workspace_editor$$,this.editor):$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$506$$,
$APP.$cljs$cst$2183$workspace_editor$$)});return new $app$main$data$workspace$texts$update_editor_68502$$($editor$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$specialized_panel$clear_specialized_panel$$=function(){typeof $app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$==="undefined"&&($app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$=function($meta66028$$){this.$meta66028$=$meta66028$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3633$app_DOT_main_DOT_data_DOT_workspace_DOT_specialized_panel_SLASH_clear_specialized_panel$$},$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66029$$,$meta66028__$1$$){return new $app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$($meta66028__$1$$)},
$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66028$},$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1915$$,$state$jscomp$380$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$380$$,
$APP.$cljs$cst$2202$specialized_panel$$)});return new $app$main$data$workspace$specialized_panel$clear_specialized_panel_66027$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$project$finalize_project$$=function($project_id$jscomp$8$$){typeof $app$main$data$project$finalize_project_54903$$==="undefined"&&($app$main$data$project$finalize_project_54903$$=function($project_id$jscomp$9$$,$meta54904$$){this.$project_id$=$project_id$jscomp$9$$;this.$meta54904$=$meta54904$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$project$finalize_project_54903$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$project$finalize_project_54903$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3387$app_DOT_main_DOT_data_DOT_project_SLASH_finalize_project$$},$app$main$data$project$finalize_project_54903$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54905$$,$meta54904__$1$$){return new $app$main$data$project$finalize_project_54903$$(this.$project_id$,$meta54904__$1$$)},$app$main$data$project$finalize_project_54903$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54904$},$app$main$data$project$finalize_project_54903$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$project$finalize_project_54903$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1791_project_id_SINGLEQUOTE_$$,$state$jscomp$275$$){$_$jscomp$1791_project_id_SINGLEQUOTE_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$275$$,$APP.$cljs$cst$2134$current_project_id$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1791_project_id_SINGLEQUOTE_$$,
this.$project_id$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$275$$,$APP.$cljs$cst$2134$current_project_id$$):$state$jscomp$275$$});return new $app$main$data$project$finalize_project_54903$$($project_id$jscomp$8$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$persistence$discard_persistence_state$$=function(){typeof $app$main$data$persistence$discard_persistence_state_54685$$==="undefined"&&($app$main$data$persistence$discard_persistence_state_54685$$=function($meta54686$$){this.$meta54686$=$meta54686$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3105$app_DOT_main_DOT_data_DOT_persistence_SLASH_discard_persistence_state$$},$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54687$$,$meta54686__$1$$){return new $app$main$data$persistence$discard_persistence_state_54685$$($meta54686__$1$$)},$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54686$},$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$discard_persistence_state_54685$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1637$$,$state$jscomp$172$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$172$$,$APP.$cljs$cst$2138$persistence$$)});return new $app$main$data$persistence$discard_persistence_state_54685$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_annotations_id_for_create$$=function($id$jscomp$739$$){typeof $app$main$data$workspace$set_annotations_id_for_create_70540$$==="undefined"&&($app$main$data$workspace$set_annotations_id_for_create_70540$$=function($id$jscomp$740$$,$meta70541$$){this.id=$id$jscomp$740$$;this.$meta70541$=$meta70541$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4370$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_annotations_id_for_create$$},$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70542$$,$meta70541__$1$$){return new $app$main$data$workspace$set_annotations_id_for_create_70540$$(this.id,$meta70541__$1$$)},
$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70541$},$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2500$$,$state$jscomp$854$$){return $APP.$cljs$core$truth_$$(this.id)?$APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$854$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4369$workspace_annotations$$,$APP.$cljs$cst$4371$id_for_create$$],null),this.id),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4369$workspace_annotations$$,$APP.$cljs$cst$3420$expanded$$],null),!0):$APP.$app$common$data$dissoc_in$$($state$jscomp$854$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$4369$workspace_annotations$$,$APP.$cljs$cst$4371$id_for_create$$],null))},$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_annotations_id_for_create_70540$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return this.id!=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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-component-annotation"],null))):null});return new $app$main$data$workspace$set_annotations_id_for_create_70540$$($id$jscomp$739$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$util$text$content$to_dom$set_dataset$$=function($element$jscomp$65$$,$G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$){$G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$=$APP.$cljs$core$seq$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$);for(var $c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$=null,$G__53825_count__53720$$=0,$i__53721$$=0;;)if($i__53721$$<$G__53825_count__53720$$){var $data_value_vec__53731$$=
$c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__53721$$),$G__53824_data_name$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($data_value_vec__53731$$,0,null);$data_value_vec__53731$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($data_value_vec__53731$$,1,null);$APP.$app$util$dom$set_data_BANG_$$($element$jscomp$65$$,$APP.$cljs$core$name$$($G__53824_data_name$$),$data_value_vec__53731$$);$i__53721$$+=1}else if($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$=
$APP.$cljs$core$seq$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$))$APP.$cljs$core$chunked_seq_QMARK_$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$)?($c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$=$APP.$cljs$core$_chunked_first$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$),$G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$=$APP.$cljs$core$_chunked_rest$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$),
$G__53824_data_name$$=$c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$,$G__53825_count__53720$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$),$c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$=$G__53824_data_name$$):($c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$=$APP.$cljs$core$first$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$),$G__53824_data_name$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$,
0,null),$data_value_vec__53731$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$,1,null),$APP.$app$util$dom$set_data_BANG_$$($element$jscomp$65$$,$APP.$cljs$core$name$$($G__53824_data_name$$),$data_value_vec__53731$$),$G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$=$APP.$cljs$core$next$$($G__53823_data$jscomp$263_seq__53718_seq__53718__$1_temp__5825__auto__$jscomp$164$$),$c__5548__auto__$jscomp$16_chunk__53719_vec__53738$$=
null,$G__53825_count__53720$$=0),$i__53721$$=0;else break};
$app$main$ui$hooks$use_rxsub$$=function(){var $ob$jscomp$83$$=$APP.$app$main$streams$mouse_position$$,$vec__52065$$=(0,$APP.$rumext$v2$useState$$)(function(){return($ob$jscomp$83$$!=null?$ob$jscomp$83$$.$cljs$lang$protocol_mask$partition0$$&32768||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$ob$jscomp$83$$.$cljs$core$IDeref$$||($ob$jscomp$83$$.$cljs$lang$protocol_mask$partition0$$?0:$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IDeref$$,$ob$jscomp$83$$)):$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IDeref$$,
$ob$jscomp$83$$))?$APP.$cljs$core$_deref$$($ob$jscomp$83$$):null}),$state$jscomp$145$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__52065$$,0,null),$reset_state_BANG_$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__52065$$,1,null);(0,$APP.$rumext$v2$useEffect$$)(function(){var $sub$jscomp$2$$=$APP.$beicon$v2$core$sub_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($ob$jscomp$83$$,function($p1__52064_SHARP_$$){return $reset_state_BANG_$$.$cljs$core$IFn$_invoke$arity$1$?
$reset_state_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($p1__52064_SHARP_$$):$reset_state_BANG_$$($p1__52064_SHARP_$$)});return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$2$$)}},[$ob$jscomp$83$$]);return $state$jscomp$145$$};
$app$common$geom$shapes$intersect$intersects_line_ellipse_QMARK_$$=function($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$,$a$jscomp$365_map__48827__$1_p__48821$$){var $determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$,0,null),$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$=$APP.$cljs$core$__destructure_map$$($determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$);$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$,$APP.$cljs$cst$1499$x$$);$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$,$APP.$cljs$cst$1500$y$$);$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$,1,null);var $map__48826__$1_y2$jscomp$32$$=
$APP.$cljs$core$__destructure_map$$($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$);$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48826__$1_y2$jscomp$32$$,$APP.$cljs$cst$1499$x$$);$map__48826__$1_y2$jscomp$32$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48826__$1_y2$jscomp$32$$,$APP.$cljs$cst$1500$y$$);$a$jscomp$365_map__48827__$1_p__48821$$=$APP.$cljs$core$__destructure_map$$($a$jscomp$365_map__48827__$1_p__48821$$);
var $cx$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($a$jscomp$365_map__48827__$1_p__48821$$,$APP.$cljs$cst$1882$cx$$),$cy$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($a$jscomp$365_map__48827__$1_p__48821$$,$APP.$cljs$cst$1883$cy$$),$rx$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($a$jscomp$365_map__48827__$1_p__48821$$,$APP.$cljs$cst$1865$rx$$),$ry$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($a$jscomp$365_map__48827__$1_p__48821$$,
$APP.$cljs$cst$1866$ry$$);$a$jscomp$365_map__48827__$1_p__48821$$=$app$common$math$sq$$($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$-$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$)/($rx$jscomp$13$$*$rx$jscomp$13$$)+$app$common$math$sq$$($map__48826__$1_y2$jscomp$32$$-$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$)/($ry$jscomp$7$$*$ry$jscomp$7$$);$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$=(2*$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$*($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$-
$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$)-2*$cx$jscomp$11$$*($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$-$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$))/($rx$jscomp$13$$*$rx$jscomp$13$$)+(2*$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$*($map__48826__$1_y2$jscomp$32$$-$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$)-2*$cy$jscomp$12$$*($map__48826__$1_y2$jscomp$32$$-$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$))/($ry$jscomp$7$$*$ry$jscomp$7$$);
$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$=($determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$*$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$+$cx$jscomp$11$$*$cx$jscomp$11$$+-2*$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$*$cx$jscomp$11$$)/($rx$jscomp$13$$*$rx$jscomp$13$$)+($c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$*$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$+$cy$jscomp$12$$*$cy$jscomp$12$$+-2*$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$*
$cy$jscomp$12$$)/($ry$jscomp$7$$*$ry$jscomp$7$$)+-1;$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$=$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$*$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$-4*$a$jscomp$365_map__48827__$1_p__48821$$*$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$;if($APP.$app$common$math$almost_zero_QMARK_$$($a$jscomp$365_map__48827__$1_p__48821$$)){if($APP.$app$common$math$almost_zero_QMARK_$$($b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$))return null;
$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$=-$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$/$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$;return $determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$>=0&&$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$<=1}return $determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$>=0?($c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$=(-$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$+Math.sqrt($determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$))/
(2*$a$jscomp$365_map__48827__$1_p__48821$$),$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$=(-$b$jscomp$294_map__48826_p__48820_x2$jscomp$30$$-Math.sqrt($determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$))/(2*$a$jscomp$365_map__48827__$1_p__48821$$),$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$>=0&&$c$jscomp$278_map__48825__$1_t1$jscomp$9_y1$jscomp$34$$<=1||$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$>=0&&$determ_map__48825_t$jscomp$87_t2$jscomp$10_x1$jscomp$32$$<=
1):null};
$app$common$types$color$hex__GT_hsv$$=function($JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$){$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$=$APP.$app$common$types$color$hex__GT_rgb$$($JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$);var $hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$,0,
null),$green$jscomp$inline_7847$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$,1,null),$blue$jscomp$inline_7848$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$,2,null);$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$=
$APP.$app$common$data$max$$.$cljs$core$IFn$_invoke$arity$3$($hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$,$green$jscomp$inline_7847$$,$blue$jscomp$inline_7848$$);var $min$jscomp$inline_7850_sat$jscomp$inline_7852$$=$APP.$app$common$data$min$$.$cljs$core$IFn$_invoke$arity$3$($hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$,$green$jscomp$inline_7847$$,$blue$jscomp$inline_7848$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($min$jscomp$inline_7850_sat$jscomp$inline_7852$$,
$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$))$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[0,0,$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$],null);else{var $delta$jscomp$inline_7851$$=$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$-
$min$jscomp$inline_7850_sat$jscomp$inline_7852$$;$min$jscomp$inline_7850_sat$jscomp$inline_7852$$=$delta$jscomp$inline_7851$$/$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$;$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$=60*($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$,$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$)?
($green$jscomp$inline_7847$$-$blue$jscomp$inline_7848$$)/$delta$jscomp$inline_7851$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($green$jscomp$inline_7847$$,$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$)?2+($blue$jscomp$inline_7848$$-$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$)/$delta$jscomp$inline_7851$$:4+($hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$-$green$jscomp$inline_7847$$)/
$delta$jscomp$inline_7851$$);$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$=$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$<0?$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$+360:$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$;$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$=new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$>360?$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$-360:$hue__$1$jscomp$inline_7853_hue__$2$jscomp$inline_7854_red$jscomp$inline_7846$$,$min$jscomp$inline_7850_sat$jscomp$inline_7852$$,$JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$],null)}return $JSCompiler_inline_result$jscomp$1477_max$jscomp$inline_7849_p__45110$jscomp$inline_7845_v$jscomp$506$$};
$app$common$types$color$sort_colors$$=function($a$jscomp$349_ah$jscomp$1$$,$b$jscomp$277_bh$jscomp$1$$){var $av_vec__45209$$=$app$common$types$color$hex__GT_hsv$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($a$jscomp$349_ah$jscomp$1$$));$a$jscomp$349_ah$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($av_vec__45209$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($av_vec__45209$$,1,null);$av_vec__45209$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($av_vec__45209$$,
2,null);var $bv_vec__45212$$=$app$common$types$color$hex__GT_hsv$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($b$jscomp$277_bh$jscomp$1$$));$b$jscomp$277_bh$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bv_vec__45212$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bv_vec__45212$$,1,null);$bv_vec__45212$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bv_vec__45212$$,2,null);return $APP.$cljs$core$compare$$($APP.$app$common$math$floor$$($a$jscomp$349_ah$jscomp$1$$/
60*8)/8*100+$av_vec__45209$$/255*10,$APP.$app$common$math$floor$$($b$jscomp$277_bh$jscomp$1$$/60*8)/8*100+$bv_vec__45212$$/255*10)};
$rumext$v2$use_debounce$$=function($value$jscomp$387$$){var $vec__44863$$=(0,$APP.$rumext$v2$useState$$)($value$jscomp$387$$),$state$jscomp$46$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__44863$$,0,null),$update_fn$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__44863$$,1,null),$update_fn__$1$$=(0,$APP.$rumext$v2$useMemo$$)(function(){return $APP.$goog$functions$debounce$$($update_fn$jscomp$3$$,100)},[100]);(0,$APP.$rumext$v2$useEffect$$)(function(){return $update_fn__$1$$.$cljs$core$IFn$_invoke$arity$1$?
$update_fn__$1$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$387$$):$update_fn__$1$$($value$jscomp$387$$)},[$value$jscomp$387$$]);return $state$jscomp$46$$};
$app$common$types$pages_list$get_last_page$$=function($file_data$jscomp$14$$){var $id$jscomp$246$$=$APP.$cljs$core$last$$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($file_data$jscomp$14$$));return $APP.$cljs$core$truth_$$($id$jscomp$246$$)?$APP.$app$common$types$pages_list$get_page$$($file_data$jscomp$14$$,$id$jscomp$246$$):null};
$app$main$data$workspace$clear_assets_section_open$$=function(){typeof $app$main$data$workspace$clear_assets_section_open_70368$$==="undefined"&&($app$main$data$workspace$clear_assets_section_open_70368$$=function($meta70369$$){this.$meta70369$=$meta70369$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4340$app_DOT_main_DOT_data_DOT_workspace_SLASH_clear_assets_section_open$$},$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70370$$,$meta70369__$1$$){return new $app$main$data$workspace$clear_assets_section_open_70368$$($meta70369__$1$$)},$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70369$},$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clear_assets_section_open_70368$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2476$$,$state$jscomp$830$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$830$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$4339$open_status$$],null),$APP.$cljs$core$PersistentArrayMap$EMPTY$$)});return new $app$main$data$workspace$clear_assets_section_open_70368$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker_gradient_opacity$$=function($opacity$jscomp$30$$){typeof $app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$=function($opacity$jscomp$31$$,$meta69497$$){this.opacity=$opacity$jscomp$31$$;this.$meta69497$=$meta69497$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4060$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_gradient_opacity$$},$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69498$$,$meta69497__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$(this.opacity,
$meta69497__$1$$)},$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69497$},$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2203$$,$state$jscomp$598$$){var $self__$jscomp$5182$$=
this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$598$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$31$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$31$$,$APP.$cljs$cst$1718$opacity$$,$self__$jscomp$5182$$.opacity)})});return new $app$main$data$workspace$colors$update_colorpicker_gradient_opacity_69496$$($opacity$jscomp$30$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$clear_token_set_edition$$=function(){typeof $app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$=function($meta71537$$){this.$meta71537$=$meta71537$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4557$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_clear_token_set_edition$$},$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71538$$,$meta71537__$1$$){return new $app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$($meta71537__$1$$)},
$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71537$},$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2579$$,$state$jscomp$912$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$912$$,
$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4554$token_set_edition_id$$)});return new $app$main$data$workspace$tokens$library_edit$clear_token_set_edition_71536$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$comments$handle_comment_layer_click$$=function($position$jscomp$140$$){typeof $app$main$data$workspace$comments$handle_comment_layer_click_68556$$==="undefined"&&($app$main$data$workspace$comments$handle_comment_layer_click_68556$$=function($position$jscomp$141$$,$meta68557$$){this.position=$position$jscomp$141$$;this.$meta68557$=$meta68557$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4159$app_DOT_main_DOT_data_DOT_workspace_DOT_comments_SLASH_handle_comment_layer_click$$},$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68558$$,$meta68557__$1$$){return new $app$main$data$workspace$comments$handle_comment_layer_click_68556$$(this.position,
$meta68557__$1$$)},$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68557$},$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$handle_comment_layer_click_68556$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2297_local$jscomp$8_page_id$jscomp$189$$,$file_id$jscomp$203_state$jscomp$689$$){$_$jscomp$2297_local$jscomp$8_page_id$jscomp$189$$=
$APP.$cljs$cst$2195$comments_local$$.$cljs$core$IFn$_invoke$arity$1$($file_id$jscomp$203_state$jscomp$689$$);if($APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2297_local$jscomp$8_page_id$jscomp$189$$)!=null)return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$comments$close_thread$$());$_$jscomp$2297_local$jscomp$8_page_id$jscomp$189$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($file_id$jscomp$203_state$jscomp$689$$);$file_id$jscomp$203_state$jscomp$689$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($file_id$jscomp$203_state$jscomp$689$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$comments$create_draft$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1660$position$$,this.position,$APP.$cljs$cst$2028$page_id$$,$_$jscomp$2297_local$jscomp$8_page_id$jscomp$189$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$203_state$jscomp$689$$],null)))});return new $app$main$data$workspace$comments$handle_comment_layer_click_68556$$($position$jscomp$140$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$data$workspace$common$initialized_QMARK_$$=function($state$jscomp$368$$){return $APP.$cljs$core$uuid_QMARK_$$($APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$368$$))&&$APP.$cljs$core$uuid_QMARK_$$($APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$368$$))};
$app$main$data$workspace$zoom$finish_zooming$$=function(){typeof $app$main$data$workspace$zoom$finish_zooming_65571$$==="undefined"&&($app$main$data$workspace$zoom$finish_zooming_65571$$=function($meta65572$$){this.$meta65572$=$meta65572$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3477$app_DOT_main_DOT_data_DOT_workspace_DOT_zoom_SLASH_finish_zooming$$},$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65573$$,$meta65572__$1$$){return new $app$main$data$workspace$zoom$finish_zooming_65571$$($meta65572__$1$$)},$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta65572$},$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$zoom$finish_zooming_65571$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1840$$,$state$jscomp$314$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$314$$,$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$3478$zooming$$)});return new $app$main$data$workspace$zoom$finish_zooming_65571$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$errors$resolve_error_assoc_message$$=function($JSCompiler_temp$jscomp$1480_error$jscomp$73$$){var $JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$=$APP.$cljs$cst$882$error_SLASH_fn$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1480_error$jscomp$73$$);if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$)){var $JSCompiler_temp_const$jscomp$1482$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$,
$JSCompiler_temp_const$jscomp$1481$$=$APP.$cljs$cst$141$message$$,$G__69901$jscomp$inline_7856$$=$APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1480_error$jscomp$73$$);$JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$=$JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$.$cljs$core$IFn$_invoke$arity$1$?$JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$.$cljs$core$IFn$_invoke$arity$1$($G__69901$jscomp$inline_7856$$):
$JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$($G__69901$jscomp$inline_7856$$);$JSCompiler_temp$jscomp$1480_error$jscomp$73$$=$JSCompiler_temp_const$jscomp$1482$$.call($APP.$cljs$core$assoc$$,$JSCompiler_temp$jscomp$1480_error$jscomp$73$$,$JSCompiler_temp_const$jscomp$1481$$,$JSCompiler_inline_result$jscomp$1484_temp__5823__auto__$jscomp$185$$)}return $JSCompiler_temp$jscomp$1480_error$jscomp$73$$};
$app$main$data$workspace$tokens$errors$resolve_error_message$$=function($G__69899_error$jscomp$72$$){var $temp__5823__auto__$jscomp$184$$=$APP.$cljs$cst$882$error_SLASH_fn$$.$cljs$core$IFn$_invoke$arity$1$($G__69899_error$jscomp$72$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$184$$)?($G__69899_error$jscomp$72$$=$APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($G__69899_error$jscomp$72$$),$temp__5823__auto__$jscomp$184$$.$cljs$core$IFn$_invoke$arity$1$?$temp__5823__auto__$jscomp$184$$.$cljs$core$IFn$_invoke$arity$1$($G__69899_error$jscomp$72$$):
$temp__5823__auto__$jscomp$184$$($G__69899_error$jscomp$72$$)):$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($G__69899_error$jscomp$72$$)};
$app$main$ui$workspace$viewport$utils$format_viewbox$$=function($vbox$jscomp$28$$){return""+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$28$$,0))??"")+" "+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$28$$,0))??"")+" "+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$28$$,
0))??"")+" "+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$28$$,0))??"")};
$app$main$data$workspace$viewport$update_viewport_size$$=function($resize_type$$,$p__69039$$){var $map__69040__$1$$=$APP.$cljs$core$__destructure_map$$($p__69039$$),$width$jscomp$155$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69040__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69040__$1$$,$APP.$cljs$cst$1511$height$$);typeof $app$main$data$workspace$viewport$update_viewport_size_69041$$==="undefined"&&($app$main$data$workspace$viewport$update_viewport_size_69041$$=
function($resize_type$jscomp$1$$,$p__69039$jscomp$1$$,$map__69040$jscomp$1$$,$size$jscomp$129$$,$width$jscomp$156$$,$height$jscomp$139$$,$meta69042$$){this.$resize_type$=$resize_type$jscomp$1$$;this.$p__69039$=$p__69039$jscomp$1$$;this.$map__69040$=$map__69040$jscomp$1$$;this.size=$size$jscomp$129$$;this.width=$width$jscomp$156$$;this.height=$height$jscomp$139$$;this.$meta69042$=$meta69042$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4294$app_DOT_main_DOT_data_DOT_workspace_DOT_viewport_SLASH_update_viewport_size$$},$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69043$$,$meta69042__$1$$){return new $app$main$data$workspace$viewport$update_viewport_size_69041$$(this.$resize_type$,
this.$p__69039$,this.$map__69040$,this.size,this.width,this.height,$meta69042__$1$$)},$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69042$},$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$update_viewport_size_69041$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2426$$,
$state$jscomp$792$$){var $self__$jscomp$5948$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$792$$,$APP.$cljs$cst$1905$workspace_local$$,function($map__69046__$1_p__69045$$){$map__69046__$1_p__69045$$=$APP.$cljs$core$__destructure_map$$($map__69046__$1_p__69045$$);var $hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69046__$1_p__69045$$,$APP.$cljs$cst$2165$vport$$);if($hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$==
null||$APP.$app$common$math$almost_zero_QMARK_$$($self__$jscomp$5948$$.width)||$APP.$app$common$math$almost_zero_QMARK_$$($self__$jscomp$5948$$.height))return $map__69046__$1_p__69045$$;var $vbox_x_SINGLEQUOTE__wprop$jscomp$1$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$)/$self__$jscomp$5948$$.width;$hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$)/
$self__$jscomp$5948$$.height;var $vbox$jscomp$26$$=$APP.$cljs$cst$1910$vbox$$.$cljs$core$IFn$_invoke$arity$1$($map__69046__$1_p__69045$$),$vbox_x$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$26$$),$vbox_y$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$26$$),$vbox_width$jscomp$1$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$26$$),$vbox_height$jscomp$1$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$26$$),
$vbox_width_SINGLEQUOTE_$$=$vbox_width$jscomp$1$$/$vbox_x_SINGLEQUOTE__wprop$jscomp$1$$,$vbox_height_SINGLEQUOTE_$$=$vbox_height$jscomp$1$$/$hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$;$vbox_x_SINGLEQUOTE__wprop$jscomp$1$$=function(){var $G__69048$$=$self__$jscomp$5948$$.$resize_type$;switch($G__69048$$ instanceof $APP.$cljs$core$Keyword$$?$G__69048$$.$fqn$:null){case "left":return $vbox_x$$+($vbox_width$jscomp$1$$-$vbox_width_SINGLEQUOTE_$$);case "right":return $vbox_x$$;default:return $vbox_x$$+
($vbox_width$jscomp$1$$-$vbox_width_SINGLEQUOTE_$$)/2}}();$hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$=function(){var $G__69049$$=$self__$jscomp$5948$$.$resize_type$;switch($G__69049$$ instanceof $APP.$cljs$core$Keyword$$?$G__69049$$.$fqn$:null){case "top":return $vbox_y$$+($vbox_height$jscomp$1$$-$vbox_height_SINGLEQUOTE_$$);case "bottom":return $vbox_y$$;default:return $vbox_y$$+($vbox_height$jscomp$1$$-$vbox_height_SINGLEQUOTE_$$)/2}}();return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69046__$1_p__69045$$,
$APP.$cljs$cst$2165$vport$$,$self__$jscomp$5948$$.size),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$cst$1499$x$$],null),$vbox_x_SINGLEQUOTE__wprop$jscomp$1$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$cst$1500$y$$],null),$hprop$jscomp$1_vbox_y_SINGLEQUOTE__vport$jscomp$7$$),new $APP.$cljs$core$PersistentVector$$(null,2,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$cst$288$width$$],null),$vbox_width_SINGLEQUOTE_$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$cst$1511$height$$],null),$vbox_height_SINGLEQUOTE_$$)})});return new $app$main$data$workspace$viewport$update_viewport_size_69041$$($resize_type$$,$p__69039$$,$map__69040__$1$$,$map__69040__$1$$,$width$jscomp$155$$,$height$jscomp$138$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$drawing$set_default_size$$=function($width$jscomp$149$$,$height$jscomp$133$$){typeof $app$main$data$workspace$drawing$change_preset_68494$$==="undefined"&&($app$main$data$workspace$drawing$change_preset_68494$$=function($width$jscomp$150$$,$height$jscomp$134$$,$meta68495$$){this.width=$width$jscomp$150$$;this.height=$height$jscomp$134$$;this.$meta68495$=$meta68495$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4155$app_DOT_main_DOT_data_DOT_workspace_DOT_drawing_SLASH_change_preset$$},$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68496$$,$meta68495__$1$$){return new $app$main$data$workspace$drawing$change_preset_68494$$(this.width,this.height,$meta68495__$1$$)},$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68495$},$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$drawing$change_preset_68494$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2294$$,$state$jscomp$687$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$687$$,$APP.$cljs$cst$2149$workspace_drawing$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,
this.width,$APP.$cljs$cst$1511$height$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.height]))});return new $app$main$data$workspace$drawing$change_preset_68494$$($width$jscomp$149$$,$height$jscomp$133$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$transforms$fix_init_point$$=function($initial$jscomp$16$$,$G__67323__$1_handler$jscomp$30$$,$shape$jscomp$532_x$jscomp$1188$$){var $height$jscomp$119_selrect$jscomp$60$$=$shape$jscomp$532_x$jscomp$1188$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$532_x$jscomp$1188$$,$APP.$cljs$cst$1589$selrect$$);$shape$jscomp$532_x$jscomp$1188$$=$height$jscomp$119_selrect$jscomp$60$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$119_selrect$jscomp$60$$,
$APP.$cljs$cst$1499$x$$);var $y$jscomp$423$$=$height$jscomp$119_selrect$jscomp$60$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$119_selrect$jscomp$60$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$133$$=$height$jscomp$119_selrect$jscomp$60$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$119_selrect$jscomp$60$$,$APP.$cljs$cst$288$width$$);$height$jscomp$119_selrect$jscomp$60$$=$height$jscomp$119_selrect$jscomp$60$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$119_selrect$jscomp$60$$,
$APP.$cljs$cst$1511$height$$);$G__67323__$1_handler$jscomp$30$$=$G__67323__$1_handler$jscomp$30$$ instanceof $APP.$cljs$core$Keyword$$?$G__67323__$1_handler$jscomp$30$$.$fqn$:null;switch($G__67323__$1_handler$jscomp$30$$){case "left":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$);case "top":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$);
case "top-left":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$),$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$);case "bottom-left":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$),$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$+
$height$jscomp$119_selrect$jscomp$60$$);case "right":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$+$width$jscomp$133$$);case "top-right":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$+$width$jscomp$133$$),$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$);case "bottom-right":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,
$APP.$cljs$cst$1499$x$$,$shape$jscomp$532_x$jscomp$1188$$+$width$jscomp$133$$),$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$+$height$jscomp$119_selrect$jscomp$60$$);case "bottom":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$16$$,$APP.$cljs$cst$1500$y$$,$y$jscomp$423$$+$height$jscomp$119_selrect$jscomp$60$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__67323__$1_handler$jscomp$30$$)].join(""));}};
$app$main$data$workspace$tokens$library_edit$start_token_set_creation$$=function($path$jscomp$252$$){typeof $app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$=function($path$jscomp$253$$,$meta71532$$){this.path=$path$jscomp$253$$;this.$meta71532$=$meta71532$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4555$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_start_token_set_creation$$},$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71533$$,$meta71532__$1$$){return new $app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$(this.path,
$meta71532__$1$$)},$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71532$},$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2578$$,$state$jscomp$911$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$911$$,
$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4556$token_set_new_path$$,this.path)});return new $app$main$data$workspace$tokens$library_edit$start_token_set_creation_71531$$($path$jscomp$252$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$stop_picker$$=function(){typeof $app$main$data$workspace$colors$stop_picker_69127$$==="undefined"&&($app$main$data$workspace$colors$stop_picker_69127$$=function($meta69128$$){this.$meta69128$=$meta69128$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4015$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_stop_picker$$},$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69129$$,$meta69128__$1$$){return new $app$main$data$workspace$colors$stop_picker_69127$$($meta69128__$1$$)},$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69128$},$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$stop_picker_69127$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2170$$,$state$jscomp$573$$){return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$573$$,$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$4016$picked_color_select$$,$APP.$cljs$cst$4017$picked_shift_QMARK_$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$4014$picking_color_QMARK_$$],null),!1)});return new $app$main$data$workspace$colors$stop_picker_69127$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$start_picker$$=function(){typeof $app$main$data$workspace$colors$start_picker_69115$$==="undefined"&&($app$main$data$workspace$colors$start_picker_69115$$=function($meta69116$$){this.$meta69116$=$meta69116$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$start_picker_69115$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$start_picker_69115$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4013$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_start_picker$$},$app$main$data$workspace$colors$start_picker_69115$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69117$$,$meta69116__$1$$){return new $app$main$data$workspace$colors$start_picker_69115$$($meta69116__$1$$)},$app$main$data$workspace$colors$start_picker_69115$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69116$},$app$main$data$workspace$colors$start_picker_69115$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$start_picker_69115$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2169$$,$state$jscomp$572$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$572$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$4014$picking_color_QMARK_$$],null),!0)});return new $app$main$data$workspace$colors$start_picker_69115$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$show_track_context_menu$$=function($p__70408$$){var $map__70409__$1$$=$APP.$cljs$core$__destructure_map$$($p__70408$$),$grid_id$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70409__$1$$,$APP.$cljs$cst$4353$grid_id$$),$type$jscomp$530$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70409__$1$$,$APP.$cljs$cst$139$type$$),$index$jscomp$361$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70409__$1$$,$APP.$cljs$cst$1779$index$$);
typeof $app$main$data$workspace$show_track_context_menu_70410$$==="undefined"&&($app$main$data$workspace$show_track_context_menu_70410$$=function($p__70408$jscomp$1$$,$map__70409$jscomp$1$$,$params$jscomp$301$$,$grid_id$jscomp$20$$,$type$jscomp$531$$,$index$jscomp$362$$,$meta70411$$){this.$p__70408$=$p__70408$jscomp$1$$;this.$map__70409$=$map__70409$jscomp$1$$;this.params=$params$jscomp$301$$;this.$grid_id$=$grid_id$jscomp$20$$;this.type=$type$jscomp$531$$;this.index=$index$jscomp$362$$;this.$meta70411$=
$meta70411$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4354$app_DOT_main_DOT_data_DOT_workspace_SLASH_show_track_context_menu$$},$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_70412$$,$meta70411__$1$$){return new $app$main$data$workspace$show_track_context_menu_70410$$(this.$p__70408$,this.$map__70409$,this.params,this.$grid_id$,this.type,this.index,$meta70411__$1$$)},$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70411$},$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_track_context_menu_70410$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$show_context_menu$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$(this.params,$APP.$cljs$cst$945$kind$$,$APP.$cljs$cst$4355$grid_track$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4353$grid_id$$,this.$grid_id$,$APP.$cljs$cst$139$type$$,this.type,$APP.$cljs$cst$1779$index$$,this.index]))))});return new $app$main$data$workspace$show_track_context_menu_70410$$($p__70408$$,
$map__70409__$1$$,$map__70409__$1$$,$grid_id$jscomp$19$$,$type$jscomp$530$$,$index$jscomp$361$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$update_versions_state$$=function($version_state$$){typeof $app$main$data$workspace$versions$update_versions_state_71406$$==="undefined"&&($app$main$data$workspace$versions$update_versions_state_71406$$=function($version_state$jscomp$1$$,$meta71407$$){this.$version_state$=$version_state$jscomp$1$$;this.$meta71407$=$meta71407$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4827$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_update_versions_state$$},$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71408$$,$meta71407__$1$$){return new $app$main$data$workspace$versions$update_versions_state_71406$$(this.$version_state$,
$meta71407__$1$$)},$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71407$},$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$update_versions_state_71406$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2668$$,$state$jscomp$973$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$973$$,
$APP.$cljs$cst$4826$workspace_versions$$,$APP.$cljs$core$merge$$,this.$version_state$)});return new $app$main$data$workspace$versions$update_versions_state_71406$$($version_state$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$drawing$change_orientation$$=function($orientation$jscomp$5$$){typeof $app$main$data$workspace$drawing$change_orientation_68490$$==="undefined"&&($app$main$data$workspace$drawing$change_orientation_68490$$=function($orientation$jscomp$6$$,$meta68491$$){this.orientation=$orientation$jscomp$6$$;this.$meta68491$=$meta68491$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4154$app_DOT_main_DOT_data_DOT_workspace_DOT_drawing_SLASH_change_orientation$$},$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68492$$,$meta68491__$1$$){return new $app$main$data$workspace$drawing$change_orientation_68490$$(this.orientation,$meta68491__$1$$)},
$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68491$},$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$drawing$change_orientation_68490$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$,$state$jscomp$686$$){$_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$686$$,$APP.$cljs$cst$2149$workspace_drawing$$);var $map__68493__$1_width_SINGLEQUOTE_$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$);$_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68493__$1_width_SINGLEQUOTE_$jscomp$1$$,$APP.$cljs$cst$288$width$$);var $height$jscomp$132$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68493__$1_width_SINGLEQUOTE_$jscomp$1$$,$APP.$cljs$cst$1511$height$$);$map__68493__$1_width_SINGLEQUOTE_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.orientation,$APP.$cljs$cst$1895$vertical$$)?Math.min($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$,$height$jscomp$132$$):Math.max($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$,$height$jscomp$132$$);$_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.orientation,$APP.$cljs$cst$1895$vertical$$)?Math.max($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$,$height$jscomp$132$$):Math.min($_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$,$height$jscomp$132$$);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$686$$,$APP.$cljs$cst$2149$workspace_drawing$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,$map__68493__$1_width_SINGLEQUOTE_$jscomp$1$$,
$APP.$cljs$cst$1511$height$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$_$jscomp$2293_height_SINGLEQUOTE_$jscomp$1_map__68493_width$jscomp$148$$]))});return new $app$main$data$workspace$drawing$change_orientation_68490$$($orientation$jscomp$5$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$files$variant$get_primary_component$$=function($JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$,$JSCompiler_temp_const$jscomp$1492_component_id$jscomp$32$$){var $JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$=$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$,$JSCompiler_temp_const$jscomp$1492_component_id$jscomp$32$$);
if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$))if($APP.$app$common$types$component$is_variant_QMARK_$$($JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$)){$JSCompiler_temp_const$jscomp$1492_component_id$jscomp$32$$=$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$;var $objects$jscomp$inline_7861_page_id$jscomp$inline_7860$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$);
$objects$jscomp$inline_7861_page_id$jscomp$inline_7860$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$,$APP.$cljs$cst$1614$pages_index$$),$objects$jscomp$inline_7861_page_id$jscomp$inline_7860$$),$APP.$cljs$cst$1615$objects$$);$JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$=
$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$);$JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$inline_7861_page_id$jscomp$inline_7860$$,$APP.$cljs$core$peek$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$inline_7861_page_id$jscomp$inline_7860$$,
$JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$),$APP.$cljs$cst$1598$shapes$$)));$JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$=$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$,$JSCompiler_temp_const$jscomp$1492_component_id$jscomp$32$$.call($APP.$cljs$cst$1611$component_id$$,$JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$))}else $JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$=
$JSCompiler_inline_result$jscomp$1494_temp__5825__auto__$jscomp$175_variant_id$jscomp$inline_7862$$;else $JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$=null;return $JSCompiler_temp$jscomp$1490_JSCompiler_temp$jscomp$1491_data$jscomp$277$$};$cljs$core$TaggedLiteral$$=function($tag$jscomp$13$$,$form$jscomp$3$$){this.tag=$tag$jscomp$13$$;this.form=$form$jscomp$3$$;this.$cljs$lang$protocol_mask$partition0$$=2153775360;this.$cljs$lang$protocol_mask$partition1$$=0};
$cljs$tools$reader$garg$$=function($n$jscomp$174$$){return $APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$([-1===$n$jscomp$174$$?"rest":["p",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($n$jscomp$174$$)].join(""),"__",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$tools$reader$impl$utils$last_id$$,$APP.$cljs$core$inc$$)),"#"].join(""))};
$app$main$data$workspace$versions$fetch_versions$$=function(){typeof $app$main$data$workspace$versions$fetch_versions_71419$$==="undefined"&&($app$main$data$workspace$versions$fetch_versions_71419$$=function($meta71420$$){this.$meta71420$=$meta71420$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4828$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_fetch_versions$$},$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71421$$,$meta71420__$1$$){return new $app$main$data$workspace$versions$fetch_versions_71419$$($meta71420__$1$$)},$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71420$},$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$fetch_versions_71419$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2669_temp__5825__auto__$jscomp$257$$,$state$jscomp$974$$){$_$jscomp$2669_temp__5825__auto__$jscomp$257$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$974$$);return $APP.$cljs$core$truth_$$($_$jscomp$2669_temp__5825__auto__$jscomp$257$$)?$APP.$beicon$v2$core$map$$(function($p1__71418_SHARP_$$){return $app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$109$status$$,$APP.$cljs$cst$4829$loaded$$,$APP.$cljs$cst$142$data$$,$p1__71418_SHARP_$$],null))},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4830$get_file_snapshots$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1628$file_id$$,$_$jscomp$2669_temp__5825__auto__$jscomp$257$$],null))):null});return new $app$main$data$workspace$versions$fetch_versions_71419$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$unlock_version$$=function($id$jscomp$826$$){typeof $app$main$data$workspace$versions$unlock_version_71528$$==="undefined"&&($app$main$data$workspace$versions$unlock_version_71528$$=function($id$jscomp$827$$,$meta71529$$){this.id=$id$jscomp$827$$;this.$meta71529$=$meta71529$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4843$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_unlock_version$$},$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71530$$,$meta71529__$1$$){return new $app$main$data$workspace$versions$unlock_version_71528$$(this.id,$meta71529__$1$$)},$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71529$},$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$unlock_version_71528$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$workspace$versions$fetch_versions$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4844$unlock_file_snapshot$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$266$id$$,this.id],null)))});return new $app$main$data$workspace$versions$unlock_version_71528$$($id$jscomp$826$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$lock_version$$=function($id$jscomp$824$$){typeof $app$main$data$workspace$versions$lock_version_71514$$==="undefined"&&($app$main$data$workspace$versions$lock_version_71514$$=function($id$jscomp$825$$,$meta71515$$){this.id=$id$jscomp$825$$;this.$meta71515$=$meta71515$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$lock_version_71514$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$versions$lock_version_71514$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4841$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_lock_version$$},$app$main$data$workspace$versions$lock_version_71514$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71516$$,$meta71515__$1$$){return new $app$main$data$workspace$versions$lock_version_71514$$(this.id,$meta71515__$1$$)},$app$main$data$workspace$versions$lock_version_71514$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71515$},$app$main$data$workspace$versions$lock_version_71514$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$lock_version_71514$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$workspace$versions$fetch_versions$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4842$lock_file_snapshot$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$266$id$$,this.id],null)))});return new $app$main$data$workspace$versions$lock_version_71514$$($id$jscomp$824$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$delete_version$$=function($id$jscomp$820$$){typeof $app$main$data$workspace$versions$delete_version_71484$$==="undefined"&&($app$main$data$workspace$versions$delete_version_71484$$=function($id$jscomp$821$$,$meta71485$$){this.id=$id$jscomp$821$$;this.$meta71485$=$meta71485$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$delete_version_71484$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$versions$delete_version_71484$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4838$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_delete_version$$},$app$main$data$workspace$versions$delete_version_71484$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71486$$,$meta71485__$1$$){return new $app$main$data$workspace$versions$delete_version_71484$$(this.id,$meta71485__$1$$)},$app$main$data$workspace$versions$delete_version_71484$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71485$},$app$main$data$workspace$versions$delete_version_71484$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$delete_version_71484$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$workspace$versions$fetch_versions$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4839$delete_file_snapshot$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$266$id$$,this.id],null)))});return new $app$main$data$workspace$versions$delete_version_71484$$($id$jscomp$820$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$init_versions_state$$=function(){typeof $app$main$data$workspace$versions$init_versions_state_71394$$==="undefined"&&($app$main$data$workspace$versions$init_versions_state_71394$$=function($meta71395$$){this.$meta71395$=$meta71395$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4825$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_init_versions_state$$},$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71396$$,$meta71395__$1$$){return new $app$main$data$workspace$versions$init_versions_state_71394$$($meta71395__$1$$)},$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71395$},$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2666$$,$state$jscomp$972$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$972$$,$APP.$cljs$cst$4826$workspace_versions$$,$APP.$app$main$data$workspace$versions$default_state$$)},$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$versions$init_versions_state_71394$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$versions$fetch_versions$$.$cljs$core$IFn$_invoke$arity$0$?$app$main$data$workspace$versions$fetch_versions$$.$cljs$core$IFn$_invoke$arity$0$():$app$main$data$workspace$versions$fetch_versions$$())});return new $app$main$data$workspace$versions$init_versions_state_71394$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$rename_file$$=function($id$jscomp$718$$,$name$jscomp$347_name__$1$jscomp$13$$){$name$jscomp$347_name__$1$jscomp$13$$=$app$common$data$macros$truncate$$($name$jscomp$347_name__$1$jscomp$13$$);typeof $app$main$data$workspace$rename_file_70261$$==="undefined"&&($app$main$data$workspace$rename_file_70261$$=function($id$jscomp$719$$,$name$jscomp$348$$,$meta70262$$){this.id=$id$jscomp$719$$;this.name=$name$jscomp$348$$;this.$meta70262$=$meta70262$$;this.$cljs$lang$protocol_mask$partition0$$=
425984;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4313$app_DOT_main_DOT_data_DOT_workspace_SLASH_rename_file$$},$app$main$data$workspace$rename_file_70261$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70263$$,$meta70262__$1$$){return new $app$main$data$workspace$rename_file_70261$$(this.id,
this.name,$meta70262__$1$$)},$app$main$data$workspace$rename_file_70261$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70262$},$app$main$data$workspace$rename_file_70261$$.prototype.$cljs$core$IDeref$_deref$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$723$name$$,this.name],null)},$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2449_file_id$jscomp$254$$,$state$jscomp$807$$){$_$jscomp$2449_file_id$jscomp$254$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$807$$);return $APP.$cljs$core$assoc_in$$($state$jscomp$807$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,
$_$jscomp$2449_file_id$jscomp$254$$,$APP.$cljs$cst$723$name$$],null),this.name)},$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$rename_file_70261$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4314$rename_file$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,
this.id,$APP.$cljs$cst$723$name$$,this.name],null)))});return new $app$main$data$workspace$rename_file_70261$$($id$jscomp$718$$,$name$jscomp$347_name__$1$jscomp$13$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$unlink_file_from_library$$=function($file_id$jscomp$174$$,$library_id$jscomp$49$$){typeof $app$main$data$workspace$libraries$detach_library_68483$$==="undefined"&&($app$main$data$workspace$libraries$detach_library_68483$$=function($file_id$jscomp$175$$,$library_id$jscomp$50$$,$meta68484$$){this.$file_id$=$file_id$jscomp$175$$;this.$library_id$=$library_id$jscomp$50$$;this.$meta68484$=$meta68484$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3829$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_detach_library$$},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68485$$,$meta68484__$1$$){return new $app$main$data$workspace$libraries$detach_library_68483$$(this.$file_id$,
this.$library_id$,$meta68484__$1$$)},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68484$},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"detach-library",$APP.$cljs$cst$1628$file_id$$,this.$file_id$,$APP.$cljs$cst$3806$library_id$$,this.$library_id$],null)},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2055$$,$state$jscomp$484$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$484$$,$APP.$cljs$cst$1901$files$$,
$APP.$cljs$core$dissoc$$,this.$library_id$)},$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_library_68483$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$ignore$$($APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3830$unlink_file_from_library$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,
this.$file_id$,$APP.$cljs$cst$3806$library_id$$,this.$library_id$],null)))});return new $app$main$data$workspace$libraries$detach_library_68483$$($file_id$jscomp$174$$,$library_id$jscomp$49$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$rename_version$$=function($id$jscomp$816$$,$label$jscomp$18$$){typeof $app$main$data$workspace$versions$rename_version_71449$$==="undefined"&&($app$main$data$workspace$versions$rename_version_71449$$=function($id$jscomp$817$$,$label$jscomp$19$$,$meta71450$$){this.id=$id$jscomp$817$$;this.label=$label$jscomp$19$$;this.$meta71450$=$meta71450$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$rename_version_71449$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$rename_version_71449$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4834$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_rename_version$$},$app$main$data$workspace$versions$rename_version_71449$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71451$$,$meta71450__$1$$){return new $app$main$data$workspace$versions$rename_version_71449$$(this.id,this.label,$meta71450__$1$$)},
$app$main$data$workspace$versions$rename_version_71449$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71450$},$app$main$data$workspace$versions$rename_version_71449$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$rename_version_71449$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2671_file_id$jscomp$298$$,$state$jscomp$976$$){$_$jscomp$2671_file_id$jscomp$298$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$976$$);
return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3451$editing$$,null],null)),$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$$,"rename-version",$APP.$cljs$cst$1628$file_id$$,
$_$jscomp$2671_file_id$jscomp$298$$],null))),$APP.$beicon$v2$core$map$$($app$main$data$workspace$versions$fetch_versions$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4835$update_file_snapshot$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$2245$label$$,this.label],null))))});return new $app$main$data$workspace$versions$rename_version_71449$$($id$jscomp$816$$,$label$jscomp$18$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$tinycolor$hex_without_hash_prefix_QMARK_$$=function($color_str$jscomp$1_tc$jscomp$3$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("#",$APP.$cljs$core$first$$($color_str$jscomp$1_tc$jscomp$3$$))?($color_str$jscomp$1_tc$jscomp$3$$=(0,$APP.$shadow$js$shim$module$0tinycolor2$0default$$)($color_str$jscomp$1_tc$jscomp$3$$),$APP.$cuerdas$core$starts_with_QMARK_$$($color_str$jscomp$1_tc$jscomp$3$$.getFormat(),"hex")):null};
$app$main$data$workspace$pages$finalize_page$$=function($file_id$jscomp$228$$,$page_id$jscomp$218$$){typeof $app$main$data$workspace$pages$finalize_page_68850$$==="undefined"&&($app$main$data$workspace$pages$finalize_page_68850$$=function($file_id$jscomp$229$$,$page_id$jscomp$219$$,$meta68851$$){this.$file_id$=$file_id$jscomp$229$$;this.$page_id$=$page_id$jscomp$219$$;this.$meta68851$=$meta68851$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3519$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_finalize_page$$},$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68852$$,$meta68851__$1$$){return new $app$main$data$workspace$pages$finalize_page_68850$$(this.$file_id$,this.$page_id$,$meta68851__$1$$)},$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68851$},$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$finalize_page_68850$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2362_exit_QMARK_$$,$G__68857_state$jscomp$740$$){var $local$jscomp$13$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$1905$workspace_local$$.$cljs$core$IFn$_invoke$arity$1$($G__68857_state$jscomp$740$$),
$APP.$cljs$cst$2161$edition$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1908$edit_path$$,$APP.$cljs$cst$1906$selected$$]));$_$jscomp$2362_exit_QMARK_$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2489$workspace$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__68857_state$jscomp$740$$,$APP.$cljs$cst$2131$route$$),$APP.$cljs$cst$142$data$$),
$APP.$cljs$cst$723$name$$));$G__68857_state$jscomp$740$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($G__68857_state$jscomp$740$$,$APP.$cljs$cst$4220$workspace_cache$$,$APP.$cljs$core$assoc$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$file_id$,this.$page_id$],null),$local$jscomp$13$$),$APP.$cljs$cst$1903$current_page_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1905$workspace_local$$,
$APP.$cljs$cst$4222$workspace_trimmed_page$$,$APP.$cljs$cst$2188$workspace_focus_selected$$]));return $_$jscomp$2362_exit_QMARK_$$?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($G__68857_state$jscomp$740$$,$APP.$cljs$cst$2149$workspace_drawing$$):$G__68857_state$jscomp$740$$});return new $app$main$data$workspace$pages$finalize_page_68850$$($file_id$jscomp$228$$,$page_id$jscomp$218$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$gen_name$$=function($editor$jscomp$3_result$jscomp$292$$){return $editor$jscomp$3_result$jscomp$292$$!=null?($editor$jscomp$3_result$jscomp$292$$=$APP.$app$common$types$text$generate_shape_name$$($editor$jscomp$3_result$jscomp$292$$.getCurrentContent().getPlainText()),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editor$jscomp$3_result$jscomp$292$$,"")?$editor$jscomp$3_result$jscomp$292$$:null):null};
$app$common$types$shape$interactions$allowed_animation_QMARK_$$=function($action_type$jscomp$2$$,$animation_type$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($animation_type$$,$APP.$cljs$cst$1941$push$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1926$navigate$$,$action_type$jscomp$2$$)};
$app$common$geom$shapes$intersect$is_point_inside_nonzero_QMARK_$$=function($p$jscomp$205$$,$G__48852_lines$jscomp$2_lines__$1$$){var $G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$=0,$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$=$APP.$cljs$core$first$$($G__48852_lines$jscomp$2_lines__$1$$);for($G__48852_lines$jscomp$2_lines__$1$$=$APP.$cljs$core$rest$$($G__48852_lines$jscomp$2_lines__$1$$);;)if($APP.$cljs$core$truth_$$($G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$)){var $map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$=
$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$,$map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$=$APP.$cljs$core$__destructure_map$$($p$jscomp$205$$);$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$,$APP.$cljs$cst$1499$x$$);$map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$,
$APP.$cljs$cst$1500$y$$);var $map__48815$jscomp$inline_7870_x1$jscomp$inline_7872$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$,0,null),$map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$=$APP.$cljs$core$__destructure_map$$($map__48815$jscomp$inline_7870_x1$jscomp$inline_7872$$);$map__48815$jscomp$inline_7870_x1$jscomp$inline_7872$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$,
$APP.$cljs$cst$1499$x$$);$map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$,$APP.$cljs$cst$1500$y$$);$map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$,1,null);var $map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$=
$APP.$cljs$core$__destructure_map$$($map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$);$map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$,$APP.$cljs$cst$1499$x$$);$map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$,
$APP.$cljs$cst$1500$y$$);$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$=($map__48816$jscomp$inline_7874_p__48810$jscomp$inline_7866_x2$jscomp$inline_7876$$-$map__48815$jscomp$inline_7870_x1$jscomp$inline_7872$$)*($map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$-$map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$)-($G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$-$map__48815$jscomp$inline_7870_x1$jscomp$inline_7872$$)*($map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$-
$map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$);$G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$=$map__48815__$1$jscomp$inline_7871_y1$jscomp$inline_7873$$<=$map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$?$map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$>$map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$&&$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$>0?$G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$+1:$G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$:
$map__48816__$1$jscomp$inline_7875_y2$jscomp$inline_7877$$<=$map__48811__$1$jscomp$inline_7867_py$jscomp$inline_7869$$&&$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$<0?$G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$-1:$G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$;$G__48851_line$jscomp$24_line_side$jscomp$inline_7878_px$jscomp$inline_7868$$=$APP.$cljs$core$first$$($G__48852_lines$jscomp$2_lines__$1$$);$G__48852_lines$jscomp$2_lines__$1$$=$APP.$cljs$core$rest$$($G__48852_lines$jscomp$2_lines__$1$$)}else return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__48850_wn$jscomp$1_wn$jscomp$inline_7864$$,
0)};
$app$common$geom$shapes$intersect$intersects_lines_QMARK_$$=function($G__48844_lines_a_pending$jscomp$7$$,$lines_b$$){var $G__48843_cur_line$$=$APP.$cljs$core$first$$($G__48844_lines_a_pending$jscomp$7$$);for($G__48844_lines_a_pending$jscomp$7$$=$APP.$cljs$core$rest$$($G__48844_lines_a_pending$jscomp$7$$);;){if($APP.$cljs$core$not$$($G__48843_cur_line$$))return!1;if($APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($cur_line$jscomp$1$$){return function($p1__48796_SHARP__q2$jscomp$inline_7885$$){var $p1$jscomp$inline_7882$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cur_line$jscomp$1$$,
0,null),$q1$jscomp$inline_7883$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cur_line$jscomp$1$$,1,null),$p2$jscomp$inline_7884$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p1__48796_SHARP__q2$jscomp$inline_7885$$,0,null);$p1__48796_SHARP__q2$jscomp$inline_7885$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p1__48796_SHARP__q2$jscomp$inline_7885$$,1,null);var $o1$jscomp$inline_7886$$=$app$common$geom$shapes$intersect$orientation$$($p1$jscomp$inline_7882$$,
$q1$jscomp$inline_7883$$,$p2$jscomp$inline_7884$$),$o2$jscomp$inline_7887$$=$app$common$geom$shapes$intersect$orientation$$($p1$jscomp$inline_7882$$,$q1$jscomp$inline_7883$$,$p1__48796_SHARP__q2$jscomp$inline_7885$$),$o3$jscomp$inline_7888$$=$app$common$geom$shapes$intersect$orientation$$($p2$jscomp$inline_7884$$,$p1__48796_SHARP__q2$jscomp$inline_7885$$,$p1$jscomp$inline_7882$$),$o4$jscomp$inline_7889$$=$app$common$geom$shapes$intersect$orientation$$($p2$jscomp$inline_7884$$,$p1__48796_SHARP__q2$jscomp$inline_7885$$,
$q1$jscomp$inline_7883$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o1$jscomp$inline_7886$$,$o2$jscomp$inline_7887$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o3$jscomp$inline_7888$$,$o4$jscomp$inline_7889$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o1$jscomp$inline_7886$$,$APP.$cljs$cst$1881$coplanar$$)&&$app$common$geom$shapes$intersect$on_segment_QMARK_$$($p2$jscomp$inline_7884$$,$p1$jscomp$inline_7882$$,$q1$jscomp$inline_7883$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o2$jscomp$inline_7887$$,
$APP.$cljs$cst$1881$coplanar$$)&&$app$common$geom$shapes$intersect$on_segment_QMARK_$$($p1__48796_SHARP__q2$jscomp$inline_7885$$,$p1$jscomp$inline_7882$$,$q1$jscomp$inline_7883$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o3$jscomp$inline_7888$$,$APP.$cljs$cst$1881$coplanar$$)&&$app$common$geom$shapes$intersect$on_segment_QMARK_$$($p1$jscomp$inline_7882$$,$p2$jscomp$inline_7884$$,$p1__48796_SHARP__q2$jscomp$inline_7885$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($o4$jscomp$inline_7889$$,
$APP.$cljs$cst$1881$coplanar$$)&&$app$common$geom$shapes$intersect$on_segment_QMARK_$$($q1$jscomp$inline_7883$$,$p2$jscomp$inline_7884$$,$p1__48796_SHARP__q2$jscomp$inline_7885$$)}}($G__48843_cur_line$$,$G__48844_lines_a_pending$jscomp$7$$),$lines_b$$)))return!0;$G__48843_cur_line$$=$APP.$cljs$core$first$$($G__48844_lines_a_pending$jscomp$7$$);$G__48844_lines_a_pending$jscomp$7$$=$APP.$cljs$core$rest$$($G__48844_lines_a_pending$jscomp$7$$)}};
$app$main$data$workspace$libraries$set_file_shared$$=function($id$jscomp$585$$,$is_shared$jscomp$1$$){typeof $app$main$data$workspace$libraries$set_file_shared_68458$$==="undefined"&&($app$main$data$workspace$libraries$set_file_shared_68458$$=function($id$jscomp$586$$,$is_shared$jscomp$2$$,$meta68459$$){this.id=$id$jscomp$586$$;this.$is_shared$=$is_shared$jscomp$2$$;this.$meta68459$=$meta68459$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3816$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_set_file_shared$$},$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68460$$,$meta68459__$1$$){return new $app$main$data$workspace$libraries$set_file_shared_68458$$(this.id,this.$is_shared$,$meta68459__$1$$)},
$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68459$},$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$set_file_shared_68458$$.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$$,
"workspace",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$3817$shared$$,this.$is_shared$],null)},$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2047$$,$state$jscomp$478$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$478$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1901$files$$,this.id],null),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2142$is_shared$$,this.$is_shared$)},$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$set_file_shared_68458$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($JSCompiler_temp_const$jscomp$1499__$jscomp$2048$$,$JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$){$JSCompiler_temp_const$jscomp$1499__$jscomp$2048$$=
$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$)?($JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$=$APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$APP.$cljs$core$vals$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$)))),
$JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$=$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$)?(0,$APP.$beicon$v2$core$of$$)($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$$,
"workspace"],null))):$APP.$beicon$v2$core$empty$$()):$JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$=null;return $APP.$beicon$v2$core$concat$$($JSCompiler_temp_const$jscomp$1499__$jscomp$2048$$,$JSCompiler_temp$jscomp$1500_has_variants_QMARK_$jscomp$inline_7891_state$jscomp$479$$)});return new $app$main$data$workspace$libraries$set_file_shared_68458$$($id$jscomp$585$$,$is_shared$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$fix_deleted_fonts$fix_deleted_font$$=function($node$jscomp$330$$){var $temp__5823__auto__$jscomp$182$$=$APP.$app$main$data$workspace$fix_deleted_fonts$calculate_alternative_font_id$$($APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$330$$));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$182$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($node$jscomp$330$$,$APP.$cljs$cst$1741$font_id$$,$temp__5823__auto__$jscomp$182$$):$node$jscomp$330$$};
$app$main$data$workspace$versions$pin_version$$=function($id$jscomp$822$$){typeof $app$main$data$workspace$versions$pin_version_71501$$==="undefined"&&($app$main$data$workspace$versions$pin_version_71501$$=function($id$jscomp$823$$,$meta71502$$){this.id=$id$jscomp$823$$;this.$meta71502$=$meta71502$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$pin_version_71501$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$versions$pin_version_71501$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4840$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_pin_version$$},$app$main$data$workspace$versions$pin_version_71501$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71503$$,$meta71502__$1$$){return new $app$main$data$workspace$versions$pin_version_71501$$(this.id,$meta71502__$1$$)},$app$main$data$workspace$versions$pin_version_71501$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta71502$},$app$main$data$workspace$versions$pin_version_71501$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$pin_version_71501$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$,$state$jscomp$978$$){var $self__$jscomp$6745$$=this;$_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__71500_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__71500_SHARP_$$),
$self__$jscomp$6745$$.id)},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$978$$,$APP.$cljs$cst$4826$workspace_versions$$),$APP.$cljs$cst$142$data$$));return $APP.$cljs$core$truth_$$($_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$)?($_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,$self__$jscomp$6745$$.id,$APP.$cljs$cst$2245$label$$,
$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$),$APP.$cljs$cst$4832$localized_date$$)],null),$APP.$beicon$v2$core$mapcat$$(function(){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3451$editing$$,$self__$jscomp$6745$$.id],null)),$app$main$data$workspace$versions$fetch_versions$$(),
$APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"pin-version"],null)))},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4835$update_file_snapshot$$,$_$jscomp$2674_params$jscomp$355_temp__5825__auto__$jscomp$258$$))):null});return new $app$main$data$workspace$versions$pin_version_71501$$($id$jscomp$822$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$save_font$$=function($data$jscomp$349$$){typeof $app$main$data$workspace$texts$save_font_68838$$==="undefined"&&($app$main$data$workspace$texts$save_font_68838$$=function($data$jscomp$350$$,$meta68839$$){this.data=$data$jscomp$350$$;this.$meta68839$=$meta68839$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$save_font_68838$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$texts$save_font_68838$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3859$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_save_font$$},$app$main$data$workspace$texts$save_font_68838$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68840$$,$meta68839__$1$$){return new $app$main$data$workspace$texts$save_font_68838$$(this.data,$meta68839__$1$$)},$app$main$data$workspace$texts$save_font_68838$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68839$},$app$main$data$workspace$texts$save_font_68838$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$save_font_68838$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2081_multiple_QMARK_$$,$state$jscomp$527$$){$_$jscomp$2081_multiple_QMARK_$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__68837_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__68837_SHARP_$$,
$APP.$cljs$cst$1600$multiple$$)},$APP.$cljs$core$vals$$(this.data));return $APP.$cljs$core$not$$($_$jscomp$2081_multiple_QMARK_$$)?$APP.$cljs$core$assoc_in$$($state$jscomp$527$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$2163$default_font$$],null),this.data):$state$jscomp$527$$});return new $app$main$data$workspace$texts$save_font_68838$$($data$jscomp$349$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$geom$point$resize$$=function($vector$$,$new_length$$){var $old_length$$=$APP.$app$common$geom$point$length$$($vector$$);return $APP.$app$common$geom$point$scale$$($vector$$,$new_length$$/$old_length$$)};
$app$main$data$workspace$interactions$move_overlay_pos$$=function($pos$jscomp$112$$,$frame_pos$jscomp$1$$,$offset$jscomp$171$$){typeof $app$main$data$workspace$interactions$move_overlay_pos_68733$$==="undefined"&&($app$main$data$workspace$interactions$move_overlay_pos_68733$$=function($pos$jscomp$113$$,$frame_pos$jscomp$2$$,$offset$jscomp$172$$,$meta68734$$){this.pos=$pos$jscomp$113$$;this.$frame_pos$=$frame_pos$jscomp$2$$;this.offset=$offset$jscomp$172$$;this.$meta68734$=$meta68734$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4197$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_move_overlay_pos$$},$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68735$$,$meta68734__$1$$){return new $app$main$data$workspace$interactions$move_overlay_pos_68733$$(this.pos,this.$frame_pos$,this.offset,$meta68734__$1$$)},$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68734$},$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$move_overlay_pos_68733$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2339_pos__$1$jscomp$18$$,$state$jscomp$722$$){$_$jscomp$2339_pos__$1$jscomp$18$$=$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$(this.pos,this.$frame_pos$),this.offset);return $APP.$cljs$core$assoc_in$$($state$jscomp$722$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4195$move_overlay_to$$],null),$_$jscomp$2339_pos__$1$jscomp$18$$)});return new $app$main$data$workspace$interactions$move_overlay_pos_68733$$($pos$jscomp$112$$,
$frame_pos$jscomp$1$$,$offset$jscomp$171$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$streams$get_angle$$=function($node$jscomp$327_rot_angle$$,$handler$jscomp$36_v2$jscomp$28$$,$opposite$jscomp$2_rot_sign_v1$jscomp$36$$){return $node$jscomp$327_rot_angle$$!=null&&$handler$jscomp$36_v2$jscomp$28$$!=null&&$opposite$jscomp$2_rot_sign_v1$jscomp$36$$!=null?($opposite$jscomp$2_rot_sign_v1$jscomp$36$$=$APP.$app$common$geom$point$subtract$$($opposite$jscomp$2_rot_sign_v1$jscomp$36$$,$node$jscomp$327_rot_angle$$),$handler$jscomp$36_v2$jscomp$28$$=$APP.$app$common$geom$point$subtract$$($handler$jscomp$36_v2$jscomp$28$$,
$node$jscomp$327_rot_angle$$),$node$jscomp$327_rot_angle$$=$APP.$app$common$geom$point$angle_with_other$$($opposite$jscomp$2_rot_sign_v1$jscomp$36$$,$handler$jscomp$36_v2$jscomp$28$$),$opposite$jscomp$2_rot_sign_v1$jscomp$36$$=$APP.$app$common$geom$point$angle_sign$$($opposite$jscomp$2_rot_sign_v1$jscomp$36$$,$handler$jscomp$36_v2$jscomp$28$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$node$jscomp$327_rot_angle$$,$opposite$jscomp$2_rot_sign_v1$jscomp$36$$],
null)):null};$promesa$core$all$$=function($promises$jscomp$8$$){return $APP.$promesa$protocols$_fmap$$($promesa$impl$promise$all$$($APP.$cljs$core$into_array$cljs$0core$0IFn$0_invoke$0arity$02$$($promises$jscomp$8$$)),$APP.$cljs$core$vec$$)};
$malli$error$_get$$=function($x$jscomp$829$$,$k$jscomp$436$$){return $APP.$cljs$core$set_QMARK_$$($x$jscomp$829$$)||$APP.$cljs$core$associative_QMARK_$$($x$jscomp$829$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$829$$,$k$jscomp$436$$):$APP.$cljs$core$sequential_QMARK_$$($x$jscomp$829$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$vec$$($x$jscomp$829$$),$k$jscomp$436$$):null};
$app$common$types$tokens_lib$split_set_str_path_prefix$$=function($G__49523__$1_path_str$jscomp$3$$){$G__49523__$1_path_str$jscomp$3$$=$G__49523__$1_path_str$jscomp$3$$==null?null:$APP.$cljs$core$re_matches$$(/^([SG]-)(.*)/,$G__49523__$1_path_str$jscomp$3$$);return $G__49523__$1_path_str$jscomp$3$$==null?null:$APP.$cljs$core$rest$$($G__49523__$1_path_str$jscomp$3$$)};
$app$main$data$workspace$colors$split_color_components$$=function($map__69466__$1_p__69465$$){$map__69466__$1_p__69465$$=$APP.$cljs$core$__destructure_map$$($map__69466__$1_p__69465$$);var $color$jscomp$96_value$jscomp$578$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69466__$1_p__69465$$,$APP.$cljs$cst$1284$color$$),$opacity$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69466__$1_p__69465$$,$APP.$cljs$cst$1718$opacity$$);$color$jscomp$96_value$jscomp$578$$=
$APP.$app$common$types$color$valid_hex_color_QMARK_$$($color$jscomp$96_value$jscomp$578$$)?$color$jscomp$96_value$jscomp$578$$:"#000000";var $b$jscomp$312_vec__69467$$=$APP.$app$common$types$color$hex__GT_rgb$$($color$jscomp$96_value$jscomp$578$$),$r$jscomp$116$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$312_vec__69467$$,0,null),$g$jscomp$138$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$312_vec__69467$$,1,null);$b$jscomp$312_vec__69467$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$312_vec__69467$$,
2,null);var $v$jscomp$589_vec__69470$$=$app$common$types$color$hex__GT_hsv$$($color$jscomp$96_value$jscomp$578$$),$h$jscomp$159$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$589_vec__69470$$,0,null),$s$jscomp$535$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$589_vec__69470$$,1,null);$v$jscomp$589_vec__69470$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$589_vec__69470$$,2,null);return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__69466__$1_p__69465$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$2955$hex$$,$APP.$cljs$core$truth_$$($color$jscomp$96_value$jscomp$578$$)?$color$jscomp$96_value$jscomp$578$$:"000000",$APP.$cljs$cst$744$alpha$$,$APP.$cljs$core$truth_$$($opacity$jscomp$28$$)?$opacity$jscomp$28$$:1,$APP.$cljs$cst$1727$r$$,$r$jscomp$116$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$138$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$312_vec__69467$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$159$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$535$$,$APP.$cljs$cst$2947$v$$,
$v$jscomp$589_vec__69470$$],null)]))};
$app$common$types$color$library_color__GT_color$$=function($lcolor$$,$file_id$$){return $APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$06$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$select_keys$$($lcolor$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1596$image$$,$APP.$cljs$cst$1708$gradient$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1718$opacity$$],
null)),$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($lcolor$$,$APP.$cljs$cst$266$id$$)),$APP.$cljs$cst$1720$ref_file$$,$file_id$$),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$294$path$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($lcolor$$,$APP.$cljs$cst$294$path$$),$APP.$cljs$cst$723$name$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($lcolor$$,$APP.$cljs$cst$723$name$$))};
$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$=function($coll$jscomp$144$$){return $APP.$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$compare$$,$coll$jscomp$144$$)};
$app$main$fonts$get_node_fonts$$=function($node$jscomp$257_result$jscomp$228$$){$node$jscomp$257_result$jscomp$228$$=Array.from($APP.$app$util$dom$query_all$cljs$0core$0IFn$0_invoke$0arity$02$$($node$jscomp$257_result$jscomp$228$$,"[style*\x3dfont]")).reduce(function($obj$jscomp$188$$,$font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$){var $font_variant_font_variant_id$jscomp$2_style$jscomp$12$$=$font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$.style,$font_family$jscomp$2$$=$font_variant_font_variant_id$jscomp$2_style$jscomp$12$$.fontFamily;
$font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$290_map__52764_p__52760$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$290_map__52764_p__52760$$,0,null);$id$jscomp$290_map__52764_p__52760$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$290_map__52764_p__52760$$,1,null);var $family$jscomp$4_map__52764__$1$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$290_map__52764_p__52760$$);
$id$jscomp$290_map__52764_p__52760$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$4_map__52764__$1$$,$APP.$cljs$cst$266$id$$);$family$jscomp$4_map__52764__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$4_map__52764__$1$$,$APP.$cljs$cst$2619$family$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$4_map__52764__$1$$,$font_family$jscomp$2$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$290_map__52764_p__52760$$,
$font_family$jscomp$2$$)},$APP.$cljs$core$_deref$$($APP.$app$main$fonts$fontsdb$$)));$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$,0,null);var $font$jscomp$16$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$,1,null);$font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$16$$);$font_variant_font_variant_id$jscomp$2_style$jscomp$12$$=
$APP.$app$main$fonts$get_variant$$($font$jscomp$16$$,$font_variant_font_variant_id$jscomp$2_style$jscomp$12$$.fontVariant);$font_variant_font_variant_id$jscomp$2_style$jscomp$12$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($font_variant_font_variant_id$jscomp$2_style$jscomp$12$$);return $APP.$app$util$object$set_BANG_$$($obj$jscomp$188$$,""+($font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$??"")+":"+($font_variant_font_variant_id$jscomp$2_style$jscomp$12$$??""),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1741$font_id$$,$font_id$jscomp$3_node__$1$jscomp$66_vec__52757$$,$APP.$cljs$cst$1743$font_variant_id$$,$font_variant_font_variant_id$jscomp$2_style$jscomp$12$$],null))},{});return Object.values($node$jscomp$257_result$jscomp$228$$)};
$app$common$types$shape$layout$cells_in_area$$=function($parent$jscomp$180$$,$first_row$$,$last_row$$,$first_column$$,$last_column$$){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__48235_row$jscomp$16$$){var $column_span$jscomp$8_map__48237__$1$$=$APP.$cljs$core$__destructure_map$$($p__48235_row$jscomp$16$$);$p__48235_row$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($column_span$jscomp$8_map__48237__$1$$,$APP.$cljs$cst$1640$row$$);var $column$jscomp$23$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($column_span$jscomp$8_map__48237__$1$$,$APP.$cljs$cst$216$column$$),$row_span$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($column_span$jscomp$8_map__48237__$1$$,$APP.$cljs$cst$1641$row_span$$);$column_span$jscomp$8_map__48237__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($column_span$jscomp$8_map__48237__$1$$,$APP.$cljs$cst$1642$column_span$$);return($p__48235_row$jscomp$16$$<=$first_row$$&&$first_row$$<=$p__48235_row$jscomp$16$$+
$row_span$jscomp$8$$+-1||$p__48235_row$jscomp$16$$<=$last_row$$&&$last_row$$<=$p__48235_row$jscomp$16$$+$row_span$jscomp$8$$+-1||$first_row$$<=$p__48235_row$jscomp$16$$&&$p__48235_row$jscomp$16$$<=$last_row$$||$first_row$$<=$p__48235_row$jscomp$16$$+$row_span$jscomp$8$$+-1&&$p__48235_row$jscomp$16$$+$row_span$jscomp$8$$+-1<=$last_row$$)&&($column$jscomp$23$$<=$first_column$$&&$first_column$$<=$column$jscomp$23$$+$column_span$jscomp$8_map__48237__$1$$+-1||$column$jscomp$23$$<=$last_column$$&&$last_column$$<=
$column$jscomp$23$$+$column_span$jscomp$8_map__48237__$1$$+-1||$first_column$$<=$column$jscomp$23$$&&$column$jscomp$23$$<=$last_column$$||$first_column$$<=$column$jscomp$23$$+$column_span$jscomp$8_map__48237__$1$$+-1&&$column$jscomp$23$$+$column_span$jscomp$8_map__48237__$1$$+-1<=$last_column$$)},$APP.$cljs$core$vals$$($APP.$cljs$cst$1680$layout_grid_cells$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$180$$)))};
$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$=function($parent$jscomp$178$$,$index$jscomp$159$$){return $APP.$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$03$$($parent$jscomp$178$$,$index$jscomp$159$$,!0)};
$app$common$types$shape$layout$cells_by_column$$=function($var_args$jscomp$915$$){switch(arguments.length){case 2:return $app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$(arguments[0],arguments[1]);case 3:return $APP.$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$03$$(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};
$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$=function($parent$jscomp$176$$,$index$jscomp$157$$){return $APP.$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$03$$($parent$jscomp$176$$,$index$jscomp$157$$,!0)};
$app$common$types$shape$layout$cells_by_row$$=function($var_args$jscomp$914$$){switch(arguments.length){case 2:return $app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$(arguments[0],arguments[1]);case 3:return $APP.$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$03$$(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};
$app$common$types$shape$layout$remove_cell_areas_after$$=function($parent$jscomp$139$$,$prop$jscomp$13$$,$index$jscomp$147$$){var $prop_span$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$13$$,$APP.$cljs$cst$216$column$$)?$APP.$cljs$cst$1642$column_span$$:$APP.$cljs$cst$1641$row_span$$,$cells$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$13$$,$APP.$cljs$cst$216$column$$)?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$?
$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$($parent$jscomp$139$$,$index$jscomp$147$$):$app$common$types$shape$layout$cells_by_column$$($parent$jscomp$139$$,$index$jscomp$147$$):$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$($parent$jscomp$139$$,$index$jscomp$147$$):$app$common$types$shape$layout$cells_by_row$$($parent$jscomp$139$$,$index$jscomp$147$$);
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($parent__$1$jscomp$39$$,$cell$jscomp$1$$){var $area_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1658$area$$,$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$1$$)),$changed_cells$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop$jscomp$13$$),$index$jscomp$147$$+
1)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cell$jscomp$1$$,$prop_span$jscomp$1$$,1),function(){var $G__47930$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$jscomp$1$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,
$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$13$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop$jscomp$13$$)+1,$prop_span$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop_span$jscomp$1$$)-1])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$jscomp$1$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47930$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47930$$}()],null):$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,
$prop$jscomp$13$$)<$index$jscomp$147$$+1&&$index$jscomp$147$$+1<$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop$jscomp$13$$)+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop_span$jscomp$1$$)-1)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cell$jscomp$1$$,$prop_span$jscomp$1$$,$index$jscomp$147$$+2-$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,
$prop$jscomp$13$$)),function(){var $G__47935$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$jscomp$1$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$13$$,$index$jscomp$147$$+2,$prop_span$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,
$prop$jscomp$13$$)+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$1$$,$prop_span$jscomp$1$$)-1)-($index$jscomp$147$$+1)])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$jscomp$1$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47935$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47935$$}()],null):null;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__47928_SHARP_$$,$p2__47929_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__47928_SHARP_$$,
$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p2__47929_SHARP_$$),$p2__47929_SHARP_$$)},$parent__$1$jscomp$39$$,$changed_cells$jscomp$1$$)},$parent$jscomp$139$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__47927_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__47927_SHARP_$$,$prop_span$jscomp$1$$)>1},$cells$jscomp$1$$))};
$app$common$types$shape$layout$remove_cell_areas$$=function($parent$jscomp$138$$,$prop$jscomp$12$$,$index$jscomp$146$$){var $prop_span$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$12$$,$APP.$cljs$cst$216$column$$)?$APP.$cljs$cst$1642$column_span$$:$APP.$cljs$cst$1641$row_span$$,$cells$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$12$$,$APP.$cljs$cst$216$column$$)?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$($parent$jscomp$138$$,
$index$jscomp$146$$):$app$common$types$shape$layout$cells_by_column$$($parent$jscomp$138$$,$index$jscomp$146$$):$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$($parent$jscomp$138$$,$index$jscomp$146$$):$app$common$types$shape$layout$cells_by_row$$($parent$jscomp$138$$,$index$jscomp$146$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($parent__$1$jscomp$38$$,
$cell$$){var $area_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1658$area$$,$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$$)),$changed_cells$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$),$index$jscomp$146$$+1)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cell$$,
$prop_span$$,1),function(){var $G__47922$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$12$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)+1,$prop_span$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,
$prop_span$$)-1])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47922$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47922$$}()],null):$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)<$index$jscomp$146$$+1&&$index$jscomp$146$$+1<$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop_span$$)-
1)?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cell$$,$prop_span$$,$index$jscomp$146$$+1-$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)),function(){var $G__47923$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,
$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$12$$,$index$jscomp$146$$+1,$prop_span$$,1])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47923$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47923$$}(),function(){var $G__47924$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$12$$,$index$jscomp$146$$+2,$prop_span$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop_span$$)-1)-($index$jscomp$146$$+1)])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47924$$,$APP.$cljs$cst$1660$position$$,
$APP.$cljs$cst$1657$manual$$):$G__47924$$}()],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop$jscomp$12$$)+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,$prop_span$$)-1),$index$jscomp$146$$+1)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cell$$,$prop_span$$,$index$jscomp$146$$+1-$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$$,
$prop$jscomp$12$$)),function(){var $G__47926$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($cell$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$prop$jscomp$12$$,$index$jscomp$146$$+1,$prop_span$$,1])),$APP.$cljs$cst$1659$area_name$$);return $area_QMARK_$$?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47926$$,
$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47926$$}()],null):null;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__47916_SHARP_$$,$p2__47917_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__47916_SHARP_$$,$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p2__47917_SHARP_$$),$p2__47917_SHARP_$$)},$parent__$1$jscomp$38$$,$changed_cells$$)},$parent$jscomp$138$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__47914_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__47914_SHARP_$$,$prop_span$$)>1},$cells$$))};
$app$main$data$workspace$tokens$library_edit$remove_paths_recursively$$=function($path$jscomp$246$$,$paths$jscomp$3$$){return $APP.$cljs$core$vec$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__71125_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($p1__71125_SHARP_$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$246$$))},$paths$jscomp$3$$))};
$app$main$data$workspace$colors$remove_gradient_stop$cljs$0core$0IFn$0_invoke$0arity$01$$=function($index$jscomp$306$$){typeof $app$main$data$workspace$colors$remove_gradient_stop_69527$$==="undefined"&&($app$main$data$workspace$colors$remove_gradient_stop_69527$$=function($index$jscomp$307$$,$meta69528$$){this.index=$index$jscomp$307$$;this.$meta69528$=$meta69528$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4063$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_remove_gradient_stop$$},$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69529$$,$meta69528__$1$$){return new $app$main$data$workspace$colors$remove_gradient_stop_69527$$(this.index,$meta69528__$1$$)},
$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69528$},$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_gradient_stop_69527$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2208$$,$state$jscomp$603$$){var $self__$jscomp$5202$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$603$$,
$APP.$cljs$cst$2199$colorpicker$$,function($map__69531__$1_p__69530$$){$map__69531__$1_p__69530$$=$APP.$cljs$core$__destructure_map$$($map__69531__$1_p__69530$$);var $editing_stop$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69531__$1_p__69530$$,$APP.$cljs$cst$4046$editing_stop$$),$stops$jscomp$14_stops__$1$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69531__$1_p__69530$$,$APP.$cljs$cst$1717$stops$$);if($APP.$cljs$core$count$$($stops$jscomp$14_stops__$1$jscomp$6$$)>
2){var $delete_index_editing_stop__$1$jscomp$1$$=function(){var $or__5025__auto__$jscomp$782$$=$self__$jscomp$5202$$.index;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$782$$)?$or__5025__auto__$jscomp$782$$:$APP.$cljs$core$truth_$$($editing_stop$jscomp$2$$)?$editing_stop$jscomp$2$$:0}(),$delete_stop$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$14_stops__$1$jscomp$6$$,$delete_index_editing_stop__$1$jscomp$1$$);$stops$jscomp$14_stops__$1$jscomp$6$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__69522_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($delete_stop$$,$p1__69522_SHARP_$$)}),$stops$jscomp$14_stops__$1$jscomp$6$$);$delete_index_editing_stop__$1$jscomp$1$$=$editing_stop$jscomp$2$$<$delete_index_editing_stop__$1$jscomp$1$$?$editing_stop$jscomp$2$$:$editing_stop$jscomp$2$$>$delete_index_editing_stop__$1$jscomp$1$$?$editing_stop$jscomp$2$$-1:$APP.$cljs$core$count$$($stops$jscomp$14_stops__$1$jscomp$6$$)>=
$editing_stop$jscomp$2$$?$APP.$cljs$core$count$$($stops$jscomp$14_stops__$1$jscomp$6$$)-1:$editing_stop$jscomp$2$$;return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69531__$1_p__69530$$,$APP.$cljs$cst$4046$editing_stop$$,$delete_index_editing_stop__$1$jscomp$1$$),$APP.$cljs$cst$1717$stops$$,$stops$jscomp$14_stops__$1$jscomp$6$$)}return $map__69531__$1_p__69530$$})});return new $app$main$data$workspace$colors$remove_gradient_stop_69527$$($index$jscomp$306$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$errors$detail_errors$$=function($errors$jscomp$17$$){return $APP.$cljs$core$seq$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$some_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($err$jscomp$37_fexpr__69910$$){if($APP.$cljs$core$truth_$$($APP.$cljs$cst$4438$error_SLASH_detail$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$37_fexpr__69910$$))){var $G__69911$$=$APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$37_fexpr__69910$$);$err$jscomp$37_fexpr__69910$$=
$APP.$cljs$cst$4438$error_SLASH_detail$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$37_fexpr__69910$$);return $err$jscomp$37_fexpr__69910$$.$cljs$core$IFn$_invoke$arity$1$?$err$jscomp$37_fexpr__69910$$.$cljs$core$IFn$_invoke$arity$1$($G__69911$$):$err$jscomp$37_fexpr__69910$$($G__69911$$)}return null},$errors$jscomp$17$$)))};
$app$main$data$workspace$tokens$errors$humanize_errors$$=function($errors$jscomp$16$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($err$jscomp$36_fexpr__69908$$){if($APP.$cljs$core$truth_$$($APP.$cljs$cst$882$error_SLASH_fn$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$36_fexpr__69908$$))){var $G__69909$$=$APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$36_fexpr__69908$$);$err$jscomp$36_fexpr__69908$$=$APP.$cljs$cst$882$error_SLASH_fn$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$36_fexpr__69908$$);
return $err$jscomp$36_fexpr__69908$$.$cljs$core$IFn$_invoke$arity$1$?$err$jscomp$36_fexpr__69908$$.$cljs$core$IFn$_invoke$arity$1$($G__69909$$):$err$jscomp$36_fexpr__69908$$($G__69909$$)}return $APP.$cljs$core$truth_$$($APP.$cljs$cst$880$error_SLASH_message$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$36_fexpr__69908$$))?$APP.$cljs$cst$880$error_SLASH_message$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$36_fexpr__69908$$):$err$jscomp$36_fexpr__69908$$},$errors$jscomp$16$$)};
$app$main$data$workspace$show_grid_cell_context_menu$$=function($p__70417$$){var $map__70418__$1$$=$APP.$cljs$core$__destructure_map$$($p__70417$$),$grid_id$jscomp$21$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70418__$1$$,$APP.$cljs$cst$4353$grid_id$$);typeof $app$main$data$workspace$show_grid_cell_context_menu_70419$$==="undefined"&&($app$main$data$workspace$show_grid_cell_context_menu_70419$$=function($p__70417$jscomp$1$$,$map__70418$jscomp$1$$,$params$jscomp$303$$,$grid_id$jscomp$22$$,
$meta70420$$){this.$p__70417$=$p__70417$jscomp$1$$;this.$map__70418$=$map__70418$jscomp$1$$;this.params=$params$jscomp$303$$;this.$grid_id$=$grid_id$jscomp$22$$;this.$meta70420$=$meta70420$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4356$app_DOT_main_DOT_data_DOT_workspace_SLASH_show_grid_cell_context_menu$$},$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70421$$,$meta70420__$1$$){return new $app$main$data$workspace$show_grid_cell_context_menu_70419$$(this.$p__70417$,this.$map__70418$,this.params,this.$grid_id$,$meta70420__$1$$)},$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70420$},$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_grid_cell_context_menu_70419$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2488_objects$jscomp$651$$,$cells$jscomp$25_state$jscomp$840$$){$_$jscomp$2488_objects$jscomp$651$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($cells$jscomp$25_state$jscomp$840$$);
var $grid$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2488_objects$jscomp$651$$,this.$grid_id$);$cells$jscomp$25_state$jscomp$840$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__70416_SHARP_$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($grid$jscomp$5$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$p1__70416_SHARP_$$],null))},$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$25_state$jscomp$840$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,this.$grid_id$,$APP.$cljs$cst$1906$selected$$],null)));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$show_context_menu$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$(this.params,$APP.$cljs$cst$945$kind$$,$APP.$cljs$cst$2915$grid_cells$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1643$grid$$,
$grid$jscomp$5$$,$APP.$cljs$cst$4357$cells$$,$cells$jscomp$25_state$jscomp$840$$]))))});return new $app$main$data$workspace$show_grid_cell_context_menu_70419$$($p__70417$$,$map__70418__$1$$,$map__70418__$1$$,$grid_id$jscomp$21$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$pages$delete_page_components$$=function($changes$jscomp$242$$,$page$jscomp$95$$){var $components_to_delete$jscomp$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1611$component_id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68989_SHARP_$$){return $APP.$cljs$cst$2030$main_instance$$.$cljs$core$IFn$_invoke$arity$1$($p1__68989_SHARP_$$)===!0},$APP.$cljs$core$vals$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$95$$))));
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$77$$,$component_id$jscomp$67$$){return $APP.$app$common$files$changes_builder$delete_component$$($changes__$1$jscomp$77$$,$component_id$jscomp$67$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$95$$))},$changes$jscomp$242$$,$components_to_delete$jscomp$1$$)};
$app$common$types$color$offset_spread$$=function($from$jscomp$9$$,$to$jscomp$8$$,$num$jscomp$27$$){return $num$jscomp$27$$<=1?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from$jscomp$9$$],null):$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__45238_SHARP_$$){return $APP.$app$common$math$precision$$($from$jscomp$9$$+($to$jscomp$8$$-$from$jscomp$9$$)/($num$jscomp$27$$-1)*$p1__45238_SHARP_$$,2)},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$(0,
$num$jscomp$27$$))};
$app$common$types$shape$layout$swap_track_content$$=function($parent$jscomp$149$$,$prop$jscomp$17$$,$from_track$$,$to_track$$){var $remap_tracks$$=$from_track$$>$to_track$$?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$from_track$$,$to_track$$]),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__48041_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1__48041_SHARP_$$,
$p1__48041_SHARP_$$+1],null)}),$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($to_track$$,$from_track$$)):$from_track$$<$to_track$$?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$from_track$$,$to_track$$]),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__48042_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1__48042_SHARP_$$,$p1__48042_SHARP_$$-
1],null)}),$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($from_track$$+1,$to_track$$+1)):null;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($parent$jscomp$149$$,$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$core$update_vals$$,function($cell$jscomp$8$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($cell$jscomp$8$$,$prop$jscomp$17$$,function($p1__48043_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($remap_tracks$$,$p1__48043_SHARP_$$,
$p1__48043_SHARP_$$)})})};
$app$common$data$invert_map$$=function($m$jscomp$100$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__31966_v$jscomp$147$$){var $k$jscomp$270$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__31966_v$jscomp$147$$,0,null);$p__31966_v$jscomp$147$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__31966_v$jscomp$147$$,1,null);return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p__31966_v$jscomp$147$$,$k$jscomp$270$$],null)},$m$jscomp$100$$))};
$app$common$types$tokens_lib$get_json_format$cljs$0core$0IFn$0_invoke$0arity$03$$=function($decoded_json$jscomp$1$$){return $APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$some_QMARK_$$,function $app$common$types$tokens_lib$walk$jscomp$2$$($node$jscomp$247$$){return new $APP.$cljs$core$LazySeq$$(null,function(){var $JSCompiler_inline_result$jscomp$1503$$=$APP.$cljs$core$truth_$$($APP.$app$common$types$tokens_lib$legacy_node_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$app$common$types$tokens_lib$legacy_node_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$247$$):(0,$APP.$app$common$types$tokens_lib$legacy_node_QMARK_$$)($node$jscomp$247$$))?$APP.$cljs$cst$2113$json_format_SLASH_legacy$$:$APP.$cljs$core$truth_$$($APP.$app$common$types$tokens_lib$dtcg_node_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$app$common$types$tokens_lib$dtcg_node_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$247$$):(0,$APP.$app$common$types$tokens_lib$dtcg_node_QMARK_$$)($node$jscomp$247$$))?
$APP.$cljs$cst$2114$json_format_SLASH_dtcg$$:null;return $APP.$cljs$core$cons$$($JSCompiler_inline_result$jscomp$1503$$,$APP.$cljs$core$truth_$$($APP.$cljs$core$map_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$map_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$247$$):$APP.$cljs$core$map_QMARK_$$($node$jscomp$247$$))?$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$common$types$tokens_lib$walk$jscomp$2$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vals$$($node$jscomp$247$$)])):
null)},null,null)}($decoded_json$jscomp$1$$))),$APP.$cljs$cst$2114$json_format_SLASH_dtcg$$)};
$app$common$types$color$hsv__GT_rgb$$=function($p__45116_sextant$$){var $h$jscomp$140_remainder$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__45116_sextant$$,0,null),$s$jscomp$505_val3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__45116_sextant$$,1,null),$brightness_brightness__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__45116_sextant$$,2,null);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($s$jscomp$505_val3$$,0))return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$brightness_brightness__$1$$,$brightness_brightness__$1$$,$brightness_brightness__$1$$],null);$p__45116_sextant$$=$APP.$app$common$math$floor$$($h$jscomp$140_remainder$jscomp$12$$/60)|0;$h$jscomp$140_remainder$jscomp$12$$=$h$jscomp$140_remainder$jscomp$12$$/60-$p__45116_sextant$$;$brightness_brightness__$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($brightness_brightness__$1$$,0);var $val1$jscomp$2$$=$brightness_brightness__$1$$*
(1-$s$jscomp$505_val3$$)|0,$val2$jscomp$2$$=$brightness_brightness__$1$$*(1-$s$jscomp$505_val3$$*$h$jscomp$140_remainder$jscomp$12$$)|0;$s$jscomp$505_val3$$=$brightness_brightness__$1$$*(1-$s$jscomp$505_val3$$*(1-$h$jscomp$140_remainder$jscomp$12$$))|0;switch($p__45116_sextant$$){case 1:return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val2$jscomp$2$$,$brightness_brightness__$1$$,$val1$jscomp$2$$],null);case 2:return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val1$jscomp$2$$,$brightness_brightness__$1$$,$s$jscomp$505_val3$$],null);case 3:return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val1$jscomp$2$$,$val2$jscomp$2$$,$brightness_brightness__$1$$],null);case 4:return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$s$jscomp$505_val3$$,$val1$jscomp$2$$,$brightness_brightness__$1$$],null);case 5:return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$brightness_brightness__$1$$,$val1$jscomp$2$$,$val2$jscomp$2$$],null);case 6:return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$brightness_brightness__$1$$,$s$jscomp$505_val3$$,$val1$jscomp$2$$],null);case 0:return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$brightness_brightness__$1$$,$s$jscomp$505_val3$$,$val1$jscomp$2$$],null);default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($p__45116_sextant$$)].join(""));}};
$app$main$data$workspace$grid_layout$editor$locate_board$$=function($grid_id$jscomp$15$$){typeof $app$main$data$workspace$grid_layout$editor$locate_board_68938$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$locate_board_68938$$=function($grid_id$jscomp$16$$,$meta68939$$){this.$grid_id$=$grid_id$jscomp$16$$;this.$meta68939$=$meta68939$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4240$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_locate_board$$},$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68940$$,$meta68939__$1$$){return new $app$main$data$workspace$grid_layout$editor$locate_board_68938$$(this.$grid_id$,
$meta68939__$1$$)},$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68939$},$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$locate_board_68938$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2377_objects$jscomp$602$$,$state$jscomp$754$$){$_$jscomp$2377_objects$jscomp$602$$=
$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$754$$);var $srect$jscomp$8$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2377_objects$jscomp$602$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$grid_id$,$APP.$cljs$cst$1589$selrect$$],null));return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$754$$,$APP.$cljs$cst$1905$workspace_local$$,function($map__68942__$1_p__68941$$){$map__68942__$1_p__68941$$=
$APP.$cljs$core$__destructure_map$$($map__68942__$1_p__68941$$);var $y__$1_zoom$jscomp$36$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68942__$1_p__68941$$,$APP.$cljs$cst$2158$zoom$$),$vport$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68942__$1_p__68941$$,$APP.$cljs$cst$2165$vport$$),$height$jscomp$135_map__68943__$1$$=$APP.$cljs$core$__destructure_map$$($srect$jscomp$8$$),$x$jscomp$1204_x__$1$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$135_map__68943__$1$$,
$APP.$cljs$cst$1499$x$$),$y$jscomp$438$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$135_map__68943__$1$$,$APP.$cljs$cst$1500$y$$),$srect__$1$jscomp$3_width$jscomp$151$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$135_map__68943__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$135_map__68943__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$135_map__68943__$1$$,$APP.$cljs$cst$1511$height$$);$x$jscomp$1204_x__$1$jscomp$29$$=
$x$jscomp$1204_x__$1$jscomp$29$$+$srect__$1$jscomp$3_width$jscomp$151$$/2+-($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$5$$)/2/$y__$1_zoom$jscomp$36$$);$y__$1_zoom$jscomp$36$$=$y$jscomp$438$$+$height$jscomp$135_map__68943__$1$$/2+-($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$5$$)/2/$y__$1_zoom$jscomp$36$$);$srect__$1$jscomp$3_width$jscomp$151$$=$APP.$app$common$geom$rect$make_rect$$.$cljs$core$IFn$_invoke$arity$4$($x$jscomp$1204_x__$1$jscomp$29$$,
$y__$1_zoom$jscomp$36$$,$srect__$1$jscomp$3_width$jscomp$151$$,$height$jscomp$135_map__68943__$1$$);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($map__68942__$1_p__68941$$,$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$core$merge$$,$APP.$cljs$core$select_keys$$($srect__$1$jscomp$3_width$jscomp$151$$,new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1512$x1$$,$APP.$cljs$cst$1514$x2$$,
$APP.$cljs$cst$1513$y1$$,$APP.$cljs$cst$1515$y2$$],null)))})});return new $app$main$data$workspace$grid_layout$editor$locate_board_68938$$($grid_id$jscomp$15$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$util$dom$bounding_rect__GT_rect$$=function($rect$jscomp$9$$){return $rect$jscomp$9$$!=null?$APP.$app$common$geom$rect$make_rect$$.$cljs$core$IFn$_invoke$arity$4$(function(){var $or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$=$rect$jscomp$9$$.left;if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$))return $or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$;$or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$=$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$9$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$)?$or__5025__auto__$jscomp$298_or__5025__auto____$1$jscomp$37$$:0}(),function(){var $or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$=$rect$jscomp$9$$.top;if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$))return $or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$;$or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$9$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$)?$or__5025__auto__$jscomp$299_or__5025__auto____$1$jscomp$38$$:0}(),function(){var $or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$=$rect$jscomp$9$$.width;if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$))return $or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$;$or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$9$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$)?$or__5025__auto__$jscomp$300_or__5025__auto____$1$jscomp$39$$:1}(),function(){var $or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$=$rect$jscomp$9$$.height;if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$))return $or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$;$or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$9$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$)?$or__5025__auto__$jscomp$301_or__5025__auto____$1$jscomp$40$$:1}()):null};
$app$common$geom$shapes$text$overlaps_position_data_QMARK_$$=function($map__48761__$1_p__48760_points$jscomp$41$$,$position_data$jscomp$2$$){$map__48761__$1_p__48760_points$jscomp$41$$=$APP.$cljs$core$__destructure_map$$($map__48761__$1_p__48760_points$jscomp$41$$);$map__48761__$1_p__48760_points$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48761__$1_p__48760_points$jscomp$41$$,$APP.$cljs$cst$1588$points$$);var $bounding_box$$=$APP.$app$common$geom$rect$points__GT_rect$$($map__48761__$1_p__48760_points$jscomp$41$$);
return $APP.$cljs$core$boolean$0$$($APP.$cljs$core$some$$(function($JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$){$JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$));
return $APP.$app$common$geom$rect$overlaps_rects_QMARK_$$($bounding_box$$,$JSCompiler_inline_result$jscomp$1504_p1__48759_SHARP_$$)},$position_data$jscomp$2$$))};
$app$main$data$workspace$viewport$initialize_viewport$$=function($p__69009$$){function $initialize$$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$,$local$jscomp$16_local__$1$$){var $page_id$jscomp$249_vx$jscomp$2$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$);$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=
$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$,$page_id$jscomp$249_vx$jscomp$2$$);$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$03$$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$,
$APP.$app$common$uuid$zero$$,null);$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$);$local$jscomp$16_local__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($local$jscomp$16_local__$1$$,$APP.$cljs$cst$2165$vport$$,$map__69010__$1$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2158$zoom$$,
1,$APP.$cljs$cst$3467$zoom_inverse$$,1,$APP.$cljs$cst$3622$hide_toolbar$$,!1]));if($APP.$cljs$core$not$$($APP.$app$common$data$num_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)))||$APP.$cljs$core$not$$($APP.$app$common$data$num_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$))))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($local$jscomp$16_local__$1$$,
$APP.$cljs$cst$1910$vbox$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__69010__$1$$,$APP.$cljs$cst$1499$x$$,0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1500$y$$,0])));if($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)>$width$jscomp$153$$||$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)>
$height$jscomp$136$$){var $srect__$1$jscomp$4$$=$APP.$app$common$geom$align$adjust_to_viewport$cljs$0core$0IFn$0_invoke$0arity$03$$($map__69010__$1$$,$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$256$padding$$,40,$APP.$cljs$cst$3165$min_zoom$$,.01],null));$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($map__69010__$1$$)/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($srect__$1$jscomp$4$$);return $APP.$cljs$core$update$$.$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$($local$jscomp$16_local__$1$$,$APP.$cljs$cst$2158$zoom$$,$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$),
$APP.$cljs$cst$3467$zoom_inverse$$,1/$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$),$APP.$cljs$cst$1910$vbox$$,function($vbox$jscomp$23$$){return $APP.$app$common$geom$rect$make_rect$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$vbox$jscomp$23$$,$srect__$1$jscomp$4$$])))})}$page_id$jscomp$249_vx$jscomp$2$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)+
($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)-$width$jscomp$153$$)/2;$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)-
$height$jscomp$136$$)/2;$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$=$APP.$app$common$geom$rect$update_rect$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69010__$1$$,$APP.$cljs$cst$1499$x$$,$page_id$jscomp$249_vx$jscomp$2$$),$APP.$cljs$cst$1500$y$$,$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$),
$APP.$cljs$cst$1660$position$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($local$jscomp$16_local__$1$$,$APP.$cljs$cst$1910$vbox$$,$objects$jscomp$636_shapes$jscomp$119_srect$jscomp$9_state$jscomp$787_vbox$jscomp$22_vy$jscomp$3_zoom$jscomp$37$$)}function $update_STAR_$$($map__69020__$1_p__69019$$){$map__69020__$1_p__69019$$=$APP.$cljs$core$__destructure_map$$($map__69020__$1_p__69019$$);var $vport$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69020__$1_p__69019$$,
$APP.$cljs$cst$2165$vport$$),$wprop$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$6$$)/$width$jscomp$153$$,$hprop$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$6$$)/$height$jscomp$136$$;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69020__$1_p__69019$$,$APP.$cljs$cst$2165$vport$$,$map__69010__$1$$),$APP.$cljs$cst$1910$vbox$$,function($vbox$jscomp$21$$){return $APP.$app$common$geom$rect$update_rect$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($vbox$jscomp$21$$,
$APP.$cljs$cst$288$width$$,function($p1__69007_SHARP_$$){return $p1__69007_SHARP_$$/$wprop$$}),$APP.$cljs$cst$1511$height$$,function($p1__69008_SHARP_$$){return $p1__69008_SHARP_$$/$hprop$$}),$APP.$cljs$cst$872$size$$)})}var $map__69010__$1$$=$APP.$cljs$core$__destructure_map$$($p__69009$$),$width$jscomp$153$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69010__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$136$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69010__$1$$,
$APP.$cljs$cst$1511$height$$);typeof $app$main$data$workspace$viewport$initialize_viewport_69022$$==="undefined"&&($app$main$data$workspace$viewport$initialize_viewport_69022$$=function($p__69009$jscomp$1$$,$map__69010$jscomp$1$$,$size$jscomp$127$$,$width$jscomp$154$$,$height$jscomp$137$$,$update_STAR_$jscomp$1$$,$initialize$jscomp$1$$,$setup$jscomp$1$$,$meta69023$$){this.$p__69009$=$p__69009$jscomp$1$$;this.$map__69010$=$map__69010$jscomp$1$$;this.size=$size$jscomp$127$$;this.width=$width$jscomp$154$$;
this.height=$height$jscomp$137$$;this.$update_STAR_$=$update_STAR_$jscomp$1$$;this.initialize=$initialize$jscomp$1$$;this.$setup$=$setup$jscomp$1$$;this.$meta69023$=$meta69023$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4291$app_DOT_main_DOT_data_DOT_workspace_DOT_viewport_SLASH_initialize_viewport$$},$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69024$$,$meta69023__$1$$){return new $app$main$data$workspace$viewport$initialize_viewport_69022$$(this.$p__69009$,this.$map__69010$,this.size,this.width,this.height,this.$update_STAR_$,this.initialize,this.$setup$,$meta69023__$1$$)},$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69023$},$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$initialize_viewport_69022$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2423$$,$state$jscomp$789$$){var $self__$jscomp$5936$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$789$$,$APP.$cljs$cst$1905$workspace_local$$,function($local$jscomp$18$$){return $self__$jscomp$5936$$.$setup$.$cljs$core$IFn$_invoke$arity$2$?
$self__$jscomp$5936$$.$setup$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$789$$,$local$jscomp$18$$):$self__$jscomp$5936$$.$setup$($state$jscomp$789$$,$local$jscomp$18$$)})});return new $app$main$data$workspace$viewport$initialize_viewport_69022$$($p__69009$$,$map__69010__$1$$,$map__69010__$1$$,$width$jscomp$153$$,$height$jscomp$136$$,$update_STAR_$$,$initialize$$,function($state$jscomp$788$$,$local$jscomp$17$$){var $JSCompiler_inline_result$jscomp$1505_and__5023__auto__$jscomp$inline_7903$$=$APP.$cljs$cst$1910$vbox$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$17$$);
$JSCompiler_inline_result$jscomp$1505_and__5023__auto__$jscomp$inline_7903$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1505_and__5023__auto__$jscomp$inline_7903$$)?$APP.$cljs$cst$2165$vport$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$17$$):$JSCompiler_inline_result$jscomp$1505_and__5023__auto__$jscomp$inline_7903$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1505_and__5023__auto__$jscomp$inline_7903$$)?$update_STAR_$$($local$jscomp$17$$):$initialize$$($state$jscomp$788$$,
$local$jscomp$17$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$tokens_lib$legacy_json__GT_dtcg_json$$=function($decoded_json$jscomp$2$$){return $APP.$clojure$walk$postwalk$$(function($node$jscomp$248$$){var $G__50018__$1_G__50018__$2$$=$APP.$cljs$core$map_QMARK_$$($node$jscomp$248$$)&&$APP.$cljs$core$contains_QMARK_$$($node$jscomp$248$$,"value")&&$APP.$cljs$core$sequential_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$248$$,"value"))&&$APP.$cljs$core$map_QMARK_$$($APP.$cljs$core$first$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$248$$,"value")))?
$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($node$jscomp$248$$,"value",function($seq_value$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__50014_SHARP_$$){return $APP.$clojure$set$rename_keys$$($p1__50014_SHARP_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,["type","$type"],null))},$seq_value$$)}):$node$jscomp$248$$;$G__50018__$1_G__50018__$2$$=($APP.$cljs$core$map_QMARK_$$($node$jscomp$248$$)&&$APP.$cljs$core$contains_QMARK_$$($node$jscomp$248$$,"type")&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("fontFamilies",$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$248$$,"type"))&&$APP.$cljs$core$contains_QMARK_$$($node$jscomp$248$$,"value")&&$APP.$cljs$core$sequential_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$248$$,"value"))&&$APP.$cljs$core$map_QMARK_$$($APP.$cljs$core$first$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$248$$,"value"))),$G__50018__$1_G__50018__$2$$);
return $APP.$cljs$core$map_QMARK_$$($node$jscomp$248$$)&&$APP.$cljs$core$contains_QMARK_$$($node$jscomp$248$$,"type")&&$APP.$cljs$core$contains_QMARK_$$($node$jscomp$248$$,"value")?$APP.$clojure$set$rename_keys$$($G__50018__$1_G__50018__$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["value","$value","type","$type"],null)):$G__50018__$1_G__50018__$2$$},$decoded_json$jscomp$2$$)};
$app$main$data$workspace$fix_deleted_fonts$generate_page_changes$$=function($map__68498__$1_p__68497$$){$map__68498__$1_p__68497$$=$APP.$cljs$core$__destructure_map$$($map__68498__$1_p__68497$$);var $objects$jscomp$589$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68498__$1_p__68497$$,$APP.$cljs$cst$1615$objects$$),$id$jscomp$689$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68498__$1_p__68497$$,$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$reduce_kv$$(function($changes$jscomp$227$$,
$shape_id$jscomp$110$$,$shape$jscomp$689$$){var $JSCompiler_inline_result$jscomp$1502_and__5023__auto__$jscomp$inline_7906$$=($JSCompiler_inline_result$jscomp$1502_and__5023__auto__$jscomp$inline_7906$$=$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$689$$))?$APP.$cljs$core$some$$($APP.$app$main$data$workspace$fix_deleted_fonts$has_invalid_font_family_QMARK_$$,$APP.$app$common$types$text$node_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$is_text_node_QMARK_$$,
$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$689$$))):$JSCompiler_inline_result$jscomp$1502_and__5023__auto__$jscomp$inline_7906$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1502_and__5023__auto__$jscomp$inline_7906$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$227$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2562$mod_obj$$,$APP.$cljs$cst$266$id$$,$shape_id$jscomp$110$$,
$APP.$cljs$cst$2028$page_id$$,$id$jscomp$689$$,$APP.$cljs$cst$2563$operations$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$108$val$$,$APP.$app$common$types$text$transform_nodes$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$main$data$workspace$fix_deleted_fonts$has_invalid_font_family_QMARK_$$,
$app$main$data$workspace$fix_deleted_fonts$fix_deleted_font$$,$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$689$$))],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1875$position_data$$,$APP.$cljs$cst$108$val$$,null],null)],null)],null)):$changes$jscomp$227$$},$APP.$cljs$core$PersistentVector$EMPTY$$,$objects$jscomp$589$$)};
$cljs$spec$alpha$abbrev$$=function($form$jscomp$113$$){return $APP.$cljs$core$seq_QMARK_$$($form$jscomp$113$$)?$APP.$clojure$walk$postwalk$$(function($form__$1$$){var $JSCompiler_inline_result$jscomp$1510_and__5023__auto__$jscomp$inline_7908$$=($JSCompiler_inline_result$jscomp$1510_and__5023__auto__$jscomp$inline_7908$$=$form__$1$$ instanceof $APP.$cljs$core$Symbol$$)?$APP.$cljs$core$namespace$$($form__$1$$):$JSCompiler_inline_result$jscomp$1510_and__5023__auto__$jscomp$inline_7908$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1510_and__5023__auto__$jscomp$inline_7908$$)?
$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$name$$($form__$1$$)):$APP.$cljs$core$seq_QMARK_$$($form__$1$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$28$fn$$,$APP.$cljs$core$first$$($form__$1$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$977$_PERCENT_$$],null),$APP.$cljs$core$second$$($form__$1$$))?$APP.$cljs$core$last$$($form__$1$$):
$form__$1$$},$form$jscomp$113$$):$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$150$$=$form$jscomp$113$$ instanceof $APP.$cljs$core$Symbol$$;return $and__5023__auto__$jscomp$150$$?$APP.$cljs$core$namespace$$($form$jscomp$113$$):$and__5023__auto__$jscomp$150$$}())?$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$name$$($form$jscomp$113$$)):$form$jscomp$113$$};
$app$main$data$workspace$transforms$get_handler_resize_origin$$=function($mx$jscomp$1_selrect$jscomp$59$$,$G__67319__$1_handler$jscomp$29$$){var $sx$jscomp$10$$=$mx$jscomp$1_selrect$jscomp$59$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,$APP.$cljs$cst$1499$x$$),$sy$jscomp$9$$=$mx$jscomp$1_selrect$jscomp$59$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,$APP.$cljs$cst$1500$y$$),$ex$jscomp$16_width$jscomp$132$$=
$mx$jscomp$1_selrect$jscomp$59$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,$APP.$cljs$cst$288$width$$),$ey$jscomp$1_height$jscomp$118$$=$mx$jscomp$1_selrect$jscomp$59$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,$APP.$cljs$cst$1511$height$$);$mx$jscomp$1_selrect$jscomp$59$$=$sx$jscomp$10$$+$ex$jscomp$16_width$jscomp$132$$/2;var $my$jscomp$1$$=$sy$jscomp$9$$+$ey$jscomp$1_height$jscomp$118$$/2;
$ex$jscomp$16_width$jscomp$132$$=$sx$jscomp$10$$+$ex$jscomp$16_width$jscomp$132$$;$ey$jscomp$1_height$jscomp$118$$=$sy$jscomp$9$$+$ey$jscomp$1_height$jscomp$118$$;$G__67319__$1_handler$jscomp$29$$=$G__67319__$1_handler$jscomp$29$$ instanceof $APP.$cljs$core$Keyword$$?$G__67319__$1_handler$jscomp$29$$.$fqn$:null;switch($G__67319__$1_handler$jscomp$29$$){case "right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($sx$jscomp$10$$,$my$jscomp$1$$);case "bottom":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,
$sy$jscomp$9$$);case "left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($ex$jscomp$16_width$jscomp$132$$,$my$jscomp$1$$);case "top":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($mx$jscomp$1_selrect$jscomp$59$$,$ey$jscomp$1_height$jscomp$118$$);case "top-right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($sx$jscomp$10$$,$ey$jscomp$1_height$jscomp$118$$);case "top-left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($ex$jscomp$16_width$jscomp$132$$,
$ey$jscomp$1_height$jscomp$118$$);case "bottom-right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($sx$jscomp$10$$,$sy$jscomp$9$$);case "bottom-left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($ex$jscomp$16_width$jscomp$132$$,$sy$jscomp$9$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__67319__$1_handler$jscomp$29$$)].join(""));}};
$app$main$data$workspace$transforms$get_handler_multiplier$$=function($G__67312__$1_handler$jscomp$28$$){$G__67312__$1_handler$jscomp$28$$=$G__67312__$1_handler$jscomp$28$$ instanceof $APP.$cljs$core$Keyword$$?$G__67312__$1_handler$jscomp$28$$.$fqn$:null;switch($G__67312__$1_handler$jscomp$28$$){case "right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(1,0);case "bottom":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,1);case "left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(-1,
0);case "top":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,-1);case "top-right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(1,-1);case "top-left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(-1,-1);case "bottom-right":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(1,1);case "bottom-left":return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(-1,1);default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__67312__$1_handler$jscomp$28$$)].join(""));}};
$app$common$types$shape$interactions$calc_overlay_pos_initial$$=function($dest_frame_destination$jscomp$9_overlay_size$$,$frame_size_orig_frame_shape$jscomp$156$$,$objects$jscomp$123$$,$overlay_pos_type$jscomp$3$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$3$$,$APP.$cljs$cst$1657$manual$$)&&$dest_frame_destination$jscomp$9_overlay_size$$!=null?($dest_frame_destination$jscomp$9_overlay_size$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$123$$,
$dest_frame_destination$jscomp$9_overlay_size$$),$dest_frame_destination$jscomp$9_overlay_size$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($dest_frame_destination$jscomp$9_overlay_size$$),$frame_size_orig_frame_shape$jscomp$156$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($frame_size_orig_frame_shape$jscomp$156$$),$APP.$cljs$cst$1590$frame$$)?$frame_size_orig_frame_shape$jscomp$156$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$123$$,
$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($frame_size_orig_frame_shape$jscomp$156$$)),$frame_size_orig_frame_shape$jscomp$156$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($frame_size_orig_frame_shape$jscomp$156$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame_size_orig_frame_shape$jscomp$156$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($dest_frame_destination$jscomp$9_overlay_size$$))/
2,($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame_size_orig_frame_shape$jscomp$156$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($dest_frame_destination$jscomp$9_overlay_size$$))/2)):$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0)};
$app$common$types$shape$interactions$set_destination$$=function($interaction$jscomp$6$$,$G__48884__$1_destination$jscomp$8$$){$G__48884__$1_destination$jscomp$8$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$6$$,$APP.$cljs$cst$1952$destination$$,$G__48884__$1_destination$jscomp$8$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$6$$),$APP.$cljs$cst$1931$open_overlay$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$6$$),$APP.$cljs$cst$1929$toggle_overlay$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__48884__$1_destination$jscomp$8$$,$APP.$cljs$cst$1956$overlay_pos_type$$,$APP.$cljs$cst$1651$center$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1955$overlay_position$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,
0)])):$G__48884__$1_destination$jscomp$8$$};
$app$common$types$shape$interactions$set_action_type$$=function($interaction$jscomp$1$$,$action_type$$){var $new_interaction$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$1$$),$action_type$$)?$interaction$jscomp$1$$:function(){var $G__48866__$1_overlay_pos_type$$=$action_type$$ instanceof $APP.$cljs$core$Keyword$$?$action_type$$.$fqn$:null;switch($G__48866__$1_overlay_pos_type$$){case "navigate":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($interaction$jscomp$1$$,$APP.$cljs$cst$1951$action_type$$,
$action_type$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1952$destination$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interaction$jscomp$1$$,$APP.$cljs$cst$1952$destination$$),$APP.$cljs$cst$1953$preserve_scroll$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$1$$,$APP.$cljs$cst$1953$preserve_scroll$$,!1)]));case "open-overlay":case "toggle-overlay":$G__48866__$1_overlay_pos_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$1$$,
$APP.$cljs$cst$1956$overlay_pos_type$$,$APP.$cljs$cst$1651$center$$);var $overlay_position$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$1$$,$APP.$cljs$cst$1955$overlay_position$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0));return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($interaction$jscomp$1$$,$APP.$cljs$cst$1951$action_type$$,$action_type$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1956$overlay_pos_type$$,
$G__48866__$1_overlay_pos_type$$,$APP.$cljs$cst$1955$overlay_position$$,$overlay_position$$]));case "close-overlay":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($interaction$jscomp$1$$,$APP.$cljs$cst$1951$action_type$$,$action_type$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1952$destination$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interaction$jscomp$1$$,$APP.$cljs$cst$1952$destination$$)]));case "prev-screen":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$1$$,
$APP.$cljs$cst$1951$action_type$$,$action_type$$);case "open-url":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($interaction$jscomp$1$$,$APP.$cljs$cst$1951$action_type$$,$action_type$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1960$url$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($interaction$jscomp$1$$,$APP.$cljs$cst$1960$url$$,"")]));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__48866__$1_overlay_pos_type$$)].join(""));
}}();return $APP.$cljs$core$not$$(function(){var $G__48873$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($new_interaction$$));return $app$common$types$shape$interactions$allowed_animation_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$app$common$types$shape$interactions$allowed_animation_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($action_type$$,$G__48873$$):$app$common$types$shape$interactions$allowed_animation_QMARK_$$($action_type$$,
$G__48873$$)}())?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($new_interaction$$,$APP.$cljs$cst$1944$animation_type$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1954$animation$$])):$new_interaction$$};
$app$common$geom$shapes$distance_selrect$$=function($selrect$jscomp$25_y2$jscomp$34$$,$other$jscomp$185_y1$jscomp$36$$){var $x1$jscomp$34$$=$other$jscomp$185_y1$jscomp$36$$?.x1??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$185_y1$jscomp$36$$,$APP.$cljs$cst$1512$x1$$);$other$jscomp$185_y1$jscomp$36$$=$other$jscomp$185_y1$jscomp$36$$?.y1??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$185_y1$jscomp$36$$,$APP.$cljs$cst$1513$y1$$);var $x2$jscomp$32$$=$selrect$jscomp$25_y2$jscomp$34$$?.x2??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$25_y2$jscomp$34$$,$APP.$cljs$cst$1514$x2$$);$selrect$jscomp$25_y2$jscomp$34$$=$selrect$jscomp$25_y2$jscomp$34$$?.y2??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$25_y2$jscomp$34$$,$APP.$cljs$cst$1515$y2$$);return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($x1$jscomp$34$$-$x2$jscomp$32$$,$other$jscomp$185_y1$jscomp$36$$-$selrect$jscomp$25_y2$jscomp$34$$)};
$app$common$geom$shapes$intersect$intersects_lines_ellipse_QMARK_$$=function($rect_lines$jscomp$2$$,$p__48828_transform$jscomp$53$$){var $map__48829__$1$$=$APP.$cljs$core$__destructure_map$$($p__48828_transform$jscomp$53$$),$center$jscomp$22_cx$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48829__$1$$,$APP.$cljs$cst$1882$cx$$),$cy$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48829__$1$$,$APP.$cljs$cst$1883$cy$$);$p__48828_transform$jscomp$53$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48829__$1$$,$APP.$cljs$cst$1275$transform$$);$center$jscomp$22_cx$jscomp$12$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$22_cx$jscomp$12$$,$cy$jscomp$13$$);var $transform__$1$jscomp$2$$=$p__48828_transform$jscomp$53$$!=null?$APP.$app$common$geom$matrix$transform_in$$($center$jscomp$22_cx$jscomp$12$$,$p__48828_transform$jscomp$53$$):null;return $APP.$cljs$core$some$$(function($p2$jscomp$44_p2__$1_p__48830$$){var $p1$jscomp$55_p1__$1$jscomp$2$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p2$jscomp$44_p2__$1_p__48830$$,0,null);$p2$jscomp$44_p2__$1_p__48830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p2$jscomp$44_p2__$1_p__48830$$,1,null);$p1$jscomp$55_p1__$1$jscomp$2$$=$transform__$1$jscomp$2$$!=null?$APP.$app$common$geom$point$transform$$($p1$jscomp$55_p1__$1$jscomp$2$$,$transform__$1$jscomp$2$$):$p1$jscomp$55_p1__$1$jscomp$2$$;$p2$jscomp$44_p2__$1_p__48830$$=$transform__$1$jscomp$2$$!=null?$APP.$app$common$geom$point$transform$$($p2$jscomp$44_p2__$1_p__48830$$,
$transform__$1$jscomp$2$$):$p2$jscomp$44_p2__$1_p__48830$$;return $app$common$geom$shapes$intersect$intersects_line_ellipse_QMARK_$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1$jscomp$55_p1__$1$jscomp$2$$,$p2$jscomp$44_p2__$1_p__48830$$],null),$map__48829__$1$$)},$rect_lines$jscomp$2$$)};
$app$common$types$path$get_handler$$=function($command$jscomp$18$$,$prefix$jscomp$42$$){return $APP.$app$common$types$path$segment$get_handler$$($command$jscomp$18$$,$prefix$jscomp$42$$)};
$app$common$types$path$segment$curve_closest_point$$=function($position$jscomp$7$$,$start$jscomp$204$$,$end$jscomp$69$$,$h1$jscomp$26$$,$h2$jscomp$20$$,$precision$jscomp$6$$){for(var $d$jscomp$226$$=$APP.$cljs$core$memoize$$(function($t$jscomp$85$$){return $APP.$app$common$geom$point$distance$$($position$jscomp$7$$,$APP.$app$common$types$path$helpers$curve_values$cljs$0core$0IFn$0_invoke$0arity$05$$($start$jscomp$204$$,$end$jscomp$69$$,$h1$jscomp$26$$,$h2$jscomp$20$$,$t$jscomp$85$$))}),$t1$jscomp$8_t1__$1$jscomp$1$$=
0,$G__48292_t2$jscomp$9_vec__47985$$=1;;){if($APP.$app$common$math$abs$$($t1$jscomp$8_t1__$1$jscomp$1$$-$G__48292_t2$jscomp$9_vec__47985$$)<=$precision$jscomp$6$$)return $APP.$cljs$core$with_meta$$($APP.$app$common$types$path$helpers$curve_values$cljs$0core$0IFn$0_invoke$0arity$05$$($start$jscomp$204$$,$end$jscomp$69$$,$h1$jscomp$26$$,$h2$jscomp$20$$,$t1$jscomp$8_t1__$1$jscomp$1$$),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1836$t$$,$t1$jscomp$8_t1__$1$jscomp$1$$,$APP.$cljs$cst$1837$from_p$$,
$start$jscomp$204$$,$APP.$cljs$cst$1838$to_p$$,$end$jscomp$69$$],null));var $ht$jscomp$4$$=$t1$jscomp$8_t1__$1$jscomp$1$$+($G__48292_t2$jscomp$9_vec__47985$$-$t1$jscomp$8_t1__$1$jscomp$1$$)/2,$ht1$$=$t1$jscomp$8_t1__$1$jscomp$1$$+($G__48292_t2$jscomp$9_vec__47985$$-$t1$jscomp$8_t1__$1$jscomp$1$$)/4,$ht2$$=$t1$jscomp$8_t1__$1$jscomp$1$$+3*($G__48292_t2$jscomp$9_vec__47985$$-$t1$jscomp$8_t1__$1$jscomp$1$$)/4;$G__48292_t2$jscomp$9_vec__47985$$=$d$jscomp$226$$($ht1$$)<$d$jscomp$226$$($ht2$$)?new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$t1$jscomp$8_t1__$1$jscomp$1$$,$ht$jscomp$4$$],null):$d$jscomp$226$$($ht2$$)<$d$jscomp$226$$($ht1$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$ht$jscomp$4$$,$G__48292_t2$jscomp$9_vec__47985$$],null):$d$jscomp$226$$($ht$jscomp$4$$)<$d$jscomp$226$$($t1$jscomp$8_t1__$1$jscomp$1$$)&&$d$jscomp$226$$($ht$jscomp$4$$)<$d$jscomp$226$$($G__48292_t2$jscomp$9_vec__47985$$)?new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$ht1$$,$ht2$$],null):$d$jscomp$226$$($t1$jscomp$8_t1__$1$jscomp$1$$)<$d$jscomp$226$$($G__48292_t2$jscomp$9_vec__47985$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$t1$jscomp$8_t1__$1$jscomp$1$$,$ht$jscomp$4$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$ht$jscomp$4$$,$G__48292_t2$jscomp$9_vec__47985$$],null);$t1$jscomp$8_t1__$1$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__48292_t2$jscomp$9_vec__47985$$,0,null);$G__48292_t2$jscomp$9_vec__47985$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__48292_t2$jscomp$9_vec__47985$$,1,null)}};
$app$common$types$path$segment$path__GT_lines$$=function($G__48283_pending$jscomp$6_shape$jscomp$77$$){var $G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$=$APP.$cljs$core$first$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($G__48283_pending$jscomp$6_shape$jscomp$77$$));$G__48283_pending$jscomp$6_shape$jscomp$77$$=$APP.$cljs$core$rest$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($G__48283_pending$jscomp$6_shape$jscomp$77$$));for(var $result$jscomp$184$$=
$APP.$cljs$core$PersistentVector$EMPTY$$,$last_start$$=null,$prev_point$jscomp$2$$=null;;)if($APP.$cljs$core$truth_$$($G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$)){$G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$=$APP.$cljs$core$__destructure_map$$($G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$);var $command__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$,
$APP.$cljs$cst$1796$command$$),$params$jscomp$101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$,$APP.$cljs$cst$1419$params$$),$point$jscomp$26$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1834$close_path$$,$command__$1$$)?$last_start$$:$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$101$$),$G__48284_result__$1$jscomp$19$$=function(){var $G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$=
$command__$1$$;switch($G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$ instanceof $APP.$cljs$core$Keyword$$?$G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$.$fqn$:null){case "line-to":return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$184$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$prev_point$jscomp$2$$,$point$jscomp$26$$],null));case "curve-to":var $JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1799$c1x$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$101$$),
$APP.$cljs$cst$1800$c1y$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$101$$)),$h2$jscomp$19$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1801$c2x$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$101$$),$APP.$cljs$cst$1802$c2y$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$101$$));$G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$;var $JSCompiler_temp_const$jscomp$10542$$=$result$jscomp$184$$;a:{for(var $start$jscomp$inline_12544$$=
$prev_point$jscomp$2$$,$end$jscomp$inline_12545$$=$point$jscomp$26$$,$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$=0,$G__46965$jscomp$inline_12553_result$jscomp$inline_12549$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;){var $to$jscomp$inline_12550$$=Math.min(1,$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$+.1);$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$=new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$types$path$helpers$curve_values$cljs$0core$0IFn$0_invoke$0arity$05$$($start$jscomp$inline_12544$$,$end$jscomp$inline_12545$$,$JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$,$h2$jscomp$19$$,$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$),$APP.$app$common$types$path$helpers$curve_values$cljs$0core$0IFn$0_invoke$0arity$05$$($start$jscomp$inline_12544$$,$end$jscomp$inline_12545$$,$JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$,
$h2$jscomp$19$$,$to$jscomp$inline_12550$$)],null);$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__46965$jscomp$inline_12553_result$jscomp$inline_12549$$,$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$);if($to$jscomp$inline_12550$$>=1){$JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$=$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$;
break a}$G__46965$jscomp$inline_12553_result$jscomp$inline_12549$$=$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$;$from$jscomp$inline_12548_line$jscomp$inline_12551_result__$1$jscomp$inline_12552$$=$to$jscomp$inline_12550$$}$JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$=void 0}return $G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$.call($APP.$cljs$core$into$$,$JSCompiler_temp_const$jscomp$10542$$,$JSCompiler_inline_result$jscomp$10545_h1$jscomp$25$$);
case "move-to":return $G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$=$result$jscomp$184$$,$APP.$cljs$core$truth_$$($last_start$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$prev_point$jscomp$2$$,$last_start$$],null)):$G__47947_G__47955_JSCompiler_temp_const$jscomp$10543$$;default:return $result$jscomp$184$$}}(),$G__48285_last_start__$1$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1797$move_to$$,$command__$1$$)?$point$jscomp$26$$:$last_start$$;$G__48282_command$jscomp$10_map__47946__$1_temp__5823__auto__$jscomp$103$$=$APP.$cljs$core$first$$($G__48283_pending$jscomp$6_shape$jscomp$77$$);$G__48283_pending$jscomp$6_shape$jscomp$77$$=$APP.$cljs$core$rest$$($G__48283_pending$jscomp$6_shape$jscomp$77$$);var $G__48286$$=$point$jscomp$26$$;$result$jscomp$184$$=$G__48284_result__$1$jscomp$19$$;$last_start$$=$G__48285_last_start__$1$$;
$prev_point$jscomp$2$$=$G__48286$$}else return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$184$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$prev_point$jscomp$2$$,$last_start$$],null))};
$app$common$types$path$segment$closest_point$$=function($content$jscomp$29$$,$position$jscomp$9$$,$precision$jscomp$7$$){return $APP.$cljs$core$first$$($APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p__48009$$,$p__48010$$){var $min_p$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48009$$,0,null),$min_dist$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48009$$,1,null),$cur_p$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48010$$,
0,null),$cur_dist$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48010$$,1,null);return $p__48009$$!=null&&($APP.$cljs$core$not$$($p__48010$$)||$min_dist$$<=$cur_dist$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$min_p$$,$min_dist$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cur_p$$,$cur_dist$$],null)},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__48000_point$jscomp$27_prev_segment$$){var $cur_segment$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48000_point$jscomp$27_prev_segment$$,0,null);$p__48000_point$jscomp$27_prev_segment$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__48000_point$jscomp$27_prev_segment$$,1,null);var $from_p$jscomp$9$$=$APP.$app$common$types$path$helpers$segment__GT_point$$.$cljs$core$IFn$_invoke$arity$1$($p__48000_point$jscomp$27_prev_segment$$),$to_p$jscomp$8$$=$APP.$app$common$types$path$helpers$segment__GT_point$$.$cljs$core$IFn$_invoke$arity$1$($cur_segment$jscomp$1$$),
$h1$jscomp$27$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cur_segment$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1799$c1x$$],null)),$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cur_segment$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,
$APP.$cljs$cst$1800$c1y$$],null))),$h2$jscomp$21$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cur_segment$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1801$c2x$$],null)),$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cur_segment$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1802$c2y$$],null)));$p__48000_point$jscomp$27_prev_segment$$=function(){var $G__48006_e1$jscomp$inline_7917$$=$APP.$cljs$cst$1796$command$$.$cljs$core$IFn$_invoke$arity$1$($cur_segment$jscomp$1$$);switch($G__48006_e1$jscomp$inline_7917$$ instanceof $APP.$cljs$core$Keyword$$?$G__48006_e1$jscomp$inline_7917$$.$fqn$:null){case "line-to":$G__48006_e1$jscomp$inline_7917$$=$APP.$app$common$geom$point$subtract$$($to_p$jscomp$8$$,$from_p$jscomp$9$$);var $e2$jscomp$inline_7918_t$jscomp$inline_7920$$=
$APP.$app$common$geom$point$subtract$$($position$jscomp$9$$,$from_p$jscomp$9$$),$len2$jscomp$inline_7919$$=$app$common$math$sq$$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($G__48006_e1$jscomp$inline_7917$$))+$app$common$math$sq$$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($G__48006_e1$jscomp$inline_7917$$));$e2$jscomp$inline_7918_t$jscomp$inline_7920$$=$APP.$app$common$geom$point$dot$$($G__48006_e1$jscomp$inline_7917$$,$e2$jscomp$inline_7918_t$jscomp$inline_7920$$)/$len2$jscomp$inline_7919$$;
return $e2$jscomp$inline_7918_t$jscomp$inline_7920$$>=0&&$e2$jscomp$inline_7918_t$jscomp$inline_7920$$<=1&&!$APP.$app$common$math$almost_zero_QMARK_$$($len2$jscomp$inline_7919$$)?$APP.$cljs$core$with_meta$$($APP.$app$common$geom$point$add$$($from_p$jscomp$9$$,$APP.$app$common$geom$point$scale$$($G__48006_e1$jscomp$inline_7917$$,$e2$jscomp$inline_7918_t$jscomp$inline_7920$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1836$t$$,$e2$jscomp$inline_7918_t$jscomp$inline_7920$$,$APP.$cljs$cst$1837$from_p$$,
$from_p$jscomp$9$$,$APP.$cljs$cst$1838$to_p$$,$to_p$jscomp$8$$],null)):$APP.$app$common$geom$point$distance$$($position$jscomp$9$$,$from_p$jscomp$9$$)<=$APP.$app$common$geom$point$distance$$($position$jscomp$9$$,$to_p$jscomp$8$$)?$from_p$jscomp$9$$:$to_p$jscomp$8$$;case "curve-to":return $app$common$types$path$segment$curve_closest_point$$($position$jscomp$9$$,$from_p$jscomp$9$$,$to_p$jscomp$8$$,$h1$jscomp$27$$,$h2$jscomp$21$$,$precision$jscomp$7$$);default:return null}}();return $APP.$cljs$core$truth_$$($p__48000_point$jscomp$27_prev_segment$$)?
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p__48000_point$jscomp$27_prev_segment$$,$APP.$app$common$geom$point$distance$$($p__48000_point$jscomp$27_prev_segment$$,$position$jscomp$9$$)],null):null},$APP.$app$common$data$with_prev$$($content$jscomp$29$$))))};
$app$util$dom$get_delta_position$$=function($e$jscomp$247_event$jscomp$31$$){$e$jscomp$247_event$jscomp$31$$=$e$jscomp$247_event$jscomp$31$$ instanceof $APP.$goog$events$BrowserEvent$$?$APP.$cljs$core$_deref$$($e$jscomp$247_event$jscomp$31$$):$e$jscomp$247_event$jscomp$31$$;return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($e$jscomp$247_event$jscomp$31$$.deltaX,$e$jscomp$247_event$jscomp$31$$.deltaY)};
$app$common$geom$shapes$has_point_rect_QMARK_$$=function($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,$param49223$$){var $lines$jscomp$inline_7924_x$jscomp$inline_12556$$=$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$inline_12557$$=$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,
$APP.$cljs$cst$1500$y$$),$w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$=$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,$APP.$cljs$cst$288$width$$);$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$=$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,
$APP.$cljs$cst$1511$height$$);$APP.$app$common$data$num_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$,$y$jscomp$inline_12557$$)?($w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$=Math.max($w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$,.01),$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$=Math.max($h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$,.01),$lines$jscomp$inline_7924_x$jscomp$inline_12556$$=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.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$,$y$jscomp$inline_12557$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$+$w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$,$y$jscomp$inline_12557$$)],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$+$w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$,$y$jscomp$inline_12557$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$+$w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$,$y$jscomp$inline_12557$$+$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$)],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$+$w$jscomp$inline_12558_w__$1$jscomp$inline_12560$$,$y$jscomp$inline_12557$$+$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$,$y$jscomp$inline_12557$$+
$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$,$y$jscomp$inline_12557$$+$h$jscomp$inline_12559_h__$1$jscomp$inline_12561_param49222$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($lines$jscomp$inline_7924_x$jscomp$inline_12556$$,$y$jscomp$inline_12557$$)],
null)],null)):$lines$jscomp$inline_7924_x$jscomp$inline_12556$$=null;return $APP.$app$common$geom$shapes$intersect$is_point_inside_evenodd_QMARK_$$($param49223$$,$lines$jscomp$inline_7924_x$jscomp$inline_12556$$)};
$app$main$data$helpers$get_selrect$$=function($center$jscomp$29_selrect_transform$$,$shape$jscomp$147_width$jscomp$71$$){if($center$jscomp$29_selrect_transform$$!=null){var $map__49294__$1_transform$jscomp$57$$=$APP.$cljs$core$__destructure_map$$($center$jscomp$29_selrect_transform$$);$center$jscomp$29_selrect_transform$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49294__$1_transform$jscomp$57$$,$APP.$cljs$cst$1651$center$$);$shape$jscomp$147_width$jscomp$71$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49294__$1_transform$jscomp$57$$,
$APP.$cljs$cst$288$width$$);var $height$jscomp$64$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49294__$1_transform$jscomp$57$$,$APP.$cljs$cst$1511$height$$);$map__49294__$1_transform$jscomp$57$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49294__$1_transform$jscomp$57$$,$APP.$cljs$cst$1275$transform$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$shapes$center__GT_rect$$.$cljs$core$IFn$_invoke$arity$3$($center$jscomp$29_selrect_transform$$,
$shape$jscomp$147_width$jscomp$71$$,$height$jscomp$64$$),$APP.$app$common$geom$matrix$transform_in$$($center$jscomp$29_selrect_transform$$,$map__49294__$1_transform$jscomp$57$$)],null)}return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape$jscomp$147_width$jscomp$71$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$147_width$jscomp$71$$,$APP.$cljs$cst$1589$selrect$$),$APP.$app$common$geom$shapes$transform_matrix$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$147_width$jscomp$71$$)],
null)};
$app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$=function($rect$jscomp$13_rect_points$$,$points$jscomp$44$$){$rect$jscomp$13_rect_points$$=$APP.$app$common$geom$rect$rect__GT_points$$($rect$jscomp$13_rect_points$$);var $rect_lines$$=$APP.$app$common$geom$shapes$intersect$points__GT_lines$cljs$0core$0IFn$0_invoke$0arity$02$$($rect$jscomp$13_rect_points$$),$points_lines$$=$APP.$app$common$geom$shapes$intersect$points__GT_lines$cljs$0core$0IFn$0_invoke$0arity$02$$($points$jscomp$44$$);return $APP.$app$common$geom$shapes$intersect$is_point_inside_evenodd_QMARK_$$($APP.$cljs$core$first$$($rect$jscomp$13_rect_points$$),
$points_lines$$)||$APP.$app$common$geom$shapes$intersect$is_point_inside_evenodd_QMARK_$$($APP.$cljs$core$first$$($points$jscomp$44$$),$rect_lines$$)||$app$common$geom$shapes$intersect$intersects_lines_QMARK_$$($rect_lines$$,$points_lines$$)};
$app$common$geom$point$normal_right$$=function($p__45789_x$jscomp$1050$$){var $map__45790__$1_y$jscomp$316$$=$APP.$cljs$core$__destructure_map$$($p__45789_x$jscomp$1050$$);$p__45789_x$jscomp$1050$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__45790__$1_y$jscomp$316$$,$APP.$cljs$cst$1499$x$$);$map__45790__$1_y$jscomp$316$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__45790__$1_y$jscomp$316$$,$APP.$cljs$cst$1500$y$$);return $APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($map__45790__$1_y$jscomp$316$$,
-$p__45789_x$jscomp$1050$$))};
$app$main$data$persistence$discard_commit$$=function($commit_id$jscomp$2$$){typeof $app$main$data$persistence$discard_commit_54645$$==="undefined"&&($app$main$data$persistence$discard_commit_54645$$=function($commit_id$jscomp$3$$,$meta54646$$){this.$commit_id$=$commit_id$jscomp$3$$;this.$meta54646$=$meta54646$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$discard_commit_54645$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$persistence$discard_commit_54645$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3103$app_DOT_main_DOT_data_DOT_persistence_SLASH_discard_commit$$},$app$main$data$persistence$discard_commit_54645$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54647$$,$meta54646__$1$$){return new $app$main$data$persistence$discard_commit_54645$$(this.$commit_id$,$meta54646__$1$$)},$app$main$data$persistence$discard_commit_54645$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54646$},$app$main$data$persistence$discard_commit_54645$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$discard_commit_54645$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1634$$,$state$jscomp$169$$){var $self__$jscomp$3408$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$169$$,$APP.$cljs$cst$2138$persistence$$,function($pstate$jscomp$1$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($pstate$jscomp$1$$,
$APP.$cljs$cst$1473$queue$$,function($queue$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3408$$.$commit_id$,$APP.$cljs$core$peek$$($queue$$)))return $APP.$cljs$core$pop$$($queue$$);throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("invalid state",$APP.$cljs$core$PersistentArrayMap$EMPTY$$);}),$APP.$cljs$cst$1779$index$$,$APP.$cljs$core$dissoc$$,$self__$jscomp$3408$$.$commit_id$)})});return new $app$main$data$persistence$discard_commit_54645$$($commit_id$jscomp$2$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$color$interpolate_color$$=function($a1$jscomp$6_c1$jscomp$22$$,$a2$jscomp$2_c2$jscomp$13$$,$offset$jscomp$94$$){if($offset$jscomp$94$$<=$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$6_c1$jscomp$22$$))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($a1$jscomp$6_c1$jscomp$22$$,$APP.$cljs$cst$195$offset$$,$offset$jscomp$94$$);if($offset$jscomp$94$$>=$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$2_c2$jscomp$13$$))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($a2$jscomp$2_c2$jscomp$13$$,$APP.$cljs$cst$195$offset$$,
$offset$jscomp$94$$);var $a$jscomp$350_tr_offset$$=($offset$jscomp$94$$-$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$6_c1$jscomp$22$$))/($APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$2_c2$jscomp$13$$)-$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$6_c1$jscomp$22$$)),$b$jscomp$278_b1$jscomp$2_vec__45220$$=$APP.$app$common$types$color$hex__GT_rgb$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$6_c1$jscomp$22$$)),
$r$jscomp$95_r1$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$278_b1$jscomp$2_vec__45220$$,0,null),$g$jscomp$132_g1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$278_b1$jscomp$2_vec__45220$$,1,null);$b$jscomp$278_b1$jscomp$2_vec__45220$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$278_b1$jscomp$2_vec__45220$$,2,null);var $b2_vec__45223$$=$APP.$app$common$types$color$hex__GT_rgb$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$2_c2$jscomp$13$$)),
$r2$jscomp$11$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b2_vec__45223$$,0,null),$g2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b2_vec__45223$$,1,null);$b2_vec__45223$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b2_vec__45223$$,2,null);$a1$jscomp$6_c1$jscomp$22$$=$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$6_c1$jscomp$22$$);$a2$jscomp$2_c2$jscomp$13$$=$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$2_c2$jscomp$13$$);
$r$jscomp$95_r1$jscomp$12$$+=($r2$jscomp$11$$-$r$jscomp$95_r1$jscomp$12$$)*$a$jscomp$350_tr_offset$$;$g$jscomp$132_g1$$+=($g2$$-$g$jscomp$132_g1$$)*$a$jscomp$350_tr_offset$$;$b$jscomp$278_b1$jscomp$2_vec__45220$$+=($b2_vec__45223$$-$b$jscomp$278_b1$jscomp$2_vec__45220$$)*$a$jscomp$350_tr_offset$$;$a$jscomp$350_tr_offset$$=$a1$jscomp$6_c1$jscomp$22$$+($a2$jscomp$2_c2$jscomp$13$$-$a1$jscomp$6_c1$jscomp$22$$)*$a$jscomp$350_tr_offset$$;return new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1284$color$$,
$APP.$app$common$types$color$rgb__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$r$jscomp$95_r1$jscomp$12$$,$g$jscomp$132_g1$$,$b$jscomp$278_b1$jscomp$2_vec__45220$$],null)),$APP.$cljs$cst$1718$opacity$$,$a$jscomp$350_tr_offset$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$95_r1$jscomp$12$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$132_g1$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$278_b1$jscomp$2_vec__45220$$,$APP.$cljs$cst$744$alpha$$,$a$jscomp$350_tr_offset$$,$APP.$cljs$cst$195$offset$$,
$offset$jscomp$94$$],null)};
$app$common$types$color$interpolate_gradient$$=function($end$jscomp$53_stops$jscomp$1$$,$offset$jscomp$96$$){var $idx$jscomp$73$$=$APP.$app$common$data$index_of_pred$$($end$jscomp$53_stops$jscomp$1$$,function($p1__45256_SHARP_$$){return $offset$jscomp$96$$<=$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($p1__45256_SHARP_$$)}),$start$jscomp$187$$=$idx$jscomp$73$$==null?$APP.$cljs$core$last$$($end$jscomp$53_stops$jscomp$1$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$73$$,0)?
$APP.$cljs$core$first$$($end$jscomp$53_stops$jscomp$1$$):$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$53_stops$jscomp$1$$,$idx$jscomp$73$$-1);$end$jscomp$53_stops$jscomp$1$$=$idx$jscomp$73$$==null?$APP.$cljs$core$last$$($end$jscomp$53_stops$jscomp$1$$):$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$53_stops$jscomp$1$$,$idx$jscomp$73$$);return $app$common$types$color$interpolate_color$$($start$jscomp$187$$,$end$jscomp$53_stops$jscomp$1$$,$offset$jscomp$96$$)};
$app$common$types$color$uniform_spread_QMARK_$$=function($stops$$){var $cs$jscomp$2_expect_vals$$=$APP.$cljs$core$count$$($stops$$),$from$jscomp$10$$=$APP.$cljs$core$first$$($stops$$),$to$jscomp$9$$=$APP.$cljs$core$last$$($stops$$);$cs$jscomp$2_expect_vals$$=$app$common$types$color$offset_spread$$($APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$10$$),$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$9$$),$cs$jscomp$2_expect_vals$$);return $APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$true_QMARK_$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$3$(function($ec_expected_offset$$,$stop$$){var $and__5023__auto__$jscomp$224$$=$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($stop$$),$ec_expected_offset$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$224$$)?($ec_expected_offset$$=$app$common$types$color$interpolate_color$$($from$jscomp$10$$,$to$jscomp$9$$,$ec_expected_offset$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($ec_expected_offset$$),
$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($stop$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($ec_expected_offset$$),$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($stop$$))):$and__5023__auto__$jscomp$224$$},$cs$jscomp$2_expect_vals$$,$stops$$))};$app$common$types$color$hsv__GT_hex$$=function($hsv$$){return $APP.$app$common$types$color$rgb__GT_hex$$($app$common$types$color$hsv__GT_rgb$$($hsv$$))};
$cljs$tools$reader$resolve_symbol$$=function($s$jscomp$174$$){throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("resolve-symbol is not implemented",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$242$sym$$,$s$jscomp$174$$],null));};
$cljs$tools$reader$register_gensym$$=function($sym$jscomp$18$$){if($APP.$cljs$core$not$$($cljs$tools$reader$gensym_env$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Gensym literal not in syntax-quote",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$232$illegal_state$$],null));var $gs_or__5025__auto__$jscomp$58$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cljs$tools$reader$gensym_env$$,$sym$jscomp$18$$);if($APP.$cljs$core$truth_$$($gs_or__5025__auto__$jscomp$58$$))return $gs_or__5025__auto__$jscomp$58$$;
$gs_or__5025__auto__$jscomp$58$$=$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$([$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$name$$($sym$jscomp$18$$),0,$APP.$cljs$core$name$$($sym$jscomp$18$$).length-1),"__",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$tools$reader$impl$utils$last_id$$,$APP.$cljs$core$inc$$)),"__auto__"].join(""));$cljs$tools$reader$gensym_env$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cljs$tools$reader$gensym_env$$,
$sym$jscomp$18$$,$gs_or__5025__auto__$jscomp$58$$);return $gs_or__5025__auto__$jscomp$58$$};
$cljs$tools$reader$register_arg$$=function($n$jscomp$175$$){if($APP.$cljs$core$truth_$$($cljs$tools$reader$arg_env$$)){var $g$jscomp$81_temp__5823__auto__$jscomp$24$$=$cljs$tools$reader$arg_env$$.call(null,$n$jscomp$175$$);if($APP.$cljs$core$truth_$$($g$jscomp$81_temp__5823__auto__$jscomp$24$$))return $g$jscomp$81_temp__5823__auto__$jscomp$24$$;$g$jscomp$81_temp__5823__auto__$jscomp$24$$=$cljs$tools$reader$garg$$($n$jscomp$175$$);$cljs$tools$reader$arg_env$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cljs$tools$reader$arg_env$$,
$n$jscomp$175$$,$g$jscomp$81_temp__5823__auto__$jscomp$24$$);return $g$jscomp$81_temp__5823__auto__$jscomp$24$$}throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Arg literal not in #()",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$232$illegal_state$$],null));};
$cljs$tools$reader$check_eof_error$$=function($and__5023__auto__$jscomp$inline_7941_form$jscomp$11$$,$rdr$jscomp$76$$,$first_line$$){$and__5023__auto__$jscomp$inline_7941_form$jscomp$11$$===$cljs$tools$reader$READ_EOF$$&&($and__5023__auto__$jscomp$inline_7941_form$jscomp$11$$=$first_line$$<0,$APP.$cljs$tools$reader$impl$errors$throw_eof_error$$($rdr$jscomp$76$$,$and__5023__auto__$jscomp$inline_7941_form$jscomp$11$$?$first_line$$:$and__5023__auto__$jscomp$inline_7941_form$jscomp$11$$))};
$cljs$tools$reader$read_regex$$=function($rdr$jscomp$56$$){for(var $sb$jscomp$12$$=new $APP.$goog$string$StringBuffer$$,$ch_24935__$2_ch__$1$jscomp$2$$=$rdr$jscomp$56$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);;){if('"'===$ch_24935__$2_ch__$1$jscomp$2$$)return $APP.$cljs$core$re_pattern$$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb$jscomp$12$$));if($ch_24935__$2_ch__$1$jscomp$2$$==null)return $APP.$cljs$tools$reader$impl$errors$throw_eof_reading$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$56$$,
$APP.$cljs$cst$214$regex$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$sb$jscomp$12$$]));$sb$jscomp$12$$.append($ch_24935__$2_ch__$1$jscomp$2$$);"\\"===$ch_24935__$2_ch__$1$jscomp$2$$&&($ch_24935__$2_ch__$1$jscomp$2$$=$rdr$jscomp$56$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null),$ch_24935__$2_ch__$1$jscomp$2$$==null&&$APP.$cljs$tools$reader$impl$errors$throw_eof_reading$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$56$$,$APP.$cljs$cst$214$regex$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$sb$jscomp$12$$])),
$sb$jscomp$12$$.append($ch_24935__$2_ch__$1$jscomp$2$$));$ch_24935__$2_ch__$1$jscomp$2$$=$rdr$jscomp$56$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null)}};
$cljs$tools$reader$read_token$$=function($rdr$jscomp$53$$,$ch$jscomp$26_kind$jscomp$11$$,$initch$jscomp$1$$){if($initch$jscomp$1$$==null)return $APP.$cljs$tools$reader$impl$errors$throw_eof_at_start$$($rdr$jscomp$53$$,$ch$jscomp$26_kind$jscomp$11$$);$APP.$cljs$tools$reader$sb$$.clear();for($ch$jscomp$26_kind$jscomp$11$$=$initch$jscomp$1$$;;){if($APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$26_kind$jscomp$11$$)||$cljs$tools$reader$macro_terminating_QMARK_$$($ch$jscomp$26_kind$jscomp$11$$)||
$ch$jscomp$26_kind$jscomp$11$$==null)return $ch$jscomp$26_kind$jscomp$11$$!=null&&$rdr$jscomp$53$$.$cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2$(null,$ch$jscomp$26_kind$jscomp$11$$),$APP.$cljs$tools$reader$sb$$.toString();$APP.$cljs$tools$reader$sb$$.append($ch$jscomp$26_kind$jscomp$11$$);$ch$jscomp$26_kind$jscomp$11$$=$rdr$jscomp$53$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null)}};
$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$04$$=function($token$jscomp$19$$,$l$jscomp$74_length$jscomp$26$$,$base$jscomp$9$$){$l$jscomp$74_length$jscomp$26$$=1+$l$jscomp$74_length$jscomp$26$$;$APP.$cljs$core$count$$($token$jscomp$19$$)!==$l$jscomp$74_length$jscomp$26$$&&$APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_literal$$($token$jscomp$19$$);for(var $i$jscomp$287$$=1,$G__24939_uc$$=0;;){if($i$jscomp$287$$===$l$jscomp$74_length$jscomp$26$$)return String.fromCharCode($G__24939_uc$$);
var $d$jscomp$101$$=$APP.$cljs$tools$reader$impl$utils$char_code$$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($token$jscomp$19$$,$i$jscomp$287$$),$base$jscomp$9$$);if($d$jscomp$101$$===-1)return $APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_digit_in_token$$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($token$jscomp$19$$,$i$jscomp$287$$),$token$jscomp$19$$);$G__24939_uc$$=$d$jscomp$101$$+$G__24939_uc$$*$base$jscomp$9$$;$i$jscomp$287$$+=1}};
$cljs$tools$reader$read_char_STAR_$$=function($rdr$jscomp$58$$){var $c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$=$rdr$jscomp$58$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);if($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$!=null){$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$=$cljs$tools$reader$macro_terminating_QMARK_$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$)||$APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$)?
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$):$cljs$tools$reader$read_token$$($rdr$jscomp$58$$,$APP.$cljs$cst$215$character$$,$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$);var $ic_len$jscomp$54_token_len_uc$jscomp$2$$=$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$.length;if(1===$ic_len$jscomp$54_token_len_uc$jscomp$2$$)return $c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$.charAt(0);
if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"newline"))return"\n";if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"space"))return" ";if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"tab"))return"\t";if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,
"backspace"))return"\b";if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"formfeed"))return"\f";if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"return"))return"\r";if($APP.$cljs$core$truth_$$($APP.$goog$string$internal$startsWith$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"u")))return $c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$=
$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$04$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,4,16),$ic_len$jscomp$54_token_len_uc$jscomp$2$$=$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$.charCodeAt(0),$ic_len$jscomp$54_token_len_uc$jscomp$2$$>55295&&$ic_len$jscomp$54_token_len_uc$jscomp$2$$<57344?$APP.$cljs$tools$reader$impl$errors$throw_invalid_character_literal$$($rdr$jscomp$58$$,$ic_len$jscomp$54_token_len_uc$jscomp$2$$.toString(16)):
$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$;if($APP.$cljs$core$truth_$$($APP.$goog$string$internal$startsWith$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"o"))){--$ic_len$jscomp$54_token_len_uc$jscomp$2$$;if($ic_len$jscomp$54_token_len_uc$jscomp$2$$>3)return $APP.$cljs$tools$reader$impl$errors$throw_invalid_octal_len$$($rdr$jscomp$58$$,$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$);$ic_len$jscomp$54_token_len_uc$jscomp$2$$=
$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$04$$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,$ic_len$jscomp$54_token_len_uc$jscomp$2$$,8);$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,1);return parseInt($c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,8)<=255?$ic_len$jscomp$54_token_len_uc$jscomp$2$$:
$APP.$cljs$tools$reader$impl$errors$throw_bad_octal_number$$($rdr$jscomp$58$$)}return $APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$58$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Unsupported character: ",$c$jscomp$142_ch$jscomp$31_token$jscomp$21_token$jscomp$inline_7943$$,"."]))}return $APP.$cljs$tools$reader$impl$errors$throw_eof_in_character$$($rdr$jscomp$58$$)};
$cljs$tools$reader$read_unmatched_delimiter$$=function($rdr$jscomp$55$$,$ch$jscomp$28$$){return $APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$55$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Unmatched delimiter ",$ch$jscomp$28$$,"."]))};
$cljs$tools$reader$read_keyword$$=function($reader$jscomp$35$$){var $ch$jscomp$35_token$jscomp$23$$=$reader$jscomp$35$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);if($APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$35_token$jscomp$23$$))return $APP.$cljs$tools$reader$impl$errors$throw_single_colon$$($reader$jscomp$35$$);$ch$jscomp$35_token$jscomp$23$$=$cljs$tools$reader$read_token$$($reader$jscomp$35$$,$APP.$cljs$cst$221$keyword$$,$ch$jscomp$35_token$jscomp$23$$);
var $name$jscomp$121_s$jscomp$171$$=$APP.$cljs$tools$reader$impl$commons$parse_symbol$$($ch$jscomp$35_token$jscomp$23$$);if($name$jscomp$121_s$jscomp$171$$!=null){var $ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$=$name$jscomp$121_s$jscomp$171$$.$cljs$core$IIndexed$_nth$arity$2$(null,0);$name$jscomp$121_s$jscomp$171$$=$name$jscomp$121_s$jscomp$171$$.$cljs$core$IIndexed$_nth$arity$2$(null,1);if(":"===$ch$jscomp$35_token$jscomp$23$$.charAt(0)){if($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$!=
null)return $ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$=$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$,1)),$ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$(null,$ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$),$APP.$cljs$core$truth_$$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$)?
$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$),$name$jscomp$121_s$jscomp$171$$):$APP.$cljs$tools$reader$impl$errors$throw_invalid$$($reader$jscomp$35$$,$APP.$cljs$cst$221$keyword$$,[":",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($ch$jscomp$35_token$jscomp$23$$)].join(""));$ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$=null;return $APP.$cljs$core$truth_$$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$)?
$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$),$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$121_s$jscomp$171$$,1)):$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($reader$jscomp$35$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid token: :",$ch$jscomp$35_token$jscomp$23$$]))}return $APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$2$($ns$jscomp$19_sym$jscomp$inline_12563_temp__5823__auto__$jscomp$22$$,
$name$jscomp$121_s$jscomp$171$$)}return $APP.$cljs$tools$reader$impl$errors$throw_invalid$$($reader$jscomp$35$$,$APP.$cljs$cst$221$keyword$$,[":",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($ch$jscomp$35_token$jscomp$23$$)].join(""))};
$cljs$tools$reader$read_symbol$$=function($end_line$jscomp$inline_7952_rdr$jscomp$69$$,$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$){var $column$jscomp$7_vec__24693$$=$cljs$tools$reader$starting_line_col_info$$($end_line$jscomp$inline_7952_rdr$jscomp$69$$),$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$7_vec__24693$$,0,null);$column$jscomp$7_vec__24693$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$7_vec__24693$$,
1,null);$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$=$cljs$tools$reader$read_token$$($end_line$jscomp$inline_7952_rdr$jscomp$69$$,$APP.$cljs$cst$219$symbol$$,$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$);if($JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$==null)return null;switch($JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$){case "nil":return null;case "true":return!0;case "false":return!1;case "/":return $APP.$cljs$cst$220$_SLASH_$$;
default:var $JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$=$APP.$cljs$tools$reader$impl$commons$parse_symbol$$($JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$);if($JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$!=null){$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$=$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$.$cljs$core$IIndexed$_nth$arity$2$(null,0),$JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$.$cljs$core$IIndexed$_nth$arity$2$(null,
1));$JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$=$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$.$cljs$core$IWithMeta$_with_meta$arity$2$;if($JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$==null)$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$=null;else{var $file$jscomp$inline_7949_filem$jscomp$inline_7950$$=$APP.$cljs$tools$reader$reader_types$get_file_name$$($end_line$jscomp$inline_7952_rdr$jscomp$69$$);
$file$jscomp$inline_7949_filem$jscomp$inline_7950$$=$file$jscomp$inline_7949_filem$jscomp$inline_7950$$==null?null:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$208$file$$,$file$jscomp$inline_7949_filem$jscomp$inline_7950$$],null);var $end_column$jscomp$inline_7953_vec__24683$jscomp$inline_7951$$=$cljs$tools$reader$ending_line_col_info$$($end_line$jscomp$inline_7952_rdr$jscomp$69$$);$end_line$jscomp$inline_7952_rdr$jscomp$69$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$inline_7953_vec__24683$jscomp$inline_7951$$,
0,null);$end_column$jscomp$inline_7953_vec__24683$jscomp$inline_7951$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$inline_7953_vec__24683$jscomp$inline_7951$$,1,null);$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file$jscomp$inline_7949_filem$jscomp$inline_7950$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$209$line$$,$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$,$APP.$cljs$cst$216$column$$,$column$jscomp$7_vec__24693$$,$APP.$cljs$cst$217$end_line$$,$end_line$jscomp$inline_7952_rdr$jscomp$69$$,$APP.$cljs$cst$218$end_column$$,$end_column$jscomp$inline_7953_vec__24683$jscomp$inline_7951$$],null)]))}$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$=$JSCompiler_temp_const$jscomp$1487_p$jscomp$39$$.call($JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$,
null,$JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$)}else $JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$=$APP.$cljs$tools$reader$impl$errors$throw_invalid$$($end_line$jscomp$inline_7952_rdr$jscomp$69$$,$APP.$cljs$cst$219$symbol$$,$JSCompiler_temp_const$jscomp$1488_initch$jscomp$4_token$jscomp$22$$);return $JSCompiler_inline_result$jscomp$1489_JSCompiler_temp$jscomp$1486_line$jscomp$17$$}};
$app$main$data$exports$assets$show_workspace_export_frames_dialog$$=function($frames$jscomp$17$$){typeof $app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$==="undefined"&&($app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$=function($frames$jscomp$18$$,$meta70495$$){this.frames=$frames$jscomp$18$$;this.$meta70495$=$meta70495$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4577$app_DOT_main_DOT_data_DOT_exports_DOT_assets_SLASH_show_workspace_export_frames_dialog$$},$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70496$$,$meta70495__$1$$){return new $app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$(this.frames,
$meta70495__$1$$)},$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70495$},$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2587_exports__$1$jscomp$6$$,$state$jscomp$918$$){var $file_id$jscomp$286$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$918$$),$page_id$jscomp$323$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$918$$);$_$jscomp$2587_exports__$1$jscomp$6$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($frame$jscomp$39$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$3082$enabled$$,!0,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$323$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$286$$,
$APP.$cljs$cst$2231$object_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$39$$),$APP.$cljs$cst$1795$shape$$,$frame$jscomp$39$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$39$$)],null)},this.frames);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4578$export_frames$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1854$exports$$,$_$jscomp$2587_exports__$1$jscomp$6$$,
$APP.$cljs$cst$1770$origin$$,"workspace:menu"],null)))});return new $app$main$data$exports$assets$show_workspace_export_frames_dialog_70494$$($frames$jscomp$17$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$sort_colorpicker_stops$$=function(){typeof $app$main$data$workspace$colors$sort_colorpicker_stops_69519$$==="undefined"&&($app$main$data$workspace$colors$sort_colorpicker_stops_69519$$=function($meta69520$$){this.$meta69520$=$meta69520$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4065$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_sort_colorpicker_stops$$},$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69521$$,$meta69520__$1$$){return new $app$main$data$workspace$colors$sort_colorpicker_stops_69519$$($meta69520__$1$$)},$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69520$},
$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$sort_colorpicker_stops_69519$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2207$$,$state$jscomp$602$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$602$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$35$$){var $stop$jscomp$5_stops__$1$jscomp$5$$=function(){var $or__5025__auto__$jscomp$781$$=
$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$35$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$781$$)?$or__5025__auto__$jscomp$781$$:0}(),$stop__$1_stops$jscomp$13$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$split_color_components$$,$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$35$$)),$stop_val$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stop__$1_stops$jscomp$13$$,
$stop$jscomp$5_stops__$1$jscomp$5$$);$stop$jscomp$5_stops__$1$jscomp$5$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$stop__$1_stops$jscomp$13$$));$stop__$1_stops$jscomp$13$$=$APP.$app$common$data$index_of_pred$$($stop$jscomp$5_stops__$1$jscomp$5$$,function($p1__69518_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__69518_SHARP_$$,$stop_val$$)});
return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$35$$,$APP.$cljs$cst$4046$editing_stop$$,$stop__$1_stops$jscomp$13$$),$APP.$cljs$cst$1717$stops$$,$stop$jscomp$5_stops__$1$jscomp$5$$)})});return new $app$main$data$workspace$colors$sort_colorpicker_stops_69519$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$text$fix_gradients$$=function($data$jscomp$344$$){function $update_fill$$($fill$jscomp$15$$){return $APP.$app$common$data$update_in_when$$($fill$jscomp$15$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1732$fill_color_gradient$$,$APP.$cljs$cst$139$type$$],null),$fix_type$$)}function $fix_type$$($type$jscomp$470$$){return typeof $type$jscomp$470$$==="string"?$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($type$jscomp$470$$):
$type$jscomp$470$$}return $APP.$app$common$data$update_when$$($data$jscomp$344$$,$APP.$cljs$cst$1618$fills$$,function($fills$jscomp$21$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($update_fill$$,$fills$jscomp$21$$)})};
$app$common$text$build_style_index$$=function($G__67216_length$jscomp$45_result$jscomp$290$$,$G__67217_ranges$jscomp$5_ranges__$1$$){$G__67216_length$jscomp$45_result$jscomp$290$$=$APP.$cljs$core$transient$0$$($APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$constantly$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($G__67216_length$jscomp$45_result$jscomp$290$$)));for($G__67217_ranges$jscomp$5_ranges__$1$$=$APP.$cljs$core$seq$$($G__67217_ranges$jscomp$5_ranges__$1$$);;){var $temp__5823__auto__$jscomp$174$$=
$APP.$cljs$core$first$$($G__67217_ranges$jscomp$5_ranges__$1$$);if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$174$$)){var $map__67096$$=$temp__5823__auto__$jscomp$174$$,$map__67096__$1$$=$APP.$cljs$core$__destructure_map$$($map__67096$$),$item$jscomp$85$$=$map__67096__$1$$,$offset$jscomp$165$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__67096__$1$$,$APP.$cljs$cst$195$offset$$),$length__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__67096__$1$$,$APP.$cljs$cst$255$length$$);
$G__67216_length$jscomp$45_result$jscomp$290$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($result$jscomp$291$$,$ranges__$1$jscomp$1$$,$map__67096$jscomp$1$$,$map__67096__$1$jscomp$1$$,$item$jscomp$86$$){return function($result__$1$jscomp$36$$,$index$jscomp$287$$){var $prev$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($result__$1$jscomp$36$$,$index$jscomp$287$$);return $APP.$cljs$core$assoc_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($result__$1$jscomp$36$$,
$index$jscomp$287$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($prev$jscomp$17$$,$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$86$$),$APP.$cljs$cst$108$val$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$86$$)))}}($G__67216_length$jscomp$45_result$jscomp$290$$,$G__67217_ranges$jscomp$5_ranges__$1$$,$map__67096$$,$map__67096__$1$$,$item$jscomp$85$$,$offset$jscomp$165$$,$length__$1$$,$temp__5823__auto__$jscomp$174$$),$G__67216_length$jscomp$45_result$jscomp$290$$,
$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($offset$jscomp$165$$,$offset$jscomp$165$$+$length__$1$$));$G__67217_ranges$jscomp$5_ranges__$1$$=$APP.$cljs$core$rest$$($G__67217_ranges$jscomp$5_ranges__$1$$)}else return $APP.$cljs$core$_persistent_BANG_$$($G__67216_length$jscomp$45_result$jscomp$290$$)}};
$app$render_wasm$text_editor$merge_exported_texts_into_content$$=function($content$jscomp$132$$,$exported_texts_new_paras$$){var $new_para_set_para_set$$=$APP.$cljs$core$first$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$132$$,$APP.$cljs$cst$340$children$$)),$orig_paras$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_para_set_para_set$$,$APP.$cljs$cst$340$children$$),$num_orig$$=$APP.$cljs$core$count$$($orig_paras$$),$last_orig_para$$=$APP.$cljs$core$seq$$($orig_paras$$)?
$APP.$cljs$core$last$$($orig_paras$$):null,$template_span$$=$APP.$cljs$core$truth_$$($last_orig_para$$)?$APP.$cljs$core$last$$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($last_orig_para$$)):null;$exported_texts_new_paras$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$3$(function($orig_para_para_idx$$,$exported_span_texts$$){$orig_para_para_idx$$=$orig_para_para_idx$$<$num_orig$$?$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($orig_paras$$,$orig_para_para_idx$$):
$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($last_orig_para$$,$APP.$cljs$cst$340$children$$);var $orig_spans$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($orig_para_para_idx$$,$APP.$cljs$cst$340$children$$),$num_orig_spans$$=$APP.$cljs$core$count$$($orig_spans$$),$last_orig_span$$=$APP.$cljs$core$seq$$($orig_spans$$)?$APP.$cljs$core$last$$($orig_spans$$):null;return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($orig_para_para_idx$$,$APP.$cljs$cst$340$children$$,
$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$3$(function($orig_span_span_idx$$,$new_text$$){$orig_span_span_idx$$=$orig_span_span_idx$$<$num_orig_spans$$?$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($orig_spans$$,$orig_span_span_idx$$):$APP.$cljs$core$truth_$$($last_orig_span$$)?$last_orig_span$$:$template_span$$;return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($orig_span_span_idx$$,$APP.$cljs$cst$1572$text$$,$new_text$$)},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$count$$($exported_span_texts$$)),
$exported_span_texts$$))},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$count$$($exported_texts_new_paras$$)),$exported_texts_new_paras$$);$new_para_set_para_set$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($new_para_set_para_set$$,$APP.$cljs$cst$340$children$$,$exported_texts_new_paras$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($content$jscomp$132$$,$APP.$cljs$cst$340$children$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$new_para_set_para_set$$],null))};
$app$render_wasm$text_editor$text_editor_sync_content$$=function(){var $JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$=($JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$=$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$)?$APP.$app$render_wasm$text_editor$text_editor_is_active_QMARK_$$():$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$;if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$)){$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$=
$APP.$app$render_wasm$text_editor$text_editor_get_active_shape_id$$();a:{if($APP.$app$render_wasm$wasm$context_initialized_QMARK_$$){var $json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_export_content)();if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$)?$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$!==
0:$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$)){$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=$app$render_wasm$mem$read_null_terminated_string$$($json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$);$APP.$app$render_wasm$mem$free$$();$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=JSON.parse($json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$);
break a}}$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=null}if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$)?$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$:$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$)){$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=
$APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,!1]));var $content$jscomp$133$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$render_wasm$text_editor$shape_text_contents$$),$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$);
if($APP.$cljs$core$truth_$$($content$jscomp$133$$))return $json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$=$app$render_wasm$text_editor$merge_exported_texts_into_content$$($content$jscomp$133$$,$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$render_wasm$text_editor$shape_text_contents$$,$APP.$cljs$core$assoc$$,$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$,
$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2500$shape_id$$,$JSCompiler_inline_result$jscomp$10548_and__5023__auto__$jscomp$inline_12565_shape_id$jscomp$44$$,$APP.$cljs$cst$1621$content$$,$json_str$jscomp$inline_13838_merged_new_texts_ptr$jscomp$inline_13837_texts_clj$$],null)}}return null};
$app$common$types$variant$compare_properties$cljs$0core$0IFn$0_invoke$0arity$02$$=function($grouped$jscomp$1_props_list$jscomp$1$$){$grouped$jscomp$1_props_list$jscomp$1$$=$APP.$cljs$core$group_by$$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$concat$$,$grouped$jscomp$1_props_list$jscomp$1$$));return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$){var $name$jscomp$184$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$,0,null);$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$,1,null);$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$260$value$$,
$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$);$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_EQ_$$,$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$))?$APP.$cljs$core$first$$($JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$):!1;return new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$723$name$$,$name$jscomp$184$$,$APP.$cljs$cst$260$value$$,$JSCompiler_inline_result$jscomp$1520_p__49125_vals$jscomp$inline_7956_values$jscomp$38$$],null)},$grouped$jscomp$1_props_list$jscomp$1$$)};
$app$common$types$color$uniform_spread$$=function($from$jscomp$11$$,$to$jscomp$10$$,$num_stops$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($offset$jscomp$95$$){return $app$common$types$color$interpolate_color$$($from$jscomp$11$$,$to$jscomp$10$$,$offset$jscomp$95$$)},$app$common$types$color$offset_spread$$($APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$11$$),$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$10$$),$num_stops$$))};
$app$util$webapi$read_file_as_text$$=function($file$jscomp$8$$){return $APP.$app$util$webapi$file_reader$$(function($p1__43459_SHARP_$$){return $p1__43459_SHARP_$$.readAsText($file$jscomp$8$$)})};
$app$util$strings$matches_search$$=function($name$jscomp$258_nm$jscomp$2$$,$search_term_st$jscomp$1$$){if($APP.$cuerdas$core$empty_QMARK_$$($search_term_st$jscomp$1$$))return!0;$search_term_st$jscomp$1$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$lower$$($search_term_st$jscomp$1$$));$name$jscomp$258_nm$jscomp$2$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$lower$$($name$jscomp$258_nm$jscomp$2$$));return $APP.$cuerdas$core$includes_QMARK_$$($name$jscomp$258_nm$jscomp$2$$,
$search_term_st$jscomp$1$$)};
$app$common$types$variant$find_boolean_pair$$=function($p__49136$$){var $a$jscomp$367$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49136$$,0,null),$b$jscomp$296$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49136$$,1,null),$a_SINGLEQUOTE_$jscomp$3$$=$APP.$cuerdas$core$lower$$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($a$jscomp$367$$)),$b_SINGLEQUOTE_$jscomp$1$$=$APP.$cuerdas$core$lower$$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($b$jscomp$296$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($p__49136$$),
2)?$APP.$cljs$core$some$$(function($f$jscomp$778_p__49146$$){var $t$jscomp$88$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($f$jscomp$778_p__49146$$,0,null);$f$jscomp$778_p__49146$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($f$jscomp$778_p__49146$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($a_SINGLEQUOTE_$jscomp$3$$,$t$jscomp$88$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($b_SINGLEQUOTE_$jscomp$1$$,$f$jscomp$778_p__49146$$)?$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$a$jscomp$367$$,
!0,$b$jscomp$296$$,!1]):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($b_SINGLEQUOTE_$jscomp$1$$,$t$jscomp$88$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($a_SINGLEQUOTE_$jscomp$3$$,$f$jscomp$778_p__49146$$)?$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$b$jscomp$296$$,!0,$a$jscomp$367$$,!1]):null},$APP.$app$common$types$variant$boolean_pairs$$):null};
$app$common$types$file$get_shape_in_copy$$=function($file_data$jscomp$38$$,$main_shape$$,$root_copy$$){return $APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__51639_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2032$shape_ref$$.$cljs$core$IFn$_invoke$arity$1$($p1__51639_SHARP_$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($main_shape$$))},$APP.$app$common$geom$shapes$tree_seq$get_children_seq$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($root_copy$$),
$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($file_data$jscomp$38$$)))};
$app$util$text_editor$get_content_changes$$=function($old_state$$,$state$jscomp$505$$){var $old_blocks$$=$APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($old_state$$.getCurrentContent().getBlockMap().toJS(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,!1])),$new_blocks$$=$APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$505$$.getCurrentContent().getBlockMap().toJS(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,
!1]));return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__67265_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($new_blocks$$,$APP.$cljs$core$first$$($p1__67265_SHARP_$$))}),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($bstate_p__67267$$){var $bkey$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bstate_p__67267$$,0,null);$bstate_p__67267$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bstate_p__67267$$,1,null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$bkey$jscomp$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3838$old$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bstate_p__67267$$,"text"),$APP.$cljs$cst$3839$new$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($new_blocks$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$bkey$jscomp$1$$,"text"],null))],null)],null)})),$old_blocks$$),$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__67266_SHARP_$$){return!$APP.$cljs$core$contains_QMARK_$$($old_blocks$$,$APP.$cljs$core$first$$($p1__67266_SHARP_$$))}),
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($bstate$jscomp$1_p__67271$$){var $bkey$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bstate$jscomp$1_p__67271$$,0,null);$bstate$jscomp$1_p__67271$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bstate$jscomp$1_p__67271$$,1,null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$bkey$jscomp$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3838$old$$,
null,$APP.$cljs$cst$3839$new$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bstate$jscomp$1_p__67271$$,"text")],null)],null)})),$new_blocks$$)]))};
$app$common$types$shape_tree$start_page_index$$=function($objects$jscomp$155$$){return $APP.$cljs$core$with_meta$$($objects$jscomp$155$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2068$app_DOT_common_DOT_types_DOT_shape_tree_SLASH_index_frames$$,$APP.$app$common$types$shape_tree$get_frames$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($objects$jscomp$155$$,null))],null))};
$app$common$geom$shapes$intersect$overlaps_text_QMARK_$$=function($p__48836_position_data$jscomp$3$$,$rect$jscomp$16$$){var $map__48837__$1$$=$APP.$cljs$core$__destructure_map$$($p__48836_position_data$jscomp$3$$);$p__48836_position_data$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48837__$1$$,$APP.$cljs$cst$1875$position_data$$);if($p__48836_position_data$jscomp$3$$!=null&&$APP.$app$common$data$not_empty_QMARK_$$($p__48836_position_data$jscomp$3$$)){var $center$jscomp$24$$=
$APP.$app$common$geom$shapes$common$shape__GT_center$$($map__48837__$1$$);return $APP.$cljs$core$some$$(function($p1__48835_SHARP_$$){return $app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$($rect$jscomp$16$$,$p1__48835_SHARP_$$)},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$(function($rect_points$jscomp$3$$){return $APP.$app$common$geom$shapes$common$transform_points$cljs$0core$0IFn$0_invoke$0arity$03$$($rect_points$jscomp$3$$,
$center$jscomp$24$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($map__48837__$1$$))},$APP.$app$common$geom$rect$rect__GT_points$$,$APP.$app$common$geom$shapes$text$position_data__GT_rect$$),$p__48836_position_data$jscomp$3$$))}return $app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$($rect$jscomp$16$$,$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($map__48837__$1$$))};
$app$common$geom$shapes$intersect$overlaps_QMARK_$$=function($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$,$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$){var $and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=
$APP.$cljs$cst$1639$stroke_width$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$);$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$)?
$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$:0)/2;$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$,
$APP.$cljs$cst$1499$x$$,$APP.$cljs$core$_$$,$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$),$APP.$cljs$cst$1500$y$$,$APP.$cljs$core$_$$,$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$),
$APP.$cljs$cst$288$width$$,$APP.$cljs$core$_PLUS_$$,2*$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$),$APP.$cljs$cst$1511$height$$,$APP.$cljs$core$_PLUS_$$,2*$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$);
if($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=$APP.$cljs$core$not$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))return $and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$;
if($APP.$app$common$files$helpers$path_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)||$APP.$app$common$files$helpers$bool_shape_QMARK_$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)){if($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=
$app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$,$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)))if($APP.$app$common$data$not_empty_QMARK_$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))){var $JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=
$APP.$cljs$core$count$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))>100;$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$APP.$app$common$geom$rect$rect__GT_points$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$);
$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=$APP.$app$common$geom$shapes$intersect$points__GT_lines$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$);$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$?
($JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$),$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=
$APP.$app$common$geom$shapes$intersect$points__GT_lines$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$)):$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=
$app$common$types$path$segment$path__GT_lines$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$);$ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))));
var $center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$=$app$common$geom$shapes$intersect$intersects_lines_QMARK_$$($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$,$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$);
$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$?$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$:$APP.$cljs$core$truth_$$(!0)?$app$common$geom$shapes$intersect$is_point_inside_nonzero_QMARK_$$($APP.$cljs$core$first$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$),
$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$)||$app$common$geom$shapes$intersect$is_point_inside_nonzero_QMARK_$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$,$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$):
!1}else $JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=null;else $JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$;
return $JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$}if($APP.$app$common$files$helpers$circle_shape_QMARK_$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)){if($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=
$app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$,$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))){$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=
$APP.$app$common$geom$rect$rect__GT_points$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$);$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$APP.$app$common$geom$shapes$intersect$points__GT_lines$cljs$0core$0IFn$0_invoke$0arity$02$$($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$);
var $height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$=$APP.$cljs$core$__destructure_map$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$);$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$,
$APP.$cljs$cst$1499$x$$);var $ry$jscomp$inline_12594_y$jscomp$inline_12582$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$,$APP.$cljs$cst$1500$y$$);$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$,$APP.$cljs$cst$288$width$$);$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$,
$APP.$cljs$cst$1511$height$$);$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$+$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$/
2,$ry$jscomp$inline_12594_y$jscomp$inline_12582$$+$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$/2);$ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1882$cx$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$),
$APP.$cljs$cst$1883$cy$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$),$APP.$cljs$cst$1865$rx$$,$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$/2,$APP.$cljs$cst$1866$ry$$,$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$/
2,$APP.$cljs$cst$1275$transform$$,$APP.$cljs$cst$1771$transform_inverse$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)],null);if($JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=$APP.$app$common$geom$shapes$intersect$is_point_inside_evenodd_QMARK_$$($center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$,
$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$))$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$;
else{$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$=$APP.$cljs$core$first$$($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$);var $map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$=
$APP.$cljs$core$__destructure_map$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$);$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,
$APP.$cljs$cst$1882$cx$$);$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,$APP.$cljs$cst$1883$cy$$);$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,$APP.$cljs$cst$1865$rx$$);$ry$jscomp$inline_12594_y$jscomp$inline_12582$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,
$APP.$cljs$cst$1866$ry$$);$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,$APP.$cljs$cst$1275$transform$$);var $center$jscomp$inline_12596$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$,
$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$);$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$=$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$!=
null?$APP.$app$common$geom$matrix$transform_in$$($center$jscomp$inline_12596$$,$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$):null;$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$=$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$!=
null?$APP.$app$common$geom$point$transform$$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$,$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$):$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$;$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$=
$APP.$cljs$core$__destructure_map$$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$);$height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,
$APP.$cljs$cst$1499$x$$);$map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$,$APP.$cljs$cst$1500$y$$);$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=
($and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$=$app$common$math$sq$$($height$jscomp$inline_12584_map__48819$jscomp$inline_12598_map__48834__$1$jscomp$inline_12580_point$jscomp$inline_12589_px$jscomp$inline_12600$$-$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$)/
($center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$*$center$jscomp$inline_12585_or__5025__auto__$jscomp$inline_12574_rx$jscomp$inline_12593_x$jscomp$inline_12581$$)+$app$common$math$sq$$($map__48818__$1$jscomp$inline_12590_map__48819__$1$jscomp$inline_12599_py$jscomp$inline_12601_transform$jscomp$inline_12595_transform__$1$jscomp$inline_12597$$-$JSCompiler_temp$jscomp$13374_cy$jscomp$inline_12592_or__5025__auto__$jscomp$inline_12587_path_lines$jscomp$inline_12572_points$jscomp$inline_13840_simple_QMARK_$jscomp$inline_12569_width$jscomp$inline_12583$$)/
($ry$jscomp$inline_12594_y$jscomp$inline_12582$$*$ry$jscomp$inline_12594_y$jscomp$inline_12582$$)<=1)?$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$:$app$common$geom$shapes$intersect$intersects_lines_ellipse_QMARK_$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$,
$ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)}}else $JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$=$and__5023__auto__$jscomp$254_cx$jscomp$inline_12591_or__5025__auto__$jscomp$357_or__5025__auto__$jscomp$inline_7958_or__5025__auto____$1$jscomp$inline_12588_rect_lines$jscomp$inline_12571_rect_points$jscomp$inline_12578_swidth$$;return $JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$}return $APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$)?
$app$common$geom$shapes$intersect$overlaps_text_QMARK_$$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$,$JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$):$app$common$geom$shapes$intersect$overlaps_rect_points_QMARK_$$($JSCompiler_temp$jscomp$10546_JSCompiler_temp$jscomp$10547_rect$jscomp$17_rect__$1_rect_lines$jscomp$inline_12579_rect_points$jscomp$inline_12570$$,
$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($ellipse_data$jscomp$inline_12586_shape$jscomp$119_start_point$jscomp$inline_12573$$))};$app$common$types$shape$interactions$remove_interactions$$=function($f$jscomp$777$$,$interactions$jscomp$4$$){return $APP.$cljs$core$not_empty$$($APP.$app$common$data$removev$$($f$jscomp$777$$,$interactions$jscomp$4$$))};
$app$main$data$workspace$colors$get_color_from_colorpicker_state$$=function($JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$){var $map__69476__$1_opacity$jscomp$29$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$),$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$139$type$$),
$JSCompiler_temp_const$jscomp$1531_current_color$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$4048$current_color$$);$JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$1717$stops$$);var $gradient$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$1708$gradient$$);
$map__69476__$1_opacity$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$1718$opacity$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$,$APP.$cljs$cst$1284$color$$))$JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$clear_color_components$$($JSCompiler_temp_const$jscomp$1531_current_color$$),
$APP.$cljs$cst$195$offset$$);else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$,$APP.$cljs$cst$1596$image$$))$JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($JSCompiler_temp_const$jscomp$1531_current_color$$,$APP.$cljs$cst$2955$hex$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$744$alpha$$,
$APP.$cljs$cst$1727$r$$,$APP.$cljs$cst$1728$g$$,$APP.$cljs$cst$1509$b$$,$APP.$cljs$cst$1884$h$$,$APP.$cljs$cst$4052$s$$,$APP.$cljs$cst$2947$v$$,$APP.$cljs$cst$1284$color$$]));else{$JSCompiler_temp_const$jscomp$1531_current_color$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_temp_const$jscomp$1529$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$,$JSCompiler_temp_const$jscomp$1527$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$,$JSCompiler_temp_const$jscomp$1525$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$,$JSCompiler_temp_const$jscomp$1524$$=$APP.$cljs$cst$139$type$$;a:switch($G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$=$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$ instanceof $APP.$cljs$core$Keyword$$?$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$.$fqn$:null,$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$){case "linear-gradient":$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$=
$APP.$cljs$cst$285$linear$$;break a;case "radial-gradient":$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$=$APP.$cljs$cst$1712$radial$$;break a;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$)].join(""));}$JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$=$JSCompiler_temp_const$jscomp$1531_current_color$$.call($APP.$app$common$data$without_nils$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1718$opacity$$,$map__69476__$1_opacity$jscomp$29$$,$APP.$cljs$cst$1708$gradient$$,$JSCompiler_temp_const$jscomp$1529$$.call($APP.$cljs$core$dissoc$$,$JSCompiler_temp_const$jscomp$1527$$.call($APP.$cljs$core$assoc$$,$JSCompiler_temp_const$jscomp$1525$$.call($APP.$cljs$core$assoc$$,$gradient$jscomp$18$$,$JSCompiler_temp_const$jscomp$1524$$,$G__69477__$1$jscomp$inline_7960_JSCompiler_inline_result$jscomp$1533_type$jscomp$482$$),$APP.$cljs$cst$1717$stops$$,
$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$clear_color_components$$,$JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$)),$APP.$cljs$cst$2500$shape_id$$)],null))}return $JSCompiler_temp$jscomp$1522_JSCompiler_temp$jscomp$1523_p__69475_stops$jscomp$8$$};
$app$main$data$workspace$colors$colorpicker_onchange_runner$$=function($on_change$jscomp$5$$){typeof $app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$==="undefined"&&($app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$=function($on_change$jscomp$6$$,$meta69479$$){this.$on_change$=$on_change$jscomp$6$$;this.$meta69479$=$meta69479$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4053$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_colorpicker_onchange_runner$$},$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69480$$,$meta69479__$1$$){return new $app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$(this.$on_change$,
$meta69479__$1$$)},$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69479$},$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$,
$state$jscomp$594$$){$G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$=$state$jscomp$594$$==null?null:$APP.$cljs$cst$2199$colorpicker$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$594$$);$G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$=$G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$==null?null:$app$main$data$workspace$colors$get_color_from_colorpicker_state$$($G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$);
return $APP.$cljs$core$truth_$$($G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$)?this.$on_change$.$cljs$core$IFn$_invoke$arity$1$?this.$on_change$.$cljs$core$IFn$_invoke$arity$1$($G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$):this.$on_change$($G__69481__$1$jscomp$inline_7962__$jscomp$2198_temp__5825__auto__$jscomp$203$$):null});return new $app$main$data$workspace$colors$colorpicker_onchange_runner_69478$$($on_change$jscomp$5$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$initialize_colorpicker$$=function($on_change$jscomp$7$$,$tab$$){typeof $app$main$data$workspace$colors$initialize_colorpicker_69482$$==="undefined"&&($app$main$data$workspace$colors$initialize_colorpicker_69482$$=function($on_change$jscomp$8$$,$tab$jscomp$1$$,$meta69483$$){this.$on_change$=$on_change$jscomp$8$$;this.tab=$tab$jscomp$1$$;this.$meta69483$=$meta69483$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4054$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_initialize_colorpicker$$},$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69484$$,$meta69483__$1$$){return new $app$main$data$workspace$colors$initialize_colorpicker_69482$$(this.$on_change$,
this.tab,$meta69483__$1$$)},$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69483$},$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2199_stopper$jscomp$19$$,$___$1$jscomp$1458$$,$stream$jscomp$61$$){$_$jscomp$2199_stopper$jscomp$19$$=
$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4055$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_finalize_colorpicker$$),$stream$jscomp$61$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4054$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_initialize_colorpicker$$),$stream$jscomp$61$$));return $APP.$beicon$v2$core$take_until$$($_$jscomp$2199_stopper$jscomp$19$$,
$APP.$beicon$v2$core$map$$($APP.$cljs$core$constantly$$($app$main$data$workspace$colors$colorpicker_onchange_runner$$(this.$on_change$)),$APP.$beicon$v2$core$debounce$$(40,$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$debounce$$(20,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4056$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_gradient$$),$stream$jscomp$61$$)),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4057$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_color$$),
$stream$jscomp$61$$),$APP.$beicon$v2$core$debounce$$(20,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4058$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_activate_colorpicker_gradient$$),$stream$jscomp$61$$)),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4059$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_stops$$),$stream$jscomp$61$$),
$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4060$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_gradient_opacity$$),$stream$jscomp$61$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4061$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_add_stop$$),$stream$jscomp$61$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4062$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_add_auto$$),
$stream$jscomp$61$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4063$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_remove_gradient_stop$$),$stream$jscomp$61$$)))))},$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$initialize_colorpicker_69482$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2200$$,
$state$jscomp$595$$){var $self__$jscomp$5170$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$595$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$29$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$29$$,$APP.$cljs$cst$139$type$$,$self__$jscomp$5170$$.tab)})});return new $app$main$data$workspace$colors$initialize_colorpicker_69482$$($on_change$jscomp$7$$,$tab$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$materialize_color_components$$=function($map__69474__$1_p__69473$$){$map__69474__$1_p__69473$$=$APP.$cljs$core$__destructure_map$$($map__69474__$1_p__69473$$);var $hex$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69474__$1_p__69473$$,$APP.$cljs$cst$2955$hex$$),$alpha$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69474__$1_p__69473$$,$APP.$cljs$cst$744$alpha$$);return $APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69474__$1_p__69473$$,
$APP.$cljs$cst$1284$color$$,$hex$jscomp$5$$),$APP.$cljs$cst$1718$opacity$$,$alpha$jscomp$9$$))};
$app$main$data$workspace$colors$activate_colorpicker_gradient$$=function($type$jscomp$485$$){typeof $app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$==="undefined"&&($app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$=function($type$jscomp$486$$,$meta69549$$){this.type=$type$jscomp$486$$;this.$meta69549$=$meta69549$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4058$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_activate_colorpicker_gradient$$},$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69550$$,$meta69549__$1$$){return new $app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$(this.type,
$meta69549__$1$$)},$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69549$},$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2215$$,$state$jscomp$609$$){var $self__$jscomp$5224$$=
this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$609$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$41$$){var $G__69551_gradient$jscomp$21$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1713$start_x$$,.5,$APP.$cljs$cst$1714$start_y$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5224$$.type,$APP.$cljs$cst$4047$linear_gradient$$)?0:.5,$APP.$cljs$cst$1715$end_x$$,.5,$APP.$cljs$cst$1716$end_y$$,1,$APP.$cljs$cst$288$width$$,
1],null),$color$jscomp$100$$=$APP.$cljs$cst$4048$current_color$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$41$$);$G__69551_gradient$jscomp$21$$=$APP.$app$common$data$dissoc_in$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$41$$,$APP.$cljs$cst$139$type$$,$self__$jscomp$5224$$.type),$APP.$cljs$cst$1708$gradient$$,$G__69551_gradient$jscomp$21$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$cst$1596$image$$],null));return $APP.$cljs$core$not$$($APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$41$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__69551_gradient$jscomp$21$$,$APP.$cljs$cst$4046$editing_stop$$,0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$app$main$data$workspace$colors$materialize_color_components$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$100$$,$APP.$cljs$cst$195$offset$$,0)),$app$main$data$workspace$colors$materialize_color_components$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$100$$,$APP.$cljs$cst$744$alpha$$,0),$APP.$cljs$cst$195$offset$$,1))],null)])):$G__69551_gradient$jscomp$21$$})});return new $app$main$data$workspace$colors$activate_colorpicker_gradient_69548$$($type$jscomp$485$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$util$text$content$to_dom$get_styles_from_attrs$$=function($node$jscomp$295$$,$attrs$jscomp$60_styles$jscomp$7$$){$attrs$jscomp$60_styles$jscomp$7$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$119$$,$key$jscomp$359$$){var $default_value$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$text$default_text_attrs$$,$key$jscomp$359$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($acc$jscomp$119$$,$key$jscomp$359$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($node$jscomp$295$$,$key$jscomp$359$$,$default_value$jscomp$1$$))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$attrs$jscomp$60_styles$jscomp$7$$);var $fills$jscomp$17$$=$APP.$cljs$cst$1730$fill_color$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$295$$)!=null||$APP.$cljs$cst$1731$fill_opacity$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$295$$)!=null||$APP.$cljs$cst$1732$fill_color_gradient$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$295$$)!=
null?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$select_keys$$($node$jscomp$295$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1730$fill_color$$,$APP.$cljs$cst$1731$fill_opacity$$,$APP.$cljs$cst$1732$fill_color_gradient$$,$APP.$cljs$cst$1729$fill_color_ref_id$$,$APP.$cljs$cst$1624$fill_color_ref_file$$],
null)))],null):$APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$295$$)==null?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1730$fill_color$$,"#000000",$APP.$cljs$cst$1731$fill_opacity$$,1],null)],null):$APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$295$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($attrs$jscomp$60_styles$jscomp$7$$,
$APP.$cljs$cst$1618$fills$$,$fills$jscomp$17$$)};
$app$main$data$persistence$merge_commit$$=function($buffer$jscomp$77$$){return $APP.$beicon$v2$core$map$$(function($item$jscomp$62_p__54758$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$62_p__54758$$,0,null);var $rchg$jscomp$1_vec__54762$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$62_p__54758$$,1,null);$item$jscomp$62_p__54758$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($rchg$jscomp$1_vec__54762$$,0,null);var $uchg$jscomp$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$app$main$data$persistence$xf_mapcat_undo$$,$rchg$jscomp$1_vec__54762$$);$rchg$jscomp$1_vec__54762$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$app$main$data$persistence$xf_mapcat_redo$$,$rchg$jscomp$1_vec__54762$$);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$($item$jscomp$62_p__54758$$,$APP.$cljs$cst$3089$undo_changes$$,
$uchg$jscomp$1$$),$APP.$cljs$cst$3086$redo_changes$$,$rchg$jscomp$1_vec__54762$$),$APP.$cljs$cst$3084$changes$$,$rchg$jscomp$1_vec__54762$$)},$APP.$beicon$v2$core$from$$($APP.$cljs$core$group_by$$($APP.$cljs$cst$1628$file_id$$,$buffer$jscomp$77$$)))};
$app$common$path_names$sort_by_children$$=function($segments$jscomp$10$$,$separator$jscomp$7$$){return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($path$jscomp$164_path_length_segment$jscomp$39$$){$path$jscomp$164_path_length_segment$jscomp$39$$=$APP.$app$common$path_names$split_path$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$164_path_length_segment$jscomp$39$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,
$separator$jscomp$7$$]));$path$jscomp$164_path_length_segment$jscomp$39$$=$APP.$cljs$core$count$$($path$jscomp$164_path_length_segment$jscomp$39$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$164_path_length_segment$jscomp$39$$,1)?1:0},$segments$jscomp$10$$)};
$app$common$path_names$compact_path$$=function($last_item_path$jscomp$160$$){var $G__49061_other_items_path_split$$=$APP.$app$common$path_names$split_path$$($last_item_path$jscomp$160$$);$last_item_path$jscomp$160$$=$APP.$cljs$core$last$$($G__49061_other_items_path_split$$);var $merge_path$$=$APP.$cljs$core$truth_$$(!0)?$app$common$path_names$merge_path_item_with_dot$$:$APP.$app$common$path_names$merge_path_item$$;$G__49061_other_items_path_split$$=$APP.$cljs$core$seq$$($APP.$cljs$core$butlast$$($G__49061_other_items_path_split$$));
for(var $G__49062_other_path$$="";;){var $item$jscomp$45_temp__5823__auto__$jscomp$109$$=$APP.$cljs$core$first$$($G__49061_other_items_path_split$$);if($APP.$cljs$core$truth_$$($item$jscomp$45_temp__5823__auto__$jscomp$109$$)){var $G__48997$jscomp$inline_7967_full_path$$=$merge_path$$.$cljs$core$IFn$_invoke$arity$2$?$merge_path$$.$cljs$core$IFn$_invoke$arity$2$($G__49062_other_path$$,$item$jscomp$45_temp__5823__auto__$jscomp$109$$):$merge_path$$($G__49062_other_path$$,$item$jscomp$45_temp__5823__auto__$jscomp$109$$);
$G__48997$jscomp$inline_7967_full_path$$=$merge_path$$.$cljs$core$IFn$_invoke$arity$2$?$merge_path$$.$cljs$core$IFn$_invoke$arity$2$($G__48997$jscomp$inline_7967_full_path$$,$last_item_path$jscomp$160$$):$merge_path$$($G__48997$jscomp$inline_7967_full_path$$,$last_item_path$jscomp$160$$);if($APP.$cljs$core$count$$($G__48997$jscomp$inline_7967_full_path$$)>35)return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$merge_path$$.$cljs$core$IFn$_invoke$arity$2$?
$merge_path$$.$cljs$core$IFn$_invoke$arity$2$($G__49062_other_path$$,"..."):$merge_path$$($G__49062_other_path$$,"..."),$last_item_path$jscomp$160$$,!0],null);$G__49061_other_items_path_split$$=$APP.$cljs$core$next$$($G__49061_other_items_path_split$$);$G__49062_other_path$$=$merge_path$$.$cljs$core$IFn$_invoke$arity$2$?$merge_path$$.$cljs$core$IFn$_invoke$arity$2$($G__49062_other_path$$,$item$jscomp$45_temp__5823__auto__$jscomp$109$$):$merge_path$$($G__49062_other_path$$,$item$jscomp$45_temp__5823__auto__$jscomp$109$$)}else return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__49062_other_path$$,$last_item_path$jscomp$160$$,!1],null)}};
$app$common$data$reorder$$=function($v$jscomp$146_without_elem$$,$from_pos_from_pos__$1_insert_pos$$,$elem$jscomp$5_to_space_between_pos$$){var $max_space_pos_to_space_between_pos__$1$$=$APP.$cljs$core$count$$($v$jscomp$146_without_elem$$);$from_pos_from_pos__$1_insert_pos$$=$APP.$app$common$data$max$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$app$common$data$min$$.$cljs$core$IFn$_invoke$arity$2$($max_space_pos_to_space_between_pos__$1$$-1,$from_pos_from_pos__$1_insert_pos$$));$max_space_pos_to_space_between_pos__$1$$=
$APP.$app$common$data$max$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$app$common$data$min$$.$cljs$core$IFn$_invoke$arity$2$($max_space_pos_to_space_between_pos__$1$$,$elem$jscomp$5_to_space_between_pos$$));if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_pos_from_pos__$1_insert_pos$$,$max_space_pos_to_space_between_pos__$1$$))return $v$jscomp$146_without_elem$$;$elem$jscomp$5_to_space_between_pos$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($v$jscomp$146_without_elem$$,
$from_pos_from_pos__$1_insert_pos$$);$v$jscomp$146_without_elem$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$146_without_elem$$,0,$from_pos_from_pos__$1_insert_pos$$)),$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$02$$($v$jscomp$146_without_elem$$,$from_pos_from_pos__$1_insert_pos$$+1));$from_pos_from_pos__$1_insert_pos$$=
$from_pos_from_pos__$1_insert_pos$$<$max_space_pos_to_space_between_pos__$1$$?$max_space_pos_to_space_between_pos__$1$$-1:$max_space_pos_to_space_between_pos__$1$$;return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$146_without_elem$$,0,$from_pos_from_pos__$1_insert_pos$$)),
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$elem$jscomp$5_to_space_between_pos$$],null)),$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$02$$($v$jscomp$146_without_elem$$,$from_pos_from_pos__$1_insert_pos$$))};
$cljs$core$sorted_map$$=function($var_args$jscomp$244$$){for(var $JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$=[],$G__29202$jscomp$inline_7972_len__5749__auto___29197$$=arguments.length,$G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$=0;;)if($G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$<$G__29202$jscomp$inline_7972_len__5749__auto___29197$$)$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$.push(arguments[$G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$]),
$G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$+=1;else break;a:{$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$=$APP.$cljs$core$seq$$(0<$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$.length?new $APP.$cljs$core$IndexedSeq$$($JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$.slice(0),0,null):null);for($G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$=
$APP.$cljs$core$PersistentTreeMap$EMPTY$$;;)if($JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$)$G__29202$jscomp$inline_7972_len__5749__auto___29197$$=$APP.$cljs$core$next$$($APP.$cljs$core$next$$($JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$)),$G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$,
$APP.$cljs$core$first$$($JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$),$APP.$cljs$core$second$$($JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$)),$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$=$G__29202$jscomp$inline_7972_len__5749__auto___29197$$;else{$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$=$G__29203$jscomp$inline_7973_i__5750__auto___29198_out$jscomp$inline_7971$$;
break a}$JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$=void 0}return $JSCompiler_inline_result$jscomp$1540_args__5755__auto__$jscomp$6_in$$jscomp$inline_7970$$};$app$common$path_names$join_path_with_dot$$=function($path_vec$$){return $APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" • ",$path_vec$$)};
$app$common$path_names$group_by_first_segment$$=function($segments$jscomp$11$$,$separator$jscomp$8$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$95$$,$segment$jscomp$40$$){var $first__49028_vec__49026$$=$APP.$app$common$path_names$split_path$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($segment$jscomp$40$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,
$separator$jscomp$8$$])),$rest_path_seq__49027_seq__49027__$1$$=$APP.$cljs$core$seq$$($first__49028_vec__49026$$);$first__49028_vec__49026$$=$APP.$cljs$core$first$$($rest_path_seq__49027_seq__49027__$1$$);$rest_path_seq__49027_seq__49027__$1$$=$APP.$cljs$core$next$$($rest_path_seq__49027_seq__49027__$1$$);$rest_path_seq__49027_seq__49027__$1$$=$APP.$cljs$core$seq$$($rest_path_seq__49027_seq__49027__$1$$)?$APP.$app$common$path_names$join_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rest_path_seq__49027_seq__49027__$1$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,$separator$jscomp$8$$,$APP.$cljs$cst$1982$with_spaces_QMARK_$$,!1])):null;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($acc$jscomp$95$$,$first__49028_vec__49026$$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$truth_$$($rest_path_seq__49027_seq__49027__$1$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($segment$jscomp$40$$,
$APP.$cljs$cst$723$name$$,$rest_path_seq__49027_seq__49027__$1$$):$segment$jscomp$40$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$segments$jscomp$11$$)};
$app$common$path_names$sort_and_group_segments$$=function($segments$jscomp$12_sorted$$,$grouped_separator$jscomp$9$$){$segments$jscomp$12_sorted$$=$app$common$path_names$sort_by_children$$($segments$jscomp$12_sorted$$,$grouped_separator$jscomp$9$$);$grouped_separator$jscomp$9$$=$app$common$path_names$group_by_first_segment$$($segments$jscomp$12_sorted$$,$grouped_separator$jscomp$9$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($cljs$core$sorted_map$$(),$grouped_separator$jscomp$9$$)};
$app$common$path_names$build_tree_root$$=function($grouped_elements$jscomp$1_segments$jscomp$13$$){$grouped_elements$jscomp$1_segments$jscomp$13$$=$app$common$path_names$sort_and_group_segments$$($grouped_elements$jscomp$1_segments$jscomp$13$$,".");return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p__49041_remaining_segments$jscomp$2$$){var $segment_name$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49041_remaining_segments$jscomp$2$$,0,null);$p__49041_remaining_segments$jscomp$2$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49041_remaining_segments$jscomp$2$$,1,null);return $app$common$path_names$build_tree_node$$($segment_name$jscomp$1$$,$p__49041_remaining_segments$jscomp$2$$,".",null,0)},$grouped_elements$jscomp$1_segments$jscomp$13$$)};
$app$common$path_names$butlast_path$$=function($path$jscomp$161_split$jscomp$3$$){$path$jscomp$161_split$jscomp$3$$=$APP.$app$common$path_names$split_path$$($path$jscomp$161_split$jscomp$3$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($path$jscomp$161_split$jscomp$3$$))?"":$APP.$app$common$path_names$join_path$$($APP.$cljs$core$butlast$$($path$jscomp$161_split$jscomp$3$$))};
$app$common$types$token$join_font_family$$=function($font_families$$){return $APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$font_families$$)};
$app$main$data$workspace$texts$generate_typography_name$$=function($map__68933__$1_p__68932$$){$map__68933__$1_p__68932$$=$APP.$cljs$core$__destructure_map$$($map__68933__$1_p__68932$$);var $font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68933__$1_p__68932$$,$APP.$cljs$cst$1741$font_id$$),$font_variant_id$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68933__$1_p__68932$$,$APP.$cljs$cst$1743$font_variant_id$$);
$font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$=$APP.$app$main$fonts$get_font_data$$($font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$);$font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$=$APP.$cljs$core$__destructure_map$$($font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$);$font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$,
$APP.$cljs$cst$723$name$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__68933__$1_p__68932$$,$APP.$cljs$cst$723$name$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($font_id$jscomp$27_map__68934_map__68934__$1_name$jscomp$326$$)," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$stylize$cljs$0core$0IFn$0_invoke$0arity$04$$($font_variant_id$jscomp$16$$,$APP.$cuerdas$core$capital$$,$APP.$cuerdas$core$capital$$," "))].join(""))};
$app$common$types$path$get_handlers$$=function($content$jscomp$79_content__$1$jscomp$18$$){$content$jscomp$79_content__$1$jscomp$18$$=$APP.$app$common$types$path$impl$path_data$$($content$jscomp$79_content__$1$jscomp$18$$);return $APP.$app$common$types$path$segment$get_handlers$$($content$jscomp$79_content__$1$jscomp$18$$)};
$app$common$types$path$segment$is_curve_QMARK_$$=function($content$jscomp$32$$,$point$jscomp$29$$){var $handler_points_handlers$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$path$segment$get_handlers$$($content$jscomp$32$$),$point$jscomp$29$$);$handler_points_handlers$jscomp$4$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__48044_SHARP_$$){return $APP.$app$common$types$path$segment$get_handler_point$$($content$jscomp$32$$,$APP.$cljs$core$first$$($p1__48044_SHARP_$$),
$APP.$cljs$core$second$$($p1__48044_SHARP_$$))},$handler_points_handlers$jscomp$4$$);return $APP.$cljs$core$some$$(function($p1__48045_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($point$jscomp$29$$,$p1__48045_SHARP_$$)},$handler_points_handlers$jscomp$4$$)};
$cljs$core$dedupe$cljs$0core$0IFn$0_invoke$0arity$00$$=function(){return function($rf$jscomp$20$$){var $pa$jscomp$1$$=$APP.$cljs$core$volatile_BANG_$$($APP.$cljs$cst$104$cljs_DOT_core_SLASH_none$$);return function(){function $G__30002__2$$($result$jscomp$74$$,$input$jscomp$46$$){var $prior$$=$APP.$cljs$core$_deref$$($pa$jscomp$1$$);$APP.$cljs$core$_vreset_BANG_$$($pa$jscomp$1$$,$input$jscomp$46$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prior$$,$input$jscomp$46$$)?$result$jscomp$74$$:
$rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$2$?$rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$74$$,$input$jscomp$46$$):$rf$jscomp$20$$($result$jscomp$74$$,$input$jscomp$46$$)}function $G__30002__1$$($result$jscomp$73$$){return $rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$1$?$rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$1$($result$jscomp$73$$):$rf$jscomp$20$$($result$jscomp$73$$)}function $G__30002__0$$(){return $rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$0$?$rf$jscomp$20$$.$cljs$core$IFn$_invoke$arity$0$():
$rf$jscomp$20$$()}var $G__30002$$=null;$G__30002$$=function($result$jscomp$75$$,$input$jscomp$47$$){switch(arguments.length){case 0:return $G__30002__0$$.call(this);case 1:return $G__30002__1$$.call(this,$result$jscomp$75$$);case 2:return $G__30002__2$$.call(this,$result$jscomp$75$$,$input$jscomp$47$$)}throw Error("Invalid arity: "+arguments.length);};$G__30002$$.$cljs$core$IFn$_invoke$arity$0$=$G__30002__0$$;$G__30002$$.$cljs$core$IFn$_invoke$arity$1$=$G__30002__1$$;$G__30002$$.$cljs$core$IFn$_invoke$arity$2$=
$G__30002__2$$;return $G__30002$$}()}};
$app$main$data$fonts$update_recent_font$$=function($state$jscomp$269$$,$file_id$jscomp$74$$,$font$jscomp$36$$){var $xform$jscomp$32$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__55005_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font$jscomp$36$$,$p1__55005_SHARP_$$)}),$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$1$(3));return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$269$$,$file_id$jscomp$74$$,
function($p1__55006_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$font$jscomp$36$$],null),$xform$jscomp$32$$,$p1__55006_SHARP_$$)})};
$app$common$path_names$inside_path_QMARK_$$=function($child$jscomp$67_child_path$$,$parent$jscomp$186_parent_path$$){$child$jscomp$67_child_path$$=$APP.$app$common$path_names$split_path$$($child$jscomp$67_child_path$$);$parent$jscomp$186_parent_path$$=$APP.$app$common$path_names$split_path$$($parent$jscomp$186_parent_path$$);return $APP.$cljs$core$count$$($parent$jscomp$186_parent_path$$)<=$APP.$cljs$core$count$$($child$jscomp$67_child_path$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parent$jscomp$186_parent_path$$,
$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($parent$jscomp$186_parent_path$$),$child$jscomp$67_child_path$$))};$app$main$features$use_feature$$=function($feature$jscomp$10$$){var $enabled_features$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$features$features_ref$$);return $APP.$cljs$core$contains_QMARK_$$($enabled_features$jscomp$5$$,$feature$jscomp$10$$)};
$app$render_wasm$api$set_focus_mode$$=function($entries$jscomp$15$$){if($APP.$cljs$core$empty_QMARK_$$($entries$jscomp$15$$))return null;var $offset$jscomp$154_size$jscomp$120$$=16*$APP.$cljs$core$count$$($entries$jscomp$15$$),$heap$jscomp$13$$=$APP.$app$render_wasm$mem$get_heap_u32$$();$offset$jscomp$154_size$jscomp$120$$=$APP.$app$render_wasm$mem$alloc__GT_offset_32$$($offset$jscomp$154_size$jscomp$120$$);$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($offset__$1$jscomp$10$$,
$id$jscomp$332$$){return $APP.$app$render_wasm$mem$heap32$write_uuid$$($offset__$1$jscomp$10$$,$heap$jscomp$13$$,$id$jscomp$332$$)},$offset$jscomp$154_size$jscomp$120$$,$entries$jscomp$15$$);(0,$APP.$app$render_wasm$wasm$internal_module$$._set_focus_mode)();return $APP.$app$render_wasm$api$request_render$$("set-focus-mode")};
$app$render_wasm$api$end_shapes_loading_BANG_$$=function(){var $was_loading$$=$APP.$cljs$core$compare_and_set_BANG_$$($APP.$app$render_wasm$api$shapes_loading_QMARK_$$,!0,!1);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$deferred_render_QMARK_$$,!1);$was_loading$$&&$APP.$app$render_wasm$api$request_render$$("set-objects:flush")};
$app$main$data$workspace$versions$create_version$$=function(){typeof $app$main$data$workspace$versions$create_version_71437$$==="undefined"&&($app$main$data$workspace$versions$create_version_71437$$=function($meta71438$$){this.$meta71438$=$meta71438$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$create_version_71437$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$create_version_71437$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4831$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_create_version$$},$app$main$data$workspace$versions$create_version_71437$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71439$$,$meta71438__$1$$){return new $app$main$data$workspace$versions$create_version_71437$$($meta71438__$1$$)},$app$main$data$workspace$versions$create_version_71437$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71438$},$app$main$data$workspace$versions$create_version_71437$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$create_version_71437$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2670$$,$state$jscomp$975$$){var $label$jscomp$17$$=$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$time$now$$(),$APP.$cljs$cst$4832$localized_date$$),$file_id$jscomp$297$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$975$$);return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$cljs$cst$2491$app_DOT_main_DOT_data_DOT_persistence_SLASH_force_persist$$,
$APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-version"],null))),$APP.$beicon$v2$core$mapcat$$(function($id$jscomp$815_map__71441__$1_p__71440$$){$id$jscomp$815_map__71441__$1_p__71440$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$815_map__71441__$1_p__71440$$);$id$jscomp$815_map__71441__$1_p__71440$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$815_map__71441__$1_p__71440$$,$APP.$cljs$cst$266$id$$);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3451$editing$$,$id$jscomp$815_map__71441__$1_p__71440$$],null)),$app$main$data$workspace$versions$fetch_versions$$())},$APP.$beicon$v2$core$mapcat$$(function(){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4833$create_file_snapshot$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$297$$,$APP.$cljs$cst$2245$label$$,$label$jscomp$17$$],null))},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$(function($p1__71433_SHARP_$$){return $p1__71433_SHARP_$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3101$saved$$,$p1__71433_SHARP_$$)},$APP.$beicon$v2$core$from_atom$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$refs$persistence_state$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1312$emit_current_value_QMARK_$$,!0],null)))))))});return new $app$main$data$workspace$versions$create_version_71437$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$refs$workspace_grid_edition_id$$=function($id$jscomp$226$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__51378_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__51378_SHARP_$$,$id$jscomp$226$$)},$APP.$app$main$refs$workspace_grid_edition$$)};
$app$main$refs$workspace_token_in_selected_set$$=function($token_id$jscomp$13$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$){var $JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$=$APP.$app$main$data$workspace$tokens$selected_set$get_selected_token_set_id$$($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$);$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$)?
($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$),$G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$=$G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$==null?null:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$,
$APP.$cljs$cst$2121$tokens_lib$$),$JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$=$G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$==null?null:$APP.$app$common$types$tokens_lib$get_token$$($G__51142$jscomp$inline_7978_G__51142__$1$jscomp$inline_7979_p1__51361_SHARP_$$,$JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$,$token_id$jscomp$13$$)):$JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$=
null;return $JSCompiler_inline_result$jscomp$1479_temp__5825__auto__$jscomp$inline_7977$$},$APP.$app$main$store$state$$)};
$app$main$refs$grid_layout_child_QMARK_$$=function($ids$jscomp$32$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects$jscomp$170$$){return $APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$shape$layout$grid_layout_immediate_child_QMARK_$$,$objects$jscomp$170$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$170$$),$ids$jscomp$32$$))},$APP.$app$main$refs$workspace_page_objects$$,
$APP.$cljs$core$_EQ_$$)};
$app$main$refs$flex_layout_child_QMARK_$$=function($ids$jscomp$31$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects$jscomp$169$$){return $APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$shape$layout$flex_layout_immediate_child_QMARK_$$,$objects$jscomp$169$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$169$$),$ids$jscomp$31$$))},$APP.$app$main$refs$workspace_page_objects$$,
$APP.$cljs$core$_EQ_$$)};
$app$main$refs$all_layout_child_QMARK_$$=function($ids$jscomp$30$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects$jscomp$168$$){return $APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$,$objects$jscomp$168$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$168$$),$ids$jscomp$30$$))},$APP.$app$main$refs$workspace_page_objects$$,
$APP.$cljs$core$_EQ_$$)};
$app$main$refs$is_layout_child_QMARK_$$=function($ids$jscomp$29$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($objects$jscomp$167$$){return $APP.$cljs$core$some$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$,$objects$jscomp$167$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$167$$),$ids$jscomp$29$$))},$APP.$app$main$refs$workspace_page_objects$$)};
$app$main$refs$shape_parents$$=function($id$jscomp$218$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects$jscomp$161$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$161$$)),$APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$161$$,$id$jscomp$218$$))},$APP.$app$main$refs$workspace_page_objects$$,
$APP.$cljs$core$_EQ_$$)};$app$main$refs$objects_by_id$$=function($ids$jscomp$26$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__51314_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($p1__51314_SHARP_$$)),$ids$jscomp$26$$)},$APP.$app$main$refs$workspace_page_objects$$,$APP.$cljs$core$_EQ_$$)};
$app$main$refs$object_by_id$$=function($id$jscomp$217$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__51313_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__51313_SHARP_$$,$id$jscomp$217$$)},$APP.$app$main$refs$workspace_page_objects$$)};
$app$main$refs$token_sets_at_path_all_active$$=function($group_path$jscomp$4$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($lib$jscomp$4$$){return $APP.$cljs$core$truth_$$($lib$jscomp$4$$)?$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$($lib$jscomp$4$$,$group_path$jscomp$4$$):null},$APP.$app$main$refs$tokens_lib$$)};
$app$main$refs$workspace_token_theme$$=function($id$jscomp$224$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($lib$jscomp$2$$){return $APP.$cljs$core$truth_$$($lib$jscomp$2$$)?$APP.$app$common$types$tokens_lib$get_theme$$($lib$jscomp$2$$,$id$jscomp$224$$):null},$APP.$app$main$refs$tokens_lib$$)};
$app$main$data$modal$allow_click_outside_BANG_$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$update$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2296$allow_click_outside$$,!0],null)))};$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$01$$=function($props$jscomp$89$$){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$$($props$jscomp$89$$))};
$app$main$data$workspace$viewport$start_panning$$=function(){typeof $app$main$data$workspace$viewport$start_panning_69057$$==="undefined"&&($app$main$data$workspace$viewport$start_panning_69057$$=function($meta69058$$){this.$meta69058$=$meta69058$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4295$app_DOT_main_DOT_data_DOT_workspace_DOT_viewport_SLASH_start_panning$$},$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69059$$,$meta69058__$1$$){return new $app$main$data$workspace$viewport$start_panning_69057$$($meta69058__$1$$)},$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69058$},$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$viewport$start_panning_69057$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2427_stopper$jscomp$35$$,$state$jscomp$793$$,$stream$jscomp$87$$){$_$jscomp$2427_stopper$jscomp$35$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4296$app_DOT_main_DOT_data_DOT_workspace_DOT_viewport_SLASH_finish_panning$$),$stream$jscomp$87$$);var $zoom$jscomp$38$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$793$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$2158$zoom$$],null));return $APP.$cljs$core$truth_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$793$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4297$panning$$],null)))?null:$APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)(function($p1__69053_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__69053_SHARP_$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4297$panning$$],null),!0)}),$APP.$beicon$v2$core$map$$(function($event$jscomp$101$$){var $delta$jscomp$53$$=$event$jscomp$101$$?.pt??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$101$$,$APP.$cljs$cst$3458$pt$$);return $APP.$app$main$data$workspace$viewport$update_viewport_position$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,
[$APP.$cljs$cst$1499$x$$,function($p1__69055_SHARP_$$){return $p1__69055_SHARP_$$-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$53$$)/$zoom$jscomp$38$$},$APP.$cljs$cst$1500$y$$,function($p1__69056_SHARP_$$){return $p1__69056_SHARP_$$-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$53$$)/$zoom$jscomp$38$$}],null))},$APP.$beicon$v2$core$observe_on$$($APP.$cljs$cst$4298$af$$,$APP.$beicon$v2$core$take_until$$($_$jscomp$2427_stopper$jscomp$35$$,$APP.$beicon$v2$core$filter$$(function($p1__69054_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2584$delta$$,
$APP.$cljs$cst$193$source$$.$cljs$core$IFn$_invoke$arity$1$($p1__69054_SHARP_$$))},$APP.$beicon$v2$core$filter$$($APP.$app$util$mouse$pointer_event_QMARK_$$,$stream$jscomp$87$$))))))});return new $app$main$data$workspace$viewport$start_panning_69057$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$zoom$start_zooming$$=function($pt$jscomp$24$$){typeof $app$main$data$workspace$zoom$start_zooming_65547$$==="undefined"&&($app$main$data$workspace$zoom$start_zooming_65547$$=function($pt$jscomp$25$$,$meta65548$$){this.pt=$pt$jscomp$25$$;this.$meta65548$=$meta65548$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3476$app_DOT_main_DOT_data_DOT_workspace_DOT_zoom_SLASH_start_zooming$$},$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65549$$,$meta65548__$1$$){return new $app$main$data$workspace$zoom$start_zooming_65547$$(this.pt,$meta65548__$1$$)},$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta65548$},$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$zoom$start_zooming_65547$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1839_stopper$jscomp$5$$,$state$jscomp$313$$,$stream$jscomp$34$$){var $self__$jscomp$4089$$=this;$_$jscomp$1839_stopper$jscomp$5$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3477$app_DOT_main_DOT_data_DOT_workspace_DOT_zoom_SLASH_finish_zooming$$),
$stream$jscomp$34$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$313$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$3478$zooming$$],null)))?null:$APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)(function($p1__65540_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__65540_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$3478$zooming$$],null),!0)}),$APP.$beicon$v2$core$map$$(function($delta$jscomp$33_scale$jscomp$24$$){$delta$jscomp$33_scale$jscomp$24$$=1+$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$33_scale$jscomp$24$$)/100;return $APP.$app$main$data$workspace$zoom$set_zoom$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$4089$$.pt,$delta$jscomp$33_scale$jscomp$24$$)},$APP.$beicon$v2$core$take_until$$($_$jscomp$1839_stopper$jscomp$5$$,
$APP.$beicon$v2$core$map$$($APP.$cljs$cst$3458$pt$$,$APP.$beicon$v2$core$filter$$(function($p1__65541_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2584$delta$$,$APP.$cljs$cst$193$source$$.$cljs$core$IFn$_invoke$arity$1$($p1__65541_SHARP_$$))},$APP.$beicon$v2$core$filter$$($APP.$app$util$mouse$pointer_event_QMARK_$$,$stream$jscomp$34$$))))))});return new $app$main$data$workspace$zoom$start_zooming_65547$$($pt$jscomp$24$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$shape$interactions$flow_to_QMARK_$$=function($interactions$jscomp$7$$,$frame_id$jscomp$12$$){return $APP.$cljs$core$some$$(function($p1__48954_SHARP_$$){var $G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__48954_SHARP_$$);var $fexpr__48956$jscomp$inline_7982$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1926$navigate$$,null,$APP.$cljs$cst$1927$close_overlay$$,
null,$APP.$cljs$cst$1929$toggle_overlay$$,null,$APP.$cljs$cst$1931$open_overlay$$,null],null),null);$G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$=$fexpr__48956$jscomp$inline_7982$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48956$jscomp$inline_7982$$.$cljs$core$IFn$_invoke$arity$1$($G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$):$fexpr__48956$jscomp$inline_7982$$($G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$);return $APP.$cljs$core$truth_$$($G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__48954_SHARP_$$),$frame_id$jscomp$12$$):$G__48957$jscomp$inline_7981_and__5023__auto__$jscomp$263$$},$interactions$jscomp$7$$)};
$app$common$types$shape$interactions$flow_origin_QMARK_$$=function($interactions$jscomp$6$$){return $APP.$cljs$core$some$$(function($p1__48948_SHARP_$$){var $G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__48948_SHARP_$$);var $fexpr__48951$jscomp$inline_7985$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1926$navigate$$,null,$APP.$cljs$cst$1927$close_overlay$$,
null,$APP.$cljs$cst$1929$toggle_overlay$$,null,$APP.$cljs$cst$1931$open_overlay$$,null],null),null);$G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$=$fexpr__48951$jscomp$inline_7985$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48951$jscomp$inline_7985$$.$cljs$core$IFn$_invoke$arity$1$($G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$):$fexpr__48951$jscomp$inline_7985$$($G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$);return $APP.$cljs$core$truth_$$($G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$)?
$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__48948_SHARP_$$)!=null:$G__48952$jscomp$inline_7984_and__5023__auto__$jscomp$262$$},$interactions$jscomp$6$$)};
$app$common$types$shape$interactions$has_direction_QMARK_$$=function($G__48944_interaction$jscomp$27$$){$G__48944_interaction$jscomp$27$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__48944_interaction$jscomp$27$$));var $fexpr__48943$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1941$push$$,null,$APP.$cljs$cst$1943$slide$$,null],null),null);return $fexpr__48943$$.$cljs$core$IFn$_invoke$arity$1$?
$fexpr__48943$$.$cljs$core$IFn$_invoke$arity$1$($G__48944_interaction$jscomp$27$$):$fexpr__48943$$($G__48944_interaction$jscomp$27$$)};
$app$common$types$shape$interactions$has_easing_QMARK_$$=function($G__48940_interaction$jscomp$23$$){$G__48940_interaction$jscomp$23$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__48940_interaction$jscomp$23$$));var $fexpr__48939$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1941$push$$,null,$APP.$cljs$cst$1942$dissolve$$,null,$APP.$cljs$cst$1943$slide$$,
null],null),null);return $fexpr__48939$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48939$$.$cljs$core$IFn$_invoke$arity$1$($G__48940_interaction$jscomp$23$$):$fexpr__48939$$($G__48940_interaction$jscomp$23$$)};
$app$common$types$shape$interactions$has_duration_QMARK_$$=function($G__48935_interaction$jscomp$21$$){$G__48935_interaction$jscomp$21$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__48935_interaction$jscomp$21$$));var $fexpr__48934$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1941$push$$,null,$APP.$cljs$cst$1942$dissolve$$,null,$APP.$cljs$cst$1943$slide$$,
null],null),null);return $fexpr__48934$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48934$$.$cljs$core$IFn$_invoke$arity$1$($G__48935_interaction$jscomp$21$$):$fexpr__48934$$($G__48935_interaction$jscomp$21$$)};
$app$common$types$shape$interactions$has_animation_QMARK_$$=function($G__48930_interaction$jscomp$19$$){$G__48930_interaction$jscomp$19$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($G__48930_interaction$jscomp$19$$);var $fexpr__48929$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1926$navigate$$,null,$APP.$cljs$cst$1927$close_overlay$$,null,$APP.$cljs$cst$1929$toggle_overlay$$,null,$APP.$cljs$cst$1931$open_overlay$$,
null],null),null);return $fexpr__48929$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48929$$.$cljs$core$IFn$_invoke$arity$1$($G__48930_interaction$jscomp$19$$):$fexpr__48929$$($G__48930_interaction$jscomp$19$$)};
$app$common$types$shape$interactions$has_overlay_opts$$=function($G__48890_interaction$jscomp$11$$){$G__48890_interaction$jscomp$11$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($G__48890_interaction$jscomp$11$$);var $fexpr__48889$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1929$toggle_overlay$$,null,$APP.$cljs$cst$1931$open_overlay$$,null],null),null);return $fexpr__48889$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__48889$$.$cljs$core$IFn$_invoke$arity$1$($G__48890_interaction$jscomp$11$$):
$fexpr__48889$$($G__48890_interaction$jscomp$11$$)};$app$common$types$shape$interactions$destination_QMARK_$$=function($interaction$jscomp$5$$){var $and__5023__auto__$jscomp$260$$=$APP.$app$common$types$shape$interactions$has_destination$$($interaction$jscomp$5$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$260$$)?$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$5$$)!=null:$and__5023__auto__$jscomp$260$$};
$app$main$data$workspace$bool$bool__GT_group$$=function($param49175$jscomp$inline_7988_shape$jscomp$476$$,$objects$jscomp$370$$){var $param49174$jscomp$inline_7987$$=$APP.$app$common$data$without_keys$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($param49175$jscomp$inline_7988_shape$jscomp$476$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1592$group$$),$APP.$cljs$cst$1872$bool_type$$),$APP.$app$common$types$path$bool$group_style_properties$$);
$param49175$jscomp$inline_7988_shape$jscomp$476$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$370$$),$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($param49175$jscomp$inline_7988_shape$jscomp$476$$));return $APP.$app$common$geom$shapes$transforms$update_group_selrect$$($param49174$jscomp$inline_7987$$,$param49175$jscomp$inline_7988_shape$jscomp$476$$)};
$app$common$types$modifiers$change_orientation_modifiers$$=function($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$,$orientation$jscomp$1_shape_transform$$){var $shape_transform_inv_width$jscomp$60$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$),$height$jscomp$53_new_height$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$),$new_width_scalev$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($orientation$jscomp$1_shape_transform$$,$APP.$cljs$cst$1793$horiz$$)?$shape_transform_inv_width$jscomp$60$$>$height$jscomp$53_new_height$$?$shape_transform_inv_width$jscomp$60$$:$height$jscomp$53_new_height$$:$shape_transform_inv_width$jscomp$60$$<$height$jscomp$53_new_height$$?$shape_transform_inv_width$jscomp$60$$:$height$jscomp$53_new_height$$;$height$jscomp$53_new_height$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($orientation$jscomp$1_shape_transform$$,
$APP.$cljs$cst$1793$horiz$$)?$shape_transform_inv_width$jscomp$60$$<$height$jscomp$53_new_height$$?$shape_transform_inv_width$jscomp$60$$:$height$jscomp$53_new_height$$:$shape_transform_inv_width$jscomp$60$$>$height$jscomp$53_new_height$$?$shape_transform_inv_width$jscomp$60$$:$height$jscomp$53_new_height$$;$orientation$jscomp$1_shape_transform$$=$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$);$shape_transform_inv_width$jscomp$60$$=
$APP.$cljs$cst$1771$transform_inverse$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$);var $shape_center$jscomp$1$$=$APP.$app$common$geom$shapes$common$shape__GT_center$$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$),$map__48606_sr_width$jscomp$2$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$),$map__48606__$1_sr_height$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__48606_sr_width$jscomp$2$$);
$map__48606_sr_width$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48606__$1_sr_height$jscomp$2$$,$APP.$cljs$cst$288$width$$);$map__48606__$1_sr_height$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48606__$1_sr_height$jscomp$2$$,$APP.$cljs$cst$1511$height$$);$G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$));
$G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$=$orientation$jscomp$1_shape_transform$$!=null?$APP.$app$common$geom$matrix$transform_point_center$$($G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$,$shape_center$jscomp$1$$,$orientation$jscomp$1_shape_transform$$):$G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$;$new_width_scalev$$=$APP.$app$common$geom$point$divide$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($new_width_scalev$$,
$height$jscomp$53_new_height$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($map__48606_sr_width$jscomp$2$$,$map__48606__$1_sr_height$jscomp$2$$));return $APP.$app$common$types$modifiers$resize_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($new_width_scalev$$,$G__48607$jscomp$inline_12603_origin$jscomp$16_shape$jscomp$72$$,$orientation$jscomp$1_shape_transform$$,$shape_transform_inv_width$jscomp$60$$)};
$app$main$data$workspace$transforms$rotation_modifiers$$=function($angle$jscomp$34$$,$shapes$jscomp$94$$,$center$jscomp$50$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__67450_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($p1__67450_SHARP_$$,$APP.$cljs$cst$1607$blocked$$,!1)}),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__67451_SHARP_$$){return $APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$shape$attrs$editable_attrs$$,
$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__67451_SHARP_$$)))}),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__67452_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__67452_SHARP_$$),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1794$modifiers$$,$APP.$app$common$types$modifiers$rotation_modifiers$$($p1__67452_SHARP_$$,
$center$jscomp$50$$,$angle$jscomp$34$$)],null)],null)})),$shapes$jscomp$94$$)};
$app$common$types$modifiers$resize_parent$cljs$0core$0IFn$0_invoke$0arity$05$$=function($vector$jscomp$13$$,$origin$jscomp$8$$,$transform$jscomp$32$$,$transform_inverse$jscomp$3$$){var $modifiers$jscomp$3_order$jscomp$9$$=$APP.$app$common$types$modifiers$empty$$(),$G__48561_modifiers__$1$jscomp$2$$=$APP.$cljs$core$truth_$$($modifiers$jscomp$3_order$jscomp$9$$)?$modifiers$jscomp$3_order$jscomp$9$$:$APP.$app$common$types$modifiers$empty$$();$modifiers$jscomp$3_order$jscomp$9$$=($G__48561_modifiers__$1$jscomp$2$$?.$last_order$??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48561_modifiers__$1$jscomp$2$$,$APP.$cljs$cst$1760$last_order$$))+1;$G__48561_modifiers__$1$jscomp$2$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__48561_modifiers__$1$jscomp$2$$,$APP.$cljs$cst$1760$last_order$$,$modifiers$jscomp$3_order$jscomp$9$$);return $APP.$app$common$types$modifiers$resize_vec_QMARK_$$($vector$jscomp$13$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($G__48561_modifiers__$1$jscomp$2$$,$APP.$cljs$cst$1761$geometry_parent$$,
$APP.$app$common$types$modifiers$maybe_add_resize$$,new $APP.$app$common$types$modifiers$GeometricOperation$$($modifiers$jscomp$3_order$jscomp$9$$,$APP.$cljs$cst$1783$resize$$,$vector$jscomp$13$$,$origin$jscomp$8$$,$transform$jscomp$32$$,$transform_inverse$jscomp$3$$,null,null,null,null,null)):$G__48561_modifiers__$1$jscomp$2$$};
$app$common$types$modifiers$move_parent$cljs$0core$0IFn$0_invoke$0arity$02$$=function($modifiers$jscomp$1_order$jscomp$7$$,$vector$jscomp$11$$){var $G__48555_modifiers__$1$$=$APP.$cljs$core$truth_$$($modifiers$jscomp$1_order$jscomp$7$$)?$modifiers$jscomp$1_order$jscomp$7$$:$APP.$app$common$types$modifiers$empty$$();$modifiers$jscomp$1_order$jscomp$7$$=($G__48555_modifiers__$1$$?.$last_order$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48555_modifiers__$1$$,$APP.$cljs$cst$1760$last_order$$))+
1;$G__48555_modifiers__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__48555_modifiers__$1$$,$APP.$cljs$cst$1760$last_order$$,$modifiers$jscomp$1_order$jscomp$7$$);return $APP.$app$common$types$modifiers$move_vec_QMARK_$$($vector$jscomp$11$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($G__48555_modifiers__$1$$,$APP.$cljs$cst$1761$geometry_parent$$,$APP.$app$common$types$modifiers$maybe_add_move$$,new $APP.$app$common$types$modifiers$GeometricOperation$$($modifiers$jscomp$1_order$jscomp$7$$,
$APP.$cljs$cst$1782$move$$,$vector$jscomp$11$$,null,null,null,null,null,null,null,null)):$G__48555_modifiers__$1$$};
$app$common$types$tokens_lib$group_by_type$$=function($tokens$jscomp$4_tokens_SINGLEQUOTE_$$){$tokens$jscomp$4_tokens_SINGLEQUOTE_$$=$APP.$cljs$core$map_QMARK_$$($tokens$jscomp$4_tokens_SINGLEQUOTE_$$)||$APP.$app$common$data$ordered_map_QMARK_$$($tokens$jscomp$4_tokens_SINGLEQUOTE_$$)?$APP.$cljs$core$vals$$($tokens$jscomp$4_tokens_SINGLEQUOTE_$$):$tokens$jscomp$4_tokens_SINGLEQUOTE_$$;return $APP.$cljs$core$group_by$$($APP.$cljs$cst$139$type$$,$tokens$jscomp$4_tokens_SINGLEQUOTE_$$)};
$app$main$ui$hooks$resize$use_resize_observer$$=function($callback$jscomp$87_node_ref$$){var $prev_val_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$observer_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$callback__$1$$=$app$main$ui$hooks$use_ref_callback$$($callback$jscomp$87_node_ref$$);$callback$jscomp$87_node_ref$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($node$jscomp$331$$){if($node$jscomp$331$$!=null){var $G__69314_69342_observer_69336$$=$APP.$rumext$v2$ref_val$$($observer_ref$$),
$prev_val_69337$$=$APP.$rumext$v2$ref_val$$($prev_val_ref$$);$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prev_val_69337$$,$node$jscomp$331$$)&&$G__69314_69342_observer_69336$$!=null&&($APP.$app$common$logging$enabled_QMARK_$$("app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2627$action$$,"disconnect"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4383$js_SLASH_prev_val$$,$prev_val_69337$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4384$js_SLASH_node$$,$node$jscomp$331$$],null)],null)}),null,"app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$,!1),$G__69314_69342_observer_69336$$.disconnect(),
$APP.$rumext$v2$set_ref_val_BANG_$$($observer_ref$$,null));if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prev_val_69337$$,$node$jscomp$331$$)&&$node$jscomp$331$$!=null){var $observer_69341__$1$$=new ResizeObserver(function(){var $G__69312$$=$APP.$app$main$ui$hooks$resize$last_resize_type$$,$G__69313$$=$APP.$app$util$dom$get_client_size$$($node$jscomp$331$$);return $callback__$1$$.$cljs$core$IFn$_invoke$arity$2$?$callback__$1$$.$cljs$core$IFn$_invoke$arity$2$($G__69312$$,$G__69313$$):
$callback__$1$$($G__69312$$,$G__69313$$)});$APP.$rumext$v2$set_ref_val_BANG_$$($observer_ref$$,$observer_69341__$1$$);$APP.$app$common$logging$enabled_QMARK_$$("app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2627$action$$,
"observe"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4384$js_SLASH_node$$,$node$jscomp$331$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4385$js_SLASH_observer$$,$observer_69341__$1$$],null)],null)}),null,"app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$,!1);$observer_69341__$1$$.observe($node$jscomp$331$$);$G__69314_69342_observer_69336$$=$APP.$app$main$ui$hooks$resize$last_resize_type$$;
var $G__69315_69343$$=$APP.$app$util$dom$get_client_size$$($node$jscomp$331$$);$callback__$1$$.$cljs$core$IFn$_invoke$arity$2$?$callback__$1$$.$cljs$core$IFn$_invoke$arity$2$($G__69314_69342_observer_69336$$,$G__69315_69343$$):$callback__$1$$($G__69314_69342_observer_69336$$,$G__69315_69343$$)}return $APP.$rumext$v2$set_ref_val_BANG_$$($prev_val_ref$$,$node$jscomp$331$$)}return null});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return function(){var $temp__5825__auto__$jscomp$213$$=
$APP.$rumext$v2$ref_val$$($observer_ref$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$213$$)?($APP.$app$common$logging$enabled_QMARK_$$("app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2627$action$$,
"disconnect"],null)],null)}),null,"app.main.ui.hooks.resize",$APP.$cljs$cst$1158$debug$$,!1),$temp__5825__auto__$jscomp$213$$.disconnect()):null}});return $callback$jscomp$87_node_ref$$};
$app$util$queue$cancel_process_BANG_$$=function(){$APP.$app$common$logging$enabled_QMARK_$$("app.util.queue",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"queue::cancel-process"],null)],null)}),null,"app.util.queue",$APP.$cljs$cst$1158$debug$$,
!1);var $timeout_66137$$=$APP.$app$main$data$workspace$thumbnails$queue$$.timeout;$timeout_66137$$!=null&&clearTimeout($timeout_66137$$);$APP.$app$main$data$workspace$thumbnails$queue$$.timeout=null;return $APP.$app$main$data$workspace$thumbnails$queue$$};
$app$main$data$workspace$thumbnails$clear_queue_BANG_$$=function(){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.thumbnails",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"clearing thumbnail queue"],
null)],null)}),null,"app.main.data.workspace.thumbnails",$APP.$cljs$cst$1158$debug$$,!1);return $APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($app$util$queue$cancel_process_BANG_$$(),"items",[]),"time",0)};
$app$main$data$persistence$update_file_revn$$=function($file_id$jscomp$38$$,$revn$jscomp$1$$){typeof $app$main$data$persistence$update_file_revn_54623$$==="undefined"&&($app$main$data$persistence$update_file_revn_54623$$=function($file_id$jscomp$39$$,$revn$jscomp$2$$,$meta54624$$){this.$file_id$=$file_id$jscomp$39$$;this.$revn$=$revn$jscomp$2$$;this.$meta54624$=$meta54624$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3102$app_DOT_main_DOT_data_DOT_persistence_SLASH_update_file_revn$$},$app$main$data$persistence$update_file_revn_54623$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54625$$,$meta54624__$1$$){return new $app$main$data$persistence$update_file_revn_54623$$(this.$file_id$,this.$revn$,$meta54624__$1$$)},$app$main$data$persistence$update_file_revn_54623$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54624$},$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1632$$,$state$jscomp$168$$){var $self__$jscomp$3403$$=this;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
3,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$$,"update-file-revn"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1628$file_id$$,""+($self__$jscomp$3403$$.$file_id$??"")],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2230$revn$$,$self__$jscomp$3403$$.$revn$],
null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1);return $app$main$data$helpers$update_file$cljs$0core$0IFn$0_invoke$0arity$03$$($state$jscomp$168$$,$self__$jscomp$3403$$.$file_id$,function($p1__54622_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__54622_SHARP_$$,$APP.$cljs$cst$2230$revn$$,$APP.$cljs$core$max$$,$self__$jscomp$3403$$.$revn$)})},$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$persistence$update_file_revn_54623$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$persistence$revn_data$$,$APP.$cljs$core$update$$,this.$file_id$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$max$$,0),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.$revn$]))});return new $app$main$data$persistence$update_file_revn_54623$$($file_id$jscomp$38$$,
$revn$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$persistence$update_status$$=function($status$jscomp$14$$){typeof $app$main$data$persistence$update_status_54606$$==="undefined"&&($app$main$data$persistence$update_status_54606$$=function($status$jscomp$15$$,$meta54607$$){this.status=$status$jscomp$15$$;this.$meta54607$=$meta54607$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$update_status_54606$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$persistence$update_status_54606$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3098$app_DOT_main_DOT_data_DOT_persistence_SLASH_update_status$$},$app$main$data$persistence$update_status_54606$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54608$$,$meta54607__$1$$){return new $app$main$data$persistence$update_status_54606$$(this.status,$meta54607__$1$$)},$app$main$data$persistence$update_status_54606$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54607$},$app$main$data$persistence$update_status_54606$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$update_status_54606$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1631$$,$state$jscomp$167$$){var $self__$jscomp$3399$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$167$$,$APP.$cljs$cst$2138$persistence$$,function($pstate$$){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",
$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,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$$,"update-status"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1847$from$$,$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($pstate$$)],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1848$to$$,$self__$jscomp$3399$$.status],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$144$trace$$,!1);var $status__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3399$$.status,$APP.$cljs$cst$111$pending$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($pstate$$),$APP.$cljs$cst$3099$saving$$)?
$APP.$cljs$cst$109$status$$.$cljs$core$IFn$_invoke$arity$1$($pstate$$):$self__$jscomp$3399$$.status,$G__54613$$=function(){var $G__54614$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($pstate$$,$APP.$cljs$cst$109$status$$,$status__$1$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($status__$1$$,$APP.$cljs$cst$847$error$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($G__54614$$,$APP.$cljs$cst$3100$run_id$$):$G__54614$$}();return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($status__$1$$,
$APP.$cljs$cst$3101$saved$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($G__54613$$,$APP.$cljs$cst$3100$run_id$$):$G__54613$$})});return new $app$main$data$persistence$update_status_54606$$($status$jscomp$14$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$persistence$persist_commit$$=function($commit_id$jscomp$4$$){typeof $app$main$data$persistence$persist_commit_54705$$==="undefined"&&($app$main$data$persistence$persist_commit_54705$$=function($commit_id$jscomp$5$$,$meta54706$$){this.$commit_id$=$commit_id$jscomp$5$$;this.$meta54706$=$meta54706$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$persist_commit_54705$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$persistence$persist_commit_54705$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3106$app_DOT_main_DOT_data_DOT_persistence_SLASH_persist_commit$$},$app$main$data$persistence$persist_commit_54705$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54707$$,$meta54706__$1$$){return new $app$main$data$persistence$persist_commit_54705$$(this.$commit_id$,$meta54706__$1$$)},$app$main$data$persistence$persist_commit_54705$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta54706$},$app$main$data$persistence$persist_commit_54705$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$persist_commit_54705$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$,$permissions$jscomp$2_state$jscomp$173$$){var $self__$jscomp$3421$$=this;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&
$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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$$,"persist-commit"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3096$commit_id$$,""+($self__$jscomp$3421$$.$commit_id$??"")],null)],null)}),
null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1);$_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($permissions$jscomp$2_state$jscomp$173$$,$APP.$cljs$cst$2138$persistence$$),$APP.$cljs$cst$1779$index$$),$self__$jscomp$3421$$.$commit_id$);if($APP.$cljs$core$truth_$$($_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$)){var $map__54714__$1$$=
$APP.$cljs$core$__destructure_map$$($_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$),$file_id$jscomp$40$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54714__$1$$,$APP.$cljs$cst$1628$file_id$$),$file_revn$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54714__$1$$,$APP.$cljs$cst$3091$file_revn$$);$_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54714__$1$$,
$APP.$cljs$cst$3095$file_vern$$);var $changes$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54714__$1$$,$APP.$cljs$cst$3084$changes$$),$features__$1$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54714__$1$$,$APP.$cljs$cst$227$features$$),$sid$$=$APP.$cljs$cst$3107$session_id$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$2_state$jscomp$173$$),$revn$jscomp$3$$=function(){var $y__5111__auto__$jscomp$77$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($APP.$app$main$data$persistence$revn_data$$),
$file_id$jscomp$40$$,0);return $file_revn$jscomp$2$$>$y__5111__auto__$jscomp$77$$?$file_revn$jscomp$2$$:$y__5111__auto__$jscomp$77$$}();$_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$227$features$$,$APP.$cljs$cst$3107$session_id$$,$APP.$cljs$cst$2230$revn$$,$APP.$cljs$cst$2529$vern$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$3096$commit_id$$,$APP.$cljs$cst$3084$changes$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$1553$created_at$$],
[$features__$1$jscomp$11$$,$sid$$,$revn$jscomp$3$$,$_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$,$file_id$jscomp$40$$,$self__$jscomp$3421$$.$commit_id$,$APP.$cljs$core$vec$$($changes$jscomp$5$$),$APP.$cljs$cst$1770$origin$$.$cljs$core$IFn$_invoke$arity$1$($map__54714__$1$$),$APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($map__54714__$1$$)]);$permissions$jscomp$2_state$jscomp$173$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$2_state$jscomp$173$$);
return $APP.$cljs$core$truth_$$($APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$2_state$jscomp$173$$))?$APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($cause$jscomp$46$$){return $APP.$beicon$v2$core$concat$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3108$authentication$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($cause$jscomp$46$$))?$APP.$beicon$v2$core$empty$$():(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3109$app_DOT_main_DOT_data_DOT_persistence_SLASH_error$$,
$cause$jscomp$46$$),$app$main$data$persistence$update_status$$($APP.$cljs$cst$847$error$$)),(0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$discard_persistence_state$$()),$APP.$beicon$v2$core$throw$0$$($cause$jscomp$46$$))},$APP.$beicon$v2$core$mapcat$$(function($map__54721__$1_p__54720$$){$map__54721__$1_p__54720$$=$APP.$cljs$core$__destructure_map$$($map__54721__$1_p__54720$$);var $revn__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54721__$1_p__54720$$,$APP.$cljs$cst$2230$revn$$),
$lagged$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54721__$1_p__54720$$,$APP.$cljs$cst$3110$lagged$$);$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,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$$,
"changes persisted"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3096$commit_id$$,""+($self__$jscomp$3421$$.$commit_id$??"")],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3110$lagged$$,$APP.$cljs$core$count$$($lagged$$)],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1);return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3111$app_DOT_main_DOT_data_DOT_persistence_SLASH_commit_persisted$$,
$map__54714__$1$$),$app$main$data$persistence$update_file_revn$$($file_id$jscomp$40$$,$revn__$1$$))},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2224$update_file$$,$_$jscomp$1638_file_vern$jscomp$2_params$jscomp$188_temp__5825__auto__$jscomp$170$$))):null}return null});return new $app$main$data$persistence$persist_commit_54705$$($commit_id$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$persistence$append_commit$$=function($p__54658$$){var $map__54659__$1$$=$APP.$cljs$core$__destructure_map$$($p__54658$$),$id$jscomp$344$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54659__$1$$,$APP.$cljs$cst$266$id$$),$run_id$$=$APP.$app$common$uuid$next$$();typeof $app$main$data$persistence$append_commit_54660$$==="undefined"&&($app$main$data$persistence$append_commit_54660$$=function($p__54658$jscomp$1$$,$map__54659$jscomp$1$$,$commit$jscomp$7$$,$id$jscomp$345$$,
$run_id$jscomp$1$$,$meta54661$$){this.$p__54658$=$p__54658$jscomp$1$$;this.$map__54659$=$map__54659$jscomp$1$$;this.commit=$commit$jscomp$7$$;this.id=$id$jscomp$345$$;this.$run_id$=$run_id$jscomp$1$$;this.$meta54661$=$meta54661$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3104$app_DOT_main_DOT_data_DOT_persistence_SLASH_append_commit$$},$app$main$data$persistence$append_commit_54660$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54662$$,$meta54661__$1$$){return new $app$main$data$persistence$append_commit_54660$$(this.$p__54658$,this.$map__54659$,this.commit,this.id,this.$run_id$,$meta54661__$1$$)},$app$main$data$persistence$append_commit_54660$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54661$},
$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1635$$,$state$jscomp$170$$){var $self__$jscomp$3412$$=this;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
3,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$$,"append-commit"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1562$method$$,"update"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3096$commit_id$$,""+($self__$jscomp$3412$$.id??"")],null)],
null)}),null,"app.main.data.persistence",$APP.$cljs$cst$144$trace$$,!1);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$170$$,$APP.$cljs$cst$2138$persistence$$,function($pstate$jscomp$2$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($pstate$jscomp$2$$,$APP.$cljs$cst$3100$run_id$$,$APP.$app$common$data$nilv$$,$self__$jscomp$3412$$.$run_id$),
$APP.$cljs$cst$1473$queue$$,$APP.$app$main$data$persistence$queue_conj$$,$self__$jscomp$3412$$.id),$APP.$cljs$cst$1779$index$$,$APP.$cljs$core$assoc$$,$self__$jscomp$3412$$.id,$self__$jscomp$3412$$.commit)})},$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$append_commit_54660$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1636_pstate$jscomp$3$$,$state$jscomp$171$$){$_$jscomp$1636_pstate$jscomp$3$$=
$APP.$cljs$cst$2138$persistence$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$171$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$run_id$,$APP.$cljs$cst$3100$run_id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1636_pstate$jscomp$3$$))?(0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$run_persistence_task$$.$cljs$core$IFn$_invoke$arity$0$?$app$main$data$persistence$run_persistence_task$$.$cljs$core$IFn$_invoke$arity$0$():$app$main$data$persistence$run_persistence_task$$(),
$app$main$data$persistence$update_status$$($APP.$cljs$cst$3099$saving$$)):null});return new $app$main$data$persistence$append_commit_54660$$($p__54658$$,$map__54659__$1$$,$map__54659__$1$$,$id$jscomp$344$$,$run_id$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$persistence$initialize_persistence$$=function(){typeof $app$main$data$persistence$initialize_persistence_54772$$==="undefined"&&($app$main$data$persistence$initialize_persistence_54772$$=function($meta54773$$){this.$meta54773$=$meta54773$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$initialize_persistence_54772$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$initialize_persistence_54772$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3113$app_DOT_main_DOT_data_DOT_persistence_SLASH_initialize_persistence$$},$app$main$data$persistence$initialize_persistence_54772$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54774$$,$meta54773__$1$$){return new $app$main$data$persistence$initialize_persistence_54772$$($meta54773__$1$$)},$app$main$data$persistence$initialize_persistence_54772$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54773$},$app$main$data$persistence$initialize_persistence_54772$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$initialize_persistence_54772$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1641_stoper_s$jscomp$1$$,$___$1$jscomp$986_local_commits_s$$,$stream$jscomp$27$$){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"initialize persistence"],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1);$_$jscomp$1641_stoper_s$jscomp$1$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3113$app_DOT_main_DOT_data_DOT_persistence_SLASH_initialize_persistence$$),$stream$jscomp$27$$);$___$1$jscomp$986_local_commits_s$$=
$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$filter$$($APP.$cljs$core$complement$$($APP.$cljs$core$empty_QMARK_$$),$APP.$beicon$v2$core$filter$$(function($p1__54769_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2842$local$$,$APP.$cljs$cst$193$source$$.$cljs$core$IFn$_invoke$arity$1$($p1__54769_SHARP_$$))},$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$app$main$data$changes$commit_QMARK_$$,$stream$jscomp$27$$)))));
var $notifier_s$$=$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,
"persistence beat"],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$144$trace$$,!1);return null},$APP.$beicon$v2$core$debounce$$(3E3,$___$1$jscomp$986_local_commits_s$$)),$APP.$beicon$v2$core$filter$$(function($p1__54770_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__54770_SHARP_$$,$APP.$cljs$cst$2491$app_DOT_main_DOT_data_DOT_persistence_SLASH_force_persist$$)},$stream$jscomp$27$$));return $APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$map$$(function(){return $APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3114$app_DOT_main_DOT_data_DOT_persistence_SLASH_persistence_notification$$)},
$notifier_s$$),$APP.$beicon$v2$core$take_until$$($_$jscomp$1641_stoper_s$jscomp$1$$,$APP.$beicon$v2$core$map$$(function(){return $app$main$data$persistence$update_status$$($APP.$cljs$cst$111$pending$$)},$APP.$beicon$v2$core$debounce$$(200,$___$1$jscomp$986_local_commits_s$$))),$APP.$beicon$v2$core$finalize$$(function(){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
1,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$$,"finalize persistence: changes watcher"],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1);return null},$APP.$beicon$v2$core$take_until$$($APP.$beicon$v2$core$delay$$(100,$_$jscomp$1641_stoper_s$jscomp$1$$),$APP.$beicon$v2$core$map$$($app$main$data$persistence$append_commit$$,$APP.$beicon$v2$core$mapcat$$($app$main$data$persistence$merge_commit$$,
$APP.$beicon$v2$core$buffer_until$$($notifier_s$$,$___$1$jscomp$986_local_commits_s$$))))),$APP.$beicon$v2$core$take_until$$($_$jscomp$1641_stoper_s$jscomp$1$$,$APP.$beicon$v2$core$mapcat$$(function($file_id$jscomp$41_p__54805$$){var $file_revn$jscomp$3_map__54806__$1$$=$APP.$cljs$core$__destructure_map$$($file_id$jscomp$41_p__54805$$);$file_id$jscomp$41_p__54805$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file_revn$jscomp$3_map__54806__$1$$,$APP.$cljs$cst$1628$file_id$$);$file_revn$jscomp$3_map__54806__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file_revn$jscomp$3_map__54806__$1$$,$APP.$cljs$cst$3091$file_revn$$);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$update_file_revn$$($file_id$jscomp$41_p__54805$$,$file_revn$jscomp$3_map__54806__$1$$))},$APP.$beicon$v2$core$filter$$(function($p1__54771_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3115$remote$$,$APP.$cljs$cst$193$source$$.$cljs$core$IFn$_invoke$arity$1$($p1__54771_SHARP_$$))},
$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$app$main$data$changes$commit_QMARK_$$,$stream$jscomp$27$$))))))});return new $app$main$data$persistence$initialize_persistence_54772$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$render_wasm$api$on_webgl_context_lost$$=function($event$jscomp$66$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$66$$);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$wasm$context_lost_QMARK_$$,!0);$APP.$app$common$logging$enabled_QMARK_$$("app.render-wasm.api",$APP.$cljs$cst$1160$warn$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"WebGL context lost"],null)],null)}),null,"app.render-wasm.api",$APP.$cljs$cst$1160$warn$$,!1);throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$("WebGL context lost",$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$3076$webgl_context_lost$$,
$APP.$cljs$cst$273$hint$$,"WebGL context lost"],null),null])),null);};
$app$render_wasm$api$clear_canvas$$=function(){if($APP.$app$render_wasm$wasm$context_initialized_QMARK_$$)try{$APP.$cljs$core$truth_$$($APP.$app$render_wasm$wasm$internal_frame_id$$)&&(cancelAnimationFrame($APP.$app$render_wasm$wasm$internal_frame_id$$),$APP.$app$render_wasm$wasm$internal_frame_id$$=null);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$pending_render$$,!1);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$shapes_loading_QMARK_$$,!1);$APP.$cljs$core$reset_BANG_$$($APP.$app$render_wasm$api$deferred_render_QMARK_$$,
!1);$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$=!1;(0,$APP.$app$render_wasm$wasm$internal_module$$._clean_up)();$APP.$cljs$core$truth_$$($app$render_wasm$wasm$canvas$$)&&($app$render_wasm$wasm$canvas$$.removeEventListener("webglcontextlost",$app$render_wasm$api$on_webgl_context_lost$$),$app$render_wasm$wasm$canvas$$=null);var $temp__5825__auto__$jscomp$168$$=$APP.$app$render_wasm$wasm$internal_module$$.GL;if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$168$$)){var $temp__5825__auto____$1$jscomp$12$$=
$app$render_wasm$wasm$gl_context_handle$$;if($APP.$cljs$core$truth_$$($temp__5825__auto____$1$jscomp$12$$))try{var $temp__5825__auto___54511__$2$$=$app$render_wasm$wasm$gl_context$$;if($APP.$cljs$core$truth_$$($temp__5825__auto___54511__$2$$)){var $temp__5825__auto___54513__$3$$=$temp__5825__auto___54511__$2$$.getExtension("WEBGL_lose_context");$APP.$cljs$core$truth_$$($temp__5825__auto___54513__$3$$)&&$temp__5825__auto___54513__$3$$.loseContext()}return $temp__5825__auto__$jscomp$168$$.deleteContext($temp__5825__auto____$1$jscomp$12$$)}finally{$app$render_wasm$wasm$gl_context$$=
$app$render_wasm$wasm$gl_context_handle$$=null}else return null}else return null}catch($e54285$$){return console.error($e54285$$)}else return null};
$app$render_wasm$api$webgl$draw_imagedata_to_webgl$$=function($gl$jscomp$1$$,$image_data_position_location_53532$$){var $texcoord_location_53533_width$jscomp$102$$=$image_data_position_location_53532$$.width,$height$jscomp$93_position_buffer_53534$$=$image_data_position_location_53532$$.height,$texture$jscomp$8$$=$gl$jscomp$1$$.createTexture();$gl$jscomp$1$$.bindTexture($gl$jscomp$1$$.TEXTURE_2D,$texture$jscomp$8$$);$gl$jscomp$1$$.texParameteri($gl$jscomp$1$$.TEXTURE_2D,$gl$jscomp$1$$.TEXTURE_WRAP_S,
$gl$jscomp$1$$.CLAMP_TO_EDGE);$gl$jscomp$1$$.texParameteri($gl$jscomp$1$$.TEXTURE_2D,$gl$jscomp$1$$.TEXTURE_WRAP_T,$gl$jscomp$1$$.CLAMP_TO_EDGE);$gl$jscomp$1$$.texParameteri($gl$jscomp$1$$.TEXTURE_2D,$gl$jscomp$1$$.TEXTURE_MIN_FILTER,$gl$jscomp$1$$.LINEAR);$gl$jscomp$1$$.texParameteri($gl$jscomp$1$$.TEXTURE_2D,$gl$jscomp$1$$.TEXTURE_MAG_FILTER,$gl$jscomp$1$$.LINEAR);$gl$jscomp$1$$.texImage2D($gl$jscomp$1$$.TEXTURE_2D,0,$gl$jscomp$1$$.RGBA,$gl$jscomp$1$$.RGBA,$gl$jscomp$1$$.UNSIGNED_BYTE,$image_data_position_location_53532$$);
$gl$jscomp$1$$.viewport(0,0,$texcoord_location_53533_width$jscomp$102$$,$height$jscomp$93_position_buffer_53534$$);var $vertex_shader$$=$gl$jscomp$1$$.createShader($gl$jscomp$1$$.VERTEX_SHADER),$fragment_shader$$=$gl$jscomp$1$$.createShader($gl$jscomp$1$$.FRAGMENT_SHADER),$program$jscomp$63$$=$gl$jscomp$1$$.createProgram();$gl$jscomp$1$$.shaderSource($vertex_shader$$,"#version 300 es\nin vec2 a_position;\nin vec2 a_texCoord;\nout vec2 v_texCoord;\nvoid main() {\n  gl_Position \x3d vec4(a_position, 0.0, 1.0);\n  v_texCoord \x3d a_texCoord;\n}");
$gl$jscomp$1$$.compileShader($vertex_shader$$);$APP.$cljs$core$truth_$$($gl$jscomp$1$$.getShaderParameter($vertex_shader$$,$gl$jscomp$1$$.COMPILE_STATUS))||$APP.$app$common$logging$enabled_QMARK_$$("app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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$$,"Vertex shader compilation failed"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3044$log$$,$gl$jscomp$1$$.getShaderInfoLog($vertex_shader$$)],null)],null)}),null,"app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$,!1);$gl$jscomp$1$$.shaderSource($fragment_shader$$,"#version 300 es\nprecision highp float;\nin vec2 v_texCoord;\nuniform sampler2D u_texture;\nout vec4 fragColor;\nvoid main() {\n  fragColor \x3d texture(u_texture, v_texCoord);\n}");
$gl$jscomp$1$$.compileShader($fragment_shader$$);$APP.$cljs$core$truth_$$($gl$jscomp$1$$.getShaderParameter($fragment_shader$$,$gl$jscomp$1$$.COMPILE_STATUS))||$APP.$app$common$logging$enabled_QMARK_$$("app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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$$,"Fragment shader compilation failed"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3044$log$$,$gl$jscomp$1$$.getShaderInfoLog($fragment_shader$$)],null)],null)}),null,"app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$,!1);$gl$jscomp$1$$.attachShader($program$jscomp$63$$,$vertex_shader$$);$gl$jscomp$1$$.attachShader($program$jscomp$63$$,$fragment_shader$$);$gl$jscomp$1$$.linkProgram($program$jscomp$63$$);
if($APP.$cljs$core$truth_$$($gl$jscomp$1$$.getProgramParameter($program$jscomp$63$$,$gl$jscomp$1$$.LINK_STATUS))){$gl$jscomp$1$$.useProgram($program$jscomp$63$$);$image_data_position_location_53532$$=$gl$jscomp$1$$.getAttribLocation($program$jscomp$63$$,"a_position");$texcoord_location_53533_width$jscomp$102$$=$gl$jscomp$1$$.getAttribLocation($program$jscomp$63$$,"a_texCoord");$height$jscomp$93_position_buffer_53534$$=$gl$jscomp$1$$.createBuffer();var $texcoord_buffer_53535$$=$gl$jscomp$1$$.createBuffer();
$gl$jscomp$1$$.bindBuffer($gl$jscomp$1$$.ARRAY_BUFFER,$height$jscomp$93_position_buffer_53534$$);$gl$jscomp$1$$.bufferData($gl$jscomp$1$$.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),$gl$jscomp$1$$.STATIC_DRAW);$gl$jscomp$1$$.enableVertexAttribArray($image_data_position_location_53532$$);$gl$jscomp$1$$.vertexAttribPointer($image_data_position_location_53532$$,2,$gl$jscomp$1$$.FLOAT,!1,0,0);$gl$jscomp$1$$.bindBuffer($gl$jscomp$1$$.ARRAY_BUFFER,$texcoord_buffer_53535$$);$gl$jscomp$1$$.bufferData($gl$jscomp$1$$.ARRAY_BUFFER,
new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),$gl$jscomp$1$$.STATIC_DRAW);$gl$jscomp$1$$.enableVertexAttribArray($texcoord_location_53533_width$jscomp$102$$);$gl$jscomp$1$$.vertexAttribPointer($texcoord_location_53533_width$jscomp$102$$,2,$gl$jscomp$1$$.FLOAT,!1,0,0);$gl$jscomp$1$$.activeTexture($gl$jscomp$1$$.TEXTURE0);$gl$jscomp$1$$.bindTexture($gl$jscomp$1$$.TEXTURE_2D,$texture$jscomp$8$$);$gl$jscomp$1$$.uniform1i($gl$jscomp$1$$.getUniformLocation($program$jscomp$63$$,"u_texture"),0);$gl$jscomp$1$$.drawArrays($gl$jscomp$1$$.TRIANGLES,
0,6);$gl$jscomp$1$$.deleteBuffer($height$jscomp$93_position_buffer_53534$$);$gl$jscomp$1$$.deleteBuffer($texcoord_buffer_53535$$);$gl$jscomp$1$$.deleteShader($vertex_shader$$);$gl$jscomp$1$$.deleteShader($fragment_shader$$);$gl$jscomp$1$$.deleteProgram($program$jscomp$63$$)}else $APP.$app$common$logging$enabled_QMARK_$$("app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
2,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$$,"Program linking failed"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3044$log$$,$gl$jscomp$1$$.getProgramInfoLog($program$jscomp$63$$)],null)],null)}),null,"app.render-wasm.api.webgl",$APP.$cljs$cst$847$error$$,!1);$gl$jscomp$1$$.bindTexture($gl$jscomp$1$$.TEXTURE_2D,
null);$gl$jscomp$1$$.deleteTexture($texture$jscomp$8$$)};
$app$render_wasm$api$webgl$restore_previous_canvas_pixels$$=function(){var $temp__5825__auto__$jscomp$160$$=$app$render_wasm$wasm$canvas_pixels$$;if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$160$$)){var $temp__5825__auto____$1$jscomp$9$$=$app$render_wasm$wasm$gl_context$$;if($APP.$cljs$core$truth_$$($temp__5825__auto____$1$jscomp$9$$))return $app$render_wasm$api$webgl$draw_imagedata_to_webgl$$($temp__5825__auto____$1$jscomp$9$$,$temp__5825__auto__$jscomp$160$$),$app$render_wasm$wasm$canvas_pixels$$=
null}return null};$cljs$tools$reader$impl$utils$ReaderConditional$$=function($splicing_QMARK_$$,$form$jscomp$7$$,$__meta$$,$__extmap$$,$__hash$jscomp$51$$){this.$splicing_QMARK_$=$splicing_QMARK_$$;this.form=$form$jscomp$7$$;this.$__meta$=$__meta$$;this.$__extmap$=$__extmap$$;this.$__hash$=$__hash$jscomp$51$$;this.$cljs$lang$protocol_mask$partition0$$=2230716170;this.$cljs$lang$protocol_mask$partition1$$=139264};
$cljs$tools$reader$impl$utils$reader_conditional$$=function($form$jscomp$9$$,$splicing_QMARK_$jscomp$2$$){return new $cljs$tools$reader$impl$utils$ReaderConditional$$($splicing_QMARK_$jscomp$2$$,$form$jscomp$9$$,null,null,null)};
$cljs$tools$reader$add_meta$$=function($form$jscomp$19$$,$ret$jscomp$62$$){return function(){var $and__5023__auto__$jscomp$39$$=$form$jscomp$19$$!=null?$form$jscomp$19$$.$cljs$lang$protocol_mask$partition0$$&262144||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$form$jscomp$19$$.$cljs$core$IWithMeta$$?!0:!1:!1;return $and__5023__auto__$jscomp$39$$?$APP.$cljs$core$seq$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$meta$$($form$jscomp$19$$),$APP.$cljs$cst$209$line$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$216$column$$,
$APP.$cljs$cst$217$end_line$$,$APP.$cljs$cst$218$end_column$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$193$source$$]))):$and__5023__auto__$jscomp$39$$}()?new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$236$cljs_DOT_core_SLASH_with_meta$$,new $APP.$cljs$core$List$$(null,$ret$jscomp$62$$,new $APP.$cljs$core$List$$(null,function(){var $G__24857$$=$APP.$cljs$core$meta$$($form$jscomp$19$$);return $cljs$tools$reader$syntax_quote_STAR_$$.$cljs$core$IFn$_invoke$arity$1$?$cljs$tools$reader$syntax_quote_STAR_$$.$cljs$core$IFn$_invoke$arity$1$($G__24857$$):
$cljs$tools$reader$syntax_quote_STAR_$$($G__24857$$)}(),null,1,null),2,null),3,null):$ret$jscomp$62$$};
$cljs$tools$reader$syntax_quote_coll$$=function($type$jscomp$177$$,$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$){a:{$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$=$APP.$cljs$core$seq$$($G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$);for(var $G__25053$jscomp$inline_7996_r$jscomp$inline_7992_ret$jscomp$inline_7994$$=
$APP.$cljs$core$_as_transient$$($APP.$cljs$core$PersistentVector$EMPTY$$);;)if($G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$){var $item$jscomp$inline_7993$$=$APP.$cljs$core$first$$($G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$);$G__25053$jscomp$inline_7996_r$jscomp$inline_7992_ret$jscomp$inline_7994$$=$APP.$cljs$core$conj_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__25053$jscomp$inline_7996_r$jscomp$inline_7992_ret$jscomp$inline_7994$$,
$cljs$tools$reader$unquote_QMARK_$$($item$jscomp$inline_7993$$)?new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$235$clojure_DOT_core_SLASH_list$$,new $APP.$cljs$core$List$$(null,$APP.$cljs$core$second$$($item$jscomp$inline_7993$$),null,1,null),2,null):$cljs$tools$reader$unquote_splicing_QMARK_$$($item$jscomp$inline_7993$$)?$APP.$cljs$core$second$$($item$jscomp$inline_7993$$):new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$235$clojure_DOT_core_SLASH_list$$,new $APP.$cljs$core$List$$(null,$cljs$tools$reader$syntax_quote_STAR_$$.$cljs$core$IFn$_invoke$arity$1$?
$cljs$tools$reader$syntax_quote_STAR_$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$inline_7993$$):$cljs$tools$reader$syntax_quote_STAR_$$($item$jscomp$inline_7993$$),null,1,null),2,null));$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$=$APP.$cljs$core$next$$($G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$)}else{$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$=
$APP.$cljs$core$seq$$($APP.$cljs$core$_persistent_BANG_$$($G__25053$jscomp$inline_7996_r$jscomp$inline_7992_ret$jscomp$inline_7994$$));break a}$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$=void 0}$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$=new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$237$cljs_DOT_core_SLASH_sequence$$,new $APP.$cljs$core$List$$(null,
$APP.$cljs$core$cons$$($APP.$cljs$cst$238$cljs_DOT_core_SLASH_concat$$,$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$),null,1,null),2,null);return $APP.$cljs$core$truth_$$($type$jscomp$177$$)?new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$239$cljs_DOT_core_SLASH_apply$$,new $APP.$cljs$core$List$$(null,$type$jscomp$177$$,new $APP.$cljs$core$List$$(null,$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$,
null,1,null),2,null),3,null):$G__25052$jscomp$inline_7995_JSCompiler_inline_result$jscomp$1546_coll$jscomp$822_res$jscomp$12_s__$1$jscomp$inline_7991$$};
$cljs$tools$reader$syntax_quote_STAR_$$=function($form$jscomp$20$$){if($APP.$cljs$core$special_symbol_QMARK_$$($form$jscomp$20$$))var $JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$167$quote$$,new $APP.$cljs$core$List$$(null,$form$jscomp$20$$,null,
1,null),2,null);else if($form$jscomp$20$$ instanceof $APP.$cljs$core$Symbol$$)$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$167$quote$$,new $APP.$cljs$core$List$$(null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$40$$=$APP.$cljs$core$not$$($APP.$cljs$core$namespace$$($form$jscomp$20$$));
return $and__5023__auto__$jscomp$40$$?$APP.$goog$string$internal$endsWith$$($APP.$cljs$core$name$$($form$jscomp$20$$),"#"):$and__5023__auto__$jscomp$40$$}())?$cljs$tools$reader$register_gensym$$($form$jscomp$20$$):function(){var $csym_sym$jscomp$19$$=$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($form$jscomp$20$$);return $APP.$cljs$core$truth_$$($APP.$goog$string$internal$endsWith$$($csym_sym$jscomp$19$$,"."))?($csym_sym$jscomp$19$$=$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($csym_sym$jscomp$19$$,
0,$csym_sym$jscomp$19$$.length-1)),$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$([$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($cljs$tools$reader$resolve_symbol$$.call(null,$csym_sym$jscomp$19$$)),"."].join(""))):$cljs$tools$reader$resolve_symbol$$.call(null,$form$jscomp$20$$)}(),null,1,null),2,null);else if($cljs$tools$reader$unquote_QMARK_$$($form$jscomp$20$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=
$APP.$cljs$core$second$$($form$jscomp$20$$);else{if($cljs$tools$reader$unquote_splicing_QMARK_$$($form$jscomp$20$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("unquote-splice not in list",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$232$illegal_state$$],null));if($APP.$cljs$core$coll_QMARK_$$($form$jscomp$20$$))if($form$jscomp$20$$!=null&&($form$jscomp$20$$.$cljs$lang$protocol_mask$partition0$$&67108864||$APP.$cljs$core$PROTOCOL_SENTINEL$$===
$form$jscomp$20$$.$cljs$core$IRecord$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=$form$jscomp$20$$;else if($APP.$cljs$core$map_QMARK_$$($form$jscomp$20$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=
$cljs$tools$reader$syntax_quote_coll$$($APP.$cljs$core$count$$($form$jscomp$20$$)>=16?$APP.$cljs$cst$240$cljs_DOT_core_SLASH_hash_map$$:$APP.$cljs$cst$241$cljs_DOT_core_SLASH_array_map$$,$cljs$tools$reader$flatten_map$$($form$jscomp$20$$));else if($APP.$cljs$core$vector_QMARK_$$($form$jscomp$20$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=
new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$243$cljs_DOT_core_SLASH_vec$$,new $APP.$cljs$core$List$$(null,$cljs$tools$reader$syntax_quote_coll$$(null,$form$jscomp$20$$),null,1,null),2,null);else if($APP.$cljs$core$set_QMARK_$$($form$jscomp$20$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=
$cljs$tools$reader$syntax_quote_coll$$($APP.$cljs$cst$244$cljs_DOT_core_SLASH_hash_set$$,$form$jscomp$20$$);else if($APP.$cljs$core$seq_QMARK_$$($form$jscomp$20$$)||$APP.$cljs$core$list_QMARK_$$($form$jscomp$20$$))$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=function(){var $seq$jscomp$1$$=$APP.$cljs$core$seq$$($form$jscomp$20$$);
return $seq$jscomp$1$$?$cljs$tools$reader$syntax_quote_coll$$(null,$seq$jscomp$1$$):$APP.$cljs$core$list$$($APP.$cljs$cst$245$cljs_DOT_core_SLASH_list$$)}();else throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Unknown Collection type",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$246$unsupported_operation$$],null));else $JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$=
$form$jscomp$20$$ instanceof $APP.$cljs$core$Keyword$$||typeof $form$jscomp$20$$==="number"||typeof $form$jscomp$20$$==="string"||$form$jscomp$20$$==null||$form$jscomp$20$$ instanceof Boolean||$form$jscomp$20$$===!0||$form$jscomp$20$$===!1||$form$jscomp$20$$ instanceof RegExp?$form$jscomp$20$$:new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$167$quote$$,new $APP.$cljs$core$List$$(null,$form$jscomp$20$$,null,1,null),2,null)}return $cljs$tools$reader$add_meta$$($form$jscomp$20$$,$JSCompiler_temp$jscomp$1547_JSCompiler_temp$jscomp$1548_JSCompiler_temp$jscomp$1549_JSCompiler_temp$jscomp$1551_JSCompiler_temp$jscomp$1552_JSCompiler_temp$jscomp$1553_JSCompiler_temp$jscomp$1554_JSCompiler_temp$jscomp$1555_JSCompiler_temp$jscomp$1556$$)};
$app$common$logic$tokens$toggle_token_set_group$$=function($group_path$jscomp$5_sets_names$$,$tokens_lib$jscomp$21$$,$tokens_lib_theme$$){var $deactivate_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2106$all$$,null,$APP.$cljs$cst$2107$partial$$,null],null),null),$app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$($tokens_lib$jscomp$21$$,$group_path$jscomp$5_sets_names$$));$group_path$jscomp$5_sets_names$$=
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$tokens_lib$get_name$$,$app$common$types$tokens_lib$get_sets_at_path$$($tokens_lib$jscomp$21$$,$group_path$jscomp$5_sets_names$$)));return $deactivate_QMARK_$$?$app$common$types$tokens_lib$disable_sets$$($tokens_lib_theme$$,$group_path$jscomp$5_sets_names$$):$app$common$types$tokens_lib$enable_sets$$($tokens_lib_theme$$,$group_path$jscomp$5_sets_names$$)};
$app$common$files$tokens$shapes_ids_by_applied_attributes$$=function($token$jscomp$70$$,$shapes$jscomp$121$$,$token_attributes$jscomp$2$$){var $conj_STAR_$jscomp$1$$=$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($result$jscomp$304$$,$shape$jscomp$742$$){var $shape_id$jscomp$124$$=$shape$jscomp$742$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$742$$,
$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($result__$1$jscomp$40$$,$attr$jscomp$55$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($result__$1$jscomp$40$$,$attr$jscomp$55$$,$conj_STAR_$jscomp$1$$,$shape_id$jscomp$124$$)},$result$jscomp$304$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69761_SHARP_$$){return $APP.$app$common$files$tokens$token_attribute_applied_QMARK_$$($token$jscomp$70$$,$shape$jscomp$742$$,
$p1__69761_SHARP_$$)},$token_attributes$jscomp$2$$))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$shapes$jscomp$121$$)};
$app$main$data$workspace$select_assets$$=function($file_id$jscomp$269$$,$assets_ids$$,$type$jscomp$528$$){typeof $app$main$data$workspace$select_assets_70380$$==="undefined"&&($app$main$data$workspace$select_assets_70380$$=function($file_id$jscomp$270$$,$assets_ids$jscomp$1$$,$type$jscomp$529$$,$meta70381$$){this.$file_id$=$file_id$jscomp$270$$;this.$assets_ids$=$assets_ids$jscomp$1$$;this.type=$type$jscomp$529$$;this.$meta70381$=$meta70381$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$select_assets_70380$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$select_assets_70380$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4345$app_DOT_main_DOT_data_DOT_workspace_SLASH_select_assets$$},$app$main$data$workspace$select_assets_70380$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70382$$,$meta70381__$1$$){return new $app$main$data$workspace$select_assets_70380$$(this.$file_id$,
this.$assets_ids$,this.type,$meta70381__$1$$)},$app$main$data$workspace$select_assets_70380$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70381$},$app$main$data$workspace$select_assets_70380$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$select_assets_70380$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2480$$,$state$jscomp$834$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$834$$,new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$1906$selected$$,this.$file_id$,this.type],null),$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,this.$assets_ids$))});return new $app$main$data$workspace$select_assets_70380$$($file_id$jscomp$269$$,$assets_ids$$,$type$jscomp$528$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$check_in_asset$$=function($items$jscomp$47_items__$1$jscomp$6$$,$element$jscomp$71$$){$items$jscomp$47_items__$1$jscomp$6$$=$APP.$cljs$core$truth_$$($items$jscomp$47_items__$1$jscomp$6$$)?$items$jscomp$47_items__$1$jscomp$6$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$;return $APP.$cljs$core$contains_QMARK_$$($items$jscomp$47_items__$1$jscomp$6$$,$element$jscomp$71$$)?$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($items$jscomp$47_items__$1$jscomp$6$$,$element$jscomp$71$$):
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($items$jscomp$47_items__$1$jscomp$6$$,$element$jscomp$71$$)};
$app$main$data$workspace$toggle_selected_assets$$=function($file_id$jscomp$265$$,$asset_id$jscomp$12$$,$type$jscomp$524$$){typeof $app$main$data$workspace$toggle_selected_assets_70374$$==="undefined"&&($app$main$data$workspace$toggle_selected_assets_70374$$=function($file_id$jscomp$266$$,$asset_id$jscomp$13$$,$type$jscomp$525$$,$meta70375$$){this.$file_id$=$file_id$jscomp$266$$;this.$asset_id$=$asset_id$jscomp$13$$;this.type=$type$jscomp$525$$;this.$meta70375$=$meta70375$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4343$app_DOT_main_DOT_data_DOT_workspace_SLASH_toggle_selected_assets$$},$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70376$$,
$meta70375__$1$$){return new $app$main$data$workspace$toggle_selected_assets_70374$$(this.$file_id$,this.$asset_id$,this.type,$meta70375__$1$$)},$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70375$},$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$toggle_selected_assets_70374$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2478$$,$state$jscomp$832$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$832$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$1906$selected$$,this.$file_id$,this.type],null),$app$main$data$workspace$check_in_asset$$,this.$asset_id$)});return new $app$main$data$workspace$toggle_selected_assets_70374$$($file_id$jscomp$265$$,$asset_id$jscomp$12$$,
$type$jscomp$524$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid_layout$editor$select_track_cells$$=function($grid_id$jscomp$17$$,$type$jscomp$499$$,$index$jscomp$346$$){typeof $app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$=function($grid_id$jscomp$18$$,$type$jscomp$500$$,$index$jscomp$347$$,$meta68948$$){this.$grid_id$=$grid_id$jscomp$18$$;this.type=$type$jscomp$500$$;this.index=$index$jscomp$347$$;this.$meta68948$=$meta68948$$;
this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4241$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_select_track_cells$$},$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68949$$,$meta68948__$1$$){return new $app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$(this.$grid_id$,this.type,this.index,$meta68948__$1$$)},$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68948$},$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$,$state$jscomp$755$$){$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$755$$);$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$,
this.$grid_id$);$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.type,$APP.$cljs$cst$216$column$$)?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$,this.index):$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$,
this.index);$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$=$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$$),$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$);return $APP.$cljs$core$assoc_in$$($state$jscomp$755$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$2200$workspace_grid_edition$$,this.$grid_id$,$APP.$cljs$cst$1906$selected$$],null),$_$jscomp$2378_cells$jscomp$22_objects$jscomp$603_parent$jscomp$280_selected$jscomp$84$$)});return new $app$main$data$workspace$grid_layout$editor$select_track_cells_68947$$($grid_id$jscomp$17$$,$type$jscomp$499$$,$index$jscomp$346$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid_layout$editor$hover_grid_cell$$=function($grid_id$$,$cell_id$$,$add_to_set$$){typeof $app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$=function($grid_id$jscomp$1$$,$cell_id$jscomp$1$$,$add_to_set$jscomp$1$$,$meta68870$$){this.$grid_id$=$grid_id$jscomp$1$$;this.$cell_id$=$cell_id$jscomp$1$$;this.$add_to_set$=$add_to_set$jscomp$1$$;this.$meta68870$=$meta68870$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4233$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_hover_grid_cell$$},$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68871$$,$meta68870__$1$$){return new $app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$(this.$grid_id$,this.$cell_id$,this.$add_to_set$,$meta68870__$1$$)},$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68870$},$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2370$$,$state$jscomp$747$$){var $self__$jscomp$5733$$=this;return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$747$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,$self__$jscomp$5733$$.$grid_id$,$APP.$cljs$cst$2166$hover$$],null),function($hover_set_hover_set__$1$$){$hover_set_hover_set__$1$$=$APP.$cljs$core$truth_$$($hover_set_hover_set__$1$$)?$hover_set_hover_set__$1$$:
$APP.$cljs$core$PersistentHashSet$EMPTY$$;return $APP.$cljs$core$truth_$$($self__$jscomp$5733$$.$add_to_set$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($hover_set_hover_set__$1$$,$self__$jscomp$5733$$.$cell_id$):$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($hover_set_hover_set__$1$$,$self__$jscomp$5733$$.$cell_id$)})});return new $app$main$data$workspace$grid_layout$editor$hover_grid_cell_68869$$($grid_id$$,$cell_id$$,$add_to_set$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$guides$set_hover_guide$$=function($id$jscomp$695$$,$hover_QMARK_$$){typeof $app$main$data$workspace$guides$set_hover_guide_68564$$==="undefined"&&($app$main$data$workspace$guides$set_hover_guide_68564$$=function($id$jscomp$696$$,$hover_QMARK_$jscomp$1$$,$meta68565$$){this.id=$id$jscomp$696$$;this.$hover_QMARK_$=$hover_QMARK_$jscomp$1$$;this.$meta68565$=$meta68565$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4175$app_DOT_main_DOT_data_DOT_workspace_DOT_guides_SLASH_set_hover_guide$$},$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68566$$,$meta68565__$1$$){return new $app$main$data$workspace$guides$set_hover_guide_68564$$(this.id,this.$hover_QMARK_$,$meta68565__$1$$)},
$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68565$},$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$guides$set_hover_guide_68564$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2318_sconj$$,$state$jscomp$703$$){$_$jscomp$2318_sconj$$=$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,
$APP.$cljs$core$PersistentHashSet$EMPTY$$);var $sdisj$jscomp$1$$=$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$disj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$);return $APP.$cljs$core$truth_$$(this.$hover_QMARK_$)?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$703$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4173$workspace_guides$$,$APP.$cljs$cst$2166$hover$$],null),$_$jscomp$2318_sconj$$,
this.id):$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$703$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4173$workspace_guides$$,$APP.$cljs$cst$2166$hover$$],null),$sdisj$jscomp$1$$,this.id)});return new $app$main$data$workspace$guides$set_hover_guide_68564$$($id$jscomp$695$$,$hover_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$deselect_all$$=function(){typeof $app$main$data$workspace$path$selection$deselect_all_68169$$==="undefined"&&($app$main$data$workspace$path$selection$deselect_all_68169$$=function($meta68170$$){this.$meta68170$=$meta68170$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4127$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_deselect_all$$},$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68171$$,$meta68170__$1$$){return new $app$main$data$workspace$path$selection$deselect_all_68169$$($meta68170__$1$$)},$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68170$},$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$deselect_all_68169$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2263_id$jscomp$664$$,$state$jscomp$662$$){$_$jscomp$2263_id$jscomp$664$$=$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$662$$);return $APP.$cljs$core$assoc_in$$($state$jscomp$662$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,
$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2263_id$jscomp$664$$,$APP.$cljs$cst$4125$selected_points$$],null),$APP.$cljs$core$PersistentHashSet$EMPTY$$)});return new $app$main$data$workspace$path$selection$deselect_all_68169$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$path_handler_enter$$=function($index$jscomp$321$$,$prefix$jscomp$52$$){typeof $app$main$data$workspace$path$selection$path_handler_enter_68127$$==="undefined"&&($app$main$data$workspace$path$selection$path_handler_enter_68127$$=function($index$jscomp$322$$,$prefix$jscomp$53$$,$meta68128$$){this.index=$index$jscomp$322$$;this.prefix=$prefix$jscomp$53$$;this.$meta68128$=$meta68128$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4121$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_path_handler_enter$$},$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68129$$,
$meta68128__$1$$){return new $app$main$data$workspace$path$selection$path_handler_enter_68127$$(this.index,this.prefix,$meta68128__$1$$)},$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68128$},$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_handler_enter_68127$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2259_id$jscomp$660$$,$state$jscomp$658$$){$_$jscomp$2259_id$jscomp$660$$=$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$658$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$658$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2259_id$jscomp$660$$,$APP.$cljs$cst$4122$hover_handlers$$],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,
$APP.$cljs$core$PersistentHashSet$EMPTY$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.index,this.prefix],null))});return new $app$main$data$workspace$path$selection$path_handler_enter_68127$$($index$jscomp$321$$,$prefix$jscomp$52$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$path_pointer_enter$$=function($position$jscomp$132$$){typeof $app$main$data$workspace$path$selection$path_pointer_enter_68107$$==="undefined"&&($app$main$data$workspace$path$selection$path_pointer_enter_68107$$=function($position$jscomp$133$$,$meta68108$$){this.position=$position$jscomp$133$$;this.$meta68108$=$meta68108$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4118$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_path_pointer_enter$$},$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68109$$,$meta68108__$1$$){return new $app$main$data$workspace$path$selection$path_pointer_enter_68107$$(this.position,
$meta68108__$1$$)},$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68108$},$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$path_pointer_enter_68107$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2257_id$jscomp$658$$,$state$jscomp$656$$){$_$jscomp$2257_id$jscomp$658$$=
$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$656$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$656$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2257_id$jscomp$658$$,$APP.$cljs$cst$4119$hover_points$$],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),
this.position)});return new $app$main$data$workspace$path$selection$path_pointer_enter_68107$$($position$jscomp$132$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$thumbnails$extract_frame_changes$$=function($page_id$jscomp$141$$,$p__66311_vec__66315$$){function $get_frame_ids_cached$$($id$jscomp$519$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$_deref$$($frame_id_cache$$),$id$jscomp$519$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($frame_id_cache$$),$id$jscomp$519$$):$get_frame_ids$$($id$jscomp$519$$)}function $get_frame_ids$$($id$jscomp$518$$){var $old_objects$jscomp$1_result$jscomp$273$$=
$lookup_data_objects$$($old_data$$,$page_id$jscomp$141$$),$new_objects$jscomp$1$$=$lookup_data_objects$$($new_data$jscomp$1$$,$page_id$jscomp$141$$),$new_shape$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_objects$jscomp$1$$,$id$jscomp$518$$),$old_shape$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_objects$jscomp$1_result$jscomp$273$$,$id$jscomp$518$$),$old_frame_id$$=$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$)?
$id$jscomp$518$$:$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$),$new_frame_id$$=$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$)?$id$jscomp$518$$:$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$),$root_frame_old_QMARK_$$=$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($old_objects$jscomp$1_result$jscomp$273$$,$old_frame_id$$),$root_frame_new_QMARK_$$=
$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($new_objects$jscomp$1$$,$new_frame_id$$),$instance_root_QMARK_$jscomp$1$$=$APP.$app$common$types$component$instance_root_QMARK_$$($new_shape$jscomp$16$$),$local_result$$=function(){var $G__66334__$1_G__66334__$2$$=$APP.$cljs$core$truth_$$($root_frame_old_QMARK_$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
["frame",$old_frame_id$$],null)):$APP.$cljs$core$PersistentHashSet$EMPTY$$;$G__66334__$1_G__66334__$2$$=$APP.$cljs$core$truth_$$($root_frame_new_QMARK_$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__66334__$1_G__66334__$2$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["frame",$new_frame_id$$],null)):$G__66334__$1_G__66334__$2$$;return $instance_root_QMARK_$jscomp$1$$?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__66334__$1_G__66334__$2$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["component",$id$jscomp$518$$],null)):$G__66334__$1_G__66334__$2$$}();$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($frame_id_cache$$,$APP.$cljs$core$assoc$$,$id$jscomp$518$$,$local_result$$);$old_objects$jscomp$1_result$jscomp$273$$=function(){var $G__66335__$1$$=$APP.$cljs$core$uuid_QMARK_$$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,
$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$518$$,$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$))?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($local_result$$,$get_frame_ids_cached$$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($old_shape$$))):$local_result$$;return $APP.$cljs$core$uuid_QMARK_$$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$))&&
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$518$$,$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$))?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__66335__$1$$,$get_frame_ids_cached$$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$16$$))):
$G__66335__$1$$}();$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($frame_id_cache$$,$APP.$cljs$core$assoc$$,$id$jscomp$518$$,$old_objects$jscomp$1_result$jscomp$273$$);return $old_objects$jscomp$1_result$jscomp$273$$}function $lookup_data_objects$$($data$jscomp$316$$,$page_id__$1$jscomp$5$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$316$$,$APP.$cljs$cst$1614$pages_index$$),
$page_id__$1$jscomp$5$$),$APP.$cljs$cst$1615$objects$$)}var $changes$jscomp$185_event$jscomp$85$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66311_vec__66315$$,0,null);$p__66311_vec__66315$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66311_vec__66315$$,1,null);var $old_data$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66311_vec__66315$$,0,null),$new_data$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66311_vec__66315$$,
1,null);$changes$jscomp$185_event$jscomp$85$$=$APP.$cljs$cst$3084$changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$185_event$jscomp$85$$);var $frame_id_cache$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__66332__$1_p__66331$$){$map__66332__$1_p__66331$$=
$APP.$cljs$core$__destructure_map$$($map__66332__$1_p__66331$$);var $page_id__$1$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66332__$1_p__66331$$,$APP.$cljs$cst$2028$page_id$$),$G__66333$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66332__$1_p__66331$$,$APP.$cljs$cst$139$type$$);switch($G__66333$$ instanceof $APP.$cljs$core$Keyword$$?$G__66333$$.$fqn$:null){case "add-obj":return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$page_id__$1$jscomp$6$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__66332__$1_p__66331$$)],null)],null);case "mod-obj":return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$page_id__$1$jscomp$6$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__66332__$1_p__66331$$)],
null)],null);case "del-obj":return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$page_id__$1$jscomp$6$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__66332__$1_p__66331$$)],null)],null);case "mov-objects":return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__66304_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$page_id__$1$jscomp$6$$,$p1__66304_SHARP_$$],null)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($map__66332__$1_p__66331$$));default:return $APP.$cljs$core$PersistentVector$EMPTY$$}}),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p__66339_page_id_SINGLEQUOTE_$$){$p__66339_page_id_SINGLEQUOTE_$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66339_page_id_SINGLEQUOTE_$$,0,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($page_id$jscomp$141$$,
$p__66339_page_id_SINGLEQUOTE_$$)}),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p__66343$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66343$$,0,null);return $APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66343$$,1,null)}),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$($get_frame_ids_cached$$)])),$changes$jscomp$185_event$jscomp$85$$)};
$app$main$refs$parents_by_ids$$=function($ids$jscomp$27$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects$jscomp$160$$){var $parent_ids$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__51317_SHARP_$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$160$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$p1__51317_SHARP_$$,$APP.$cljs$cst$1603$parent_id$$],null))}),$ids$jscomp$27$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__51318_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$160$$,$p1__51318_SHARP_$$)}),$parent_ids$$)},$APP.$app$main$refs$workspace_page_objects$$,$APP.$cljs$core$_EQ_$$)};
$app$main$data$workspace$path$edition$move_selected_path_point$$=function($from_point$jscomp$1$$,$to_point$$){typeof $app$main$data$workspace$path$edition$move_point_68289$$==="undefined"&&($app$main$data$workspace$path$edition$move_point_68289$$=function($from_point$jscomp$2$$,$to_point$jscomp$1$$,$meta68290$$){this.$from_point$=$from_point$jscomp$2$$;this.$to_point$=$to_point$jscomp$1$$;this.$meta68290$=$meta68290$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4137$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_move_point$$},$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68291$$,$meta68290__$1$$){return new $app$main$data$workspace$path$edition$move_point_68289$$(this.$from_point$,
this.$to_point$,$meta68290__$1$$)},$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68290$},$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$move_point_68289$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2271_id$jscomp$671$$,$state$jscomp$670$$){$_$jscomp$2271_id$jscomp$671$$=
$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$670$$);var $content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$670$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));var $G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$=this.$to_point$;$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$=
$APP.$cljs$core$truth_$$($APP.$cljs$cst$4087$shift_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$(this.$to_point$))?$APP.$app$common$types$path$helpers$position_fixed_angle$$($G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$,this.$from_point$):$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$;$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$=$APP.$app$common$geom$point$subtract$$($G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$,
this.$from_point$);$content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$main$data$workspace$path$edition$modify_content_point$$,$content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$,$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$);$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$670$$,
$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),$_$jscomp$2271_id$jscomp$671$$),$APP.$cljs$cst$4125$selected_points$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$);var $modifiers$jscomp$101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$670$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),
$_$jscomp$2271_id$jscomp$671$$),$APP.$cljs$cst$1909$content_modifiers$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$);$content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$,$modifiers$jscomp$101$$,$G__68292$jscomp$inline_8000_delta$jscomp$49_points$jscomp$90_to_point__$1$$);return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$670$$,
new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2271_id$jscomp$671$$,$APP.$cljs$cst$4135$moving_nodes$$],null),!0),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2271_id$jscomp$671$$,$APP.$cljs$cst$1909$content_modifiers$$],null),$content$jscomp$203_modifiers__$1$jscomp$16_modifiers_reducer$jscomp$1$$)});
return new $app$main$data$workspace$path$edition$move_point_68289$$($from_point$jscomp$1$$,$to_point$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$modify_handler$$=function($id$jscomp$667$$,$index$jscomp$325$$,$prefix$jscomp$56$$,$dx$jscomp$23$$,$dy$jscomp$23$$,$match_opposite_QMARK_$jscomp$1$$){typeof $app$main$data$workspace$path$edition$modify_handler_68231$$==="undefined"&&($app$main$data$workspace$path$edition$modify_handler_68231$$=function($id$jscomp$668$$,$index$jscomp$326$$,$prefix$jscomp$57$$,$dx$jscomp$24$$,$dy$jscomp$24$$,$match_opposite_QMARK_$jscomp$2$$,$meta68232$$){this.id=$id$jscomp$668$$;
this.index=$index$jscomp$326$$;this.prefix=$prefix$jscomp$57$$;this.dx=$dx$jscomp$24$$;this.dy=$dy$jscomp$24$$;this.$match_opposite_QMARK_$=$match_opposite_QMARK_$jscomp$2$$;this.$meta68232$=$meta68232$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4132$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_modify_handler$$},$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68233$$,$meta68232__$1$$){return new $app$main$data$workspace$path$edition$modify_handler_68231$$(this.id,this.index,this.prefix,this.dx,this.dy,this.$match_opposite_QMARK_$,$meta68232__$1$$)},$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68232$},$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$modify_handler_68231$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2268_modifiers$jscomp$99$$,$state$jscomp$667$$){var $content$jscomp$199_point$jscomp$72$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$667$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));$_$jscomp$2268_modifiers$jscomp$99$$=$APP.$app$main$data$workspace$path$helpers$move_handler_modifiers$$($content$jscomp$199_point$jscomp$72$$,this.index,this.prefix,!1,this.$match_opposite_QMARK_$,this.dx,this.dy);var $cy$jscomp$19_vec__68245$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.prefix,$APP.$cljs$cst$1805$c1$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1799$c1x$$,$APP.$cljs$cst$1800$c1y$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1801$c2x$$,$APP.$cljs$cst$1802$c2y$$],null),$cx$jscomp$18$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cy$jscomp$19_vec__68245$$,0,null);$cy$jscomp$19_vec__68245$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cy$jscomp$19_vec__68245$$,1,null);$content$jscomp$199_point$jscomp$72$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$199_point$jscomp$72$$,
this.index),$APP.$cljs$cst$1419$params$$),$cx$jscomp$18$$)+this.dx,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$199_point$jscomp$72$$,this.index),$APP.$cljs$cst$1419$params$$),$cy$jscomp$19_vec__68245$$)+this.dy);return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$667$$,new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,this.id,$APP.$cljs$cst$1909$content_modifiers$$],null),$APP.$cljs$core$merge$$,$_$jscomp$2268_modifiers$jscomp$99$$),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,this.id,$APP.$cljs$cst$4133$moving_handler$$],null),$content$jscomp$199_point$jscomp$72$$)});return new $app$main$data$workspace$path$edition$modify_handler_68231$$($id$jscomp$667$$,
$index$jscomp$325$$,$prefix$jscomp$56$$,$dx$jscomp$23$$,$dy$jscomp$23$$,$match_opposite_QMARK_$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$select_node_area$$=function($initial_set$jscomp$4$$,$remove_QMARK_$jscomp$8$$){typeof $app$main$data$workspace$path$selection$select_node_area_68146$$==="undefined"&&($app$main$data$workspace$path$selection$select_node_area_68146$$=function($initial_set$jscomp$5$$,$remove_QMARK_$jscomp$9$$,$meta68147$$){this.$initial_set$=$initial_set$jscomp$5$$;this.$remove_QMARK_$=$remove_QMARK_$jscomp$9$$;this.$meta68147$=$meta68147$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4124$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_select_node_area$$},$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68148$$,$meta68147__$1$$){return new $app$main$data$workspace$path$selection$select_node_area_68146$$(this.$initial_set$,this.$remove_QMARK_$,$meta68147__$1$$)},$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68147$},$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$select_node_area_68146$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2261_id$jscomp$662$$,$state$jscomp$660$$){var $selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$660$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1589$selrect$$);$_$jscomp$2261_id$jscomp$662$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$660$$,$APP.$cljs$cst$1905$workspace_local$$),
$APP.$cljs$cst$2161$edition$$);var $content$jscomp$198_positions$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($state$jscomp$660$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$=$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$!=null?$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$common$geom$shapes$has_point_rect_QMARK_$$,
$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$):$APP.$cljs$core$constantly$$(!1);$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__68143_SHARP_$$){return!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1796$command$$.$cljs$core$IFn$_invoke$arity$1$($p1__68143_SHARP_$$),$APP.$cljs$cst$1834$close_path$$)}),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$geom$point$point$$,
$APP.$cljs$cst$1419$params$$)),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$));$content$jscomp$198_positions$$=$APP.$cljs$core$truth_$$(this.$remove_QMARK_$)?$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$disj$$,this.$initial_set$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$,$content$jscomp$198_positions$$)):
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$(this.$initial_set$,$selected_point_QMARK__selrect$jscomp$70_xform$jscomp$37$$,$content$jscomp$198_positions$$);return $_$jscomp$2261_id$jscomp$662$$!=null?$APP.$cljs$core$assoc_in$$($state$jscomp$660$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2261_id$jscomp$662$$,$APP.$cljs$cst$4125$selected_points$$],null),$content$jscomp$198_positions$$):
$state$jscomp$660$$});return new $app$main$data$workspace$path$selection$select_node_area_68146$$($initial_set$jscomp$4$$,$remove_QMARK_$jscomp$8$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$handle_area_selection$$=function($append_QMARK_$jscomp$2$$,$remove_QMARK_$jscomp$10$$){typeof $app$main$data$workspace$path$selection$handle_area_selection_68206$$==="undefined"&&($app$main$data$workspace$path$selection$handle_area_selection_68206$$=function($append_QMARK_$jscomp$3$$,$remove_QMARK_$jscomp$11$$,$valid_rect_QMARK_$jscomp$1$$,$meta68207$$){this.$append_QMARK_$=$append_QMARK_$jscomp$3$$;this.$remove_QMARK_$=$remove_QMARK_$jscomp$11$$;this.$valid_rect_QMARK_$=
$valid_rect_QMARK_$jscomp$1$$;this.$meta68207$=$meta68207$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4130$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_handle_area_selection$$},
$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68208$$,$meta68207__$1$$){return new $app$main$data$workspace$path$selection$handle_area_selection_68206$$(this.$append_QMARK_$,this.$remove_QMARK_$,this.$valid_rect_QMARK_$,$meta68207__$1$$)},$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68207$},$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$handle_area_selection_68206$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2266_id$jscomp$665$$,$selrect_stream$jscomp$1_state$jscomp$665$$,$stopper$jscomp$25_stream$jscomp$72$$){var $self__$jscomp$5398$$=this;$_$jscomp$2266_id$jscomp$665$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect_stream$jscomp$1_state$jscomp$665$$,$APP.$cljs$cst$1905$workspace_local$$),
$APP.$cljs$cst$2161$edition$$);var $zoom$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect_stream$jscomp$1_state$jscomp$665$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2158$zoom$$,1);$stopper$jscomp$25_stream$jscomp$72$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stopper$jscomp$25_stream$jscomp$72$$,null);var $from_p$jscomp$13$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$),
$initial_set$jscomp$6$$=$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$788$$=$self__$jscomp$5398$$.$append_QMARK_$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$788$$)?$or__5025__auto__$jscomp$788$$:$self__$jscomp$5398$$.$remove_QMARK_$}())?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect_stream$jscomp$1_state$jscomp$665$$,
$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),$_$jscomp$2266_id$jscomp$665$$),$APP.$cljs$cst$4125$selected_points$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$):$APP.$cljs$core$PersistentHashSet$EMPTY$$;$selrect_stream$jscomp$1_state$jscomp$665$$=$APP.$beicon$v2$core$take_until$$($stopper$jscomp$25_stream$jscomp$72$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$5398$$.$valid_rect_QMARK_$,$zoom$jscomp$29$$),$APP.$beicon$v2$core$map$$(function($p1__68194_SHARP_$$){return $APP.$app$common$geom$rect$points__GT_rect$$(new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_p$jscomp$13$$,$p1__68194_SHARP_$$],null))},$APP.$app$main$streams$mouse_position$$)));return $APP.$beicon$v2$core$concat$$($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$789$$=$self__$jscomp$5398$$.$append_QMARK_$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$789$$)?$or__5025__auto__$jscomp$789$$:$self__$jscomp$5398$$.$remove_QMARK_$}())?$APP.$beicon$v2$core$empty$$():(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$path$selection$deselect_all$$()),
$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$map$$($app$main$data$workspace$path$selection$update_area_selection$$,$selrect_stream$jscomp$1_state$jscomp$665$$),$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$path$selection$select_node_area$$($initial_set$jscomp$6$$,$self__$jscomp$5398$$.$remove_QMARK_$)},$APP.$beicon$v2$operators$pipe$$($APP.$beicon$v2$operators$distinct_contiguous$cljs$0core$0IFn$0_invoke$0arity$00$$(),$APP.$beicon$v2$core$map$$($APP.$cljs$core$last$$,
$APP.$beicon$v2$core$buffer_time$cljs$0core$0IFn$0_invoke$0arity$02$$(100,$selrect_stream$jscomp$1_state$jscomp$665$$))))),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$path$selection$clear_area_selection$$()))});return new $app$main$data$workspace$path$selection$handle_area_selection_68206$$($append_QMARK_$jscomp$2$$,$remove_QMARK_$jscomp$10$$,function($zoom$jscomp$28$$,$p__68198_width$jscomp$147$$){var $height$jscomp$131_map__68199__$1$$=$APP.$cljs$core$__destructure_map$$($p__68198_width$jscomp$147$$);
$p__68198_width$jscomp$147$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$131_map__68199__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$131_map__68199__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$131_map__68199__$1$$,$APP.$cljs$cst$1511$height$$);return $p__68198_width$jscomp$147$$>10/$zoom$jscomp$28$$||$height$jscomp$131_map__68199__$1$$>10/$zoom$jscomp$28$$},$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$geom$shapes$transforms$update_shapes_geometry$$=function($objects$jscomp$104$$,$ids$jscomp$17$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects__$1$jscomp$1$$,$id$jscomp$153$$){var $shape$jscomp$111_shape__$1$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$1$$,$id$jscomp$153$$),$children$jscomp$164$$=$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects__$1$jscomp$1$$,
$id$jscomp$153$$);$shape$jscomp$111_shape__$1$jscomp$6$$=$APP.$app$common$files$helpers$mask_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$111_shape__$1$jscomp$6$$)?$APP.$app$common$geom$shapes$transforms$update_mask_selrect$$($shape$jscomp$111_shape__$1$jscomp$6$$,$children$jscomp$164$$):$APP.$app$common$files$helpers$bool_shape_QMARK_$$($shape$jscomp$111_shape__$1$jscomp$6$$)?$APP.$app$common$types$path$update_bool_shape$$($shape$jscomp$111_shape__$1$jscomp$6$$,$objects__$1$jscomp$1$$):
$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$111_shape__$1$jscomp$6$$)?$APP.$app$common$geom$shapes$transforms$update_group_selrect$$($shape$jscomp$111_shape__$1$jscomp$6$$,$children$jscomp$164$$):$shape$jscomp$111_shape__$1$jscomp$6$$;return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($objects__$1$jscomp$1$$,$id$jscomp$153$$,$shape$jscomp$111_shape__$1$jscomp$6$$)},$objects$jscomp$104$$,$ids$jscomp$17$$)};
$app$common$geom$shapes$update_shapes_geometry$$=function($param49205$$,$param49206$$){return $app$common$geom$shapes$transforms$update_shapes_geometry$$($param49205$$,$param49206$$)};
$app$main$data$workspace$grid_layout$editor$add_to_selection$cljs$0core$0IFn$0_invoke$0arity$03$$=function($grid_id$jscomp$3$$,$cell_id$jscomp$3$$,$shift_QMARK_$jscomp$29$$){typeof $app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$=function($grid_id$jscomp$4$$,$cell_id$jscomp$4$$,$shift_QMARK_$jscomp$30$$,$meta68882$$){this.$grid_id$=$grid_id$jscomp$4$$;this.$cell_id$=$cell_id$jscomp$4$$;this.$shift_QMARK_$=
$shift_QMARK_$jscomp$30$$;this.$meta68882$=$meta68882$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4234$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_add_to_selection$$},
$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68883$$,$meta68882__$1$$){return new $app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$(this.$grid_id$,this.$cell_id$,this.$shift_QMARK_$,$meta68882__$1$$)},$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68882$},$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$,$state$jscomp$748$$){var $self__$jscomp$5737$$=this;if($APP.$cljs$core$truth_$$($self__$jscomp$5737$$.$shift_QMARK_$)){$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=
$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$748$$);var $grid$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$,$self__$jscomp$5737$$.$grid_id$);$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=function(){var $or__5025__auto__$jscomp$801$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$748$$,$APP.$cljs$cst$2200$workspace_grid_edition$$),$self__$jscomp$5737$$.$grid_id$),$APP.$cljs$cst$1906$selected$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$801$$)?$or__5025__auto__$jscomp$801$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$}();$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5737$$.$cell_id$],null));$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68876_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid$jscomp$4$$,
$APP.$cljs$cst$1680$layout_grid_cells$$),$p1__68876_SHARP_$$)},$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$);$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=$APP.$app$common$types$shape$layout$cells_coordinates$$($_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$);
var $last_column$jscomp$9_map__68890__$1$$=$APP.$cljs$core$__destructure_map$$($_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$);$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$9_map__68890__$1$$,$APP.$cljs$cst$1699$first_row$$);var $last_row$jscomp$9$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$9_map__68890__$1$$,$APP.$cljs$cst$1701$last_row$$),$first_column$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$9_map__68890__$1$$,$APP.$cljs$cst$1700$first_column$$);$last_column$jscomp$9_map__68890__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$9_map__68890__$1$$,$APP.$cljs$cst$1702$last_column$$);$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$=
$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$$),$app$common$types$shape$layout$cells_in_area$$($grid$jscomp$4$$,$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$,$last_row$jscomp$9$$,$first_column$jscomp$9$$,$last_column$jscomp$9_map__68890__$1$$));return $APP.$cljs$core$assoc_in$$($state$jscomp$748$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,$self__$jscomp$5737$$.$grid_id$,$APP.$cljs$cst$1906$selected$$],null),$_$jscomp$2371_cells$jscomp$21_first_row$jscomp$9_map__68890_new_selected_objects$jscomp$600_selected$jscomp$82_selected__$1$jscomp$9$$)}return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$748$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$2200$workspace_grid_edition$$,$self__$jscomp$5737$$.$grid_id$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),$self__$jscomp$5737$$.$cell_id$)});return new $app$main$data$workspace$grid_layout$editor$add_to_selection_68881$$($grid_id$jscomp$3$$,$cell_id$jscomp$3$$,$shift_QMARK_$jscomp$29$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$shape$layout$valid_area_cells_QMARK_$$=function($cells$jscomp$17$$){var $map__48263$$=$APP.$app$common$types$shape$layout$cells_coordinates$$($cells$jscomp$17$$),$map__48263__$1$$=$APP.$cljs$core$__destructure_map$$($map__48263$$),$first_row$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48263__$1$$,$APP.$cljs$cst$1699$first_row$$),$last_row$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48263__$1$$,$APP.$cljs$cst$1701$last_row$$),
$first_column$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48263__$1$$,$APP.$cljs$cst$1700$first_column$$),$last_column$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48263__$1$$,$APP.$cljs$cst$1702$last_column$$),$cell_coords$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__48263__$1$$,$APP.$cljs$cst$1703$cell_coords$$);return $APP.$cljs$core$every_QMARK_$$(function($p1__48262_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($cell_coords$jscomp$5$$,
$p1__48262_SHARP_$$)},function(){return function $app$common$types$shape$layout$valid_area_cells_QMARK__$_iter__48264$$($s__48265$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(var $s__48265__$1$$=$s__48265$$;;){var $fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$=$APP.$cljs$core$seq$$($s__48265__$1$$);if($fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$){var $xs__6385__auto__$jscomp$9$$=$fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$,$r$jscomp$83$$=$APP.$cljs$core$first$$($xs__6385__auto__$jscomp$9$$);
if($fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$=$APP.$cljs$core$seq$$(function($s__48265__$1$jscomp$1$$,$r$jscomp$84$$,$xs__6385__auto__$jscomp$10$$,$temp__5825__auto__$jscomp$121$$,$map__48263$jscomp$1$$,$map__48263__$1$jscomp$1$$,$first_row$jscomp$7$$,$last_row$jscomp$7$$,$first_column$jscomp$7$$,$last_column$jscomp$7$$,$cell_coords$jscomp$6$$){return function $app$common$types$shape$layout$valid_area_cells_QMARK__$_iter__48264_$_iter__48266$$($s__48267$$){return new $APP.$cljs$core$LazySeq$$(null,
function($s__48265__$1$jscomp$2$$,$r$jscomp$85$$){return function(){for(;;){var $s__48267__$2_temp__5825__auto____$1$jscomp$6$$=$APP.$cljs$core$seq$$($s__48267$$);if($s__48267__$2_temp__5825__auto____$1$jscomp$6$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__48267__$2_temp__5825__auto____$1$jscomp$6$$)){var $JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$=$APP.$cljs$core$_chunked_first$$($s__48267__$2_temp__5825__auto____$1$jscomp$6$$),$size__5502__auto__$jscomp$14$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$),
$b__48269_c$jscomp$264$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$14$$);a:{for(var $i__48268$jscomp$inline_8002$$=0;;)if($i__48268$jscomp$inline_8002$$<$size__5502__auto__$jscomp$14$$){var $c$jscomp$inline_8003$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$,$i__48268$jscomp$inline_8002$$);$b__48269_c$jscomp$264$$.add(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$r$jscomp$85$$,$c$jscomp$inline_8003$$],
null));$i__48268$jscomp$inline_8002$$+=1}else{$JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$=!0;break a}$JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$=void 0}return $JSCompiler_inline_result$jscomp$1557_c__5501__auto__$jscomp$14$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__48269_c$jscomp$264$$),$app$common$types$shape$layout$valid_area_cells_QMARK__$_iter__48264_$_iter__48266$$($APP.$cljs$core$_chunked_rest$$($s__48267__$2_temp__5825__auto____$1$jscomp$6$$))):
$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__48269_c$jscomp$264$$),null)}$b__48269_c$jscomp$264$$=$APP.$cljs$core$first$$($s__48267__$2_temp__5825__auto____$1$jscomp$6$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$r$jscomp$85$$,$b__48269_c$jscomp$264$$],null),$app$common$types$shape$layout$valid_area_cells_QMARK__$_iter__48264_$_iter__48266$$($APP.$cljs$core$rest$$($s__48267__$2_temp__5825__auto____$1$jscomp$6$$)))}return null}}}($s__48265__$1$jscomp$1$$,
$r$jscomp$84$$,$xs__6385__auto__$jscomp$10$$,$temp__5825__auto__$jscomp$121$$,$map__48263$jscomp$1$$,$map__48263__$1$jscomp$1$$,$first_row$jscomp$7$$,$last_row$jscomp$7$$,$first_column$jscomp$7$$,$last_column$jscomp$7$$,$cell_coords$jscomp$6$$),null,null)}}($s__48265__$1$$,$r$jscomp$83$$,$xs__6385__auto__$jscomp$9$$,$fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$,$map__48263$$,$map__48263__$1$$,$first_row$jscomp$6$$,$last_row$jscomp$6$$,$first_column$jscomp$6$$,$last_column$jscomp$6$$,
$cell_coords$jscomp$5$$)($APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($first_column$jscomp$6$$,$last_column$jscomp$6$$+1))))return $APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($fs__5500__auto__$jscomp$3_temp__5825__auto__$jscomp$120$$,$app$common$types$shape$layout$valid_area_cells_QMARK__$_iter__48264$$($APP.$cljs$core$rest$$($s__48265__$1$$)));$s__48265__$1$$=$APP.$cljs$core$rest$$($s__48265__$1$$)}else return null}},null,null)}($APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($first_row$jscomp$6$$,
$last_row$jscomp$6$$+1))}())};
$app$common$types$shape$layout$duplicate_cells$$=function($shape$jscomp$61$$,$prop$jscomp$15_to_cells$$,$from_index$jscomp$2_vec__47991$$,$shape__$1_to_index$$,$ids_map$$){var $vec__47988$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$15_to_cells$$,$APP.$cljs$cst$216$column$$)?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1642$column_span$$,$APP.$cljs$cst$1640$row$$,$APP.$cljs$cst$1641$row_span$$],null):new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1641$row_span$$,$APP.$cljs$cst$216$column$$,$APP.$cljs$cst$1642$column_span$$],null),$prop_span$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__47988$$,0,null),$prop_other$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__47988$$,1,null),$prop_other_span$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__47988$$,2,null),$from_cells$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$15_to_cells$$,
$APP.$cljs$cst$216$column$$)?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$61$$,$from_index$jscomp$2_vec__47991$$):$app$common$types$shape$layout$cells_by_column$$($shape$jscomp$61$$,$from_index$jscomp$2_vec__47991$$):$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$61$$,
$from_index$jscomp$2_vec__47991$$):$app$common$types$shape$layout$cells_by_row$$($shape$jscomp$61$$,$from_index$jscomp$2_vec__47991$$);$prop$jscomp$15_to_cells$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$15_to_cells$$,$APP.$cljs$cst$216$column$$)?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$61$$,$shape__$1_to_index$$):$app$common$types$shape$layout$cells_by_column$$($shape$jscomp$61$$,
$shape__$1_to_index$$):$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$?$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$61$$,$shape__$1_to_index$$):$app$common$types$shape$layout$cells_by_row$$($shape$jscomp$61$$,$shape__$1_to_index$$);var $to_cells_idx$$=$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($prop_other$jscomp$1$$,$prop$jscomp$15_to_cells$$);$from_index$jscomp$2_vec__47991$$=function(){for(var $G__48449_from_cells__$1$$=
$APP.$cljs$core$seq$$($from_cells$$),$G__48450_matched$jscomp$2$$=$APP.$cljs$core$PersistentHashSet$EMPTY$$,$G__48451_result$jscomp$155$$=$shape$jscomp$61$$;;){var $cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$=$APP.$cljs$core$first$$($G__48449_from_cells__$1$$);if($APP.$cljs$core$truth_$$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$)){var $G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$=$APP.$app$common$data$patch_object$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($to_cells_idx$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$,$prop_other$jscomp$1$$)),$APP.$cljs$core$select_keys$$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$prop_other_span$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1661$align_self$$,$APP.$cljs$cst$1662$justify_self$$],null)));$G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1658$area$$,$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1657$manual$$):$G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$;$cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$,
$prop_span$jscomp$3$$),1)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$,$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($ids_map$$,$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$))):$G__47996$jscomp$inline_12608_G__47997$jscomp$inline_12609$$;$G__48449_from_cells__$1$$=$APP.$cljs$core$rest$$($G__48449_from_cells__$1$$);$G__48450_matched$jscomp$2$$=
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__48450_matched$jscomp$2$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$));$G__48451_result$jscomp$155$$=$APP.$cljs$core$assoc_in$$($G__48451_result$jscomp$155$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$)],
null),$cell$jscomp$4_match_cell_temp__5823__auto__$jscomp$99$$)}else return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__48451_result$jscomp$155$$,$G__48450_matched$jscomp$2$$],null)}}();$shape__$1_to_index$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($from_index$jscomp$2_vec__47991$$,0,null);var $matched$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($from_index$jscomp$2_vec__47991$$,1,null);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($shape__$2$jscomp$1$$,
$cell$jscomp$5$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($shape__$2$jscomp$1$$,$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$5$$))},$shape__$1_to_index$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$143_map__47999__$1_p__47998$$){$id$jscomp$143_map__47999__$1_p__47998$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$143_map__47999__$1_p__47998$$);$id$jscomp$143_map__47999__$1_p__47998$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$143_map__47999__$1_p__47998$$,$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$contains_QMARK_$$($matched$jscomp$1$$,$id$jscomp$143_map__47999__$1_p__47998$$)},$prop$jscomp$15_to_cells$$))};
$app$common$types$shape_tree$get_root_shapes$$=function($objects$jscomp$138$$){return $APP.$app$common$files$helpers$reduce_objects$cljs$0core$0IFn$0_invoke$0arity$04$$($objects$jscomp$138$$,function($result$jscomp$207$$,$shape$jscomp$211$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$211$$)?$result$jscomp$207$$:$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$207$$,$shape$jscomp$211$$)})};
$app$common$types$shape_tree$get_root_frames_ids$$=function($objects$jscomp$136$$){return $APP.$app$common$files$helpers$reduce_objects$cljs$0core$0IFn$0_invoke$0arity$04$$($objects$jscomp$136$$,function($result$jscomp$205$$,$shape$jscomp$209$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$209$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$205$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$209$$)):
$result$jscomp$205$$})};$app$common$files$shapes_builder$create_svg_shapes$cljs$0core$0IFn$0_invoke$0arity$07$$=function($svg_data$jscomp$3$$,$pos$jscomp$102$$,$objects$jscomp$373$$){var $selected$jscomp$32$$=$APP.$cljs$core$PersistentHashSet$EMPTY$$;return $APP.$app$common$files$shapes_builder$create_svg_shapes$cljs$0core$0IFn$0_invoke$0arity$08$$($APP.$app$common$uuid$next$$(),$svg_data$jscomp$3$$,$pos$jscomp$102$$,$objects$jscomp$373$$,$APP.$app$common$uuid$zero$$,null,$selected$jscomp$32$$,!1)};
$app$common$geom$shapes$fit_frame$fit_frame_modifiers$$=function($new_origin_objects$jscomp$112$$,$p__48751_resize_v_selrect$jscomp$21$$){var $center$jscomp$28_map__48752__$1$$=$APP.$cljs$core$__destructure_map$$($p__48751_resize_v_selrect$jscomp$21$$),$id$jscomp$155_ids$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,$APP.$cljs$cst$266$id$$),$transform$jscomp$56_transform__$1$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,
$APP.$cljs$cst$1275$transform$$),$transform_inverse$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,$APP.$cljs$cst$1771$transform_inverse$$);$p__48751_resize_v_selrect$jscomp$21$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,$APP.$cljs$cst$1589$selrect$$);var $origin$jscomp$18_points$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,$APP.$cljs$cst$1588$points$$),
$show_content$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($center$jscomp$28_map__48752__$1$$,$APP.$cljs$cst$1860$show_content$$),$bounds$jscomp$8_children$jscomp$167$$=$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($new_origin_objects$jscomp$112$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($center$jscomp$28_map__48752__$1$$));if($APP.$app$common$data$not_empty_QMARK_$$($bounds$jscomp$8_children$jscomp$167$$)){$id$jscomp$155_ids$jscomp$19$$=
$APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($new_origin_objects$jscomp$112$$,$id$jscomp$155_ids$jscomp$19$$);$center$jscomp$28_map__48752__$1$$=$APP.$app$common$geom$shapes$common$shape__GT_center$$($center$jscomp$28_map__48752__$1$$);var $transform_inverse__$1$$=$APP.$app$common$geom$matrix$transform_in$$($center$jscomp$28_map__48752__$1$$,$transform_inverse$jscomp$12$$);$transform$jscomp$56_transform__$1$jscomp$3$$=$APP.$app$common$geom$matrix$transform_in$$($center$jscomp$28_map__48752__$1$$,
$transform$jscomp$56_transform__$1$jscomp$3$$);var $tr_objects$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__48747_SHARP_$$,$p2__48748_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__48747_SHARP_$$,$p2__48748_SHARP_$$,$APP.$app$common$geom$shapes$transforms$apply_transform$$,$transform_inverse__$1$$)},$new_origin_objects$jscomp$112$$,$id$jscomp$155_ids$jscomp$19$$);$bounds$jscomp$8_children$jscomp$167$$=$APP.$app$common$geom$rect$join_rects$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__48750_SHARP_$$){return $APP.$app$common$geom$shapes$bounds$get_object_bounds$$.$cljs$core$IFn$_invoke$arity$3$($tr_objects$$,
$p1__48750_SHARP_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1897$ignore_shadow_margin_QMARK_$$,$show_content$$,$APP.$cljs$cst$1896$ignore_margin_QMARK_$$,!1],null))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__48749_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($tr_objects$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__48749_SHARP_$$))},$bounds$jscomp$8_children$jscomp$167$$)));$new_origin_objects$jscomp$112$$=
$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($bounds$jscomp$8_children$jscomp$167$$),$transform$jscomp$56_transform__$1$jscomp$3$$);$origin$jscomp$18_points$jscomp$47$$=$APP.$cljs$core$first$$($origin$jscomp$18_points$jscomp$47$$);$p__48751_resize_v_selrect$jscomp$21$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($bounds$jscomp$8_children$jscomp$167$$)/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($p__48751_resize_v_selrect$jscomp$21$$),
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($bounds$jscomp$8_children$jscomp$167$$)/$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($p__48751_resize_v_selrect$jscomp$21$$));return $app$common$types$modifiers$move_parent$cljs$0core$0IFn$0_invoke$0arity$02$$($app$common$types$modifiers$resize_parent$cljs$0core$0IFn$0_invoke$0arity$05$$($p__48751_resize_v_selrect$jscomp$21$$,$origin$jscomp$18_points$jscomp$47$$,$transform$jscomp$56_transform__$1$jscomp$3$$,$transform_inverse__$1$$),
$APP.$app$common$geom$point$subtract$$($new_origin_objects$jscomp$112$$,$origin$jscomp$18_points$jscomp$47$$))}return null};
$app$render_wasm$api$shapes_in_tree_order$$=function($objects$jscomp$270$$){if($APP.$cljs$core$contains_QMARK_$$($objects$jscomp$270$$,$APP.$app$common$uuid$zero$$)){var $all_ordered_ids_ordered_ids_top_level_ids$$=$APP.$app$common$files$helpers$get_children_ids_with_self$$($objects$jscomp$270$$,$APP.$app$common$uuid$zero$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__54163_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$270$$,
$p1__54163_SHARP_$$)}),$all_ordered_ids_ordered_ids_top_level_ids$$)}$all_ordered_ids_ordered_ids_top_level_ids$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($shape$jscomp$393$$){return!$APP.$cljs$core$contains_QMARK_$$($objects$jscomp$270$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$393$$))},$APP.$cljs$core$vals$$($objects$jscomp$270$$)));$all_ordered_ids_ordered_ids_top_level_ids$$=
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__54164_SHARP_$$){return $APP.$app$common$files$helpers$get_children_ids_with_self$$($objects$jscomp$270$$,$p1__54164_SHARP_$$)}),$all_ordered_ids_ordered_ids_top_level_ids$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__54165_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$270$$,
$p1__54165_SHARP_$$)}),$all_ordered_ids_ordered_ids_top_level_ids$$)};
$app$main$data$workspace$interactions$connected_frame_QMARK_$$=function($objects$jscomp$591$$,$frame_id$jscomp$98$$){var $children$jscomp$253_or__5025__auto__$jscomp$793$$=$APP.$app$common$files$helpers$get_children_with_self$$($objects$jscomp$591$$,$frame_id$jscomp$98$$);$children$jscomp$253_or__5025__auto__$jscomp$793$$=$APP.$cljs$core$some$$($app$common$types$shape$interactions$flow_origin_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2036$interactions$$,$children$jscomp$253_or__5025__auto__$jscomp$793$$));
return $APP.$cljs$core$truth_$$($children$jscomp$253_or__5025__auto__$jscomp$793$$)?$children$jscomp$253_or__5025__auto__$jscomp$793$$:$APP.$cljs$core$some$$(function($p1__68677_SHARP_$$){return $app$common$types$shape$interactions$flow_to_QMARK_$$($p1__68677_SHARP_$$,$frame_id$jscomp$98$$)},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2036$interactions$$,$APP.$cljs$core$vals$$($objects$jscomp$591$$)))};
$app$common$files$helpers$component_touched_QMARK_$$=function($objects$jscomp$43$$,$root_id$$){return $APP.$cljs$core$seq$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$seq$$,$APP.$cljs$cst$1610$touched$$),$APP.$app$common$files$helpers$get_children_with_self$$($objects$jscomp$43$$,$root_id$$)))};
$app$main$data$workspace$colors$update_colorpicker_stops$$=function($stops$jscomp$11$$){typeof $app$main$data$workspace$colors$update_colorpicker_stops_69514$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_stops_69514$$=function($stops$jscomp$12$$,$meta69515$$){this.stops=$stops$jscomp$12$$;this.$meta69515$=$meta69515$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4059$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_stops$$},$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69516$$,$meta69515__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_stops_69514$$(this.stops,
$meta69515__$1$$)},$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69515$},$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_stops_69514$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2206$$,$state$jscomp$601$$){var $self__$jscomp$5194$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$601$$,
$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$34$$){var $or__5025__auto__$jscomp$inline_8007_stop$jscomp$4$$=$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$34$$);$or__5025__auto__$jscomp$inline_8007_stop$jscomp$4$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8007_stop$jscomp$4$$)?$or__5025__auto__$jscomp$inline_8007_stop$jscomp$4$$:0;var $cap_stops_QMARK_$jscomp$2_stops__$1$jscomp$4$$=$APP.$app$main$features$active_feature_QMARK_$$($state__$1$jscomp$34$$,
"render-wasm/v1");$cap_stops_QMARK_$jscomp$2_stops__$1$jscomp$4$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$split_color_components$$,$APP.$cljs$core$truth_$$($cap_stops_QMARK_$jscomp$2_stops__$1$jscomp$4$$)?$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(16,$self__$jscomp$5194$$.stops):$self__$jscomp$5194$$.stops);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$34$$,
$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cap_stops_QMARK_$jscomp$2_stops__$1$jscomp$4$$,$or__5025__auto__$jscomp$inline_8007_stop$jscomp$4$$)),$APP.$cljs$cst$1717$stops$$,$cap_stops_QMARK_$jscomp$2_stops__$1$jscomp$4$$)})});return new $app$main$data$workspace$colors$update_colorpicker_stops_69514$$($stops$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker_add_stop$$=function($offset$jscomp$168$$){typeof $app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$=function($offset$jscomp$169$$,$meta69510$$){this.offset=$offset$jscomp$169$$;this.$meta69510$=$meta69510$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4061$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_add_stop$$},$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69511$$,$meta69510__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$(this.offset,
$meta69510__$1$$)},$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69510$},$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2205$$,$state$jscomp$600$$){var $self__$jscomp$5190$$=
this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$600$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$33$$){var $stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$=$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$33$$),$cap_stops_QMARK_$jscomp$1_editing_stop$jscomp$1$$=$APP.$app$main$features$active_feature_QMARK_$$($state__$1$jscomp$33$$,"render-wasm/v1");if($APP.$cljs$core$not$$($cap_stops_QMARK_$jscomp$1_editing_stop$jscomp$1$$)||
$APP.$cljs$core$count$$($stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$)<16){var $new_stop$jscomp$1$$=$app$main$data$workspace$colors$split_color_components$$($app$common$types$color$interpolate_gradient$$($stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$,$self__$jscomp$5190$$.offset));$stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$,$new_stop$jscomp$1$$);$stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$=
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$));$cap_stops_QMARK_$jscomp$1_editing_stop$jscomp$1$$=$APP.$app$common$data$index_of_pred$$($stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$,function($p1__69508_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_stop$jscomp$1$$,$p1__69508_SHARP_$$)});
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$($state__$1$jscomp$33$$,$APP.$cljs$cst$4046$editing_stop$$,$cap_stops_QMARK_$jscomp$1_editing_stop$jscomp$1$$),$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$,$cap_stops_QMARK_$jscomp$1_editing_stop$jscomp$1$$)),$APP.$cljs$cst$1717$stops$$,
$stops$jscomp$10_stops__$1$jscomp$3_stops__$2$jscomp$1$$)}return $state__$1$jscomp$33$$})});return new $app$main$data$workspace$colors$update_colorpicker_add_stop_69509$$($offset$jscomp$168$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker_add_auto$$=function(){typeof $app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$=function($meta69501$$){this.$meta69501$=$meta69501$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4062$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_add_auto$$},$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69502$$,$meta69501__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$($meta69501__$1$$)},$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69501$},$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2204$$,$state$jscomp$599$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$599$$,$APP.$cljs$cst$2199$colorpicker$$,function($map__69505__$1_p__69504$$){$map__69505__$1_p__69504$$=
$APP.$cljs$core$__destructure_map$$($map__69505__$1_p__69504$$);var $stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69505__$1_p__69504$$,$APP.$cljs$cst$1717$stops$$),$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69505__$1_p__69504$$,$APP.$cljs$cst$4046$editing_stop$$),$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$=$APP.$app$main$features$active_feature_QMARK_$$($map__69505__$1_p__69504$$,
"render-wasm/v1");if($APP.$cljs$core$not$$($cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$)||$APP.$cljs$core$count$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$)<16){if($app$common$types$color$uniform_spread_QMARK_$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$))return $stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$split_color_components$$,$app$common$types$color$uniform_spread$$($APP.$cljs$core$first$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$),
$APP.$cljs$core$last$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$),$APP.$cljs$core$count$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$)+1)),$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__69505__$1_p__69504$$,$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$)),$APP.$cljs$cst$1717$stops$$,
$stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$);$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$,$APP.$cljs$core$count$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$)-1)?$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$-1:$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$;$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$);$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$=$APP.$cljs$core$__destructure_map$$($editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$);$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$,
$APP.$cljs$cst$195$offset$$);$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$+1);$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$=$APP.$cljs$core$__destructure_map$$($cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$);$cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$,$APP.$cljs$cst$195$offset$$);var $new_stop$$=$app$main$data$workspace$colors$split_color_components$$($app$common$types$color$interpolate_gradient$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$+($cap_stops_QMARK__index$jscomp$305_map__69507_map__69507__$1_to_offset$$-$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$)/
2));$stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$new_stop$$);$stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$));$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$=
$APP.$app$common$data$index_of_pred$$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,function($p1__69499_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_stop$$,$p1__69499_SHARP_$$)});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$($map__69505__$1_p__69504$$,$APP.$cljs$cst$4046$editing_stop$$,$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$),
$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$,$editing_stop_editing_stop__$1_from_offset_map__69506_map__69506__$1$$)),$APP.$cljs$cst$1717$stops$$,$stops$jscomp$9_stops__$1$jscomp$2_stops__$2$$)}return $map__69505__$1_p__69504$$})});return new $app$main$data$workspace$colors$update_colorpicker_add_auto_69500$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$render_wasm$api$set_canvas_size$$=function($canvas$jscomp$6$$){var $height$jscomp$101$$=function(){var $or__5025__auto__$jscomp$611$$=$canvas$jscomp$6$$.clientHeight;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$611$$)?$or__5025__auto__$jscomp$611$$:$canvas$jscomp$6$$.height}();$canvas$jscomp$6$$.width=$APP.$app$render_wasm$api$dpr$$*function(){var $or__5025__auto__$jscomp$610$$=$canvas$jscomp$6$$.clientWidth;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$610$$)?$or__5025__auto__$jscomp$610$$:
$canvas$jscomp$6$$.width}();$canvas$jscomp$6$$.height=$APP.$app$render_wasm$api$dpr$$*$height$jscomp$101$$};
$app$util$text$content$to_dom$get_paragraph_styles$$=function($font_size$jscomp$7_paragraph$jscomp$6$$){var $styles$jscomp$8$$=$app$util$text$content$to_dom$get_styles_from_attrs$$($font_size$jscomp$7_paragraph$jscomp$6$$,$APP.$app$common$data$concat_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$types$text$paragraph_attrs$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$text_node_attrs$$])));$font_size$jscomp$7_paragraph$jscomp$6$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($p1__53815_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("",
$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($p1__53815_SHARP_$$))},$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($font_size$jscomp$7_paragraph$jscomp$6$$)))?"0":$APP.$cljs$cst$1744$font_size$$.$cljs$core$IFn$_invoke$arity$2$($styles$jscomp$8$$,$APP.$cljs$cst$1744$font_size$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$text$default_typography$$));var $line_height$jscomp$6_line_height__$1$jscomp$1$$=$APP.$cljs$cst$1749$line_height$$.$cljs$core$IFn$_invoke$arity$1$($styles$jscomp$8$$);
$line_height$jscomp$6_line_height__$1$jscomp$1$$=$line_height$jscomp$6_line_height__$1$jscomp$1$$!=null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("",$line_height$jscomp$6_line_height__$1$jscomp$1$$)?$line_height$jscomp$6_line_height__$1$jscomp$1$$:$APP.$cljs$cst$1749$line_height$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$text$default_typography$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($styles$jscomp$8$$,$APP.$cljs$cst$1744$font_size$$,
$font_size$jscomp$7_paragraph$jscomp$6$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1749$line_height$$,$line_height$jscomp$6_line_height__$1$jscomp$1$$]))};
$app$main$data$workspace$layout$ensure_layout$$=function($name$jscomp$315$$){typeof $app$main$data$workspace$layout$ensure_layout_65645$$==="undefined"&&($app$main$data$workspace$layout$ensure_layout_65645$$=function($name$jscomp$316$$,$meta65646$$){this.name=$name$jscomp$316$$;this.$meta65646$=$meta65646$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3603$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_ensure_layout$$},$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65647$$,$meta65646__$1$$){return new $app$main$data$workspace$layout$ensure_layout_65645$$(this.name,$meta65646__$1$$)},$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta65646$},$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$layout$ensure_layout_65645$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1895$$,$state$jscomp$360$$){var $self__$jscomp$4285$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$360$$,$APP.$cljs$cst$2171$workspace_layout$$,function($stored$$){var $todel$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$main$data$workspace$layout$presets$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$4285$$.name,$APP.$cljs$cst$3598$del$$],null),$APP.$cljs$core$PersistentHashSet$EMPTY$$),$toadd$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$main$data$workspace$layout$presets$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$self__$jscomp$4285$$.name,$APP.$cljs$cst$3599$add$$],null),$APP.$cljs$core$PersistentHashSet$EMPTY$$);return $APP.$clojure$set$union$$.$cljs$core$IFn$_invoke$arity$2$($APP.$clojure$set$difference$$.$cljs$core$IFn$_invoke$arity$2$($stored$$,$todel$$),$toadd$$)})});return new $app$main$data$workspace$layout$ensure_layout_65645$$($name$jscomp$315$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$initialize_workspace_layout$$=function($lname$jscomp$1$$){typeof $app$main$data$workspace$initialize_layout_70146$$==="undefined"&&($app$main$data$workspace$initialize_layout_70146$$=function($lname$jscomp$2$$,$meta70147$$){this.$lname$=$lname$jscomp$2$$;this.$meta70147$=$meta70147$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4299$app_DOT_main_DOT_data_DOT_workspace_SLASH_initialize_layout$$},$app$main$data$workspace$initialize_layout_70146$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70148$$,$meta70147__$1$$){return new $app$main$data$workspace$initialize_layout_70146$$(this.$lname$,$meta70147__$1$$)},$app$main$data$workspace$initialize_layout_70146$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70147$},$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2429$$,$state$jscomp$795$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$795$$,$APP.$cljs$cst$2171$workspace_layout$$,function($p1__70144_SHARP_$$){return $APP.$cljs$core$truth_$$($p1__70144_SHARP_$$)?
$p1__70144_SHARP_$$:$APP.$app$main$data$workspace$layout$default_layout$$}),$APP.$cljs$cst$2148$workspace_global$$,function($p1__70145_SHARP_$$){return $APP.$cljs$core$truth_$$($p1__70145_SHARP_$$)?$p1__70145_SHARP_$$:$APP.$app$main$data$workspace$layout$default_global$$})},$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$initialize_layout_70146$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $JSCompiler_inline_result$jscomp$1564_and__5023__auto__$jscomp$inline_8009$$=this.$lname$;$JSCompiler_inline_result$jscomp$1564_and__5023__auto__$jscomp$inline_8009$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1564_and__5023__auto__$jscomp$inline_8009$$)?$APP.$cljs$core$contains_QMARK_$$($APP.$app$main$data$workspace$layout$presets$$,this.$lname$):$JSCompiler_inline_result$jscomp$1564_and__5023__auto__$jscomp$inline_8009$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1564_and__5023__auto__$jscomp$inline_8009$$)?
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$layout$ensure_layout$$(this.$lname$)):(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$layout$ensure_layout$$($APP.$cljs$cst$3596$layers$$))});return new $app$main$data$workspace$initialize_layout_70146$$($lname$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$add_path$$=function($partial_paths_path$jscomp$247_split_path$$,$paths$jscomp$4$$){$partial_paths_path$jscomp$247_split_path$$=$APP.$app$common$path_names$split_path$$.$cljs$core$IFn$_invoke$arity$variadic$($partial_paths_path$jscomp$247_split_path$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,"."]));$partial_paths_path$jscomp$247_split_path$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$131$$,
$new_acc$jscomp$2_segment$jscomp$44$$){$new_acc$jscomp$2_segment$jscomp$44$$=$APP.$cljs$core$empty_QMARK_$$($acc$jscomp$131$$)?$new_acc$jscomp$2_segment$jscomp$44$$:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$last$$($acc$jscomp$131$$)),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($new_acc$jscomp$2_segment$jscomp$44$$)].join("");return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$131$$,$new_acc$jscomp$2_segment$jscomp$44$$)},$APP.$cljs$core$PersistentVector$EMPTY$$,
$partial_paths_path$jscomp$247_split_path$$);return $APP.$cljs$core$vec$$($APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($partial_paths_path$jscomp$247_split_path$$,$paths$jscomp$4$$)))};
$app$main$data$workspace$tokens$library_edit$toggle_token_path$$=function($path$jscomp$248$$){typeof $app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$=function($path$jscomp$249$$,$meta71140$$){this.path=$path$jscomp$249$$;this.$meta71140$=$meta71140$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4522$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_toggle_token_path$$},$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71141$$,$meta71140__$1$$){return new $app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$(this.path,
$meta71140__$1$$)},$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71140$},$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2548$$,$state$jscomp$883$$){var $self__$jscomp$6321$$=
this;return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$883$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$cst$4521$unfolded_token_paths$$],null),function($paths$jscomp$5_paths__$1$$){$paths$jscomp$5_paths__$1$$=$APP.$cljs$core$truth_$$($paths$jscomp$5_paths__$1$$)?$paths$jscomp$5_paths__$1$$:$APP.$cljs$core$PersistentVector$EMPTY$$;return $APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($p1__71138_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__71138_SHARP_$$,
$self__$jscomp$6321$$.path)},$paths$jscomp$5_paths__$1$$))?$app$main$data$workspace$tokens$library_edit$remove_paths_recursively$$($self__$jscomp$6321$$.path,$paths$jscomp$5_paths__$1$$):$app$main$data$workspace$tokens$library_edit$add_path$$($self__$jscomp$6321$$.path,$paths$jscomp$5_paths__$1$$)})});return new $app$main$data$workspace$tokens$library_edit$toggle_token_path_71139$$($path$jscomp$248$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$variant$same_variant_QMARK_$$=function($components$jscomp$1_variant_ids$$){$components$jscomp$1_variant_ids$$=$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1985$variant_id$$,$components$jscomp$1_variant_ids$$));var $not_blank_QMARK_$$=$APP.$cljs$core$complement$$($APP.$cuerdas$core$blank_QMARK_$$),$and__5023__auto__$jscomp$264$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($components$jscomp$1_variant_ids$$));
return $and__5023__auto__$jscomp$264$$?$not_blank_QMARK_$$($APP.$cljs$core$first$$($components$jscomp$1_variant_ids$$)):$and__5023__auto__$jscomp$264$$};
$app$main$data$workspace$select_single_asset$$=function($file_id$jscomp$267$$,$asset_id$jscomp$14$$,$type$jscomp$526$$){typeof $app$main$data$workspace$select_single_asset_70377$$==="undefined"&&($app$main$data$workspace$select_single_asset_70377$$=function($file_id$jscomp$268$$,$asset_id$jscomp$15$$,$type$jscomp$527$$,$meta70378$$){this.$file_id$=$file_id$jscomp$268$$;this.$asset_id$=$asset_id$jscomp$15$$;this.type=$type$jscomp$527$$;this.$meta70378$=$meta70378$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$select_single_asset_70377$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$select_single_asset_70377$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4344$app_DOT_main_DOT_data_DOT_workspace_SLASH_select_single_asset$$},$app$main$data$workspace$select_single_asset_70377$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70379$$,$meta70378__$1$$){return new $app$main$data$workspace$select_single_asset_70377$$(this.$file_id$,
this.$asset_id$,this.type,$meta70378__$1$$)},$app$main$data$workspace$select_single_asset_70377$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70378$},$app$main$data$workspace$select_single_asset_70377$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$select_single_asset_70377$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2479$$,$state$jscomp$833$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$833$$,
new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$1906$selected$$,this.$file_id$,this.type],null),$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([this.$asset_id$]))});return new $app$main$data$workspace$select_single_asset_70377$$($file_id$jscomp$267$$,$asset_id$jscomp$14$$,$type$jscomp$526$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid_layout$editor$set_selection$$=function($grid_id$jscomp$5$$,$cell_id$jscomp$5$$){typeof $app$main$data$workspace$grid_layout$editor$set_selection_68891$$==="undefined"&&($app$main$data$workspace$grid_layout$editor$set_selection_68891$$=function($grid_id$jscomp$6$$,$cell_id$jscomp$6$$,$meta68892$$){this.$grid_id$=$grid_id$jscomp$6$$;this.$cell_id$=$cell_id$jscomp$6$$;this.$meta68892$=$meta68892$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4235$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_editor_SLASH_set_selection$$},$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68893$$,
$meta68892__$1$$){return new $app$main$data$workspace$grid_layout$editor$set_selection_68891$$(this.$grid_id$,this.$cell_id$,$meta68892__$1$$)},$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68892$},$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$editor$set_selection_68891$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2372$$,$state$jscomp$749$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$749$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,this.$grid_id$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([this.$cell_id$]))});return new $app$main$data$workspace$grid_layout$editor$set_selection_68891$$($grid_id$jscomp$5$$,$cell_id$jscomp$5$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$selection$select_node$$=function($position$jscomp$136$$,$shift_QMARK_$jscomp$22$$){typeof $app$main$data$workspace$path$selection$select_node_68162$$==="undefined"&&($app$main$data$workspace$path$selection$select_node_68162$$=function($position$jscomp$137$$,$shift_QMARK_$jscomp$23$$,$meta68163$$){this.position=$position$jscomp$137$$;this.$shift_QMARK_$=$shift_QMARK_$jscomp$23$$;this.$meta68163$=$meta68163$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4126$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_selection_SLASH_select_node$$},$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68164$$,$meta68163__$1$$){return new $app$main$data$workspace$path$selection$select_node_68162$$(this.position,
this.$shift_QMARK_$,$meta68163__$1$$)},$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68163$},$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$selection$select_node_68162$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2262_id$jscomp$663$$,$state$jscomp$661$$){$_$jscomp$2262_id$jscomp$663$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$661$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2161$edition$$);var $selected_points$jscomp$2_selected_points__$1$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$661$$,$APP.$cljs$cst$1905$workspace_local$$),
$APP.$cljs$cst$1908$edit_path$$),$_$jscomp$2262_id$jscomp$663$$),$APP.$cljs$cst$4125$selected_points$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$);var $JSCompiler_inline_result$jscomp$1565_and__5023__auto__$jscomp$inline_8011$$=this.$shift_QMARK_$;$JSCompiler_inline_result$jscomp$1565_and__5023__auto__$jscomp$inline_8011$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1565_and__5023__auto__$jscomp$inline_8011$$)?$APP.$cljs$core$contains_QMARK_$$($selected_points$jscomp$2_selected_points__$1$jscomp$1$$,
this.position):$JSCompiler_inline_result$jscomp$1565_and__5023__auto__$jscomp$inline_8011$$;$selected_points$jscomp$2_selected_points__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1565_and__5023__auto__$jscomp$inline_8011$$)?$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($selected_points$jscomp$2_selected_points__$1$jscomp$1$$,this.position):$APP.$cljs$core$truth_$$(this.$shift_QMARK_$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($selected_points$jscomp$2_selected_points__$1$jscomp$1$$,
this.position):$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([this.position]);return $_$jscomp$2262_id$jscomp$663$$!=null?$APP.$cljs$core$assoc_in$$($state$jscomp$661$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2262_id$jscomp$663$$,$APP.$cljs$cst$4125$selected_points$$],null),$selected_points$jscomp$2_selected_points__$1$jscomp$1$$):$state$jscomp$661$$});return new $app$main$data$workspace$path$selection$select_node_68162$$($position$jscomp$136$$,
$shift_QMARK_$jscomp$22$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$ui$hooks$with_focus_objects$cljs$0core$0IFn$0_invoke$0arity$02$$=function($objects$jscomp$235$$,$focus$jscomp$4$$){return $APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($focus$jscomp$4$$),$APP.$rumext$v2$adapt$$($objects$jscomp$235$$)],function(){return $APP.$app$common$files$focus$focus_objects$$($objects$jscomp$235$$,$focus$jscomp$4$$)})};
$app$main$data$workspace$shape_layout$hover_layout_track$$=function($ids$jscomp$222$$,$type$jscomp$519$$,$index$jscomp$354$$,$hover_QMARK_$jscomp$2$$){typeof $app$main$data$workspace$shape_layout$hover_layout_track_69727$$==="undefined"&&($app$main$data$workspace$shape_layout$hover_layout_track_69727$$=function($ids$jscomp$223$$,$type$jscomp$520$$,$index$jscomp$355$$,$hover_QMARK_$jscomp$3$$,$meta69728$$){this.ids=$ids$jscomp$223$$;this.type=$type$jscomp$520$$;this.index=$index$jscomp$355$$;this.$hover_QMARK_$=
$hover_QMARK_$jscomp$3$$;this.$meta69728$=$meta69728$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4258$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_hover_layout_track$$},
$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69729$$,$meta69728__$1$$){return new $app$main$data$workspace$shape_layout$hover_layout_track_69727$$(this.ids,this.type,this.index,this.$hover_QMARK_$,$meta69728__$1$$)},$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69728$},$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$hover_layout_track_69727$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$,$G__69732__$1_G__69732__$2_state$jscomp$763$$){$_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($G__69732__$1_G__69732__$2_state$jscomp$763$$);$_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$,$APP.$cljs$core$first$$(this.ids));$_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$=$APP.$cljs$core$truth_$$(this.$hover_QMARK_$)?$APP.$cljs$core$set$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.type,$APP.$cljs$cst$1640$row$$)?$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$,
this.index,!0)])):$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$,this.index,!0)]))):null;$G__69732__$1_G__69732__$2_state$jscomp$763$$=$APP.$cljs$core$truth_$$(this.$hover_QMARK_$)?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__69732__$1_G__69732__$2_state$jscomp$763$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,$APP.$cljs$core$first$$(this.ids),$APP.$cljs$cst$4259$hover_track$$],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.type,this.index],null)):$G__69732__$1_G__69732__$2_state$jscomp$763$$;
$G__69732__$1_G__69732__$2_state$jscomp$763$$=$APP.$cljs$core$not$$(this.$hover_QMARK_$)?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__69732__$1_G__69732__$2_state$jscomp$763$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2200$workspace_grid_edition$$,$APP.$cljs$core$first$$(this.ids),$APP.$cljs$cst$4259$hover_track$$],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$disj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.type,this.index],null)):$G__69732__$1_G__69732__$2_state$jscomp$763$$;return $APP.$cljs$core$assoc_in$$($G__69732__$1_G__69732__$2_state$jscomp$763$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$2151$highlighted$$],null),$_$jscomp$2392_highlighted_objects$jscomp$612_shape$jscomp$717$$)});return new $app$main$data$workspace$shape_layout$hover_layout_track_69727$$($ids$jscomp$222$$,
$type$jscomp$519$$,$index$jscomp$354$$,$hover_QMARK_$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$streams$move_handler_stream$$=function($start_point$jscomp$3$$,$node$jscomp$328$$,$handler$jscomp$37$$,$opposite$jscomp$3$$,$points$jscomp$86_vec__67982$$){var $zoom$jscomp$26$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$2158$zoom$$],null),1),$ranges$jscomp$8$$=
$APP.$app$main$snap$create_ranges$$.$cljs$core$IFn$_invoke$arity$1$($points$jscomp$86_vec__67982$$),$d_pos$jscomp$1$$=10/$zoom$jscomp$26$$;$points$jscomp$86_vec__67982$$=$app$main$data$workspace$path$streams$get_angle$$($node$jscomp$328$$,$handler$jscomp$37$$,$opposite$jscomp$3$$);var $initial_angle$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($points$jscomp$86_vec__67982$$,0,null);return $APP.$beicon$v2$core$map$$(function($delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$){var $position$jscomp$118$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$,0,null);$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$,1,null);if($APP.$cljs$core$truth_$$($delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$)){$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$=
$APP.$app$common$geom$point$subtract$$($position$jscomp$118$$,$start_point$jscomp$3$$);$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$=$APP.$app$common$geom$point$add$$($handler$jscomp$37$$,$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$);var $rot_sign$jscomp$1_vec__67990$$=$app$main$data$workspace$path$streams$get_angle$$($node$jscomp$328$$,$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$,$opposite$jscomp$3$$),$rot_angle$jscomp$1_rot_handler$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($rot_sign$jscomp$1_vec__67990$$,0,null);$rot_sign$jscomp$1_vec__67990$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($rot_sign$jscomp$1_vec__67990$$,1,null);var $and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$;if($and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$=
$rot_angle$jscomp$1_rot_handler$$!=null)$and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$=$APP.$cljs$cst$4088$alt_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$118$$),$and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$)?
$and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$:180-$initial_angle$jscomp$1$$>.1,$and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$)?180-
$rot_angle$jscomp$1_rot_handler$$<=5:$and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$;$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_12611_and__5023__auto____$1$jscomp$inline_12612_or__5025__auto__$jscomp$inline_12613_snap_opposite_angle_QMARK_$$)?($rot_angle$jscomp$1_rot_handler$$=$APP.$app$common$geom$point$rotate$$($delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$,
$node$jscomp$328$$,180-$rot_sign$jscomp$1_vec__67990$$*$rot_angle$jscomp$1_rot_handler$$),$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$=$APP.$app$common$geom$point$subtract$$($rot_angle$jscomp$1_rot_handler$$,$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$)):$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$=$APP.$app$main$snap$get_snap_delta$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$],null),$ranges$jscomp$8$$,$d_pos$jscomp$1$$);return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$position$jscomp$118$$,$APP.$app$common$geom$point$add$$($position$jscomp$118$$,$delta$jscomp$48_handler__$1_p__67986_snap$jscomp$1_snap_toggled$jscomp$1$$)]))}return $position$jscomp$118$$},$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$path$streams$snap_toggled_stream$$(),
$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$04$$(function($position$jscomp$119$$,$shift_QMARK_$jscomp$14$$,$alt_QMARK_$jscomp$8$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($position$jscomp$119$$,$APP.$cljs$cst$4087$shift_QMARK_$$,$shift_QMARK_$jscomp$14$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4088$alt_QMARK_$$,$alt_QMARK_$jscomp$8$$]))},$APP.$sub$jscomp$inline_6233$$,$APP.$sub$jscomp$inline_6236$$,$APP.$beicon$v2$core$map$$($APP.$app$main$data$workspace$path$streams$to_pixel_snap$$,
$APP.$app$main$streams$mouse_position$$))))};
$app$main$data$workspace$path$streams$move_points_stream$$=function($start_point$jscomp$2$$,$selected_points$jscomp$1$$,$points$jscomp$85$$){var $zoom$jscomp$25$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$2158$zoom$$],null),1),$ranges$jscomp$7$$=$APP.$app$main$snap$create_ranges$$.$cljs$core$IFn$_invoke$arity$2$($points$jscomp$85$$,
$selected_points$jscomp$1$$),$d_pos$$=10/$zoom$jscomp$25$$;return $APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$04$$(function($position$jscomp$117$$,$shift_QMARK_$jscomp$13$$,$alt_QMARK_$jscomp$7$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($position$jscomp$117$$,$APP.$cljs$cst$4087$shift_QMARK_$$,$shift_QMARK_$jscomp$13$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4088$alt_QMARK_$$,$alt_QMARK_$jscomp$7$$]))},$APP.$sub$jscomp$inline_6233$$,
$APP.$sub$jscomp$inline_6236$$,$APP.$beicon$v2$core$map$$(function($moved_points_p__67978_snap_snap_toggled$$){var $position$jscomp$116$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($moved_points_p__67978_snap_snap_toggled$$,0,null);$moved_points_p__67978_snap_snap_toggled$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($moved_points_p__67978_snap_snap_toggled$$,1,null);if($APP.$cljs$core$truth_$$($moved_points_p__67978_snap_snap_toggled$$)){var $delta$jscomp$47$$=$APP.$app$common$geom$point$subtract$$($position$jscomp$116$$,
$start_point$jscomp$2$$);$moved_points_p__67978_snap_snap_toggled$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__67977_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__67977_SHARP_$$,$delta$jscomp$47$$)},$selected_points$jscomp$1$$);$moved_points_p__67978_snap_snap_toggled$$=$APP.$app$main$snap$get_snap_delta$$($moved_points_p__67978_snap_snap_toggled$$,$ranges$jscomp$7$$,$d_pos$$);return $APP.$app$common$geom$point$add$$($position$jscomp$116$$,$moved_points_p__67978_snap_snap_toggled$$)}return $position$jscomp$116$$},
$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$path$streams$snap_toggled_stream$$(),$APP.$beicon$v2$core$map$$($APP.$app$main$data$workspace$path$streams$to_pixel_snap$$,$APP.$app$main$streams$mouse_position$$))))};
$app$common$attrs$get_text_attrs_multi$$=function($content$jscomp$150_map__54510__$1_p__54509$$,$attrs$jscomp$69_text_node_attrs$$){$content$jscomp$150_map__54510__$1_p__54509$$=$APP.$cljs$core$__destructure_map$$($content$jscomp$150_map__54510__$1_p__54509$$);$content$jscomp$150_map__54510__$1_p__54509$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$150_map__54510__$1_p__54509$$,$APP.$cljs$cst$1621$content$$);var $root_attrs$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$set$$($APP.$app$common$types$text$text_valign_attrs$$),
$attrs$jscomp$69_text_node_attrs$$),$paragraph_attrs$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$set$$($APP.$app$common$types$text$paragraph_attrs$$),$attrs$jscomp$69_text_node_attrs$$);$attrs$jscomp$69_text_node_attrs$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$set$$($APP.$app$common$types$text$text_node_attrs$$),$attrs$jscomp$69_text_node_attrs$$);return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$default_text_attrs$$,
$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$node_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$is_root_node_QMARK_$$,$content$jscomp$150_map__54510__$1_p__54509$$),$root_attrs$$),$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$node_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$is_paragraph_node_QMARK_$$,$content$jscomp$150_map__54510__$1_p__54509$$),
$paragraph_attrs$$),$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$node_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$is_text_node_QMARK_$$,$content$jscomp$150_map__54510__$1_p__54509$$),$attrs$jscomp$69_text_node_attrs$$)]))};
$app$main$data$workspace$interactions$get_target_frame$$=function($from_shape$jscomp$1_state$jscomp$716$$,$position$jscomp$145_target_frame$jscomp$6$$){var $objects$jscomp$594$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($from_shape$jscomp$1_state$jscomp$716$$),$from_frame_id_from_id$jscomp$1$$=$APP.$cljs$core$first$$($APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($from_shape$jscomp$1_state$jscomp$716$$));$from_shape$jscomp$1_state$jscomp$716$$=
$APP.$app$main$data$helpers$lookup_shape$cljs$0core$0IFn$0_invoke$0arity$02$$($from_shape$jscomp$1_state$jscomp$716$$,$from_frame_id_from_id$jscomp$1$$);$from_frame_id_from_id$jscomp$1$$=$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($from_shape$jscomp$1_state$jscomp$716$$)?$from_frame_id_from_id$jscomp$1$$:$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($from_shape$jscomp$1_state$jscomp$716$$);$position$jscomp$145_target_frame$jscomp$6$$=$APP.$cljs$core$last$$($APP.$app$common$types$shape_tree$get_frames_by_position$cljs$0core$0IFn$0_invoke$0arity$03$$($objects$jscomp$594$$,
$position$jscomp$145_target_frame$jscomp$6$$));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$145_target_frame$jscomp$6$$),$APP.$app$common$uuid$zero$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$145_target_frame$jscomp$6$$),$from_frame_id_from_id$jscomp$1$$)?$position$jscomp$145_target_frame$jscomp$6$$:null};
$app$main$data$workspace$interactions$move_edit_interaction$$=function($_initial_pos$$,$position$jscomp$146$$){typeof $app$main$data$workspace$interactions$move_edit_interaction_68710$$==="undefined"&&($app$main$data$workspace$interactions$move_edit_interaction_68710$$=function($_initial_pos$jscomp$1$$,$position$jscomp$147$$,$meta68711$$){this.$_initial_pos$=$_initial_pos$jscomp$1$$;this.position=$position$jscomp$147$$;this.$meta68711$=$meta68711$$;this.$cljs$lang$protocol_mask$partition0$$=393216;
this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4190$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_move_edit_interaction$$},$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68712$$,$meta68711__$1$$){return new $app$main$data$workspace$interactions$move_edit_interaction_68710$$(this.$_initial_pos$,this.position,$meta68711__$1$$)},$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68711$},$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$move_edit_interaction_68710$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2334_end_frame$$,$state$jscomp$717$$){$_$jscomp$2334_end_frame$$=$app$main$data$workspace$interactions$get_target_frame$$($state$jscomp$717$$,this.position);return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$717$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4191$draw_interaction_to$$],null),this.position),new $APP.$cljs$core$PersistentVector$$(null,2,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4192$draw_interaction_to_frame$$],null),$_$jscomp$2334_end_frame$$)});return new $app$main$data$workspace$interactions$move_edit_interaction_68710$$($_initial_pos$$,$position$jscomp$146$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker$$=function($p__69489$$){var $map__69490__$1$$=$APP.$cljs$core$__destructure_map$$($p__69489$$),$gradient$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__69490__$1$$,$APP.$cljs$cst$1708$gradient$$);typeof $app$main$data$workspace$colors$update_colorpicker_69491$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_69491$$=function($p__69489$jscomp$1$$,$map__69490$jscomp$1$$,$data$jscomp$377$$,$gradient$jscomp$20$$,
$meta69492$$){this.$p__69489$=$p__69489$jscomp$1$$;this.$map__69490$=$map__69490$jscomp$1$$;this.data=$data$jscomp$377$$;this.gradient=$gradient$jscomp$20$$;this.$meta69492$=$meta69492$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4064$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker$$},$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69493$$,$meta69492__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_69491$$(this.$p__69489$,this.$map__69490$,this.data,this.gradient,$meta69492__$1$$)},$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69492$},$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_69491$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2202$$,$state$jscomp$597$$){var $self__$jscomp$5178$$=this,$shape_id$jscomp$103$$=$APP.$cljs$core$first$$($APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$597$$));
return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$597$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$30$$){var $current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$=$APP.$cljs$cst$4048$current_color$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$30$$);if($self__$jscomp$5178$$.gradient!=null){$current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$=$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$30$$);
$current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$=$APP.$cljs$core$truth_$$($current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$)?$current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$:0;var $new_stops$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$data$workspace$colors$split_color_components$$,$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5178$$.gradient)),$new_gradient$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5178$$.gradient,
$APP.$cljs$cst$1717$stops$$),$APP.$cljs$cst$2500$shape_id$$,$shape_id$jscomp$103$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$30$$),$new_stops$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($state__$1$jscomp$30$$),$new_gradient$$)?$state__$1$jscomp$30$$:$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$30$$,
$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5178$$.data)),$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_stops$$,$current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$)),$APP.$cljs$cst$1717$stops$$,$new_stops$$),$APP.$cljs$cst$1708$gradient$$,$new_gradient$$),$APP.$cljs$cst$4046$editing_stop$$,$current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$)}return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$==
null||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5178$$.data),$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$))||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5178$$.data),$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$1_or__5025__auto__$jscomp$inline_12615_stop$jscomp$3$$))?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$30$$,$APP.$cljs$cst$4048$current_color$$,$app$main$data$workspace$colors$split_color_components$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5178$$.data,$APP.$cljs$cst$1708$gradient$$))):$state__$1$jscomp$30$$,$APP.$cljs$cst$4046$editing_stop$$),$APP.$cljs$cst$1708$gradient$$),$APP.$cljs$cst$1717$stops$$)})});return new $app$main$data$workspace$colors$update_colorpicker_69491$$($p__69489$$,$map__69490__$1$$,
$map__69490__$1$$,$gradient$jscomp$19$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$clipboard$copy_selected_text$$=function(){typeof $app$main$data$workspace$clipboard$copy_selected_text_69099$$==="undefined"&&($app$main$data$workspace$clipboard$copy_selected_text_69099$$=function($meta69100$$){this.$meta69100$=$meta69100$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3995$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_copy_selected_text$$},$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69101$$,$meta69100__$1$$){return new $app$main$data$workspace$clipboard$copy_selected_text_69099$$($meta69100__$1$$)},$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69100$},$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$potok$v2$core$EffectEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_text_69099$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$,$objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$){$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$);
$objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$);$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$files$helpers$text_shape_QMARK_$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$data$getf$$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$),
$APP.$app$common$files$helpers$selected_with_children$$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$,$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$)));$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$);
var $objects__$1$jscomp$22$$=$APP.$app$common$files$helpers$selected_subtree$$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$,$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$);$objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),$APP.$app$common$types$shape_tree$sort_z_index$cljs$0core$0IFn$0_invoke$0arity$02$$($objects__$1$jscomp$22$$,
$_$jscomp$2156_selected$jscomp$66_selected__$1$jscomp$6_text_shapes$$));$objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("\n",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$630_shape$jscomp$656$$){$id$jscomp$630_shape$jscomp$656$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$22$$,$id$jscomp$630_shape$jscomp$656$$);return $APP.$app$common$types$text$content__GT_text$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$630_shape$jscomp$656$$))},
$objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$));return $APP.$app$util$clipboard$to_clipboard$$($objects$jscomp$566_selected__$2_state$jscomp$557_text$jscomp$47$$)});return new $app$main$data$workspace$clipboard$copy_selected_text_69099$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$specialized_panel$open_specialized_panel$$=function(){typeof $app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$==="undefined"&&($app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$=function($type$jscomp$464$$,$meta66031$$){this.type=$type$jscomp$464$$;this.$meta66031$=$meta66031$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3634$app_DOT_main_DOT_data_DOT_workspace_DOT_specialized_panel_SLASH_open_specialized_panel$$},$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66032$$,$meta66031__$1$$){return new $app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$(this.type,
$meta66031__$1$$)},$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66031$},$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$,
$state$jscomp$381$$){$_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$381$$);$_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$381$$,$_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$);var $selected_ids$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$381$$);
$_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$),$selected_ids$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$381$$,$APP.$cljs$cst$2202$specialized_panel$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,this.type,$APP.$cljs$cst$1598$shapes$$,$_$jscomp$1916_objects$jscomp$393_page_id$jscomp$132_selected_shapes$$],
null))},$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1917$$,$___$1$jscomp$1229$$,$stream$jscomp$38$$){return $APP.$beicon$v2$core$map$$($app$main$data$workspace$specialized_panel$clear_specialized_panel$$,$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$filter$$($app$main$data$workspace$specialized_panel$interrupt_QMARK_$$,
$stream$jscomp$38$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3635$app_DOT_main_DOT_data_DOT_workspace_DOT_common_SLASH_undo$$),$stream$jscomp$38$$))))});return new $app$main$data$workspace$specialized_panel$open_specialized_panel_66030$$($APP.$cljs$cst$3800$component_swap$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$modifiers$set_rotation_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$=function($angle$jscomp$30$$,$shapes$jscomp$85$$,$center$jscomp$46$$){typeof $app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$==="undefined"&&($app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$=function($angle$jscomp$31$$,$shapes$jscomp$86$$,$center$jscomp$47$$,$meta67252$$){this.angle=$angle$jscomp$31$$;this.shapes=$shapes$jscomp$86$$;this.$center$=$center$jscomp$47$$;this.$meta67252$=
$meta67252$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3689$app_DOT_main_DOT_data_DOT_workspace_DOT_modifiers_SLASH_set_rotation_modifiers$$},$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_67253$$,$meta67252__$1$$){return new $app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$(this.angle,this.shapes,this.$center$,$meta67252__$1$$)},$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67252$},$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$,$state$jscomp$402$$){var $self__$jscomp$4417$$=this;$_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$402$$);var $ids$jscomp$101$$=$APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$modifiers$xf_rotation_shape$$,$self__$jscomp$4417$$.shapes);$_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$=
$APP.$app$common$geom$modifiers$set_objects_modifiers$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$modifiers$build_modif_tree$$($ids$jscomp$101$$,$_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$,function($shape$jscomp$528$$){return $APP.$app$common$types$modifiers$rotation_modifiers$$($shape$jscomp$528$$,$self__$jscomp$4417$$.$center$,$self__$jscomp$4417$$.angle)}),$_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$402$$,
$APP.$cljs$cst$1907$workspace_modifiers$$,$_$jscomp$1945_modif_tree$jscomp$51_objects$jscomp$457$$)});return new $app$main$data$workspace$modifiers$set_rotation_modifiers_67251$$($angle$jscomp$30$$,$shapes$jscomp$85$$,$center$jscomp$46$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$modifiers$calculate_update_modifiers$$=function($old_modif_tree$jscomp$1$$,$objects__$1$jscomp$19_state$jscomp$393$$,$ignore_constraints$jscomp$13$$,$ignore_snap_pixel$jscomp$2_snap_pixel_QMARK_$jscomp$2$$,$modif_tree$jscomp$32$$){var $objects$jscomp$452$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($objects__$1$jscomp$19_state$jscomp$393$$);$ignore_snap_pixel$jscomp$2_snap_pixel_QMARK_$jscomp$2$$=$APP.$cljs$core$not$$($ignore_snap_pixel$jscomp$2_snap_pixel_QMARK_$jscomp$2$$)&&
$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$2171$workspace_layout$$.$cljs$core$IFn$_invoke$arity$1$($objects__$1$jscomp$19_state$jscomp$393$$),$APP.$cljs$cst$2172$snap_pixel_grid$$);$objects__$1$jscomp$19_state$jscomp$393$$=$APP.$app$main$data$workspace$modifiers$apply_text_modifiers$$($objects$jscomp$452$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$19_state$jscomp$393$$,$APP.$cljs$cst$2198$workspace_text_modifier$$));return $APP.$app$common$geom$modifiers$set_objects_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($old_modif_tree$jscomp$1$$,
$modif_tree$jscomp$32$$,$objects__$1$jscomp$19_state$jscomp$393$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3669$ignore_constraints$$,$ignore_constraints$jscomp$13$$,$APP.$cljs$cst$3670$snap_pixel_QMARK_$$,$ignore_snap_pixel$jscomp$2_snap_pixel_QMARK_$jscomp$2$$],null))};
$app$main$data$workspace$modifiers$update_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$=function($modif_tree$jscomp$35$$){typeof $app$main$data$workspace$modifiers$update_modifiers_67092$$==="undefined"&&($app$main$data$workspace$modifiers$update_modifiers_67092$$=function($modif_tree$jscomp$36$$,$ignore_constraints$jscomp$16$$,$ignore_snap_pixel$jscomp$4$$,$meta67093$$){this.$modif_tree$=$modif_tree$jscomp$36$$;this.$ignore_constraints$=$ignore_constraints$jscomp$16$$;this.$ignore_snap_pixel$=$ignore_snap_pixel$jscomp$4$$;
this.$meta67093$=$meta67093$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3677$app_DOT_main_DOT_data_DOT_workspace_DOT_modifiers_SLASH_update_modifiers$$},$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_67094$$,$meta67093__$1$$){return new $app$main$data$workspace$modifiers$update_modifiers_67092$$(this.$modif_tree$,this.$ignore_constraints$,this.$ignore_snap_pixel$,$meta67093__$1$$)},$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67093$},$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$modifiers$update_modifiers_67092$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$1936$$,$state$jscomp$394$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$394$$,$APP.$cljs$cst$1907$workspace_modifiers$$,$app$main$data$workspace$modifiers$calculate_update_modifiers$$,$state$jscomp$394$$,this.$ignore_constraints$,this.$ignore_snap_pixel$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([this.$modif_tree$]))});return new $app$main$data$workspace$modifiers$update_modifiers_67092$$($modif_tree$jscomp$35$$,!1,!0,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$commit_update_text_modifier$$=function(){typeof $app$main$data$workspace$texts$commit_update_text_modifier_68847$$==="undefined"&&($app$main$data$workspace$texts$commit_update_text_modifier_68847$$=function($meta68848$$){this.$meta68848$=$meta68848$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3860$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_commit_update_text_modifier$$},$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68849$$,$meta68848__$1$$){return new $app$main$data$workspace$texts$commit_update_text_modifier_68847$$($meta68848__$1$$)},$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68848$},$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_update_text_modifier_68847$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2082_ids$jscomp$144_modif_tree$jscomp$60$$,$state$jscomp$528$$){$_$jscomp$2082_ids$jscomp$144_modif_tree$jscomp$60$$=$APP.$cljs$cst$3861$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_ids$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$528$$);
$_$jscomp$2082_ids$jscomp$144_modif_tree$jscomp$60$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$($_$jscomp$2082_ids$jscomp$144_modif_tree$jscomp$60$$,$APP.$app$common$types$modifiers$reflow$$());return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$modifiers$update_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2082_ids$jscomp$144_modif_tree$jscomp$60$$))});return new $app$main$data$workspace$texts$commit_update_text_modifier_68847$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$shape$layout$reorder_grid_tracks$$=function($parent$jscomp$148$$,$prop$jscomp$16$$,$from_index$jscomp$3$$,$to_index$jscomp$1$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($parent$jscomp$148$$,$prop$jscomp$16$$,function($tracks$$){var $tr$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($tracks$$,$from_index$jscomp$3$$);return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$app$common$data$vec_without_nils$$($APP.$app$common$data$insert_at_index$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($tracks$$),
$from_index$jscomp$3$$,null),$to_index$jscomp$1$$+1,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[null,$tr$jscomp$1$$],null)],null))))})};
$app$common$types$shape$layout$reorder_grid_track$$=function($parent$jscomp$150_parent__$1$jscomp$40$$,$G__48047_from_index$jscomp$4$$,$to_index$jscomp$2$$,$move_content_QMARK__move_content_QMARK___$1$$,$tracks_props$$,$prop$jscomp$18$$){var $from_track$jscomp$1$$=$G__48047_from_index$jscomp$4$$+1,$to_track$jscomp$1$$=$to_index$jscomp$2$$<$G__48047_from_index$jscomp$4$$?$to_index$jscomp$2$$+2:$to_index$jscomp$2$$+1;$move_content_QMARK__move_content_QMARK___$1$$=$APP.$cljs$core$truth_$$($move_content_QMARK__move_content_QMARK___$1$$)?
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_track$jscomp$1$$,$to_track$jscomp$1$$):$move_content_QMARK__move_content_QMARK___$1$$;$parent$jscomp$150_parent__$1$jscomp$40$$=$APP.$cljs$core$truth_$$($move_content_QMARK__move_content_QMARK___$1$$)?$app$common$types$shape$layout$remove_cell_areas_after$$($app$common$types$shape$layout$remove_cell_areas$$($parent$jscomp$150_parent__$1$jscomp$40$$,$prop$jscomp$18$$,$G__48047_from_index$jscomp$4$$),$prop$jscomp$18$$,$to_index$jscomp$2$$):
$parent$jscomp$150_parent__$1$jscomp$40$$;$G__48047_from_index$jscomp$4$$=$app$common$types$shape$layout$reorder_grid_tracks$$($parent$jscomp$150_parent__$1$jscomp$40$$,$tracks_props$$,$G__48047_from_index$jscomp$4$$,$to_index$jscomp$2$$);return $APP.$cljs$core$truth_$$($move_content_QMARK__move_content_QMARK___$1$$)?$app$common$types$shape$layout$swap_track_content$$($G__48047_from_index$jscomp$4$$,$prop$jscomp$18$$,$from_track$jscomp$1$$,$to_track$jscomp$1$$):$G__48047_from_index$jscomp$4$$};
$cljs$tools$reader$read_dispatch$$=function($rdr$jscomp$54$$,$_$jscomp$169_temp__5823__auto__$jscomp$21$$,$opts$jscomp$58$$,$pending_forms$$){$_$jscomp$169_temp__5823__auto__$jscomp$21$$=$rdr$jscomp$54$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);if($APP.$cljs$core$truth_$$($_$jscomp$169_temp__5823__auto__$jscomp$21$$)){var $temp__5823__auto____$1$jscomp$2$$=$cljs$tools$reader$dispatch_macros$$.$cljs$core$IFn$_invoke$arity$1$?$cljs$tools$reader$dispatch_macros$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$169_temp__5823__auto__$jscomp$21$$):
$cljs$tools$reader$dispatch_macros$$($_$jscomp$169_temp__5823__auto__$jscomp$21$$);if($APP.$cljs$core$truth_$$($temp__5823__auto____$1$jscomp$2$$))return $temp__5823__auto____$1$jscomp$2$$.$cljs$core$IFn$_invoke$arity$4$?$temp__5823__auto____$1$jscomp$2$$.$cljs$core$IFn$_invoke$arity$4$($rdr$jscomp$54$$,$_$jscomp$169_temp__5823__auto__$jscomp$21$$,$opts$jscomp$58$$,$pending_forms$$):$temp__5823__auto____$1$jscomp$2$$($rdr$jscomp$54$$,$_$jscomp$169_temp__5823__auto__$jscomp$21$$,$opts$jscomp$58$$,
$pending_forms$$);$rdr$jscomp$54$$.$cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2$(null,$_$jscomp$169_temp__5823__auto__$jscomp$21$$);return $cljs$tools$reader$read_tagged$$.$cljs$core$IFn$_invoke$arity$4$?$cljs$tools$reader$read_tagged$$.$cljs$core$IFn$_invoke$arity$4$($rdr$jscomp$54$$,$_$jscomp$169_temp__5823__auto__$jscomp$21$$,$opts$jscomp$58$$,$pending_forms$$):$cljs$tools$reader$read_tagged$$($rdr$jscomp$54$$,$_$jscomp$169_temp__5823__auto__$jscomp$21$$,$opts$jscomp$58$$,$pending_forms$$)}return $APP.$cljs$tools$reader$impl$errors$throw_eof_at_dispatch$$($rdr$jscomp$54$$)};
$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$05$$=function($rdr$jscomp$57$$,$initch$jscomp$2$$,$base$jscomp$10$$,$length$jscomp$27$$,$exact_QMARK_$$){for(var $i$jscomp$288$$=1,$G__24944_uc$jscomp$1$$=$APP.$cljs$tools$reader$impl$utils$char_code$$($initch$jscomp$2$$,$base$jscomp$10$$);;){if($G__24944_uc$jscomp$1$$===-1)return $APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_digit$$($rdr$jscomp$57$$,$initch$jscomp$2$$);if($i$jscomp$288$$!==$length$jscomp$27$$){var $ch$jscomp$30$$=
$rdr$jscomp$57$$.$cljs$tools$reader$reader_types$Reader$peek_char$arity$1$(null);var $JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$=$APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$30$$);$JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$||($JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$=
$cljs$tools$reader$macros$$.$cljs$core$IFn$_invoke$arity$1$?$cljs$tools$reader$macros$$.$cljs$core$IFn$_invoke$arity$1$($ch$jscomp$30$$):$cljs$tools$reader$macros$$($ch$jscomp$30$$),$JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$)?$JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$:
$ch$jscomp$30$$==null);if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$))return $APP.$cljs$core$truth_$$($exact_QMARK_$$)?$APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_len$$($rdr$jscomp$57$$,$i$jscomp$288$$,$length$jscomp$27$$):String.fromCharCode($G__24944_uc$jscomp$1$$);$JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$=
$APP.$cljs$tools$reader$impl$utils$char_code$$($ch$jscomp$30$$,$base$jscomp$10$$);$rdr$jscomp$57$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);if($JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$===-1)return $APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_digit$$($rdr$jscomp$57$$,$ch$jscomp$30$$);$G__24944_uc$jscomp$1$$=$JSCompiler_inline_result$jscomp$1571_d$jscomp$102_or__5025__auto__$jscomp$inline_8016_or__5025__auto____$1$jscomp$inline_8017$$+
$G__24944_uc$jscomp$1$$*$base$jscomp$10$$;$i$jscomp$288$$+=1}else return String.fromCharCode($G__24944_uc$jscomp$1$$)}};
$cljs$tools$reader$read_delimited$$=function($kind$jscomp$13$$,$delim$jscomp$1$$,$rdr$jscomp$62$$,$opts$jscomp$63$$,$pending_forms$jscomp$5$$){var $_STAR_read_delim_STAR__orig_val__24616$$=$cljs$tools$reader$_STAR_read_delim_STAR_$$;$cljs$tools$reader$_STAR_read_delim_STAR_$$=!0;try{a:{for(var $vec__24608$jscomp$inline_8024$$=$cljs$tools$reader$starting_line_col_info$$($rdr$jscomp$62$$),$start_line$jscomp$inline_8025$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__24608$jscomp$inline_8024$$,
0,null),$start_column$jscomp$inline_8026$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__24608$jscomp$inline_8024$$,1,null),$delim__$1$jscomp$inline_8027$$=$APP.$cljs$tools$reader$impl$utils$char$0$$($delim$jscomp$1$$),$a$jscomp$inline_8028$$=$APP.$cljs$core$_as_transient$$($APP.$cljs$core$PersistentVector$EMPTY$$);;){var $form$jscomp$inline_8029$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$($rdr$jscomp$62$$,
!1,$cljs$tools$reader$READ_EOF$$,$delim__$1$jscomp$inline_8027$$,$opts$jscomp$63$$,$pending_forms$jscomp$5$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$62$$,!1,$cljs$tools$reader$READ_EOF$$,$delim__$1$jscomp$inline_8027$$,$opts$jscomp$63$$,$pending_forms$jscomp$5$$);if($form$jscomp$inline_8029$$===$cljs$tools$reader$READ_FINISHED$$){var $JSCompiler_inline_result$jscomp$1572$$=$APP.$cljs$core$_persistent_BANG_$$($a$jscomp$inline_8028$$);break a}if($form$jscomp$inline_8029$$===$cljs$tools$reader$READ_EOF$$){$JSCompiler_inline_result$jscomp$1572$$=
$APP.$cljs$tools$reader$impl$errors$throw_eof_delimited$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$62$$,$kind$jscomp$13$$,$start_line$jscomp$inline_8025$$,$start_column$jscomp$inline_8026$$,$APP.$cljs$core$count$$($a$jscomp$inline_8028$$));break a}$a$jscomp$inline_8028$$=$APP.$cljs$core$conj_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($a$jscomp$inline_8028$$,$form$jscomp$inline_8029$$)}$JSCompiler_inline_result$jscomp$1572$$=void 0}return $JSCompiler_inline_result$jscomp$1572$$}finally{$cljs$tools$reader$_STAR_read_delim_STAR_$$=
$_STAR_read_delim_STAR__orig_val__24616$$}};
$cljs$tools$reader$read_list$$=function($JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$,$_$jscomp$170_start_line$jscomp$1$$,$end_line_opts$jscomp$64$$,$end_column_pending_forms$jscomp$6_vec__24627$$){var $start_column$jscomp$1_vec__24624$$=$cljs$tools$reader$starting_line_col_info$$($JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$);$_$jscomp$170_start_line$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$1_vec__24624$$,0,
null);$start_column$jscomp$1_vec__24624$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$1_vec__24624$$,1,null);var $JSCompiler_temp_const$jscomp$1573_the_list$$=$cljs$tools$reader$read_delimited$$($APP.$cljs$cst$201$list$$,")",$JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$,$end_line_opts$jscomp$64$$,$end_column_pending_forms$jscomp$6_vec__24627$$);$end_column_pending_forms$jscomp$6_vec__24627$$=$cljs$tools$reader$ending_line_col_info$$($JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$);
$end_line_opts$jscomp$64$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column_pending_forms$jscomp$6_vec__24627$$,0,null);$end_column_pending_forms$jscomp$6_vec__24627$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column_pending_forms$jscomp$6_vec__24627$$,1,null);$JSCompiler_temp_const$jscomp$1573_the_list$$=$APP.$cljs$core$empty_QMARK_$$($JSCompiler_temp_const$jscomp$1573_the_list$$)?$APP.$cljs$core$List$EMPTY$$:$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$list$$,
$JSCompiler_temp_const$jscomp$1573_the_list$$);if($APP.$cljs$core$truth_$$($_$jscomp$170_start_line$jscomp$1$$)){var $JSCompiler_temp_const$jscomp$1575$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$;$JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$=$APP.$cljs$tools$reader$reader_types$get_file_name$$($JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$);$JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$=
$JSCompiler_temp_const$jscomp$1575$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$208$file$$,$JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$],null):null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$209$line$$,$_$jscomp$170_start_line$jscomp$1$$,
$APP.$cljs$cst$216$column$$,$start_column$jscomp$1_vec__24624$$,$APP.$cljs$cst$217$end_line$$,$end_line_opts$jscomp$64$$,$APP.$cljs$cst$218$end_column$$,$end_column_pending_forms$jscomp$6_vec__24627$$],null)]))}else $JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$=null;return $APP.$cljs$core$with_meta$$($JSCompiler_temp_const$jscomp$1573_the_list$$,$JSCompiler_temp$jscomp$1574_rdr$jscomp$63_temp__5825__auto__$jscomp$inline_8031$$)};
$cljs$tools$reader$read_vector$$=function($JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$,$_$jscomp$171_start_line$jscomp$2$$,$opts$jscomp$65_the_vector$$,$end_line$jscomp$1_pending_forms$jscomp$7$$){var $start_column$jscomp$2_vec__24636$$=$cljs$tools$reader$starting_line_col_info$$($JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$);$_$jscomp$171_start_line$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$2_vec__24636$$,
0,null);$start_column$jscomp$2_vec__24636$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$2_vec__24636$$,1,null);$opts$jscomp$65_the_vector$$=$cljs$tools$reader$read_delimited$$($APP.$cljs$cst$200$vector$$,"]",$JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$,$opts$jscomp$65_the_vector$$,$end_line$jscomp$1_pending_forms$jscomp$7$$);var $end_column$jscomp$1_vec__24639$$=$cljs$tools$reader$ending_line_col_info$$($JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$);
$end_line$jscomp$1_pending_forms$jscomp$7$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$1_vec__24639$$,0,null);$end_column$jscomp$1_vec__24639$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$1_vec__24639$$,1,null);if($APP.$cljs$core$truth_$$($_$jscomp$171_start_line$jscomp$2$$)){var $JSCompiler_temp_const$jscomp$1579$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$;$JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$=
$APP.$cljs$tools$reader$reader_types$get_file_name$$($JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$);$JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$=$JSCompiler_temp_const$jscomp$1579$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$208$file$$,$JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$],null):null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$209$line$$,$_$jscomp$171_start_line$jscomp$2$$,$APP.$cljs$cst$216$column$$,$start_column$jscomp$2_vec__24636$$,$APP.$cljs$cst$217$end_line$$,$end_line$jscomp$1_pending_forms$jscomp$7$$,$APP.$cljs$cst$218$end_column$$,$end_column$jscomp$1_vec__24639$$],null)]))}else $JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$=
null;return $APP.$cljs$core$with_meta$$($opts$jscomp$65_the_vector$$,$JSCompiler_temp$jscomp$1578_rdr$jscomp$64_temp__5825__auto__$jscomp$inline_8033$$)};
$cljs$tools$reader$read_map$$=function($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$,$_$jscomp$172_start_line$jscomp$3$$,$end_line$jscomp$2_opts$jscomp$66$$,$end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$){var $start_column$jscomp$3_vec__24650$$=$cljs$tools$reader$starting_line_col_info$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$);$_$jscomp$172_start_line$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$3_vec__24650$$,
0,null);$start_column$jscomp$3_vec__24650$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$3_vec__24650$$,1,null);var $JSCompiler_temp_const$jscomp$1582_the_map$$=$cljs$tools$reader$read_delimited$$($APP.$cljs$cst$202$map$$,"}",$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$,$end_line$jscomp$2_opts$jscomp$66$$,$end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$),$JSCompiler_temp_const$jscomp$1584_map_count$$=$APP.$cljs$core$count$$($JSCompiler_temp_const$jscomp$1582_the_map$$),
$ks$jscomp$19$$=$APP.$cljs$core$take_nth$cljs$0core$0IFn$0_invoke$0arity$02$$(2,$JSCompiler_temp_const$jscomp$1582_the_map$$),$key_set$$=$APP.$cljs$core$set$$($ks$jscomp$19$$);$end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$=$cljs$tools$reader$ending_line_col_info$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$);$end_line$jscomp$2_opts$jscomp$66$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$,
0,null);$end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$,1,null);!$APP.$cljs$core$even_QMARK_$$($JSCompiler_temp_const$jscomp$1584_map_count$$)&&$APP.$cljs$tools$reader$impl$errors$throw_odd_map$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$,$_$jscomp$172_start_line$jscomp$3$$,$start_column$jscomp$3_vec__24650$$,$JSCompiler_temp_const$jscomp$1582_the_map$$);
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($key_set$$),$APP.$cljs$core$count$$($ks$jscomp$19$$))||$APP.$cljs$tools$reader$impl$errors$throw_dup_keys$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$,$APP.$cljs$cst$202$map$$,$ks$jscomp$19$$);$JSCompiler_temp_const$jscomp$1582_the_map$$=$JSCompiler_temp_const$jscomp$1584_map_count$$<=2*$APP.$cljs$core$PersistentArrayMap$HASHMAP_THRESHOLD$$?$APP.$cljs$core$PersistentArrayMap$fromArray$$($APP.$cljs$core$to_array$$($JSCompiler_temp_const$jscomp$1582_the_map$$),
!0,!0):$APP.$cljs$core$PersistentHashMap$fromArray$$($APP.$cljs$core$to_array$$($JSCompiler_temp_const$jscomp$1582_the_map$$));$APP.$cljs$core$truth_$$($_$jscomp$172_start_line$jscomp$3$$)?($JSCompiler_temp_const$jscomp$1584_map_count$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$,$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$=$APP.$cljs$tools$reader$reader_types$get_file_name$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$),
$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$=$JSCompiler_temp_const$jscomp$1584_map_count$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$208$file$$,$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$],null):null,
new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$209$line$$,$_$jscomp$172_start_line$jscomp$3$$,$APP.$cljs$cst$216$column$$,$start_column$jscomp$3_vec__24650$$,$APP.$cljs$cst$217$end_line$$,$end_line$jscomp$2_opts$jscomp$66$$,$APP.$cljs$cst$218$end_column$$,$end_column$jscomp$2_pending_forms$jscomp$8_vec__24653$$],null)]))):$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$=null;return $APP.$cljs$core$with_meta$$($JSCompiler_temp_const$jscomp$1582_the_map$$,
$JSCompiler_temp$jscomp$1583_rdr$jscomp$65_temp__5825__auto__$jscomp$inline_8035$$)};
$cljs$tools$reader$read_number$$=function($rdr$jscomp$66$$,$initch$jscomp$3$$){for(var $sb$jscomp$13$$=function(){var $G__24662$$=new $APP.$goog$string$StringBuffer$$;$G__24662$$.append($initch$jscomp$3$$);return $G__24662$$}(),$ch$jscomp$32$$=$rdr$jscomp$66$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);;){if($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$=$APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$32$$);
if($or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$)return $or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$;$or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$=$cljs$tools$reader$macros$$.$cljs$core$IFn$_invoke$arity$1$?$cljs$tools$reader$macros$$.$cljs$core$IFn$_invoke$arity$1$($ch$jscomp$32$$):$cljs$tools$reader$macros$$($ch$jscomp$32$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$)?$or__5025__auto__$jscomp$53_or__5025__auto____$1$jscomp$14$$:
$ch$jscomp$32$$==null}())){var $G__24958_s$jscomp$170$$=$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb$jscomp$13$$);$ch$jscomp$32$$!=null&&$rdr$jscomp$66$$.$cljs$tools$reader$reader_types$IPushbackReader$unread$arity$2$(null,$ch$jscomp$32$$);var $G__24959_or__5025__auto__$jscomp$52$$=$APP.$cljs$tools$reader$impl$commons$match_number$$($G__24958_s$jscomp$170$$);return $APP.$cljs$core$truth_$$($G__24959_or__5025__auto__$jscomp$52$$)?$G__24959_or__5025__auto__$jscomp$52$$:$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$66$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid number: ",$G__24958_s$jscomp$170$$,"."]))}$G__24958_s$jscomp$170$$=function(){var $G__24664$$=$sb$jscomp$13$$;$G__24664$$.append($ch$jscomp$32$$);return $G__24664$$}();$G__24959_or__5025__auto__$jscomp$52$$=$rdr$jscomp$66$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);$sb$jscomp$13$$=$G__24958_s$jscomp$170$$;$ch$jscomp$32$$=$G__24959_or__5025__auto__$jscomp$52$$}};
$cljs$tools$reader$escape_char$$=function($rdr$jscomp$67$$){var $ch$jscomp$33_ch__$1$jscomp$3$$=$rdr$jscomp$67$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);switch($ch$jscomp$33_ch__$1$jscomp$3$$){case "t":return"\t";case "r":return"\r";case "n":return"\n";case "\\":return"\\";case '"':return'"';case "b":return"\b";case "f":return"\f";case "u":return $ch$jscomp$33_ch__$1$jscomp$3$$=$rdr$jscomp$67$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null),-1===parseInt($ch$jscomp$33_ch__$1$jscomp$3$$|
0,16)?$APP.$cljs$tools$reader$impl$errors$throw_invalid_unicode_escape$$($rdr$jscomp$67$$,$ch$jscomp$33_ch__$1$jscomp$3$$):$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$67$$,$ch$jscomp$33_ch__$1$jscomp$3$$,16,4,!0);default:return $APP.$cljs$tools$reader$impl$utils$numeric_QMARK_$$($ch$jscomp$33_ch__$1$jscomp$3$$)?($ch$jscomp$33_ch__$1$jscomp$3$$=$cljs$tools$reader$read_unicode_char$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$67$$,$ch$jscomp$33_ch__$1$jscomp$3$$,
8,3,!1),($ch$jscomp$33_ch__$1$jscomp$3$$|0)>255?$APP.$cljs$tools$reader$impl$errors$throw_bad_octal_number$$($rdr$jscomp$67$$):$ch$jscomp$33_ch__$1$jscomp$3$$):$APP.$cljs$tools$reader$impl$errors$throw_bad_escape_char$$($rdr$jscomp$67$$,$ch$jscomp$33_ch__$1$jscomp$3$$)}};
$cljs$tools$reader$read_string_STAR_$$=function($reader$jscomp$34$$){for(var $sb$jscomp$15$$=new $APP.$goog$string$StringBuffer$$,$ch$jscomp$34$$=$reader$jscomp$34$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);;){if($ch$jscomp$34$$==null)return $APP.$cljs$tools$reader$impl$errors$throw_eof_reading$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($reader$jscomp$34$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(['"',$sb$jscomp$15$$]));switch($ch$jscomp$34$$){case "\\":var $G__24962_G__24964$$=
function(){var $G__24675$$=$sb$jscomp$15$$;$G__24675$$.append($cljs$tools$reader$escape_char$$($reader$jscomp$34$$));return $G__24675$$}(),$G__24963_G__24965$$=$reader$jscomp$34$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);$sb$jscomp$15$$=$G__24962_G__24964$$;$ch$jscomp$34$$=$G__24963_G__24965$$;continue;case '"':return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb$jscomp$15$$);default:$G__24962_G__24964$$=function(){var $G__24676$$=$sb$jscomp$15$$;$G__24676$$.append($ch$jscomp$34$$);
return $G__24676$$}();$G__24963_G__24965$$=$reader$jscomp$34$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);$sb$jscomp$15$$=$G__24962_G__24964$$;$ch$jscomp$34$$=$G__24963_G__24965$$;continue}break}};
$cljs$tools$reader$wrapping_reader$$=function($sym$jscomp$16$$){return function($rdr$jscomp$70$$,$_$jscomp$174$$,$opts$jscomp$69$$,$pending_forms$jscomp$11$$){return new $APP.$cljs$core$List$$(null,$sym$jscomp$16$$,new $APP.$cljs$core$List$$(null,$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$70$$,!0,null,$opts$jscomp$69$$,$pending_forms$jscomp$11$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$70$$,
!0,null,$opts$jscomp$69$$,$pending_forms$jscomp$11$$),null,1,null),2,null)}};
$cljs$tools$reader$read_meta$$=function($m__$1$jscomp$2_rdr$jscomp$71$$,$_$jscomp$175_line$jscomp$18$$,$o$jscomp$133_opts$jscomp$70$$,$pending_forms$jscomp$12$$){var $column$jscomp$8_vec__24740$$=$cljs$tools$reader$starting_line_col_info$$($m__$1$jscomp$2_rdr$jscomp$71$$);$_$jscomp$175_line$jscomp$18$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$8_vec__24740$$,0,null);$column$jscomp$8_vec__24740$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$8_vec__24740$$,
1,null);var $m$jscomp$79$$=$APP.$cljs$tools$reader$impl$utils$desugar_meta$$($cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($m__$1$jscomp$2_rdr$jscomp$71$$,!0,null,$o$jscomp$133_opts$jscomp$70$$,$pending_forms$jscomp$12$$):$cljs$tools$reader$read_STAR_$$($m__$1$jscomp$2_rdr$jscomp$71$$,!0,null,$o$jscomp$133_opts$jscomp$70$$,$pending_forms$jscomp$12$$));$APP.$cljs$core$map_QMARK_$$($m$jscomp$79$$)||$APP.$cljs$tools$reader$impl$errors$throw_bad_metadata$$($m__$1$jscomp$2_rdr$jscomp$71$$,
$m$jscomp$79$$);$o$jscomp$133_opts$jscomp$70$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($m__$1$jscomp$2_rdr$jscomp$71$$,!0,null,$o$jscomp$133_opts$jscomp$70$$,$pending_forms$jscomp$12$$):$cljs$tools$reader$read_STAR_$$($m__$1$jscomp$2_rdr$jscomp$71$$,!0,null,$o$jscomp$133_opts$jscomp$70$$,$pending_forms$jscomp$12$$);return $o$jscomp$133_opts$jscomp$70$$!=null&&($o$jscomp$133_opts$jscomp$70$$.$cljs$lang$protocol_mask$partition0$$&
131072||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$o$jscomp$133_opts$jscomp$70$$.$cljs$core$IMeta$$)?($m__$1$jscomp$2_rdr$jscomp$71$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($_$jscomp$175_line$jscomp$18$$)?$APP.$cljs$core$seq_QMARK_$$($o$jscomp$133_opts$jscomp$70$$):$_$jscomp$175_line$jscomp$18$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($m$jscomp$79$$,$APP.$cljs$cst$209$line$$,$_$jscomp$175_line$jscomp$18$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$216$column$$,
$column$jscomp$8_vec__24740$$])):$m$jscomp$79$$,$o$jscomp$133_opts$jscomp$70$$!=null&&($o$jscomp$133_opts$jscomp$70$$.$cljs$lang$protocol_mask$partition0$$&262144||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$o$jscomp$133_opts$jscomp$70$$.$cljs$core$IWithMeta$$)?$APP.$cljs$core$with_meta$$($o$jscomp$133_opts$jscomp$70$$,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$meta$$($o$jscomp$133_opts$jscomp$70$$),$m__$1$jscomp$2_rdr$jscomp$71$$]))):
$o$jscomp$133_opts$jscomp$70$$.$meta$=$m__$1$jscomp$2_rdr$jscomp$71$$):$APP.$cljs$tools$reader$impl$errors$throw_bad_metadata_target$$($m__$1$jscomp$2_rdr$jscomp$71$$,$o$jscomp$133_opts$jscomp$70$$)};
$cljs$tools$reader$read_set$$=function($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$,$_$jscomp$176_start_line$jscomp$4$$,$opts$jscomp$71_the_set$$,$end_line$jscomp$4_pending_forms$jscomp$13$$){var $start_column$jscomp$4_start_column__$1_vec__24747$$=$cljs$tools$reader$starting_line_col_info$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$);$_$jscomp$176_start_line$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$4_start_column__$1_vec__24747$$,
0,null);$start_column$jscomp$4_start_column__$1_vec__24747$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$4_start_column__$1_vec__24747$$,1,null);$start_column$jscomp$4_start_column__$1_vec__24747$$=$APP.$cljs$core$truth_$$($start_column$jscomp$4_start_column__$1_vec__24747$$)?$start_column$jscomp$4_start_column__$1_vec__24747$$-1|0:null;var $JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$=$cljs$tools$reader$read_delimited$$($APP.$cljs$cst$203$set$$,"}",$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$,
$opts$jscomp$71_the_set$$,$end_line$jscomp$4_pending_forms$jscomp$13$$);$opts$jscomp$71_the_set$$=$APP.$cljs$core$set$$($JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$);var $end_column$jscomp$4_vec__24750$$=$cljs$tools$reader$ending_line_col_info$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$);$end_line$jscomp$4_pending_forms$jscomp$13$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$4_vec__24750$$,0,null);$end_column$jscomp$4_vec__24750$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$4_vec__24750$$,1,null);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$),$APP.$cljs$core$count$$($opts$jscomp$71_the_set$$))||$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$tools$reader$impl$errors$throw_dup_keys$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$,
$APP.$cljs$cst$203$set$$,$JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$)]));$APP.$cljs$core$truth_$$($_$jscomp$176_start_line$jscomp$4$$)?($JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$,$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$=$APP.$cljs$tools$reader$reader_types$get_file_name$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$),$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$=
$JSCompiler_temp_const$jscomp$1588_coll$jscomp$821$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$208$file$$,$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$],null):null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$209$line$$,$_$jscomp$176_start_line$jscomp$4$$,
$APP.$cljs$cst$216$column$$,$start_column$jscomp$4_start_column__$1_vec__24747$$,$APP.$cljs$cst$217$end_line$$,$end_line$jscomp$4_pending_forms$jscomp$13$$,$APP.$cljs$cst$218$end_column$$,$end_column$jscomp$4_vec__24750$$],null)]))):$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$=null;return $APP.$cljs$core$with_meta$$($opts$jscomp$71_the_set$$,$JSCompiler_temp$jscomp$1587_rdr$jscomp$72_temp__5825__auto__$jscomp$inline_8037$$)};
$cljs$tools$reader$read_discard$$=function($rdr$jscomp$73$$,$_$jscomp$177$$,$opts$jscomp$72$$,$pending_forms$jscomp$14$$){$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$73$$,!0,null,$opts$jscomp$72$$,$pending_forms$jscomp$14$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$73$$,!0,null,$opts$jscomp$72$$,$pending_forms$jscomp$14$$);return $rdr$jscomp$73$$};
$cljs$tools$reader$read_symbolic_value$$=function($rdr$jscomp$74$$,$_$jscomp$178_sym$jscomp$17$$,$opts$jscomp$73$$,$pending_forms$jscomp$15$$){$_$jscomp$178_sym$jscomp$17$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$74$$,!0,null,$opts$jscomp$73$$,$pending_forms$jscomp$15$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$74$$,!0,null,$opts$jscomp$73$$,$pending_forms$jscomp$15$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$222$NaN$$,
$_$jscomp$178_sym$jscomp$17$$)?Number.NaN:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$223$_Inf$$,$_$jscomp$178_sym$jscomp$17$$)?Number.NEGATIVE_INFINITY:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$224$Inf$$,$_$jscomp$178_sym$jscomp$17$$)?Number.POSITIVE_INFINITY:$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$74$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([["Invalid token: ##",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$178_sym$jscomp$17$$)].join("")]))};
$cljs$tools$reader$read_suppress$$=function($first_line$jscomp$2$$,$rdr$jscomp$79$$,$opts$jscomp$75$$,$pending_forms$jscomp$16$$){var $_STAR_suppress_read_STAR__orig_val__24776$$=$cljs$tools$reader$_STAR_suppress_read_STAR_$$;$cljs$tools$reader$_STAR_suppress_read_STAR_$$=!0;try{var $form$jscomp$14$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$($rdr$jscomp$79$$,!1,$cljs$tools$reader$READ_EOF$$,")",$opts$jscomp$75$$,
$pending_forms$jscomp$16$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$79$$,!1,$cljs$tools$reader$READ_EOF$$,")",$opts$jscomp$75$$,$pending_forms$jscomp$16$$);$cljs$tools$reader$check_eof_error$$($form$jscomp$14$$,$rdr$jscomp$79$$,$first_line$jscomp$2$$);return $form$jscomp$14$$===$cljs$tools$reader$READ_FINISHED$$?$cljs$tools$reader$READ_FINISHED$$:null}finally{$cljs$tools$reader$_STAR_suppress_read_STAR_$$=$_STAR_suppress_read_STAR__orig_val__24776$$}};
$cljs$tools$reader$read_cond_delimited$$=function($rdr$jscomp$81$$,$elementsToAdd$jscomp$inline_12626_splicing$$,$opts$jscomp$77_result$jscomp$80$$,$pending_forms$jscomp$18$$){var $first_line$jscomp$4$$=$APP.$cljs$tools$reader$reader_types$indexing_reader_QMARK_$$($rdr$jscomp$81$$)?$APP.$cljs$tools$reader$reader_types$get_line_number$$($rdr$jscomp$81$$):-1;a:{for(var $G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=
$cljs$tools$reader$NO_MATCH$$,$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$=null;;)if($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$===$cljs$tools$reader$NO_MATCH$$){$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=
$first_line$jscomp$4$$;$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$=$rdr$jscomp$81$$;var $G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$=$opts$jscomp$77_result$jscomp$80$$,$pending_forms$jscomp$inline_12620$$=$pending_forms$jscomp$18$$,$feature$jscomp$inline_12621_feature$jscomp$inline_13846$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,
!1,$cljs$tools$reader$READ_EOF$$,")",$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,$pending_forms$jscomp$inline_12620$$):$cljs$tools$reader$read_STAR_$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,!1,$cljs$tools$reader$READ_EOF$$,")",$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,$pending_forms$jscomp$inline_12620$$);$cljs$tools$reader$check_eof_error$$($feature$jscomp$inline_12621_feature$jscomp$inline_13846$$,$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,
$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($feature$jscomp$inline_12621_feature$jscomp$inline_13846$$,$cljs$tools$reader$READ_FINISHED$$))$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=
$cljs$tools$reader$READ_FINISHED$$;else{var $rdr$jscomp$inline_13842_rdr$jscomp$inline_13845$$=$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,$form$jscomp$inline_13843_opts$jscomp$inline_13847$$=$feature$jscomp$inline_12621_feature$jscomp$inline_13846$$;$APP.$cljs$core$truth_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$tools$reader$RESERVED_FEATURES$$,$form$jscomp$inline_13843_opts$jscomp$inline_13847$$))&&$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$inline_13842_rdr$jscomp$inline_13845$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Feature name ",$form$jscomp$inline_13843_opts$jscomp$inline_13847$$," is reserved"]));$rdr$jscomp$inline_13842_rdr$jscomp$inline_13845$$=$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$;$form$jscomp$inline_13843_opts$jscomp$inline_13847$$=$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$;($feature$jscomp$inline_12621_feature$jscomp$inline_13846$$ instanceof $APP.$cljs$core$Keyword$$?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$205$default$$,$feature$jscomp$inline_12621_feature$jscomp$inline_13846$$)||$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$inline_13843_opts$jscomp$inline_13847$$,$APP.$cljs$cst$227$features$$),$feature$jscomp$inline_12621_feature$jscomp$inline_13846$$):$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$inline_13842_rdr$jscomp$inline_13845$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Feature should be a keyword: ",$feature$jscomp$inline_12621_feature$jscomp$inline_13846$$])))?($G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,!1,$cljs$tools$reader$READ_EOF$$,")",$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,
$pending_forms$jscomp$inline_12620$$):$cljs$tools$reader$read_STAR_$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,!1,$cljs$tools$reader$READ_EOF$$,")",$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,$pending_forms$jscomp$inline_12620$$),$cljs$tools$reader$check_eof_error$$($G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,
$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$),$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$===$cljs$tools$reader$READ_FINISHED$$&&($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$<0?$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["read-cond requires an even number of forms"])):$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["read-cond starting on line ",$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$,
" requires an even number of forms"]))),$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$):($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=$cljs$tools$reader$read_suppress$$($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$,
$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$,$G__24797$jscomp$inline_12622_opts$jscomp$inline_12619$$,$pending_forms$jscomp$inline_12620$$),$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$=$APP.$cljs$core$truth_$$($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$)?
$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$:$cljs$tools$reader$NO_MATCH$$)}if($G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$===$cljs$tools$reader$READ_FINISHED$$){$opts$jscomp$77_result$jscomp$80$$=$cljs$tools$reader$READ_FINISHED$$;
break a}$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$=null}else if($G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$!==$cljs$tools$reader$READ_FINISHED$$)$G__25011$jscomp$inline_8043_finished$jscomp$inline_8040_rdr$jscomp$inline_12618_rdr$jscomp$inline_13850$$=$cljs$tools$reader$read_suppress$$($first_line$jscomp$4$$,$rdr$jscomp$81$$,$opts$jscomp$77_result$jscomp$80$$,$pending_forms$jscomp$18$$);
else{$opts$jscomp$77_result$jscomp$80$$=$G__25010$jscomp$inline_8042_first_line$jscomp$inline_12617_first_line$jscomp$inline_13851_match$jscomp$inline_8041_matched$jscomp$inline_8039_or__5025__auto__$jscomp$inline_12623$$;break a}$opts$jscomp$77_result$jscomp$80$$=void 0}return $opts$jscomp$77_result$jscomp$80$$===$cljs$tools$reader$READ_FINISHED$$?$rdr$jscomp$81$$:$APP.$cljs$core$truth_$$($elementsToAdd$jscomp$inline_12626_splicing$$)?$opts$jscomp$77_result$jscomp$80$$!=null&&($opts$jscomp$77_result$jscomp$80$$.$cljs$lang$protocol_mask$partition0$$&
16777216||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$opts$jscomp$77_result$jscomp$80$$.$cljs$core$ISequential$$)?($elementsToAdd$jscomp$inline_12626_splicing$$=$APP.$cljs$core$to_array$$($opts$jscomp$77_result$jscomp$80$$),$APP.$goog$partial$$($module$contents$goog$array_splice$$,$pending_forms$jscomp$18$$,0,0).apply(null,$elementsToAdd$jscomp$inline_12626_splicing$$),$rdr$jscomp$81$$):$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$81$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Spliced form list in read-cond-splicing must implement ISequential"])):
$opts$jscomp$77_result$jscomp$80$$};
$cljs$tools$reader$read_cond$$=function($rdr$jscomp$82$$,$_$jscomp$179_splicing$jscomp$1$$,$opts$jscomp$78$$,$pending_forms$jscomp$19$$){if($APP.$cljs$core$not$$(function(){if($APP.$cljs$core$truth_$$($opts$jscomp$78$$)){var $G__24813$$=$APP.$cljs$cst$228$read_cond$$.$cljs$core$IFn$_invoke$arity$1$($opts$jscomp$78$$),$fexpr__24812$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$229$preserve$$,null,$APP.$cljs$cst$230$allow$$,null],null),
null);return $fexpr__24812$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__24812$$.$cljs$core$IFn$_invoke$arity$1$($G__24813$$):$fexpr__24812$$($G__24813$$)}return $opts$jscomp$78$$}()))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Conditional read not allowed",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$231$runtime_exception$$],null));var $ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$=$rdr$jscomp$82$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);
if($APP.$cljs$core$truth_$$($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$))if($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$=($_$jscomp$179_splicing$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$,"@"))?$rdr$jscomp$82$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null):$ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$,
$_$jscomp$179_splicing$jscomp$1$$&&($APP.$cljs$core$truth_$$($cljs$tools$reader$_STAR_read_delim_STAR_$$)||$APP.$cljs$tools$reader$impl$errors$reader_error$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($rdr$jscomp$82$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["cond-splice not in list"]))),$ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$=$APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$)?
$APP.$cljs$tools$reader$impl$commons$read_past$$($rdr$jscomp$82$$):$ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$,$APP.$cljs$core$truth_$$($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$)){if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$,"("))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("read-cond body must be a list",new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$231$runtime_exception$$],null));var $_STAR_suppress_read_STAR__orig_val__24817$$=$cljs$tools$reader$_STAR_suppress_read_STAR_$$;$cljs$tools$reader$_STAR_suppress_read_STAR_$$=function(){var $or__5025__auto__$jscomp$56$$=$cljs$tools$reader$_STAR_suppress_read_STAR_$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$56$$)?$or__5025__auto__$jscomp$56$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$229$preserve$$,$APP.$cljs$cst$228$read_cond$$.$cljs$core$IFn$_invoke$arity$1$($opts$jscomp$78$$))}();
try{return $APP.$cljs$core$truth_$$($cljs$tools$reader$_STAR_suppress_read_STAR_$$)?$cljs$tools$reader$impl$utils$reader_conditional$$($cljs$tools$reader$read_list$$($rdr$jscomp$82$$,$ch__$1$jscomp$4_temp__5823__auto__$jscomp$23_temp__5823__auto____$1$jscomp$3$$,$opts$jscomp$78$$,$pending_forms$jscomp$19$$),$_$jscomp$179_splicing$jscomp$1$$):$cljs$tools$reader$read_cond_delimited$$($rdr$jscomp$82$$,$_$jscomp$179_splicing$jscomp$1$$,$opts$jscomp$78$$,$pending_forms$jscomp$19$$)}finally{$cljs$tools$reader$_STAR_suppress_read_STAR_$$=
$_STAR_suppress_read_STAR__orig_val__24817$$}}else return $APP.$cljs$tools$reader$impl$errors$throw_eof_in_character$$($rdr$jscomp$82$$);else return $APP.$cljs$tools$reader$impl$errors$throw_eof_in_character$$($rdr$jscomp$82$$)};
$cljs$tools$reader$read_fn$$=function($i$jscomp$inline_13855_rdr$jscomp$83$$,$_$jscomp$180_arg_env_orig_val__24823$$,$G__25038$jscomp$inline_13857_opts$jscomp$79$$,$JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$){if($APP.$cljs$core$truth_$$($cljs$tools$reader$arg_env$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Nested #()s are not allowed",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$232$illegal_state$$],null));
$_$jscomp$180_arg_env_orig_val__24823$$=$cljs$tools$reader$arg_env$$;$cljs$tools$reader$arg_env$$=$cljs$core$sorted_map$$();try{$APP.$cljs$tools$reader$reader_types$unread$$($i$jscomp$inline_13855_rdr$jscomp$83$$,"(");var $form$jscomp$15$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($i$jscomp$inline_13855_rdr$jscomp$83$$,!0,null,$G__25038$jscomp$inline_13857_opts$jscomp$79$$,$JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$):
$cljs$tools$reader$read_STAR_$$($i$jscomp$inline_13855_rdr$jscomp$83$$,!0,null,$G__25038$jscomp$inline_13857_opts$jscomp$79$$,$JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$);var $JSCompiler_temp_const$jscomp$inline_13860_rargs$$=$APP.$cljs$core$_rseq$$($cljs$tools$reader$arg_env$$);if($JSCompiler_temp_const$jscomp$inline_13860_rargs$$){var $higharg$jscomp$inline_13853$$=$APP.$cljs$core$key$$($APP.$cljs$core$first$$($JSCompiler_temp_const$jscomp$inline_13860_rargs$$));a:{$i$jscomp$inline_13855_rdr$jscomp$83$$=
1;for(var $args$jscomp$inline_13856$$=$APP.$cljs$core$_as_transient$$($APP.$cljs$core$PersistentVector$EMPTY$$);;){if($i$jscomp$inline_13855_rdr$jscomp$83$$>$higharg$jscomp$inline_13853$$){var $args$jscomp$inline_13854$$=$APP.$cljs$core$_persistent_BANG_$$($args$jscomp$inline_13856$$);break a}$G__25038$jscomp$inline_13857_opts$jscomp$79$$=$i$jscomp$inline_13855_rdr$jscomp$83$$+1;$JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$=$APP.$cljs$core$conj_BANG_$$;var $JSCompiler_temp_const$jscomp$inline_13859$$=
$JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$.$cljs$core$IFn$_invoke$arity$2$;$JSCompiler_temp_const$jscomp$inline_13860_rargs$$=$args$jscomp$inline_13856$$;var $or__5025__auto__$jscomp$inline_13862$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cljs$tools$reader$arg_env$$,$i$jscomp$inline_13855_rdr$jscomp$83$$);var $JSCompiler_inline_result$jscomp$inline_13861$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_13862$$)?$or__5025__auto__$jscomp$inline_13862$$:
$cljs$tools$reader$garg$$($i$jscomp$inline_13855_rdr$jscomp$83$$);var $G__25039$jscomp$inline_13863$$=$JSCompiler_temp_const$jscomp$inline_13859$$.call($JSCompiler_temp_const$jscomp$inline_13858_pending_forms$jscomp$20$$,$JSCompiler_temp_const$jscomp$inline_13860_rargs$$,$JSCompiler_inline_result$jscomp$inline_13861$$);$i$jscomp$inline_13855_rdr$jscomp$83$$=$G__25038$jscomp$inline_13857_opts$jscomp$79$$;$args$jscomp$inline_13856$$=$G__25039$jscomp$inline_13863$$}$args$jscomp$inline_13854$$=void 0}var $JSCompiler_temp$jscomp$13412$$=
$APP.$cljs$core$truth_$$($cljs$tools$reader$arg_env$$.call(null,-1))?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$variadic$($args$jscomp$inline_13854$$,$APP.$cljs$cst$148$_AMPERSAND_$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$tools$reader$arg_env$$.call(null,-1)])):$args$jscomp$inline_13854$$}else $JSCompiler_temp$jscomp$13412$$=$APP.$cljs$core$PersistentVector$EMPTY$$;return new $APP.$cljs$core$List$$(null,$APP.$cljs$cst$162$fn_STAR_$$,new $APP.$cljs$core$List$$(null,
$JSCompiler_temp$jscomp$13412$$,new $APP.$cljs$core$List$$(null,$form$jscomp$15$$,null,1,null),2,null),3,null)}finally{$cljs$tools$reader$arg_env$$=$_$jscomp$180_arg_env_orig_val__24823$$}};
$cljs$tools$reader$read_arg$$=function($n$jscomp$176_rdr$jscomp$84$$,$ch$jscomp$37_pct$$,$opts$jscomp$80$$,$pending_forms$jscomp$21$$){if($cljs$tools$reader$arg_env$$==null)return $cljs$tools$reader$read_symbol$$($n$jscomp$176_rdr$jscomp$84$$,$ch$jscomp$37_pct$$);$ch$jscomp$37_pct$$=$n$jscomp$176_rdr$jscomp$84$$.$cljs$tools$reader$reader_types$Reader$peek_char$arity$1$(null);if($APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$37_pct$$)||$cljs$tools$reader$macro_terminating_QMARK_$$($ch$jscomp$37_pct$$)||
$ch$jscomp$37_pct$$==null)return $cljs$tools$reader$register_arg$$(1);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ch$jscomp$37_pct$$,"\x26"))return $n$jscomp$176_rdr$jscomp$84$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null),$cljs$tools$reader$register_arg$$(-1);$n$jscomp$176_rdr$jscomp$84$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($n$jscomp$176_rdr$jscomp$84$$,!0,null,$opts$jscomp$80$$,
$pending_forms$jscomp$21$$):$cljs$tools$reader$read_STAR_$$($n$jscomp$176_rdr$jscomp$84$$,!0,null,$opts$jscomp$80$$,$pending_forms$jscomp$21$$);if($APP.$cljs$core$integer_QMARK_$$($n$jscomp$176_rdr$jscomp$84$$))return $cljs$tools$reader$register_arg$$($n$jscomp$176_rdr$jscomp$84$$);throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("Arg literal must be %, %\x26 or %integer",new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$232$illegal_state$$],
null));};
$cljs$tools$reader$read_unquote$$=function($JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$,$JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$,$opts$jscomp$81$$,$pending_forms$jscomp$22$$){$JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$=$JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$.$cljs$tools$reader$reader_types$Reader$peek_char$arity$1$(null);$APP.$cljs$core$truth_$$($JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("@",
$JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$)?($JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$=$cljs$tools$reader$wrapping_reader$$($APP.$cljs$cst$233$clojure_DOT_core_SLASH_unquote_splicing$$),$JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null),$JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$=$JSCompiler_temp_const$jscomp$1597_comma_temp__5823__auto__$jscomp$25$$($JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$,
"@",$opts$jscomp$81$$,$pending_forms$jscomp$22$$)):$JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$=$cljs$tools$reader$wrapping_reader$$($APP.$cljs$cst$234$clojure_DOT_core_SLASH_unquote$$)($JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$,"~",$opts$jscomp$81$$,$pending_forms$jscomp$22$$):$JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$=null;return $JSCompiler_temp$jscomp$1595_JSCompiler_temp$jscomp$1596_rdr$jscomp$85$$};
$cljs$tools$reader$read_syntax_quote$$=function($rdr$jscomp$86$$,$backquote_gensym_env_orig_val__24863$$,$opts$jscomp$82$$,$pending_forms$jscomp$23$$){$backquote_gensym_env_orig_val__24863$$=$cljs$tools$reader$gensym_env$$;$cljs$tools$reader$gensym_env$$=$APP.$cljs$core$PersistentArrayMap$EMPTY$$;try{return $cljs$tools$reader$syntax_quote_STAR_$$($cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($rdr$jscomp$86$$,!0,
null,$opts$jscomp$82$$,$pending_forms$jscomp$23$$):$cljs$tools$reader$read_STAR_$$($rdr$jscomp$86$$,!0,null,$opts$jscomp$82$$,$pending_forms$jscomp$23$$))}finally{$cljs$tools$reader$gensym_env$$=$backquote_gensym_env_orig_val__24863$$}};
$cljs$tools$reader$read_namespaced_map$$=function($rdr$jscomp$87$$,$_$jscomp$181_start_line$jscomp$5$$,$end_line$jscomp$5_opts$jscomp$83$$,$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$){var $start_column$jscomp$5_vec__24865$$=$cljs$tools$reader$starting_line_col_info$$($rdr$jscomp$87$$);$_$jscomp$181_start_line$jscomp$5$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$5_vec__24865$$,0,null);$start_column$jscomp$5_vec__24865$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_column$jscomp$5_vec__24865$$,
1,null);var $token$jscomp$24$$=$cljs$tools$reader$read_token$$($rdr$jscomp$87$$,$APP.$cljs$cst$247$namespaced_map$$,$APP.$cljs$tools$reader$reader_types$read_char$$($rdr$jscomp$87$$)),$keys$jscomp$20_temp__5823__auto__$jscomp$26$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$24$$,":")?null.name:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(":",$APP.$cljs$core$first$$($token$jscomp$24$$))?function(){var $G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=
$token$jscomp$24$$==null?null:$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$24$$,1);$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$==null?null:$APP.$cljs$tools$reader$impl$commons$parse_symbol$$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);
$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$==null?null:$APP.$cljs$tools$reader$impl$utils$second_SINGLEQUOTE_$$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=
$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$==null?null:$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);if($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$==null)$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=
null;else{var $G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$(null,$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);if($APP.$cljs$core$truth_$$($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$))$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=
$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$;else{$cljs$core$NS_CACHE$$==null&&($cljs$core$NS_CACHE$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$));$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($cljs$core$NS_CACHE$$),$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);if($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$!=null)$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=
$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$;else{$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$);
var $G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$=$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$);for(var $sb$jscomp$inline_14074$$=new $APP.$goog$string$StringBuffer$$,$i_30438$jscomp$inline_14075$$=
0;;)if($i_30438$jscomp$inline_14075$$<$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$.length){var $c_30439$jscomp$inline_14076$$=$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$.charAt($i_30438$jscomp$inline_14075$$),$sub_30440$jscomp$inline_14077$$=$APP.$module$contents$goog$object_get$$($cljs$core$CHAR_MAP$$,
$c_30439$jscomp$inline_14076$$);$sub_30440$jscomp$inline_14077$$!=null?$sb$jscomp$inline_14074$$.append($sub_30440$jscomp$inline_14077$$):$sb$jscomp$inline_14074$$.append($c_30439$jscomp$inline_14076$$);$i_30438$jscomp$inline_14075$$+=1}else break;$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$=$sb$jscomp$inline_14074$$.toString();$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$=
$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$===".."?"_DOT__DOT_":$APP.$cljs$core$truth_$$($cljs$core$js_reserved_QMARK_$$($G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$))?[$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$,
"$"].join(""):$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$;c:{$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$ instanceof
$APP.$cljs$core$Symbol$$?$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$):$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$).split(".");for($G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$=
$APP.$goog$global$$;;){if($G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$==null){$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=null;break c}if($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$==
null){$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$;break c}$G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$=
$APP.$module$contents$goog$object_get$$($G__30479$jscomp$inline_14041_ctxt$jscomp$inline_14040_name$jscomp$inline_14073_name_SINGLEQUOTE_$jscomp$inline_14036_name_SINGLEQUOTE___$1$jscomp$inline_14037$$,$APP.$cljs$core$first$$($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$));$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=
$APP.$cljs$core$next$$($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$)}$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=void 0}$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$==
null?$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=null:($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$=new $cljs$core$Namespace$$($G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$,
$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($cljs$core$NS_CACHE$$,$APP.$cljs$core$assoc$$,$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$,$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$),
$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=$G__30480$jscomp$inline_14042_name$jscomp$inline_14035_new_ns$jscomp$inline_12642_ns_obj$jscomp$inline_12641_or__5025__auto__$jscomp$inline_8050_the_ns$jscomp$inline_12640_xs$jscomp$inline_14039$$)}$G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$=$APP.$cljs$core$truth_$$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$)?
$APP.$cljs$core$symbol$$.$cljs$core$IFn$_invoke$arity$1$($G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$.name):null}}return $G__24868__$1_G__24868__$2_G__24868__$3_G__24868__$4_JSCompiler_temp$jscomp$1497_temp__5825__auto__$jscomp$inline_8051$$}():function(){var $G__24870__$1$$=$token$jscomp$24$$==null?null:$APP.$cljs$tools$reader$impl$commons$parse_symbol$$($token$jscomp$24$$);return $G__24870__$1$$==null?null:$APP.$cljs$tools$reader$impl$utils$second_SINGLEQUOTE_$$($G__24870__$1$$)}();
if($APP.$cljs$core$truth_$$($keys$jscomp$20_temp__5823__auto__$jscomp$26$$)){if($APP.$cljs$tools$reader$impl$commons$read_past$$($rdr$jscomp$87$$)==="{"){$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$=$cljs$tools$reader$read_delimited$$($APP.$cljs$cst$247$namespaced_map$$,"}",$rdr$jscomp$87$$,$end_line$jscomp$5_opts$jscomp$83$$,$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$);var $end_column$jscomp$5_vec__24873$$=$cljs$tools$reader$ending_line_col_info$$($rdr$jscomp$87$$);$end_line$jscomp$5_opts$jscomp$83$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$5_vec__24873$$,0,null);$end_column$jscomp$5_vec__24873$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end_column$jscomp$5_vec__24873$$,1,null);$APP.$cljs$core$odd_QMARK_$$($APP.$cljs$core$count$$($items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$))&&$APP.$cljs$tools$reader$impl$errors$throw_odd_map$$($rdr$jscomp$87$$,null,null,$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$);$keys$jscomp$20_temp__5823__auto__$jscomp$26$$=
$APP.$cljs$tools$reader$impl$utils$namespace_keys$$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($keys$jscomp$20_temp__5823__auto__$jscomp$26$$),$APP.$cljs$core$take_nth$cljs$0core$0IFn$0_invoke$0arity$02$$(2,$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$));$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$=$APP.$cljs$core$take_nth$cljs$0core$0IFn$0_invoke$0arity$02$$(2,$APP.$cljs$core$rest$$($items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$));$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($APP.$cljs$core$set$$($keys$jscomp$20_temp__5823__auto__$jscomp$26$$)),
$APP.$cljs$core$count$$($keys$jscomp$20_temp__5823__auto__$jscomp$26$$))||$APP.$cljs$tools$reader$impl$errors$throw_dup_keys$$($rdr$jscomp$87$$,$APP.$cljs$cst$247$namespaced_map$$,$keys$jscomp$20_temp__5823__auto__$jscomp$26$$);return $APP.$cljs$core$with_meta$$($APP.$cljs$core$zipmap$$($keys$jscomp$20_temp__5823__auto__$jscomp$26$$,$items$jscomp$6_pending_forms$jscomp$24_vals$jscomp$8$$),$APP.$cljs$core$truth_$$($_$jscomp$181_start_line$jscomp$5$$)?$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([function(){var $temp__5825__auto__$jscomp$51$$=
$APP.$cljs$tools$reader$reader_types$get_file_name$$($rdr$jscomp$87$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$51$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$208$file$$,$temp__5825__auto__$jscomp$51$$],null):null}(),new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$209$line$$,$_$jscomp$181_start_line$jscomp$5$$,$APP.$cljs$cst$216$column$$,$start_column$jscomp$5_vec__24865$$,$APP.$cljs$cst$217$end_line$$,$end_line$jscomp$5_opts$jscomp$83$$,$APP.$cljs$cst$218$end_column$$,
$end_column$jscomp$5_vec__24873$$],null)])):null)}return $APP.$cljs$tools$reader$impl$errors$throw_ns_map_no_map$$($rdr$jscomp$87$$,$token$jscomp$24$$)}return $APP.$cljs$tools$reader$impl$errors$throw_bad_ns$$($rdr$jscomp$87$$,$token$jscomp$24$$)};
$cljs$tools$reader$macros$$=function($ch$jscomp$40$$){switch($ch$jscomp$40$$){case '"':return $cljs$tools$reader$read_string_STAR_$$;case ":":return $cljs$tools$reader$read_keyword$$;case ";":return $APP.$cljs$tools$reader$impl$commons$read_comment$$;case "'":return $cljs$tools$reader$wrapping_reader$$($APP.$cljs$cst$167$quote$$);case "@":return $cljs$tools$reader$wrapping_reader$$($APP.$cljs$cst$248$clojure_DOT_core_SLASH_deref$$);case "^":return $cljs$tools$reader$read_meta$$;case "`":return $cljs$tools$reader$read_syntax_quote$$;
case "~":return $cljs$tools$reader$read_unquote$$;case "(":return $cljs$tools$reader$read_list$$;case ")":return $cljs$tools$reader$read_unmatched_delimiter$$;case "[":return $cljs$tools$reader$read_vector$$;case "]":return $cljs$tools$reader$read_unmatched_delimiter$$;case "{":return $cljs$tools$reader$read_map$$;case "}":return $cljs$tools$reader$read_unmatched_delimiter$$;case "\\":return $cljs$tools$reader$read_char_STAR_$$;case "%":return $cljs$tools$reader$read_arg$$;case "#":return $cljs$tools$reader$read_dispatch$$;
default:return null}};
$cljs$tools$reader$dispatch_macros$$=function($ch$jscomp$41$$){switch($ch$jscomp$41$$){case "^":return $cljs$tools$reader$read_meta$$;case "'":return $cljs$tools$reader$wrapping_reader$$($APP.$cljs$cst$166$var$$);case "(":return $cljs$tools$reader$read_fn$$;case "{":return $cljs$tools$reader$read_set$$;case "\x3c":return $APP.$cljs$tools$reader$impl$commons$throwing_reader$$("Unreadable form");case "\x3d":return $APP.$cljs$tools$reader$impl$commons$throwing_reader$$("read-eval not supported");case '"':return $cljs$tools$reader$read_regex$$;
case "!":return $APP.$cljs$tools$reader$impl$commons$read_comment$$;case "_":return $cljs$tools$reader$read_discard$$;case "?":return $cljs$tools$reader$read_cond$$;case ":":return $cljs$tools$reader$read_namespaced_map$$;case "#":return $cljs$tools$reader$read_symbolic_value$$;default:return null}};
$cljs$tools$reader$read_tagged$$=function($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,$G__24888_initch$jscomp$6_tag$jscomp$18$$,$opts$jscomp$84$$,$pending_forms$jscomp$25$$){$G__24888_initch$jscomp$6_tag$jscomp$18$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$):$cljs$tools$reader$read_STAR_$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,
!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$);$G__24888_initch$jscomp$6_tag$jscomp$18$$ instanceof $APP.$cljs$core$Symbol$$||$APP.$cljs$tools$reader$impl$errors$throw_bad_reader_tag$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,$G__24888_initch$jscomp$6_tag$jscomp$18$$);if($APP.$cljs$core$truth_$$($cljs$tools$reader$_STAR_suppress_read_STAR_$$))return $G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,
!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$):$cljs$tools$reader$read_STAR_$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$),new $cljs$core$TaggedLiteral$$($G__24888_initch$jscomp$6_tag$jscomp$18$$,$G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$);var $f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$=$APP.$cljs$tools$reader$_STAR_data_readers_STAR_$$.call(null,$G__24888_initch$jscomp$6_tag$jscomp$18$$);
$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$=$APP.$cljs$core$truth_$$($f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$)?$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$:$APP.$cljs$tools$reader$default_data_readers$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$tools$reader$default_data_readers$$.$cljs$core$IFn$_invoke$arity$1$($G__24888_initch$jscomp$6_tag$jscomp$18$$):(0,$APP.$cljs$tools$reader$default_data_readers$$)($G__24888_initch$jscomp$6_tag$jscomp$18$$);
return $APP.$cljs$core$truth_$$($f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$)?($G__24888_initch$jscomp$6_tag$jscomp$18$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$):$cljs$tools$reader$read_STAR_$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,
$pending_forms$jscomp$25$$),$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$?$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$($G__24888_initch$jscomp$6_tag$jscomp$18$$):$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$($G__24888_initch$jscomp$6_tag$jscomp$18$$)):$APP.$cljs$core$truth_$$(null)?($f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$=
null,$G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$=$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$?$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$):$cljs$tools$reader$read_STAR_$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,!0,null,$opts$jscomp$84$$,$pending_forms$jscomp$25$$),$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$.$cljs$core$IFn$_invoke$arity$2$?
$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$.$cljs$core$IFn$_invoke$arity$2$($G__24888_initch$jscomp$6_tag$jscomp$18$$,$G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$):$f$jscomp$337_or__5025__auto__$jscomp$inline_8053_temp__5823__auto__$jscomp$27$$($G__24888_initch$jscomp$6_tag$jscomp$18$$,$G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$)):$APP.$cljs$tools$reader$impl$errors$throw_unknown_reader_tag$$($G__24890_form$jscomp$inline_12645_rdr$jscomp$88$$,$G__24888_initch$jscomp$6_tag$jscomp$18$$)};
$cljs$tools$reader$read_STAR_$$=function($var_args$jscomp$326$$){switch(arguments.length){case 5:return $cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]);case 6:return $cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));
}};$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$05$$=function($reader$jscomp$37$$,$eof_error_QMARK_$jscomp$1$$,$sentinel$jscomp$2$$,$opts$jscomp$86$$,$pending_forms$jscomp$27$$){return $cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$($reader$jscomp$37$$,$eof_error_QMARK_$jscomp$1$$,$sentinel$jscomp$2$$,null,$opts$jscomp$86$$,$pending_forms$jscomp$27$$)};
$cljs$tools$reader$read_STAR_$cljs$0core$0IFn$0_invoke$0arity$06$$=function($reader$jscomp$38$$,$e$jscomp$128_eof_error_QMARK_$jscomp$2$$,$d$jscomp$103_sentinel$jscomp$3$$,$return_on$jscomp$1$$,$opts$jscomp$87$$,$pending_forms$jscomp$28$$){try{a:{for(;;){if($pending_forms$jscomp$28$$.length==0){var $ch$jscomp$inline_12653$$=$reader$jscomp$38$$.$cljs$tools$reader$reader_types$Reader$read_char$arity$1$(null);if($APP.$cljs$tools$reader$impl$utils$whitespace_QMARK_$$($ch$jscomp$inline_12653$$))continue;
else{if($ch$jscomp$inline_12653$$==null){var $JSCompiler_inline_result$jscomp$10559$$=$e$jscomp$128_eof_error_QMARK_$jscomp$2$$?$APP.$cljs$tools$reader$impl$errors$throw_eof_error$$($reader$jscomp$38$$,null):$d$jscomp$103_sentinel$jscomp$3$$;break a}if($ch$jscomp$inline_12653$$===$return_on$jscomp$1$$){$JSCompiler_inline_result$jscomp$10559$$=$cljs$tools$reader$READ_FINISHED$$;break a}if($APP.$cljs$tools$reader$impl$utils$numeric_QMARK_$$($ch$jscomp$inline_12653$$)||("+"===$ch$jscomp$inline_12653$$||
"-"===$ch$jscomp$inline_12653$$)&&$APP.$cljs$tools$reader$impl$utils$numeric_QMARK_$$($reader$jscomp$38$$.$cljs$tools$reader$reader_types$Reader$peek_char$arity$1$(null))){$JSCompiler_inline_result$jscomp$10559$$=$cljs$tools$reader$read_number$$($reader$jscomp$38$$,$ch$jscomp$inline_12653$$);break a}var $f$jscomp$inline_12654$$=$cljs$tools$reader$macros$$($ch$jscomp$inline_12653$$);if($f$jscomp$inline_12654$$!=null){var $res$jscomp$inline_12655$$=$f$jscomp$inline_12654$$.$cljs$core$IFn$_invoke$arity$4$?
$f$jscomp$inline_12654$$.$cljs$core$IFn$_invoke$arity$4$($reader$jscomp$38$$,$ch$jscomp$inline_12653$$,$opts$jscomp$87$$,$pending_forms$jscomp$28$$):$f$jscomp$inline_12654$$($reader$jscomp$38$$,$ch$jscomp$inline_12653$$,$opts$jscomp$87$$,$pending_forms$jscomp$28$$);if($res$jscomp$inline_12655$$===$reader$jscomp$38$$)continue;else{$JSCompiler_inline_result$jscomp$10559$$=$res$jscomp$inline_12655$$;break a}}else{$JSCompiler_inline_result$jscomp$10559$$=$cljs$tools$reader$read_symbol$$($reader$jscomp$38$$,
$ch$jscomp$inline_12653$$);break a}}}else{var $form$jscomp$inline_12656$$=$pending_forms$jscomp$28$$[0];Array.prototype.splice.call($pending_forms$jscomp$28$$,0,1);$JSCompiler_inline_result$jscomp$10559$$=$form$jscomp$inline_12656$$;break a}break}$JSCompiler_inline_result$jscomp$10559$$=void 0}return $JSCompiler_inline_result$jscomp$10559$$}catch($e24900$$){if($e24900$$ instanceof Error){$e$jscomp$128_eof_error_QMARK_$jscomp$2$$=$e24900$$;if($e$jscomp$128_eof_error_QMARK_$jscomp$2$$ instanceof $APP.$cljs$core$ExceptionInfo$$){$d$jscomp$103_sentinel$jscomp$3$$=
$APP.$cljs$core$ex_data$$($e$jscomp$128_eof_error_QMARK_$jscomp$2$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$206$reader_exception$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($d$jscomp$103_sentinel$jscomp$3$$)))throw $e$jscomp$128_eof_error_QMARK_$jscomp$2$$;throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$128_eof_error_QMARK_$jscomp$2$$.message,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$206$reader_exception$$],null),$d$jscomp$103_sentinel$jscomp$3$$,$APP.$cljs$tools$reader$reader_types$indexing_reader_QMARK_$$($reader$jscomp$38$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$209$line$$,$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1$(null),$APP.$cljs$cst$216$column$$,$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1$(null),$APP.$cljs$cst$208$file$$,
$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1$(null)],null):null])),$e$jscomp$128_eof_error_QMARK_$jscomp$2$$);}throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$128_eof_error_QMARK_$jscomp$2$$.message,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$206$reader_exception$$],
null),$APP.$cljs$tools$reader$reader_types$indexing_reader_QMARK_$$($reader$jscomp$38$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$209$line$$,$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_line_number$arity$1$(null),$APP.$cljs$cst$216$column$$,$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_column_number$arity$1$(null),$APP.$cljs$cst$208$file$$,$reader$jscomp$38$$.$cljs$tools$reader$reader_types$IndexingReader$get_file_name$arity$1$(null)],
null):null])),$e$jscomp$128_eof_error_QMARK_$jscomp$2$$);}throw $e24900$$;}};
$app$main$data$workspace$libraries$go_to_component_file$$=function($file_id$jscomp$141$$,$component$jscomp$78$$,$update_layout_QMARK_$$){typeof $app$main$data$workspace$libraries$nav_to_component_file_68132$$==="undefined"&&($app$main$data$workspace$libraries$nav_to_component_file_68132$$=function($file_id$jscomp$142$$,$component$jscomp$79$$,$update_layout_QMARK_$jscomp$1$$,$meta68133$$){this.$file_id$=$file_id$jscomp$142$$;this.component=$component$jscomp$79$$;this.$update_layout_QMARK_$=$update_layout_QMARK_$jscomp$1$$;
this.$meta68133$=$meta68133$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3777$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_nav_to_component_file$$},$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68134$$,$meta68133__$1$$){return new $app$main$data$workspace$libraries$nav_to_component_file_68132$$(this.$file_id$,this.component,this.$update_layout_QMARK_$,$meta68133__$1$$)},$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68133$},$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$nav_to_component_file_68132$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2020_params$jscomp$272$$,$state$jscomp$459$$){$_$jscomp$2020_params$jscomp$272$$=$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.$app$main$router$get_params$$($state$jscomp$459$$),$APP.$cljs$cst$1628$file_id$$,this.$file_id$),$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$(this.component)),
$APP.$cljs$cst$1611$component_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.component)),$APP.$cljs$cst$3778$update_layout$$,this.$update_layout_QMARK_$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$2489$workspace$$,$_$jscomp$2020_params$jscomp$272$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2413$app_DOT_main_DOT_router_SLASH_new_window$$,!0])))});return new $app$main$data$workspace$libraries$nav_to_component_file_68132$$($file_id$jscomp$141$$,
$component$jscomp$78$$,$update_layout_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$comments$handle_interrupt$$=function(){typeof $app$main$data$workspace$comments$handle_interrupt_68549$$==="undefined"&&($app$main$data$workspace$comments$handle_interrupt_68549$$=function($meta68550$$){this.$meta68550$=$meta68550$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4158$app_DOT_main_DOT_data_DOT_workspace_DOT_comments_SLASH_handle_interrupt$$},$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68551$$,$meta68550__$1$$){return new $app$main$data$workspace$comments$handle_interrupt_68549$$($meta68550__$1$$)},$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68550$},$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$handle_interrupt_68549$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2296_local$jscomp$7$$,$state$jscomp$688$$){$_$jscomp$2296_local$jscomp$7$$=$APP.$cljs$cst$2195$comments_local$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$688$$);return $APP.$cljs$core$truth_$$($APP.$cljs$cst$3312$draft$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2296_local$jscomp$7$$))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$comments$close_thread$$()):
$APP.$cljs$core$truth_$$($APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2296_local$jscomp$7$$))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$comments$close_thread$$()):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$edition$clear_edition_mode$$(),$APP.$app$main$data$workspace$selection$deselect_all$cljs$0core$0IFn$0_invoke$0arity$01$$(!0))});return new $app$main$data$workspace$comments$handle_interrupt_68549$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$comments$initialize_comments$$=function($file_id$jscomp$201$$){typeof $app$main$data$workspace$comments$initialize_comments_68528$$==="undefined"&&($app$main$data$workspace$comments$initialize_comments_68528$$=function($file_id$jscomp$202$$,$meta68529$$){this.$file_id$=$file_id$jscomp$202$$;this.$meta68529$=$meta68529$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4156$app_DOT_main_DOT_data_DOT_workspace_DOT_comments_SLASH_initialize_comments$$},$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68530$$,$meta68529__$1$$){return new $app$main$data$workspace$comments$initialize_comments_68528$$(this.$file_id$,$meta68529__$1$$)},
$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68529$},$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$comments$initialize_comments_68528$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2295_stopper_s$jscomp$3$$,$___$1$jscomp$1551$$,$stream$jscomp$79$$){$_$jscomp$2295_stopper_s$jscomp$3$$=
$APP.$beicon$v2$core$filter$$(function($p1__68522_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4157$app_DOT_main_DOT_data_DOT_workspace_DOT_comments_SLASH_finalize$$,$p1__68522_SHARP_$$)},$stream$jscomp$79$$);return $APP.$beicon$v2$core$take_until$$($_$jscomp$2295_stopper_s$jscomp$3$$,$APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$comments$retrieve_comment_threads$$(this.$file_id$)),$APP.$beicon$v2$core$map$$($app$main$data$workspace$comments$handle_comment_layer_click$$,
$APP.$beicon$v2$core$map$$($APP.$cljs$core$first$$,$APP.$beicon$v2$core$filter$$(function($p__68539_space$jscomp$2$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__68539_space$jscomp$2$$,0,null);$p__68539_space$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__68539_space$jscomp$2$$,1,null);return $APP.$cljs$core$not$$($p__68539_space$jscomp$2$$)},$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$sub$jscomp$inline_6251$$,$APP.$beicon$v2$core$switch_map$$(function(){return $APP.$beicon$v2$core$take$$($APP.$app$main$streams$mouse_position$$)},
$APP.$beicon$v2$core$filter$$($app$util$mouse$mouse_click_event_QMARK_$$,$APP.$beicon$v2$core$filter$$($APP.$app$util$mouse$mouse_event_QMARK_$$,$stream$jscomp$79$$))))))),$APP.$beicon$v2$core$map$$($app$main$data$workspace$comments$handle_interrupt$$,$APP.$beicon$v2$core$filter$$($APP.$app$main$data$workspace$common$interrupt_QMARK_$$,$stream$jscomp$79$$))))});return new $app$main$data$workspace$comments$initialize_comments_68528$$($file_id$jscomp$201$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$selection$deselect_all$$=function($var_args$jscomp$1194$$){switch(arguments.length){case 0:return $APP.$app$main$data$workspace$selection$deselect_all$cljs$0core$0IFn$0_invoke$0arity$00$$();case 1:return $APP.$app$main$data$workspace$selection$deselect_all$cljs$0core$0IFn$0_invoke$0arity$01$$(arguments[0]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};
$app$main$data$workspace$show_component_in_assets$$=function($component_id$jscomp$85$$){typeof $app$main$data$workspace$show_component_in_assets_70389$$==="undefined"&&($app$main$data$workspace$show_component_in_assets_70389$$=function($component_id$jscomp$86$$,$meta70390$$){this.$component_id$=$component_id$jscomp$86$$;this.$meta70390$=$meta70390$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4347$app_DOT_main_DOT_data_DOT_workspace_SLASH_show_component_in_assets$$},$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70391$$,$meta70390__$1$$){return new $app$main$data$workspace$show_component_in_assets_70389$$(this.$component_id$,$meta70390__$1$$)},
$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70390$},$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$,$cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$){var $file_id$jscomp$273$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$);$_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$,$file_id$jscomp$273$$);$_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$=$app$common$files$variant$get_primary_component$$($_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$,this.$component_id$);
$cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$=$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$);var $cpath__$1$jscomp$1$$=$APP.$app$common$path_names$split_path$$($cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$);$cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($i$jscomp$509$$){return $APP.$app$common$path_names$join_path$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($i$jscomp$509$$+
1,$cpath__$1$jscomp$1$$))},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$count$$($cpath__$1$jscomp$1$$)));return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$from$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__70388_SHARP_$$){return $app$main$data$workspace$set_assets_group_open$$($file_id$jscomp$273$$,$APP.$cljs$cst$1622$components$$,$p1__70388_SHARP_$$,!0)},$cpath$jscomp$4_paths$jscomp$2_state$jscomp$836$$)),(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$1599$layout$$,
$APP.$cljs$cst$3588$assets$$])),$app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$273$$,$APP.$cljs$cst$3405$library$$,!0),$app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$273$$,$APP.$cljs$cst$1622$components$$,!0),$app$main$data$workspace$select_single_asset$$($file_id$jscomp$273$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2482_component$jscomp$91_fdata$jscomp$18$$),$APP.$cljs$cst$1622$components$$)))},$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$EffectEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$show_component_in_assets_70389$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2483_file_id$jscomp$274$$,$component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$){$_$jscomp$2483_file_id$jscomp$274$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$);$component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$,
$_$jscomp$2483_file_id$jscomp$274$$);$component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$=$app$common$files$variant$get_primary_component$$($component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$,this.$component_id$);var $wrapper_id$$=["component-shape-id-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$92_fdata$jscomp$19_state$jscomp$837$$))].join("");return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $element$jscomp$inline_8055$$=
$APP.$goog$dom$getElement$$($wrapper_id$$);return $APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($element$jscomp$inline_8055$$,!1)})});return new $app$main$data$workspace$show_component_in_assets_70389$$($component_id$jscomp$85$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$go_to_feedback$$=function(){typeof $app$main$data$common$go_to_feedback_52229$$==="undefined"&&($app$main$data$common$go_to_feedback_52229$$=function($meta52230$$){this.$meta52230$=$meta52230$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$go_to_feedback_52229$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$go_to_feedback_52229$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2465$app_DOT_main_DOT_data_DOT_common_SLASH_go_to_feedback$$},$app$main$data$common$go_to_feedback_52229$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52231$$,$meta52230__$1$$){return new $app$main$data$common$go_to_feedback_52229$$($meta52230__$1$$)},$app$main$data$common$go_to_feedback_52229$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52230$},$app$main$data$common$go_to_feedback_52229$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$go_to_feedback_52229$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$router$nav$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$2466$settings_feedback$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2413$app_DOT_main_DOT_router_SLASH_new_window$$,!0,$APP.$cljs$cst$2415$app_DOT_main_DOT_router_SLASH_window_name$$,
"penpot-feedback"])))});return new $app$main$data$common$go_to_feedback_52229$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$rasterizer$render_node$$=function($data$jscomp$315_node$jscomp$303_p__66096$$){var $map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$=$APP.$cljs$core$__destructure_map$$($data$jscomp$315_node$jscomp$303_p__66096$$);$data$jscomp$315_node$jscomp$303_p__66096$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$,$APP.$cljs$cst$3636$node$$);var $styles$jscomp$12_styles__$1$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$,
$APP.$cljs$cst$2899$styles$$),$width$jscomp$126_width__$1$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$,$APP.$cljs$cst$288$width$$);$map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$,$APP.$cljs$cst$826$result$$);$width$jscomp$126_width__$1$jscomp$2$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($width$jscomp$126_width__$1$jscomp$2$$,
$APP.$app$util$dom$get_attribute$$($data$jscomp$315_node$jscomp$303_p__66096$$,"width"));$styles$jscomp$12_styles__$1$jscomp$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($styles$jscomp$12_styles__$1$jscomp$1$$,"");$data$jscomp$315_node$jscomp$303_p__66096$$=$data$jscomp$315_node$jscomp$303_p__66096$$!=null?(new XMLSerializer).serializeToString($data$jscomp$315_node$jscomp$303_p__66096$$):null;$map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$,
"blob");return $APP.$app$main$rasterizer$render$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$142$data$$,$data$jscomp$315_node$jscomp$303_p__66096$$,$APP.$cljs$cst$2899$styles$$,$styles$jscomp$12_styles__$1$jscomp$1$$,$APP.$cljs$cst$288$width$$,$width$jscomp$126_width__$1$jscomp$2$$,$APP.$cljs$cst$826$result$$,$map__66097__$1_result$jscomp$271_result__$1$jscomp$34$$],null))};
$app$util$text_editor$setup_block_styles$$=function($state$jscomp$498$$,$blocks$$,$attrs$jscomp$104$$){return $APP.$cljs$core$empty_QMARK_$$($blocks$$)?$state$jscomp$498$$:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($state__$1$jscomp$23$$,$block_key$jscomp$1$$){return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.updateBlockData($state__$1$jscomp$23$$,$block_key$jscomp$1$$,$APP.$cljs$core$clj__GT_js$$($attrs$jscomp$104$$))},$state$jscomp$498$$,$blocks$$)};
$app$common$types$fills$prepend$$=function($fills$jscomp$8_fills__$1$jscomp$2$$,$fill$jscomp$7$$){$fills$jscomp$8_fills__$1$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$fill$jscomp$7$$],null),$fills$jscomp$8_fills__$1$jscomp$2$$);return $APP.$cljs$core$contains_QMARK_$$($APP.$app$common$flags$_STAR_current_STAR_$$,$APP.$cljs$cst$1739$frontend_binary_fills$$)?$APP.$app$common$types$fills$impl$from_plain$$($fills$jscomp$8_fills__$1$jscomp$2$$):
$fills$jscomp$8_fills__$1$jscomp$2$$};
$app$main$data$workspace$media$create_shapes_svg$$=function($file_id$jscomp$101$$,$objects$jscomp$377$$,$pos$jscomp$103$$,$svg_data$jscomp$20$$){return $APP.$beicon$v2$core$map$$(function($children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$){$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$=$app$common$files$shapes_builder$create_svg_shapes$cljs$0core$0IFn$0_invoke$0arity$07$$($children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$,$pos$jscomp$103$$,
$objects$jscomp$377$$);var $root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$,0,null);$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$,1,null);var $frame_shape$jscomp$2$$=
$APP.$app$common$types$shape$setup_shape$$($APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1618$fills$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$103$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$),
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$)),$APP.$cljs$cst$1590$frame$$,$APP.$app$common$uuid$zero$$,$APP.$app$common$uuid$zero$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$103$$),$APP.$app$common$types$fills$create$$(),$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$))])),
$root_svg_shape__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame_shape$jscomp$2$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame_shape$jscomp$2$$)]));$root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__66629_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__66629_SHARP_$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($root_svg_shape__$1$$))},$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$));$root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($root_svg_shape__$1$$,
$APP.$cljs$cst$1598$shapes$$,$root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$);$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__66630_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__66630_SHARP_$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame_shape$jscomp$2$$))},$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$);
$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$=$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$root_svg_shape_root_svg_shape__$2_shapes$jscomp$63$$],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$]));return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_shape$jscomp$2$$,$children$jscomp$225_children__$1$jscomp$26_children__$2_svg_data__$1$jscomp$2_vec__66636$$],null)},function($svg_data__$1$jscomp$1$$){return $APP.$beicon$v2$core$map$$(function($p1__66622_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($svg_data__$1$jscomp$1$$,$APP.$cljs$cst$3545$image_data$$,$p1__66622_SHARP_$$)},$APP.$app$main$data$workspace$svg_upload$upload_images$$($svg_data__$1$jscomp$1$$,$file_id$jscomp$101$$))}($svg_data$jscomp$20$$))};
$app$main$data$workspace$bool$group__GT_bool$$=function($type$jscomp$456$$,$group$jscomp$30$$,$objects$jscomp$367$$){var $head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$367$$),$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($group$jscomp$30$$));$head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$456$$,$APP.$cljs$cst$2010$difference$$)?
$APP.$cljs$core$first$$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$):$APP.$cljs$core$last$$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$);$head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$=$APP.$cljs$core$contains_QMARK_$$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$,$APP.$cljs$cst$1874$svg_attrs$$)&&$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$,
$APP.$cljs$cst$1618$fills$$,$APP.$app$common$types$path$bool$get_default_fills$$()):$head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$;return $APP.$app$common$types$path$update_bool_shape$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($group$jscomp$30$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1594$bool$$),
$APP.$cljs$cst$1872$bool_type$$,$type$jscomp$456$$),$APP.$cljs$core$select_keys$$($head$jscomp$18_head__$1$jscomp$3_shapes$jscomp$61$$,$APP.$app$common$types$path$bool$style_properties$$)])),$objects$jscomp$367$$)};
$app$util$text_editor$insert_text$$=function($state$jscomp$500$$,$text$jscomp$45$$,$attrs$jscomp$106$$){var $style$jscomp$41$$=$APP.$app$common$text$attrs_to_styles$$($attrs$jscomp$106$$);return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.insertText($state$jscomp$500$$,$text$jscomp$45$$,$APP.$cljs$core$clj__GT_js$$($attrs$jscomp$106$$),$APP.$cljs$core$clj__GT_js$$($style$jscomp$41$$))};
$app$util$text_editor$apply_block_styles_to_content$$=function($$__$1$jscomp$20_state$jscomp$499$$,$blocks$jscomp$1$$){if($APP.$cljs$core$empty_QMARK_$$($blocks$jscomp$1$$))return $$__$1$jscomp$20_state$jscomp$499$$;var $selection$jscomp$7$$=$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.getSelection($$__$1$jscomp$20_state$jscomp$499$$);$$__$1$jscomp$20_state$jscomp$499$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($state__$1$jscomp$24$$,$bkey$$){var $attrs$jscomp$105$$=
$APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.getBlockData($state__$1$jscomp$24$$,$bkey$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,!0]));return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.applyInlineStyle($APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.selectBlock($state__$1$jscomp$24$$,$bkey$$),$APP.$app$common$text$attrs_to_styles$$($attrs$jscomp$105$$))},
$$__$1$jscomp$20_state$jscomp$499$$,$blocks$jscomp$1$$);return $APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.setSelection($$__$1$jscomp$20_state$jscomp$499$$,$selection$jscomp$7$$)};
$app$util$worker$ask_buffered_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$=function($message$jscomp$70_message$jscomp$inline_8060$$,$transfer$jscomp$8$$){var $worker$jscomp$9$$=$APP.$app$main$worker$instance$$;$message$jscomp$70_message$jscomp$inline_8060$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2968$sender_id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$cst$2970$payload$$,$message$jscomp$70_message$jscomp$inline_8060$$,$APP.$cljs$cst$2971$buffer_QMARK_$$,!0,$APP.$cljs$cst$2981$transfer$$,
$transfer$jscomp$8$$],null);return $APP.$app$util$worker$send_message_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($worker$jscomp$9$$,$message$jscomp$70_message$jscomp$inline_8060$$,null)};
$app$main$snap$get_snap_points$$=function($page_id$jscomp$151$$,$frame_id$jscomp$77$$,$remove_snap_QMARK_$jscomp$1$$,$zoom$jscomp$11$$,$point$jscomp$57_value$jscomp$550$$,$coord$jscomp$7$$){$point$jscomp$57_value$jscomp$550$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point$jscomp$57_value$jscomp$550$$,$coord$jscomp$7$$);var $vbox$jscomp$15$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$vbox$$);return $APP.$beicon$v2$core$map$$($APP.$app$main$snap$remove_from_snap_points$$($remove_snap_QMARK_$jscomp$1$$),
$APP.$beicon$v2$core$take$$($APP.$app$main$worker$ask_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$2972$cmd$$,$APP.$cljs$cst$3695$index_SLASH_query_snap$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$151$$,$APP.$cljs$cst$1591$frame_id$$,$frame_id$jscomp$77$$,$APP.$cljs$cst$2039$axis$$,$coord$jscomp$7$$,$APP.$cljs$cst$3696$bounds$$,$vbox$jscomp$15$$,$APP.$cljs$cst$3697$ranges$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$point$jscomp$57_value$jscomp$550$$-.5/$zoom$jscomp$11$$,$point$jscomp$57_value$jscomp$550$$+.5/$zoom$jscomp$11$$],null)],null)],null))))};
$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$=function($initial_set$jscomp$2$$,$remove_QMARK_$jscomp$6$$,$ignore_groups_QMARK_$jscomp$3$$,$buffered_QMARK_$$){typeof $app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$==="undefined"&&($app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$=function($initial_set$jscomp$3$$,$remove_QMARK_$jscomp$7$$,$ignore_groups_QMARK_$jscomp$4$$,$buffered_QMARK_$jscomp$1$$,
$meta66025$$){this.$initial_set$=$initial_set$jscomp$3$$;this.$remove_QMARK_$=$remove_QMARK_$jscomp$7$$;this.$ignore_groups_QMARK_$=$ignore_groups_QMARK_$jscomp$4$$;this.$buffered_QMARK_$=$buffered_QMARK_$jscomp$1$$;this.$meta66025$=$meta66025$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3494$app_DOT_main_DOT_data_DOT_workspace_DOT_selection_SLASH_select_shapes_by_current_selrect$$},$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66026$$,$meta66025__$1$$){return new $app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$(this.$initial_set$,this.$remove_QMARK_$,this.$ignore_groups_QMARK_$,this.$buffered_QMARK_$,$meta66025__$1$$)},$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta66025$},$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1856$$,$state$jscomp$328$$){var $self__$jscomp$4142$$=this,$page_id$jscomp$107$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$328$$),
$objects$jscomp$345$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$328$$,$page_id$jscomp$107$$),$selrect$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$328$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1589$selrect$$),$ask_worker$$=$APP.$cljs$core$truth_$$($self__$jscomp$4142$$.$buffered_QMARK_$)?$app$main$worker$ask_buffered_BANG_$$:$APP.$app$main$worker$ask_BANG_$$,
$filter_objs$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$complement$$(function($id$jscomp$485$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$345$$,$id$jscomp$485$$),$APP.$cljs$cst$1607$blocked$$,!1)})),$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$common$files$helpers$hidden_parent_QMARK_$$,
$objects$jscomp$345$$)));return $selrect$jscomp$47$$!=null?$APP.$beicon$v2$core$map$$($APP.$app$main$data$workspace$selection$select_shapes$$,$APP.$beicon$v2$core$map$$($APP.$cljs$core$truth_$$($self__$jscomp$4142$$.$remove_QMARK_$)?function($p1__66020_SHARP_$$){return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$disj$$,$self__$jscomp$4142$$.$initial_set$,$p1__66020_SHARP_$$)}:function($p1__66021_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($self__$jscomp$4142$$.$initial_set$,
$filter_objs$$,$p1__66021_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($p1__66019_SHARP_$$){return $APP.$app$common$files$helpers$clean_loops$$($objects$jscomp$345$$,$p1__66019_SHARP_$$)},$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,function(){var $G__66033$$=new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$2972$cmd$$,$APP.$cljs$cst$3495$index_SLASH_query_selection$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$107$$,$APP.$cljs$cst$1595$rect$$,$selrect$jscomp$47$$,
$APP.$cljs$cst$3496$include_frames_QMARK_$$,!0,$APP.$cljs$cst$3497$ignore_groups_QMARK_$$,$self__$jscomp$4142$$.$ignore_groups_QMARK_$,$APP.$cljs$cst$3498$full_frame_QMARK_$$,!0,$APP.$cljs$cst$3499$using_selrect_QMARK_$$,!0],null);return $ask_worker$$.$cljs$core$IFn$_invoke$arity$1$?$ask_worker$$.$cljs$core$IFn$_invoke$arity$1$($G__66033$$):$ask_worker$$($G__66033$$)}())))):$APP.$beicon$v2$core$empty$$()});return new $app$main$data$workspace$selection$select_shapes_by_current_selrect_66024$$($initial_set$jscomp$2$$,
$remove_QMARK_$jscomp$6$$,$ignore_groups_QMARK_$jscomp$3$$,$buffered_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$03$$=function($initial_set$jscomp$1$$,$remove_QMARK_$jscomp$5$$,$ignore_groups_QMARK_$jscomp$2$$){return $app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$($initial_set$jscomp$1$$,$remove_QMARK_$jscomp$5$$,$ignore_groups_QMARK_$jscomp$2$$,!0)};
$app$main$data$workspace$selection$select_shapes_by_current_selrect$$=function($var_args$jscomp$1195$$){switch(arguments.length){case 3:return $app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$03$$(arguments[0],arguments[1],arguments[2]);case 4:return $app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$(arguments[0],arguments[1],arguments[2],arguments[3]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));
}};
$app$main$data$workspace$selection$handle_area_selection$$=function($append_QMARK_$$,$remove_QMARK_$jscomp$3$$,$ignore_groups_QMARK_$$){typeof $app$main$data$workspace$selection$handle_area_selection_65939$$==="undefined"&&($app$main$data$workspace$selection$handle_area_selection_65939$$=function($append_QMARK_$jscomp$1$$,$remove_QMARK_$jscomp$4$$,$ignore_groups_QMARK_$jscomp$1$$,$meta65940$$){this.$append_QMARK_$=$append_QMARK_$jscomp$1$$;this.$remove_QMARK_$=$remove_QMARK_$jscomp$4$$;this.$ignore_groups_QMARK_$=$ignore_groups_QMARK_$jscomp$1$$;
this.$meta65940$=$meta65940$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3480$app_DOT_main_DOT_data_DOT_workspace_DOT_selection_SLASH_handle_area_selection$$},$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_65941$$,$meta65940__$1$$){return new $app$main$data$workspace$selection$handle_area_selection_65939$$(this.$append_QMARK_$,this.$remove_QMARK_$,this.$ignore_groups_QMARK_$,$meta65940__$1$$)},$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta65940$},$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$selection$handle_area_selection_65939$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$1842_stopper$jscomp$6$$,$init_selrect_selrect_stream_state$jscomp$316$$,$init_position_stream$jscomp$35$$){var $self__$jscomp$4101$$=this,$zoom$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($init_selrect_selrect_stream_state$jscomp$316$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2158$zoom$$,1);$_$jscomp$1842_stopper$jscomp$6$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($init_position_stream$jscomp$35$$,
null);$init_position_stream$jscomp$35$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);var $initial_set$$=$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$671$$=$self__$jscomp$4101$$.$append_QMARK_$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$671$$)?$or__5025__auto__$jscomp$671$$:$self__$jscomp$4101$$.$remove_QMARK_$}())?$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($init_selrect_selrect_stream_state$jscomp$316$$):
$APP.$linked$set$empty_linked_set$$;$init_selrect_selrect_stream_state$jscomp$316$$=$APP.$app$common$geom$rect$make_rect$$.$cljs$core$IFn$_invoke$arity$4$($init_position_stream$jscomp$35$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($init_position_stream$jscomp$35$$,$APP.$cljs$cst$1499$x$$),$init_position_stream$jscomp$35$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($init_position_stream$jscomp$35$$,$APP.$cljs$cst$1500$y$$),0,0);$init_selrect_selrect_stream_state$jscomp$316$$=
$APP.$beicon$v2$core$take_until$$($_$jscomp$1842_stopper$jscomp$6$$,$APP.$beicon$v2$core$filter$$(function($p1__65938_SHARP_$$){return($p1__65938_SHARP_$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__65938_SHARP_$$,$APP.$cljs$cst$288$width$$))>10/$zoom$jscomp$10$$||($p1__65938_SHARP_$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__65938_SHARP_$$,$APP.$cljs$cst$1511$height$$))>10/$zoom$jscomp$10$$},$APP.$beicon$v2$core$scan$cljs$0core$0IFn$0_invoke$0arity$03$$(function($selrect$jscomp$46_selrect__$1$jscomp$2$$,
$p__65945_space_QMARK_$$){var $delta$jscomp$34_selrect__$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65945_space_QMARK_$$,0,null);$p__65945_space_QMARK_$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65945_space_QMARK_$$,1,null);$selrect$jscomp$46_selrect__$1$jscomp$2$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($selrect$jscomp$46_selrect__$1$jscomp$2$$,$APP.$cljs$cst$1514$x2$$,$APP.$cljs$core$_PLUS_$$,
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$34_selrect__$2$$)),$APP.$cljs$cst$1515$y2$$,$APP.$cljs$core$_PLUS_$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$34_selrect__$2$$));$delta$jscomp$34_selrect__$2$$=$p__65945_space_QMARK_$$?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($selrect$jscomp$46_selrect__$1$jscomp$2$$,$APP.$cljs$cst$1512$x1$$,$APP.$cljs$core$_PLUS_$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$34_selrect__$2$$)),
$APP.$cljs$cst$1513$y1$$,$APP.$cljs$core$_PLUS_$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($delta$jscomp$34_selrect__$2$$)):$selrect$jscomp$46_selrect__$1$jscomp$2$$;return $APP.$app$common$geom$rect$update_rect$$($delta$jscomp$34_selrect__$2$$,$APP.$cljs$cst$3481$corners$$)},$init_selrect_selrect_stream_state$jscomp$316$$,$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$sub$jscomp$inline_6251$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,
$APP.$beicon$v2$core$map$$(function($p__65952_to$jscomp$22$$){var $from$jscomp$20$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65952_to$jscomp$22$$,0,null);$p__65952_to$jscomp$22$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65952_to$jscomp$22$$,1,null);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($from$jscomp$20$$)?$p__65952_to$jscomp$22$$:$from$jscomp$20$$)?$APP.$app$common$geom$point$subtract$$($p__65952_to$jscomp$22$$,$from$jscomp$20$$):null},$APP.$beicon$v2$core$buffer$cljs$0core$0IFn$0_invoke$0arity$03$$(2,
$APP.$app$main$streams$mouse_position$$)))))));return $APP.$beicon$v2$core$concat$$($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$672$$=$self__$jscomp$4101$$.$append_QMARK_$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$672$$)?$or__5025__auto__$jscomp$672$$:$self__$jscomp$4101$$.$remove_QMARK_$}())?$APP.$beicon$v2$core$empty$$():(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$selection$deselect_all$cljs$0core$0IFn$0_invoke$0arity$00$$?$APP.$app$main$data$workspace$selection$deselect_all$cljs$0core$0IFn$0_invoke$0arity$00$$():
$app$main$data$workspace$selection$deselect_all$$()),$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$map$$($app$main$data$workspace$selection$update_selrect$$,$init_selrect_selrect_stream_state$jscomp$316$$),$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$03$$?$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$03$$($initial_set$$,$self__$jscomp$4101$$.$remove_QMARK_$,
$self__$jscomp$4101$$.$ignore_groups_QMARK_$):$app$main$data$workspace$selection$select_shapes_by_current_selrect$$($initial_set$$,$self__$jscomp$4101$$.$remove_QMARK_$,$self__$jscomp$4101$$.$ignore_groups_QMARK_$)},$APP.$beicon$v2$operators$pipe$$($APP.$beicon$v2$operators$distinct_contiguous$cljs$0core$0IFn$0_invoke$0arity$00$$(),$APP.$beicon$v2$core$map$$($APP.$cljs$core$last$$,$APP.$beicon$v2$core$buffer_time$cljs$0core$0IFn$0_invoke$0arity$02$$(100,$init_selrect_selrect_stream_state$jscomp$316$$)))),
$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$?$app$main$data$workspace$selection$select_shapes_by_current_selrect$cljs$0core$0IFn$0_invoke$0arity$04$$($initial_set$$,$self__$jscomp$4101$$.$remove_QMARK_$,$self__$jscomp$4101$$.$ignore_groups_QMARK_$,!1):$app$main$data$workspace$selection$select_shapes_by_current_selrect$$($initial_set$$,$self__$jscomp$4101$$.$remove_QMARK_$,$self__$jscomp$4101$$.$ignore_groups_QMARK_$,
!1)},$APP.$beicon$v2$core$last$$($init_selrect_selrect_stream_state$jscomp$316$$))),$APP.$beicon$v2$core$observe_on$$($APP.$cljs$cst$2287$async$$,(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$selection$update_selrect$$(null))))});return new $app$main$data$workspace$selection$handle_area_selection_65939$$($append_QMARK_$$,$remove_QMARK_$jscomp$3$$,$ignore_groups_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$broadcast$event$$=function($data$jscomp$238$$){typeof $app$main$broadcast$event_51975$$==="undefined"&&($app$main$broadcast$event_51975$$=function($type$jscomp$378$$,$data$jscomp$239$$,$meta51976$$){this.type=$type$jscomp$378$$;this.data=$data$jscomp$239$$;this.$meta51976$=$meta51976$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$broadcast$event_51975$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$broadcast$event_51975$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2629$app_DOT_main_DOT_broadcast_SLASH_event$$},$app$main$broadcast$event_51975$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_51977$$,$meta51976__$1$$){return new $app$main$broadcast$event_51975$$(this.type,this.data,$meta51976__$1$$)},$app$main$broadcast$event_51975$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta51976$},$app$main$broadcast$event_51975$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$broadcast$event_51975$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function(){$APP.$cljs$core$truth_$$($APP.$app$main$broadcast$default_channel$$)&&$APP.$app$main$broadcast$default_channel$$.postMessage($APP.$app$common$transit$encode_str$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,null,$APP.$cljs$cst$139$type$$,this.type,$APP.$cljs$cst$142$data$$,this.data],null),null));return null});return new $app$main$broadcast$event_51975$$($APP.$cljs$cst$4011$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_colorpalette_selected$$,
$data$jscomp$238$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$text$parse_draft_styles$$=function($styles$jscomp$14$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($item$jscomp$84$$){var $v$jscomp$585_vec__67089$$=$APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$84$$,$APP.$cljs$cst$1889$style$$),"$$$",3);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$585_vec__67089$$,0,null);var $k$jscomp$648$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$585_vec__67089$$,
1,null);$v$jscomp$585_vec__67089$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$585_vec__67089$$,2,null);return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$300$key$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$648$$),$APP.$cljs$cst$108$val$$,$APP.$app$common$transit$decode_str$$.$cljs$core$IFn$_invoke$arity$1$($v$jscomp$585_vec__67089$$),$APP.$cljs$cst$195$offset$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$84$$,
$APP.$cljs$cst$195$offset$$),$APP.$cljs$cst$255$length$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$84$$,$APP.$cljs$cst$255$length$$)],null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__67086_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__67086_SHARP_$$,$APP.$cljs$cst$1889$style$$),"PENPOT$$$")},$styles$jscomp$14$$))};
$app$common$text$convert_from_draft$$=function($content$jscomp$164$$){function $split_texts$$($children$jscomp$247_text$jscomp$42$$,$styles$jscomp$15$$,$data$jscomp$345$$){var $cpoints$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,Array.from($children$jscomp$247_text$jscomp$42$$));$children$jscomp$247_text$jscomp$42$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($attrs$jscomp$inline_8073_p1__67112_SHARP_$$){var $start$jscomp$inline_8070_text$jscomp$inline_8072$$=
$APP.$cljs$core$ffirst$$($attrs$jscomp$inline_8073_p1__67112_SHARP_$$),$end$jscomp$inline_8071$$=$APP.$cljs$core$first$$($APP.$cljs$core$last$$($attrs$jscomp$inline_8073_p1__67112_SHARP_$$))+1;$start$jscomp$inline_8070_text$jscomp$inline_8072$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$03$$($cpoints$jscomp$2$$,$start$jscomp$inline_8070_text$jscomp$inline_8072$$,$end$jscomp$inline_8071$$));$attrs$jscomp$inline_8073_p1__67112_SHARP_$$=
$APP.$cljs$core$second$$($APP.$cljs$core$first$$($attrs$jscomp$inline_8073_p1__67112_SHARP_$$));return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($app$common$text$fix_gradients$$($attrs$jscomp$inline_8073_p1__67112_SHARP_$$),$APP.$cljs$cst$1572$text$$,$start$jscomp$inline_8070_text$jscomp$inline_8072$$)},$cljs$core$partition_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$second$$,$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($app$common$text$build_style_index$$($APP.$cljs$core$count$$($cpoints$jscomp$2$$),
$app$common$text$parse_draft_styles$$($styles$jscomp$15$$)))));return $APP.$cljs$core$empty_QMARK_$$($children$jscomp$247_text$jscomp$42$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($children$jscomp$247_text$jscomp$42$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($data$jscomp$345$$,$APP.$cljs$cst$1572$text$$,"")):$children$jscomp$247_text$jscomp$42$$}return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,"root",$APP.$cljs$cst$340$children$$,new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,"paragraph-set",$APP.$cljs$cst$340$children$$,$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($block$jscomp$1_data$jscomp$346$$){var $key$jscomp$381$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($block$jscomp$1_data$jscomp$346$$,$APP.$cljs$cst$300$key$$),$text$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($block$jscomp$1_data$jscomp$346$$,
$APP.$cljs$cst$1572$text$$),$styles$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($block$jscomp$1_data$jscomp$346$$,$APP.$cljs$cst$3832$inlineStyleRanges$$);$block$jscomp$1_data$jscomp$346$$=$app$common$text$fix_gradients$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($block$jscomp$1_data$jscomp$346$$,$APP.$cljs$cst$142$data$$));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$($block$jscomp$1_data$jscomp$346$$,
$APP.$cljs$cst$300$key$$,$key$jscomp$381$$),$APP.$cljs$cst$139$type$$,"paragraph"),$APP.$cljs$cst$340$children$$,$split_texts$$($text$jscomp$43$$,$styles$jscomp$16$$,$block$jscomp$1_data$jscomp$346$$))},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$164$$,$APP.$cljs$cst$3833$blocks$$))],null)],null)],null)};
$app$util$text_editor$export_content$$=function($content$jscomp$169$$){return $app$common$text$convert_from_draft$$($APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.convertToRaw($content$jscomp$169$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,!0])))};
$app$util$text$content$to_dom$set_styles$$=function($element$jscomp$66$$,$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$){for(var $G__53838_seq__53741_seq__53741__$1$$=$APP.$cljs$core$seq$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=null,$count__53743$$=0,$i__53744$$=0;;)if($i__53744$$<$count__53743$$){var $G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$=
$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__53744$$);$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$,0,null);$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$,
1,null);if($APP.$cljs$core$contains_QMARK_$$($APP.$app$util$text$content$styles$mapping$$,$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$)){var $style_encode_53832_vec__53762_53831$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$text$content$styles$mapping$$,$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$);$style_encode_53832_vec__53762_53831$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($style_encode_53832_vec__53762_53831$$,
0,null);$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$=$style_encode_53832_vec__53762_53831$$.$cljs$core$IFn$_invoke$arity$1$?$style_encode_53832_vec__53762_53831$$.$cljs$core$IFn$_invoke$arity$1$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$):$style_encode_53832_vec__53762_53831$$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$);$app$util$dom$set_style_BANG_$$($element$jscomp$66$$,$APP.$app$util$text$content$styles$get_style_name_as_css_variable$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),
$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$)}else $app$util$dom$set_style_BANG_$$($element$jscomp$66$$,$APP.$app$util$text$content$styles$get_style_name$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),$APP.$app$util$text$content$styles$normalize_style_value$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$,$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$));$i__53744$$+=1}else if($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$=
$APP.$cljs$core$seq$$($G__53838_seq__53741_seq__53741__$1$$))$G__53838_seq__53741_seq__53741__$1$$=$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__53838_seq__53741_seq__53741__$1$$)?($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=$APP.$cljs$core$_chunked_first$$($G__53838_seq__53741_seq__53741__$1$$),$G__53838_seq__53741_seq__53741__$1$$=$APP.$cljs$core$_chunked_rest$$($G__53838_seq__53741_seq__53741__$1$$),
$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$=$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$,$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=
$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$,$count__53743$$=$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$):($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=$APP.$cljs$core$first$$($G__53838_seq__53741_seq__53741__$1$$),$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$,
0,null),$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$,1,null),$APP.$cljs$core$contains_QMARK_$$($APP.$app$util$text$content$styles$mapping$$,$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$)?($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$text$content$styles$mapping$$,$G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$,0,null),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=
$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$.$cljs$core$IFn$_invoke$arity$1$?$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$.$cljs$core$IFn$_invoke$arity$1$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$):$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$($G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$),
$app$util$dom$set_style_BANG_$$($element$jscomp$66$$,$APP.$app$util$text$content$styles$get_style_name_as_css_variable$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$)):$app$util$dom$set_style_BANG_$$($element$jscomp$66$$,$APP.$app$util$text$content$styles$get_style_name$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$),
$APP.$app$util$text$content$styles$normalize_style_value$$($G__53839_style_name$jscomp$6_styles$jscomp$6_temp__5825__auto__$jscomp$165$$,$G__53840_style_encoded_value_53833_style_value$jscomp$2_vec__53758$$)),$G__53838_seq__53741_seq__53741__$1$$=$APP.$cljs$core$next$$($G__53838_seq__53741_seq__53741__$1$$),$c__5548__auto__$jscomp$17_chunk__53742_style_encode_53843_style_encoded_value_53844_vec__53766_vec__53769_53842$$=null,$count__53743$$=0),$i__53744$$=0;else break};
$app$util$text$content$to_dom$create_element$cljs$0core$0IFn$0_invoke$0arity$03$$=function($element$jscomp$67_tag$jscomp$70$$,$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$,$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$){$element$jscomp$67_tag$jscomp$70$$=$APP.$app$util$dom$create_element$cljs$0core$0IFn$0_invoke$0arity$01$$($element$jscomp$67_tag$jscomp$70$$);
$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=$APP.$cljs$core$seq$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$);for(var $G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=null,$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=
0,$G__53802_53874_child_53885_i__53782_53853$$=0;;)if($G__53802_53874_child_53885_i__53782_53853$$<$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$){var $attr_value_53856_vec__53795_53854$$=$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__53802_53874_child_53885_i__53782_53853$$),$attr_name_53855$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($attr_value_53856_vec__53795_53854$$,
0,null);$attr_value_53856_vec__53795_53854$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($attr_value_53856_vec__53795_53854$$,1,null);var $G__53798_53857$$=$attr_name_53855$$;switch($G__53798_53857$$ instanceof $APP.$cljs$core$Keyword$$?$G__53798_53857$$.$fqn$:null){case "data":$app$util$text$content$to_dom$set_dataset$$($element$jscomp$67_tag$jscomp$70$$,$attr_value_53856_vec__53795_53854$$);break;case "style":$app$util$text$content$to_dom$set_styles$$($element$jscomp$67_tag$jscomp$70$$,
$attr_value_53856_vec__53795_53854$$);break;default:$APP.$app$util$dom$set_attribute_BANG_$$($element$jscomp$67_tag$jscomp$70$$,$APP.$cljs$core$name$$($attr_name_53855$$),$attr_value_53856_vec__53795_53854$$)}$G__53802_53874_child_53885_i__53782_53853$$+=1}else if($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=$APP.$cljs$core$seq$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$)){if($APP.$cljs$core$chunked_seq_QMARK_$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$))$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=
$APP.$cljs$core$_chunked_first$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=$APP.$cljs$core$_chunked_rest$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=
$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$,$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=$APP.$cljs$core$count$$($G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$);else{$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=$APP.$cljs$core$first$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$);
$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$,0,null);$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$,
1,null);$G__53802_53874_child_53885_i__53782_53853$$=$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$;switch($G__53802_53874_child_53885_i__53782_53853$$ instanceof $APP.$cljs$core$Keyword$$?$G__53802_53874_child_53885_i__53782_53853$$.$fqn$:null){case "data":$app$util$text$content$to_dom$set_dataset$$($element$jscomp$67_tag$jscomp$70$$,$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$);break;case "style":$app$util$text$content$to_dom$set_styles$$($element$jscomp$67_tag$jscomp$70$$,
$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$);break;default:$APP.$app$util$dom$set_attribute_BANG_$$($element$jscomp$67_tag$jscomp$70$$,$APP.$cljs$core$name$$($G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$),$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$)}$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=
$APP.$cljs$core$next$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$);$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=null;$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=0}$G__53802_53874_child_53885_i__53782_53853$$=0}else break;$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=
$APP.$cljs$core$seq$$($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$);$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=null;for($G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=0;;)if($G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$<
$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$)$G__53802_53874_child_53885_i__53782_53853$$=$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$),$APP.$app$util$dom$append_child_BANG_$$($element$jscomp$67_tag$jscomp$70$$,$G__53802_53874_child_53885_i__53782_53853$$),
$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$+=1;else if($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=$APP.$cljs$core$seq$$($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$))$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$,
$APP.$cljs$core$chunked_seq_QMARK_$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$)?($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=$APP.$cljs$core$_chunked_first$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=
$APP.$cljs$core$_chunked_rest$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$,$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=$APP.$cljs$core$count$$($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$),
$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$):($c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=$APP.$cljs$core$first$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$APP.$app$util$dom$append_child_BANG_$$($element$jscomp$67_tag$jscomp$70$$,
$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$),$c__5548__auto___53892_child_53897_children$jscomp$215_seq__53803_53881_temp__5825__auto___53890$$=$APP.$cljs$core$next$$($G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$),$G__53867_G__53894_attrs$jscomp$59_chunk__53804_53882_seq__53779_53850_seq__53779_53865__$1_seq__53803_53891__$1_temp__5825__auto___53864$$=
null,$G__53868_G__53895_attr_name_53872_chunk__53780_53851_count__53805_53883$$=0),$G__53869_G__53893_attr_value_53873_c__5548__auto___53866_count__53781_53852_i__53806_53884_vec__53799_53871$$=0;else break;return $element$jscomp$67_tag$jscomp$70$$};
$app$util$text$content$to_dom$create_paragraph$$=function($paragraph$jscomp$11$$){return $app$util$text$content$to_dom$create_element$cljs$0core$0IFn$0_invoke$0arity$03$$("div",new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,function(){var $or__5025__auto__$jscomp$602$$=$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($paragraph$jscomp$11$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$602$$)?$or__5025__auto__$jscomp$602$$:$app$util$text$content$to_dom$create_random_key$$()}(),
$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3067$itype$$,"paragraph"],null),$APP.$cljs$cst$1889$style$$,$app$util$text$content$to_dom$get_paragraph_styles$$($paragraph$jscomp$11$$)],null),$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$){var $JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$=
$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$);$JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$=$APP.$cljs$core$truth_$$($JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$)?$JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$:
$app$util$text$content$to_dom$create_random_key$$();var $JSCompiler_temp_const$jscomp$13408_JSCompiler_temp_const$jscomp$inline_13879$$=$APP.$cljs$cst$142$data$$,$JSCompiler_temp_const$jscomp$13407$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3067$itype$$,"span"],null);var $JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("",$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$))?
$paragraph$jscomp$11$$:$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$;$JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$=$app$util$text$content$to_dom$get_styles_from_attrs$$($JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$,$APP.$app$common$types$text$text_node_attrs$$);$JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$=
$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$,$APP.$cljs$cst$1749$line_height$$);$JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,$JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$,$JSCompiler_temp_const$jscomp$13408_JSCompiler_temp_const$jscomp$inline_13879$$,
$JSCompiler_temp_const$jscomp$13407$$,$APP.$cljs$cst$1889$style$$,$JSCompiler_inline_result$jscomp$13410_node$jscomp$inline_13874_styles$jscomp$inline_13875$$],null);$JSCompiler_temp_const$jscomp$13408_JSCompiler_temp_const$jscomp$inline_13879$$=$APP.$cljs$core$PersistentVector$EMPTY_NODE$$;$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("",$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$))&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($paragraph$jscomp$11$$)))?$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$=$APP.$app$util$dom$create_element$cljs$0core$0IFn$0_invoke$0arity$01$$("br"):($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$),
$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$)?$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$.replace(RegExp("/","g"),"/​"):null,$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$=
$APP.$app$util$globals$document$$.createTextNode($JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$));return $app$util$text$content$to_dom$create_element$cljs$0core$0IFn$0_invoke$0arity$03$$("span",$JSCompiler_temp_const$jscomp$13403_JSCompiler_temp_const$jscomp$13409_or__5025__auto__$jscomp$inline_12661$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$JSCompiler_temp_const$jscomp$13408_JSCompiler_temp_const$jscomp$inline_13879$$,
[$JSCompiler_inline_result$jscomp$inline_13881_JSCompiler_temp$jscomp$inline_13880_p1__53818_SHARP__text$jscomp$inline_13882$$],null))},$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($paragraph$jscomp$11$$)))};
$app$util$text$content$to_dom$create_root$$=function($JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$){var $root_styles$jscomp$2$$=$app$util$text$content$to_dom$get_styles_from_attrs$$($JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$,$APP.$app$common$types$text$text_valign_attrs$$),$filtered_paragraphs_paragraphs$jscomp$2$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$340$children$$,0,$APP.$cljs$cst$340$children$$],null));$filtered_paragraphs_paragraphs$jscomp$2$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$filtered_paragraphs_paragraphs$jscomp$2$$));$JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$=
$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$);$JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$)?$JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$:$app$util$text$content$to_dom$create_random_key$$();return $app$util$text$content$to_dom$create_element$cljs$0core$0IFn$0_invoke$0arity$03$$("div",
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,$JSCompiler_inline_result$jscomp$1605_or__5025__auto__$jscomp$inline_8077_root$jscomp$46$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3067$itype$$,"root"],null),$APP.$cljs$cst$1889$style$$,$root_styles$jscomp$2$$],null),$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$util$text$content$to_dom$create_paragraph$$,$filtered_paragraphs_paragraphs$jscomp$2$$))};
$app$util$text$content$styles$get_style_defaults$$=function($style_defaults$$){return $APP.$cljs$core$clj__GT_js$$($APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$116$$,$p__53687_style_value_v$jscomp$555$$){var $k$jscomp$625_style_name$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__53687_style_value_v$jscomp$555$$,0,null);$p__53687_style_value_v$jscomp$555$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__53687_style_value_v$jscomp$555$$,
1,null);if($APP.$cljs$core$contains_QMARK_$$($APP.$app$util$text$content$styles$mapping$$,$k$jscomp$625_style_name$jscomp$2$$)){var $style_encode_vec__53691$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$text$content$styles$mapping$$,$k$jscomp$625_style_name$jscomp$2$$);$style_encode_vec__53691$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($style_encode_vec__53691$$,0,null);$k$jscomp$625_style_name$jscomp$2$$=$APP.$app$util$text$content$styles$get_style_name_as_css_variable$$($k$jscomp$625_style_name$jscomp$2$$);
$p__53687_style_value_v$jscomp$555$$=$APP.$app$util$text$content$styles$normalize_style_value$$($k$jscomp$625_style_name$jscomp$2$$,$style_encode_vec__53691$$.$cljs$core$IFn$_invoke$arity$1$?$style_encode_vec__53691$$.$cljs$core$IFn$_invoke$arity$1$($p__53687_style_value_v$jscomp$555$$):$style_encode_vec__53691$$($p__53687_style_value_v$jscomp$555$$))}else $k$jscomp$625_style_name$jscomp$2$$=$APP.$app$util$text$content$styles$get_style_name$$($k$jscomp$625_style_name$jscomp$2$$),$p__53687_style_value_v$jscomp$555$$=
$APP.$app$util$text$content$styles$normalize_style_value$$($k$jscomp$625_style_name$jscomp$2$$,$p__53687_style_value_v$jscomp$555$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($acc$jscomp$116$$,$k$jscomp$625_style_name$jscomp$2$$,$p__53687_style_value_v$jscomp$555$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$style_defaults$$))};
$app$main$data$workspace$layout$load_layout_state$$=function($state$jscomp$366$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($state__$1$jscomp$18$$,$p__65705_skey_val$jscomp$180$$){var $key$jscomp$376$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65705_skey_val$jscomp$180$$,0,null);$p__65705_skey_val$jscomp$180$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__65705_skey_val$jscomp$180$$,1,null);$p__65705_skey_val$jscomp$180$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$user$$,
$p__65705_skey_val$jscomp$180$$,$APP.$cljs$cst$3613$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_none$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__65705_skey_val$jscomp$180$$,$APP.$cljs$cst$3613$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_none$$)?$state__$1$jscomp$18$$:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$18$$,$key$jscomp$376$$,$p__65705_skey_val$jscomp$180$$)},$state$jscomp$366$$,$APP.$app$main$data$workspace$layout$layout_state_persistence_mapping$$)};
$app$main$data$workspace$colors$show_palette$$=function($selected$jscomp$74$$){typeof $app$main$data$workspace$colors$show_palette_69075$$==="undefined"&&($app$main$data$workspace$colors$show_palette_69075$$=function($selected$jscomp$75$$,$meta69076$$){this.selected=$selected$jscomp$75$$;this.$meta69076$=$meta69076$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4012$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_show_palette$$},$app$main$data$workspace$colors$show_palette_69075$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69077$$,$meta69076__$1$$){return new $app$main$data$workspace$colors$show_palette_69075$$(this.selected,$meta69076__$1$$)},$app$main$data$workspace$colors$show_palette_69075$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69076$},$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$layout$toggle_layout_flag$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3585$colorpalette$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3604$force_QMARK_$$,
!0])),$app$main$broadcast$event$$(this.selected))},$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$show_palette_69075$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$,$G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$){a:{$JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$=
$APP.$cljs$cst$2148$workspace_global$$.$cljs$core$IFn$_invoke$arity$1$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$);$G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$=$APP.$cljs$core$seq$$($APP.$app$main$data$workspace$layout$layout_state_persistence_mapping$$);for(var $G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$=
null,$count__65712$jscomp$inline_8082$$=0,$i__65713$jscomp$inline_8083$$=0;;)if($i__65713$jscomp$inline_8083$$<$count__65712$jscomp$inline_8082$$){var $skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$=$G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__65713$jscomp$inline_8083$$),$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$,0,null);$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$,1,null);$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$,
$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$,$APP.$cljs$cst$3618$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_does_not_exist$$);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$,$APP.$cljs$cst$3618$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_does_not_exist$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$user$$,
$APP.$cljs$core$dissoc$$,$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$,$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$);$i__65713$jscomp$inline_8083$$+=1}else if($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$=
$APP.$cljs$core$seq$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$))$APP.$cljs$core$chunked_seq_QMARK_$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$)?($G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$=$APP.$cljs$core$_chunked_first$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$),
$G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$=$APP.$cljs$core$_chunked_rest$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$),$G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$=$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$,
$count__65712$jscomp$inline_8082$$=$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$=$APP.$cljs$core$count$$($G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$)):($G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$=$APP.$cljs$core$first$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$),
$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$,0,null),$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$,
1,null),$G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$,$G__65772$jscomp$inline_8093_c__5548__auto__$jscomp$inline_8090_key$jscomp$inline_8085_val_65765$jscomp$inline_8087$$,$APP.$cljs$cst$3618$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_does_not_exist$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$,
$APP.$cljs$cst$3618$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_does_not_exist$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$user$$,$APP.$cljs$core$dissoc$$,$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$skey$jscomp$inline_8086_vec__65732$jscomp$inline_8084$$,$G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$),
$G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$=$APP.$cljs$core$next$$($G__65770$jscomp$inline_8091_seq__65710$jscomp$inline_8080_seq__65710__$1$jscomp$inline_8089_state$jscomp$571_temp__5825__auto__$jscomp$inline_8088$$),$G__65771$jscomp$inline_8092_chunk__65711$jscomp$inline_8081_val_65775$jscomp$inline_8095_vec__65735$jscomp$inline_8094$$=null,$count__65712$jscomp$inline_8082$$=0),$i__65713$jscomp$inline_8083$$=
0;else{$JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$=null;break a}$JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$=void 0}return $JSCompiler_inline_result$jscomp$1606__$jscomp$2168_state$jscomp$inline_8079$$});return new $app$main$data$workspace$colors$show_palette_69075$$($selected$jscomp$74$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$layout$load_layout_flags$$=function($layout$jscomp$4_layout__$1$$){$layout$jscomp$4_layout__$1$$=$APP.$cljs$core$set$$($APP.$cljs$core$truth_$$($layout$jscomp$4_layout__$1$$)?$layout$jscomp$4_layout__$1$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$);return $APP.$cljs$core$reduce_kv$$(function($layout__$2$$,$flag$jscomp$10$$,$expr__65679_key$jscomp$374$$){$expr__65679_key$jscomp$374$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$storage$user$$,$expr__65679_key$jscomp$374$$,
$APP.$cljs$cst$3613$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_none$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3613$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_none$$,$expr__65679_key$jscomp$374$$):$APP.$cljs$core$_EQ_$$($APP.$cljs$cst$3613$app_DOT_main_DOT_data_DOT_workspace_DOT_layout_SLASH_none$$,$expr__65679_key$jscomp$374$$)))return $layout__$2$$;if($APP.$cljs$core$truth_$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!1,$expr__65679_key$jscomp$374$$):$APP.$cljs$core$_EQ_$$(!1,$expr__65679_key$jscomp$374$$)))return $APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($layout__$2$$,$flag$jscomp$10$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!0,$expr__65679_key$jscomp$374$$):$APP.$cljs$core$_EQ_$$(!0,$expr__65679_key$jscomp$374$$)))return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($layout__$2$$,
$flag$jscomp$10$$);throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($expr__65679_key$jscomp$374$$)].join(""));},$layout$jscomp$4_layout__$1$$,$APP.$app$main$data$workspace$layout$layout_flags_persistence_mapping$$)};
$app$main$data$fonts$add_recent_font$$=function($font$jscomp$37$$){typeof $app$main$data$fonts$add_recent_font_55019$$==="undefined"&&($app$main$data$fonts$add_recent_font_55019$$=function($font$jscomp$38$$,$meta55020$$){this.font=$font$jscomp$38$$;this.$meta55020$=$meta55020$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3382$app_DOT_main_DOT_data_DOT_fonts_SLASH_add_recent_font$$},$app$main$data$fonts$add_recent_font_55019$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_55021$$,$meta55020__$1$$){return new $app$main$data$fonts$add_recent_font_55019$$(this.font,$meta55020__$1$$)},$app$main$data$fonts$add_recent_font_55019$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta55020$},$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1785_file_id$jscomp$75$$,$state$jscomp$270$$){$_$jscomp$1785_file_id$jscomp$75$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$270$$);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$270$$,$APP.$cljs$cst$2176$recent_fonts$$,$app$main$data$fonts$update_recent_font$$,$_$jscomp$1785_file_id$jscomp$75$$,
this.font)},$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$fonts$add_recent_font_55019$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$1786_recent_fonts$$,$state$jscomp$271$$){$_$jscomp$1786_recent_fonts$$=$APP.$cljs$cst$2176$recent_fonts$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$271$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2176$recent_fonts$$,$_$jscomp$1786_recent_fonts$$)});return new $app$main$data$fonts$add_recent_font_55019$$($font$jscomp$37$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$hooks$use_persisted_state$$=function($key$jscomp$339$$,$default$$jscomp$55$$){var $id$jscomp$297$$=(0,$APP.$rumext$v2$use_id$$)(),$state_STAR_$jscomp$2$$=$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$user$$,$key$jscomp$339$$,$default$$jscomp$55$$)}),$state$jscomp$151$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$2$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$151$$),
$APP.$rumext$v2$adapt$$($key$jscomp$339$$),$APP.$rumext$v2$adapt$$($id$jscomp$297$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$key$jscomp$339$$,$state$jscomp$151$$)});return $state_STAR_$jscomp$2$$};
$app$main$ui$hooks$use_shared_state$$=function($key$jscomp$338$$){var $default$$jscomp$54$$=$cljs$cst$5336$recent$$,$id$jscomp$296$$=(0,$APP.$rumext$v2$use_id$$)(),$state_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$3$($APP.$app$util$storage$user$$,$key$jscomp$338$$,$default$$jscomp$54$$)}),$state$jscomp$150$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$1$$),$stream$jscomp$22$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$296$$)],
function(){return $APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$(function($p1__52126_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__52126_SHARP_$$),$key$jscomp$338$$)},$APP.$beicon$v2$core$filter$$(function($p1__52125_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__52125_SHARP_$$),$id$jscomp$296$$)},
$APP.$app$main$broadcast$stream$$)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$150$$),$APP.$rumext$v2$adapt$$($key$jscomp$338$$),$APP.$rumext$v2$adapt$$($id$jscomp$296$$)],function(){$APP.$cljs$core$truth_$$($APP.$app$main$broadcast$default_channel$$)&&$APP.$app$main$broadcast$default_channel$$.postMessage($APP.$app$common$transit$encode_str$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,
$id$jscomp$296$$,$APP.$cljs$cst$139$type$$,$key$jscomp$338$$,$APP.$cljs$cst$142$data$$,$state$jscomp$150$$],null),null));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$key$jscomp$338$$,$state$jscomp$150$$)});$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($stream$jscomp$22$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$reset_BANG_$$,$state_STAR_$jscomp$1$$));return $state_STAR_$jscomp$1$$};
$app$main$data$workspace$update_nudge$$=function($p__70267$$){var $map__70268__$1$$=$APP.$cljs$core$__destructure_map$$($p__70267$$),$big$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70268__$1$$,$APP.$cljs$cst$3718$big$$),$small$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70268__$1$$,$APP.$cljs$cst$3719$small$$);typeof $app$main$data$workspace$update_nudge_70269$$==="undefined"&&($app$main$data$workspace$update_nudge_70269$$=function($p__70267$jscomp$1$$,$map__70268$jscomp$1$$,
$params$jscomp$293$$,$big$jscomp$1$$,$small$jscomp$1$$,$meta70270$$){this.$p__70267$=$p__70267$jscomp$1$$;this.$map__70268$=$map__70268$jscomp$1$$;this.params=$params$jscomp$293$$;this.big=$big$jscomp$1$$;this.small=$small$jscomp$1$$;this.$meta70270$=$meta70270$$;this.$cljs$lang$protocol_mask$partition0$$=425984;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4315$app_DOT_main_DOT_data_DOT_workspace_SLASH_update_nudge$$},$app$main$data$workspace$update_nudge_70269$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70271$$,$meta70270__$1$$){return new $app$main$data$workspace$update_nudge_70269$$(this.$p__70267$,this.$map__70268$,this.params,this.big,this.small,$meta70270__$1$$)},$app$main$data$workspace$update_nudge_70269$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70270$},$app$main$data$workspace$update_nudge_70269$$.prototype.$cljs$core$IDeref$_deref$arity$1$=
function(){return $APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$(this.params)},$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2452$$,$state$jscomp$808$$){var $self__$jscomp$6021$$=this;return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$808$$,new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1899$profile$$,$APP.$cljs$cst$573$props$$,$APP.$cljs$cst$3717$nudge$$],null),function($G__70274__$1_nudge$jscomp$1$$){$G__70274__$1_nudge$jscomp$1$$=typeof $self__$jscomp$6021$$.big==="number"?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__70274__$1_nudge$jscomp$1$$,$APP.$cljs$cst$3718$big$$,$self__$jscomp$6021$$.big):$G__70274__$1_nudge$jscomp$1$$;return typeof $self__$jscomp$6021$$.small==="number"?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__70274__$1_nudge$jscomp$1$$,
$APP.$cljs$cst$3719$small$$,$self__$jscomp$6021$$.small):$G__70274__$1_nudge$jscomp$1$$})},$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$update_nudge_70269$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2453_nudge$jscomp$2$$,$state$jscomp$809$$){$_$jscomp$2453_nudge$jscomp$2$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$809$$,new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1899$profile$$,$APP.$cljs$cst$573$props$$,$APP.$cljs$cst$3717$nudge$$],null));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$profile$update_profile_props$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3717$nudge$$,$_$jscomp$2453_nudge$jscomp$2$$],null)))});return new $app$main$data$workspace$update_nudge_70269$$($p__70267$$,$map__70268__$1$$,$map__70268__$1$$,$big$$,$small$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$finalize_workspace$$=function($_team_id$$,$file_id$jscomp$251$$){typeof $app$main$data$workspace$finalize_workspace_70243$$==="undefined"&&($app$main$data$workspace$finalize_workspace_70243$$=function($_team_id$jscomp$1$$,$file_id$jscomp$252$$,$meta70244$$){this.$_team_id$=$_team_id$jscomp$1$$;this.$file_id$=$file_id$jscomp$252$$;this.$meta70244$=$meta70244$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4303$app_DOT_main_DOT_data_DOT_workspace_SLASH_finalize_workspace$$},$app$main$data$workspace$finalize_workspace_70243$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70245$$,$meta70244__$1$$){return new $app$main$data$workspace$finalize_workspace_70243$$(this.$_team_id$,this.$file_id$,$meta70244__$1$$)},$app$main$data$workspace$finalize_workspace_70243$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70244$},$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2444$$,$state$jscomp$804$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$804$$,
$APP.$cljs$cst$1902$current_file_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2184$workspace_editor_state$$,$APP.$cljs$cst$4311$workspace_media_objects$$,$APP.$cljs$cst$4312$workspace_persistence$$,$APP.$cljs$cst$2178$workspace_presence$$,$APP.$cljs$cst$2119$workspace_tokens$$,$APP.$cljs$cst$3435$workspace_undo$$])),$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$2179$read_only_QMARK_$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$2162$options_mode$$],null),$APP.$cljs$cst$3602$design$$),$APP.$cljs$cst$1901$files$$,$APP.$app$common$data$update_vals$$,function($p1__70241_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__70241_SHARP_$$,$APP.$cljs$cst$142$data$$)})},$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$finalize_workspace_70243$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2445_project_id$jscomp$15$$,$state$jscomp$805$$){$_$jscomp$2445_project_id$jscomp$15$$=$APP.$cljs$cst$2134$current_project_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$805$$);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$notifications$finalize$$(this.$file_id$),$app$main$data$project$finalize_project$$($_$jscomp$2445_project_id$jscomp$15$$),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4244$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_finalize_shape_layout$$),
$app$main$data$workspace$colors$stop_picker$$(),$APP.$app$main$data$workspace$common$set_workspace_visited$$(),$APP.$app$main$data$modal$hide$$(),$APP.$app$main$data$notifications$hide$$())});return new $app$main$data$workspace$finalize_workspace_70243$$($_team_id$$,$file_id$jscomp$251$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$clipboard$copy_selected_css_nested$$=function(){typeof $app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$==="undefined"&&($app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$=function($meta69095$$){this.$meta69095$=$meta69095$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3994$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_copy_selected_css_nested$$},$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69096$$,$meta69095__$1$$){return new $app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$($meta69095__$1$$)},$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69095$},$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2155_objects$jscomp$565$$,$css$jscomp$9_selected$jscomp$65_state$jscomp$556$$){$_$jscomp$2155_objects$jscomp$565$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($css$jscomp$9_selected$jscomp$65_state$jscomp$556$$);
$css$jscomp$9_selected$jscomp$65_state$jscomp$556$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($_$jscomp$2155_objects$jscomp$565$$),$APP.$app$common$files$helpers$selected_with_children$$($_$jscomp$2155_objects$jscomp$565$$,$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($css$jscomp$9_selected$jscomp$65_state$jscomp$556$$)));$css$jscomp$9_selected$jscomp$65_state$jscomp$556$$=$APP.$app$util$code_gen$style_css$generate_style$$.$cljs$core$IFn$_invoke$arity$4$($_$jscomp$2155_objects$jscomp$565$$,
$css$jscomp$9_selected$jscomp$65_state$jscomp$556$$,$css$jscomp$9_selected$jscomp$65_state$jscomp$556$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3984$with_prelude_QMARK_$$,!1],null));return $APP.$app$util$clipboard$to_clipboard$$($css$jscomp$9_selected$jscomp$65_state$jscomp$556$$)});return new $app$main$data$workspace$clipboard$copy_selected_css_nested_69094$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$clipboard$copy_selected_css$$=function(){typeof $app$main$data$workspace$clipboard$copy_selected_css_69091$$==="undefined"&&($app$main$data$workspace$clipboard$copy_selected_css_69091$$=function($meta69092$$){this.$meta69092$=$meta69092$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3993$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_copy_selected_css$$},$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69093$$,$meta69092__$1$$){return new $app$main$data$workspace$clipboard$copy_selected_css_69091$$($meta69092__$1$$)},$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69092$},$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$potok$v2$core$EffectEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_css_69091$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2154_objects$jscomp$564$$,$css$jscomp$8_selected$jscomp$64_state$jscomp$555$$){$_$jscomp$2154_objects$jscomp$564$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($css$jscomp$8_selected$jscomp$64_state$jscomp$555$$);$css$jscomp$8_selected$jscomp$64_state$jscomp$555$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($_$jscomp$2154_objects$jscomp$564$$),
$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($css$jscomp$8_selected$jscomp$64_state$jscomp$555$$));$css$jscomp$8_selected$jscomp$64_state$jscomp$555$$=$APP.$app$util$code_gen$style_css$generate_style$$.$cljs$core$IFn$_invoke$arity$4$($_$jscomp$2154_objects$jscomp$564$$,$css$jscomp$8_selected$jscomp$64_state$jscomp$555$$,$css$jscomp$8_selected$jscomp$64_state$jscomp$555$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3984$with_prelude_QMARK_$$,
!1],null));return $APP.$app$util$clipboard$to_clipboard$$($css$jscomp$8_selected$jscomp$64_state$jscomp$555$$)});return new $app$main$data$workspace$clipboard$copy_selected_css_69091$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$dashboard$subscription$main_menu_power_up_STAR_$$=function($close_sub_menu_props_71684$$){$close_sub_menu_props_71684$$=$close_sub_menu_props_71684$$.closeSubMenu;var $go_to_subscription$$=$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$router$nav$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4850$settings_subscription$$))});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_dashboard_subscription__menu-item",onClick:$go_to_subscription$$,onKeyDown:function($event$jscomp$170$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$170$$))?$go_to_subscription$$.$cljs$core$IFn$_invoke$arity$0$?$go_to_subscription$$.$cljs$core$IFn$_invoke$arity$0$():$go_to_subscription$$():null},onPointerEnter:$close_sub_menu_props_71684$$,id:"file-menu-power-up",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_dashboard_subscription__item-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.workspace.header.menu.option.power-up")})})};
$app$main$data$workspace$tokens$library_edit$drop_error$$=function($p__71292$$){var $map__71293__$1$$=$APP.$cljs$core$__destructure_map$$($p__71292$$),$error$jscomp$75$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71293__$1$$,$APP.$cljs$cst$847$error$$),$to_path$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__71293__$1$$,$APP.$cljs$cst$2605$to_path$$);typeof $app$main$data$workspace$tokens$library_edit$drop_error_71294$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$drop_error_71294$$=
function($p__71292$jscomp$1$$,$map__71293$jscomp$1$$,$error$jscomp$76$$,$to_path$jscomp$12$$,$meta71295$$){this.$p__71292$=$p__71292$jscomp$1$$;this.$map__71293$=$map__71293$jscomp$1$$;this.error=$error$jscomp$76$$;this.$to_path$=$to_path$jscomp$12$$;this.$meta71295$=$meta71295$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4538$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_drop_error$$},$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71296$$,$meta71295__$1$$){return new $app$main$data$workspace$tokens$library_edit$drop_error_71294$$(this.$p__71292$,this.$map__71293$,this.error,
this.$to_path$,$meta71295__$1$$)},$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71295$},$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$drop_error_71294$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$6385$$=this,$content$jscomp$213$$=function(){var $G__71303$$=
$self__$jscomp$6385$$.error;switch($G__71303$$ instanceof $APP.$cljs$core$Keyword$$?$G__71303$$.$fqn$:null){case "path-exists":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.token-set-exists-on-drop",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$self__$jscomp$6385$$.$to_path$]));case "parent-to-child":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.drop-token-set-parent-to-child");default:return null}}();return $APP.$cljs$core$truth_$$($content$jscomp$213$$)?
(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$content$jscomp$213$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$847$error$$,$APP.$cljs$cst$2310$timeout$$,9E3],null))):null});return new $app$main$data$workspace$tokens$library_edit$drop_error_71294$$($p__71292$$,$map__71293__$1$$,$error$jscomp$75$$,$to_path$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$style_dictionary$resolve_tokens_with_verbose_errors$$=function($tokens$jscomp$29$$){return $APP.$app$main$data$style_dictionary$resolve_tokens_tree$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$types$tokens_lib$tokens_tree$$($tokens$jscomp$29$$),function($p1__70139_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($tokens$jscomp$29$$,$p1__70139_SHARP_$$.original.name)},new $APP.$app$main$data$style_dictionary$StyleDictionary$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$main$data$style_dictionary$default_config$$,
$APP.$cljs$cst$3044$log$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4452$verbosity$$,"verbose"],null))))};
$app$main$data$workspace$tokens$errors$error_ex_info$$=function($err$jscomp$35_error_key$jscomp$2$$,$error_value$jscomp$1$$,$exception$jscomp$12$$){$err$jscomp$35_error_key$jscomp$2$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$main$data$workspace$tokens$errors$error_with_value$$($err$jscomp$35_error_key$jscomp$2$$,$error_value$jscomp$1$$),$APP.$cljs$cst$4440$error_SLASH_exception$$,$exception$jscomp$12$$);return $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$943$error_SLASH_code$$.$cljs$core$IFn$_invoke$arity$1$($err$jscomp$35_error_key$jscomp$2$$),
$err$jscomp$35_error_key$jscomp$2$$)};
$app$main$data$workspace$clipboard$on_clipboard_permission_error$$=function($cause$jscomp$73$$){return $APP.$app$main$data$workspace$clipboard$clipboard_permission_error_QMARK_$$($cause$jscomp$73$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.clipboard-permission-denied"),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,
$APP.$cljs$cst$2300$warning$$,$APP.$cljs$cst$2310$timeout$$,5E3],null))):$APP.$beicon$v2$core$throw$0$$($cause$jscomp$73$$)};
$app$main$data$workspace$media$upload_fill_image$$=function($file$jscomp$57$$,$on_success$jscomp$22$$){typeof $app$main$data$workspace$media$upload_fill_image_66618$$==="undefined"&&($app$main$data$workspace$media$upload_fill_image_66618$$=function($file$jscomp$58$$,$on_success$jscomp$23$$,$meta66619$$){this.file=$file$jscomp$58$$;this.$on_success$=$on_success$jscomp$23$$;this.$meta66619$=$meta66619$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},
$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3577$app_DOT_main_DOT_data_DOT_workspace_DOT_media_SLASH_upload_fill_image$$},$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66620$$,$meta66619__$1$$){return new $app$main$data$workspace$media$upload_fill_image_66618$$(this.file,
this.$on_success$,$meta66619__$1$$)},$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66619$},$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$upload_fill_image_66618$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1889$$,$state$jscomp$357$$){var $self__$jscomp$4261$$=this,$file_id$jscomp$100$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$357$$);$APP.$app$main$data$media$notify_start_loading$$();return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$media$handle_media_error$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($image$jscomp$23$$){$self__$jscomp$4261$$.$on_success$.$cljs$core$IFn$_invoke$arity$1$?$self__$jscomp$4261$$.$on_success$.$cljs$core$IFn$_invoke$arity$1$($image$jscomp$23$$):
$self__$jscomp$4261$$.$on_success$($image$jscomp$23$$);return $APP.$app$main$data$media$notify_finished_loading$$()},$APP.$beicon$v2$core$mapcat$$(function($p1__66617_SHARP_$$){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2241$upload_file_media_object$$,$p1__66617_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($content$jscomp$161$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$100$$,$APP.$cljs$cst$723$name$$,
$APP.$app$main$data$media$file_QMARK_$$($content$jscomp$161$$)?$content$jscomp$161$$.name:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.image"),$APP.$cljs$cst$2526$is_local$$,!1,$APP.$cljs$cst$1621$content$$,$content$jscomp$161$$],null)},$APP.$beicon$v2$core$map$$($APP.$app$main$data$media$validate_file$$,(0,$APP.$beicon$v2$core$of$$)($self__$jscomp$4261$$.file))))))});return new $app$main$data$workspace$media$upload_fill_image_66618$$($file$jscomp$57$$,$on_success$jscomp$22$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$util$color$get_color_name$$=function($color$jscomp$48$$){var $or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($color$jscomp$48$$));if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$))return $or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$;$or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$=
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$48$$);if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$))return $or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$;$or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$48$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$)?
$or__5025__auto__$jscomp$523_or__5025__auto____$1$jscomp$57_or__5025__auto____$2$jscomp$17$$:$APP.$app$util$color$gradient_type__GT_string$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$48$$)))};
$app$main$data$workspace$pages$initialize_page_STAR_$$=function($file_id$jscomp$224$$,$page_id$jscomp$214$$){typeof $app$main$data$workspace$pages$initialize_page_STAR__68821$$==="undefined"&&($app$main$data$workspace$pages$initialize_page_STAR__68821$$=function($file_id$jscomp$225$$,$page_id$jscomp$215$$,$meta68822$$){this.$file_id$=$file_id$jscomp$225$$;this.$page_id$=$page_id$jscomp$215$$;this.$meta68822$=$meta68822$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4221$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_initialize_page_STAR_$$},$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68823$$,$meta68822__$1$$){return new $app$main$data$workspace$pages$initialize_page_STAR__68821$$(this.$file_id$,
this.$page_id$,$meta68822__$1$$)},$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68822$},$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2359_page$jscomp$91$$,$local$jscomp$12_state$jscomp$737$$){var $self__$jscomp$5695$$=
this,$state__$1$jscomp$47$$=$APP.$app$main$data$helpers$update_page$cljs$0core$0IFn$0_invoke$0arity$04$$($local$jscomp$12_state$jscomp$737$$,$self__$jscomp$5695$$.$file_id$,$self__$jscomp$5695$$.$page_id$,function($p1__68816_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($p1__68816_SHARP_$$,$APP.$cljs$cst$1615$objects$$,$app$common$types$shape_tree$start_page_index$$)});$_$jscomp$2359_page$jscomp$91$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$47$$,
$self__$jscomp$5695$$.$file_id$,$self__$jscomp$5695$$.$page_id$);$local$jscomp$12_state$jscomp$737$$=function(){var $file_id$jscomp$inline_8102_or__5025__auto__$jscomp$796$$=$self__$jscomp$5695$$.$file_id$;var $page_id$jscomp$inline_8103$$=$self__$jscomp$5695$$.$page_id$;$file_id$jscomp$inline_8102_or__5025__auto__$jscomp$796$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state__$1$jscomp$47$$,$APP.$cljs$cst$4220$workspace_cache$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$file_id$jscomp$inline_8102_or__5025__auto__$jscomp$796$$,$page_id$jscomp$inline_8103$$],null));return $APP.$cljs$core$truth_$$($file_id$jscomp$inline_8102_or__5025__auto__$jscomp$796$$)?$file_id$jscomp$inline_8102_or__5025__auto__$jscomp$796$$:$APP.$app$main$data$workspace$pages$default_workspace_local$$}();return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$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$47$$,
$APP.$cljs$cst$1903$current_page_id$$,$self__$jscomp$5695$$.$page_id$),$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($local$jscomp$12_state$jscomp$737$$,$APP.$cljs$cst$1906$selected$$,$APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$())),$APP.$cljs$cst$4222$workspace_trimmed_page$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$723$name$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2359_page$jscomp$91$$,
$APP.$cljs$cst$723$name$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2359_page$jscomp$91$$,$APP.$cljs$cst$266$id$$)],null)),$APP.$cljs$cst$2171$workspace_layout$$,$app$main$data$workspace$layout$load_layout_flags$$),$APP.$cljs$cst$2148$workspace_global$$,$app$main$data$workspace$layout$load_layout_state$$)},$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$initialize_page_STAR__68821$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2360_page$jscomp$92$$,$state$jscomp$738_uris$jscomp$11$$){$_$jscomp$2360_page$jscomp$92$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$738_uris$jscomp$11$$,this.$file_id$,this.$page_id$);$state$jscomp$738_uris$jscomp$11$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$app$main$data$workspace$pages$xf_COLON_collect_file_media$$,$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2360_page$jscomp$92$$));
return $APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$ignore$$($APP.$beicon$v2$core$map$$(function($p1__68817_SHARP_$$){return $APP.$app$util$http$fetch_data_uri$$.$cljs$core$IFn$_invoke$arity$2$($p1__68817_SHARP_$$,!1)},$APP.$beicon$v2$core$from$$($state$jscomp$738_uris$jscomp$11$$))),$APP.$beicon$v2$core$ignore$$($APP.$app$main$worker$ask_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2972$cmd$$,$APP.$cljs$cst$4223$index_SLASH_initialize$$,
$APP.$cljs$cst$1608$page$$,$_$jscomp$2360_page$jscomp$92$$],null))))});return new $app$main$data$workspace$pages$initialize_page_STAR__68821$$($file_id$jscomp$224$$,$page_id$jscomp$214$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$modifiers$set_wasm_modifiers$$=function($var_args$jscomp$1231$$){for(var $args__5755__auto__$jscomp$219$$=[],$len__5749__auto___67371$$=arguments.length,$i__5750__auto___67372$$=0;;)if($i__5750__auto___67372$$<$len__5749__auto___67371$$)$args__5755__auto__$jscomp$219$$.push(arguments[$i__5750__auto___67372$$]),$i__5750__auto___67372$$+=1;else break;return $APP.$app$main$data$workspace$modifiers$set_wasm_modifiers$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(arguments[0],1<
$args__5755__auto__$jscomp$219$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$219$$.slice(1),0,null):null)};
$app$main$data$workspace$transforms$resize_text_editor$$=function($id$jscomp$543$$,$p__67795$$){var $map__67796__$1$$=$APP.$cljs$core$__destructure_map$$($p__67795$$),$width$jscomp$135$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__67796__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$121$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__67796__$1$$,$APP.$cljs$cst$1511$height$$);typeof $app$main$data$workspace$transforms$resize_text_editor_67797$$==="undefined"&&($app$main$data$workspace$transforms$resize_text_editor_67797$$=
function($id$jscomp$544$$,$p__67795$jscomp$1$$,$map__67796$jscomp$1$$,$width$jscomp$136$$,$height$jscomp$122$$,$meta67798$$){this.id=$id$jscomp$544$$;this.$p__67795$=$p__67795$jscomp$1$$;this.$map__67796$=$map__67796$jscomp$1$$;this.width=$width$jscomp$136$$;this.height=$height$jscomp$122$$;this.$meta67798$=$meta67798$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3731$app_DOT_main_DOT_data_DOT_workspace_DOT_transforms_SLASH_resize_text_editor$$},$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67799$$,$meta67798__$1$$){return new $app$main$data$workspace$transforms$resize_text_editor_67797$$(this.id,this.$p__67795$,
this.$map__67796$,this.width,this.height,$meta67798__$1$$)},$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67798$},$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$resize_text_editor_67797$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$,
$resize_v$jscomp$1_state$jscomp$428$$){$_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($resize_v$jscomp$1_state$jscomp$428$$);$_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$,this.id);$resize_v$jscomp$1_state$jscomp$428$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(this.width/
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$)),this.height/$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$)));var $origin$jscomp$36$$=$APP.$cljs$core$first$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$));
$_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$=$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([this.id,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1794$modifiers$$,$APP.$app$common$types$modifiers$resize_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($resize_v$jscomp$1_state$jscomp$428$$,$origin$jscomp$36$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$,$APP.$app$common$geom$matrix$matrix$$.$cljs$core$IFn$_invoke$arity$0$()),
$APP.$cljs$cst$1771$transform_inverse$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$,$APP.$app$common$geom$matrix$matrix$$.$cljs$core$IFn$_invoke$arity$0$()))],null)]);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$modifiers$set_wasm_modifiers$$($_$jscomp$1979_modifiers$jscomp$91_objects$jscomp$485_shape$jscomp$542$$))});return new $app$main$data$workspace$transforms$resize_text_editor_67797$$($id$jscomp$543$$,$p__67795$$,$map__67796__$1$$,
$width$jscomp$135$$,$height$jscomp$121$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$render_wasm$api$set_objects_sync$$=function($shapes$jscomp$35$$){var $total_shapes$jscomp$1$$=$APP.$cljs$core$count$$($shapes$jscomp$35$$),$map__54154_thumbnails$jscomp$5$$=function(){for(var $G__54457_index$jscomp$247$$=0,$G__54458_thumbnails_acc$jscomp$2$$=$APP.$cljs$core$PersistentVector$EMPTY$$,$G__54459_full_acc$jscomp$2$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;)if($G__54457_index$jscomp$247$$<$total_shapes$jscomp$1$$){var $map__54157_shape$jscomp$392_thumbnails$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($shapes$jscomp$35$$,
$G__54457_index$jscomp$247$$);$map__54157_shape$jscomp$392_thumbnails$jscomp$6$$=$APP.$app$render_wasm$api$set_object$$($map__54157_shape$jscomp$392_thumbnails$jscomp$6$$);var $full$jscomp$6_map__54157__$1$$=$APP.$cljs$core$__destructure_map$$($map__54157_shape$jscomp$392_thumbnails$jscomp$6$$);$map__54157_shape$jscomp$392_thumbnails$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$6_map__54157__$1$$,$APP.$cljs$cst$2191$thumbnails$$);$full$jscomp$6_map__54157__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$6_map__54157__$1$$,
$APP.$cljs$cst$1259$full$$);$G__54457_index$jscomp$247$$+=1;$G__54458_thumbnails_acc$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__54458_thumbnails_acc$jscomp$2$$,$map__54157_shape$jscomp$392_thumbnails$jscomp$6$$);$G__54459_full_acc$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__54459_full_acc$jscomp$2$$,$full$jscomp$6_map__54157__$1$$)}else return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2191$thumbnails$$,$G__54458_thumbnails_acc$jscomp$2$$,
$APP.$cljs$cst$1259$full$$,$G__54459_full_acc$jscomp$2$$],null)}(),$full$jscomp$5_map__54154__$1$$=$APP.$cljs$core$__destructure_map$$($map__54154_thumbnails$jscomp$5$$);$map__54154_thumbnails$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$5_map__54154__$1$$,$APP.$cljs$cst$2191$thumbnails$$);$full$jscomp$5_map__54154__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$5_map__54154__$1$$,$APP.$cljs$cst$1259$full$$);performance.mark("set-objects::end");
performance.measure("set-objects",{start:"set-objects::begin",end:"set-objects::end",detail:{}});$APP.$app$render_wasm$api$process_pending$cljs$0core$0IFn$0_invoke$0arity$05$$($shapes$jscomp$35$$,$map__54154_thumbnails$jscomp$5$$,$full$jscomp$5_map__54154__$1$$,$APP.$app$render_wasm$api$noop_fn$$,function(){$APP.$cljs$core$truth_$$(null)?null.$cljs$core$IFn$_invoke$arity$0$?null.$cljs$core$IFn$_invoke$arity$0$():null():$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$():
(0,$APP.$app$render_wasm$api$render_finish$$)();return $APP.$app$util$globals$dispatch_BANG_$$($APP.$app$util$globals$event$$("penpot:wasm:set-objects"))})};
$app$render_wasm$api$process_shapes_chunk$$=function($shapes$jscomp$33$$,$G__54452_index$jscomp$245_start_index$jscomp$1$$,$G__54453_t_acc_thumbnails_acc$$,$G__54454_f_acc_full_acc$$){var $end_index_total$jscomp$12$$=$APP.$cljs$core$count$$($shapes$jscomp$33$$),$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$=$G__54452_index$jscomp$245_start_index$jscomp$1$$+100;for($end_index_total$jscomp$12$$=$end_index_total$jscomp$12$$<$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$?
$end_index_total$jscomp$12$$:$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$;;)if($G__54452_index$jscomp$245_start_index$jscomp$1$$<$end_index_total$jscomp$12$$){$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($shapes$jscomp$33$$,$G__54452_index$jscomp$245_start_index$jscomp$1$$);$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$=$APP.$app$render_wasm$api$set_object$$($map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$);
var $full$jscomp$3_map__54133__$1$$=$APP.$cljs$core$__destructure_map$$($map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$);$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$3_map__54133__$1$$,$APP.$cljs$cst$2191$thumbnails$$);$full$jscomp$3_map__54133__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($full$jscomp$3_map__54133__$1$$,$APP.$cljs$cst$1259$full$$);
$G__54452_index$jscomp$245_start_index$jscomp$1$$+=1;$G__54453_t_acc_thumbnails_acc$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__54453_t_acc_thumbnails_acc$$,$map__54133_shape$jscomp$391_thumbnails$jscomp$3_y__5114__auto__$jscomp$inline_8105$$);$G__54454_f_acc_full_acc$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__54454_f_acc_full_acc$$,$full$jscomp$3_map__54133__$1$$)}else return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2191$thumbnails$$,$G__54453_t_acc_thumbnails_acc$$,
$APP.$cljs$cst$1259$full$$,$G__54454_f_acc_full_acc$$,$APP.$cljs$cst$3075$next_index$$,$end_index_total$jscomp$12$$],null)};
$app$render_wasm$api$set_objects_async$$=function($shapes$jscomp$34$$){var $total_shapes$$=$APP.$cljs$core$count$$($shapes$jscomp$34$$),$total_chunks$$=$APP.$app$common$math$ceil$$($total_shapes$$/100),$render_at_chunks$$=$APP.$cljs$core$set$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$math$floor$$($total_chunks$$*.25),$APP.$app$common$math$floor$$($total_chunks$$*.5),$APP.$app$common$math$floor$$($total_chunks$$*.75)],null));return $APP.$promesa$core$create$cljs$0core$0IFn$0_invoke$0arity$01$$(function($resolve$jscomp$25$$){return function $app$render_wasm$api$set_objects_async_$_process_next_chunk$$($index$jscomp$246_map__54148_map__54148__$1$$,
$thumbnails_acc$jscomp$1$$,$full_acc$jscomp$1$$,$chunk_count$$){if($index$jscomp$246_map__54148_map__54148__$1$$<$total_shapes$$){$index$jscomp$246_map__54148_map__54148__$1$$=$app$render_wasm$api$process_shapes_chunk$$($shapes$jscomp$34$$,$index$jscomp$246_map__54148_map__54148__$1$$,$thumbnails_acc$jscomp$1$$,$full_acc$jscomp$1$$);$index$jscomp$246_map__54148_map__54148__$1$$=$APP.$cljs$core$__destructure_map$$($index$jscomp$246_map__54148_map__54148__$1$$);var $thumbnails$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$246_map__54148_map__54148__$1$$,
$APP.$cljs$cst$2191$thumbnails$$),$full$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$246_map__54148_map__54148__$1$$,$APP.$cljs$cst$1259$full$$),$next_index$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$246_map__54148_map__54148__$1$$,$APP.$cljs$cst$3075$next_index$$),$new_chunk_count$$=$chunk_count$$+1;$APP.$cljs$core$contains_QMARK_$$($render_at_chunks$$,$new_chunk_count$$)&&$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($APP.$app$render_wasm$wasm$context_lost_QMARK_$$))&&
(0,$APP.$app$render_wasm$wasm$internal_module$$._render_preview)();return $APP.$promesa$core$then$$.$cljs$core$IFn$_invoke$arity$2$($app$render_wasm$api$yield_to_browser$$(),function(){return $app$render_wasm$api$set_objects_async_$_process_next_chunk$$($next_index$$,$thumbnails$jscomp$4$$,$full$jscomp$4$$,$new_chunk_count$$)})}performance.mark("set-objects::end");performance.measure("set-objects",{start:"set-objects::begin",end:"set-objects::end",detail:{}});return $APP.$app$render_wasm$api$process_pending$cljs$0core$0IFn$0_invoke$0arity$05$$($shapes$jscomp$34$$,
$thumbnails_acc$jscomp$1$$,$full_acc$jscomp$1$$,$APP.$app$render_wasm$api$noop_fn$$,function(){$app$render_wasm$api$end_shapes_loading_BANG_$$();$APP.$cljs$core$truth_$$(null)?null.$cljs$core$IFn$_invoke$arity$0$?null.$cljs$core$IFn$_invoke$arity$0$():null():$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$app$render_wasm$api$render_finish$$)();$APP.$app$util$globals$dispatch_BANG_$$($APP.$app$util$globals$event$$("penpot:wasm:set-objects"));
return $resolve$jscomp$25$$.$cljs$core$IFn$_invoke$arity$1$?$resolve$jscomp$25$$.$cljs$core$IFn$_invoke$arity$1$(null):$resolve$jscomp$25$$(null)})}(0,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$PersistentVector$EMPTY$$,0)})};
$app$render_wasm$api$set_objects$cljs$0core$0IFn$0_invoke$0arity$02$$=function($error_54468_objects$jscomp$272_shapes$jscomp$36$$){performance.mark("set-objects::begin");$error_54468_objects$jscomp$272_shapes$jscomp$36$$=$app$render_wasm$api$shapes_in_tree_order$$($error_54468_objects$jscomp$272_shapes$jscomp$36$$);if($APP.$cljs$core$count$$($error_54468_objects$jscomp$272_shapes$jscomp$36$$)<100)$app$render_wasm$api$set_objects_sync$$($error_54468_objects$jscomp$272_shapes$jscomp$36$$);else{$app$render_wasm$api$begin_shapes_loading_BANG_$$();
try{$APP.$promesa$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($app$render_wasm$api$set_objects_async$$($error_54468_objects$jscomp$272_shapes$jscomp$36$$),function($error$jscomp$51$$){$app$render_wasm$api$end_shapes_loading_BANG_$$();return console.error("Async WASM shape loading failed",$error$jscomp$51$$)})}catch($e54168$$){throw $error_54468_objects$jscomp$272_shapes$jscomp$36$$=$e54168$$,$app$render_wasm$api$end_shapes_loading_BANG_$$(),console.error("Async WASM shape loading failed",$error_54468_objects$jscomp$272_shapes$jscomp$36$$),
$error_54468_objects$jscomp$272_shapes$jscomp$36$$;}}};$app$util$code_gen$markup_svg$generate_formatted_markup$$=function($markup_objects$jscomp$511$$,$shapes$jscomp$111$$){$markup_objects$jscomp$511$$=$APP.$app$util$code_gen$markup_svg$generate_markup$$($markup_objects$jscomp$511$$,$shapes$jscomp$111$$);return $APP.$app$util$code_beautify$format_code$$($markup_objects$jscomp$511$$,"svg")};
$app$main$data$workspace$clipboard$copy_selected_svg$$=function(){typeof $app$main$data$workspace$clipboard$copy_selected_svg_69085$$==="undefined"&&($app$main$data$workspace$clipboard$copy_selected_svg_69085$$=function($meta69086$$){this.$meta69086$=$meta69086$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3992$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_copy_selected_svg$$},$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69087$$,$meta69086__$1$$){return new $app$main$data$workspace$clipboard$copy_selected_svg_69085$$($meta69086__$1$$)},$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69086$},$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$potok$v2$core$EffectEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$copy_selected_svg_69085$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$,$state$jscomp$554$$){var $objects$jscomp$563$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$554$$);$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$563$$),
$APP.$app$common$types$shape_tree$sort_z_index$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$563$$,$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$554$$)));var $parent_frame_id$jscomp$2$$=$APP.$app$common$files$helpers$common_parent_frame$$($objects$jscomp$563$$,$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$);$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69084_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parent_frame_id$jscomp$2$$,
$APP.$app$common$uuid$zero$$)?$p1__69084_SHARP_$$:$APP.$app$common$geom$shapes$translate_to_frame$$($p1__69084_SHARP_$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$563$$,$parent_frame_id$jscomp$2$$))},$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$);$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$=$app$util$code_gen$markup_svg$generate_formatted_markup$$($objects$jscomp$563$$,$_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$);
return $APP.$app$util$clipboard$to_clipboard$$($_$jscomp$2153_selected$jscomp$63_shapes$jscomp$113_svg_formatted$$)});return new $app$main$data$workspace$clipboard$copy_selected_svg_69085$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$update_component_thumbnail_sync$$=function($component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$,$component_id$jscomp$57_page_id$jscomp$177$$,$file_id$jscomp$143$$,$tag$jscomp$85$$){$component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$,$file_id$jscomp$143$$);$component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$=
$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$,$component_id$jscomp$57_page_id$jscomp$177$$);$component_id$jscomp$57_page_id$jscomp$177$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$);$component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$=$APP.$cljs$cst$2045$main_instance_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$);
return $APP.$app$main$data$workspace$thumbnails$update_thumbnail$$($file_id$jscomp$143$$,$component_id$jscomp$57_page_id$jscomp$177$$,$component$jscomp$82_data$jscomp$342_root_id$jscomp$6_state$jscomp$465$$,$tag$jscomp$85$$,"update-component-thumbnail-sync")};
$app$main$data$workspace$libraries$update_component_thumbnail$$=function($component_id$jscomp$62$$,$file_id$jscomp$150$$){typeof $app$main$data$workspace$libraries$update_component_thumbnail_68325$$==="undefined"&&($app$main$data$workspace$libraries$update_component_thumbnail_68325$$=function($component_id$jscomp$63$$,$file_id$jscomp$151$$,$meta68326$$){this.$component_id$=$component_id$jscomp$63$$;this.$file_id$=$file_id$jscomp$151$$;this.$meta68326$=$meta68326$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3796$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_update_component_thumbnail$$},$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68327$$,$meta68326__$1$$){return new $app$main$data$workspace$libraries$update_component_thumbnail_68325$$(this.$component_id$,this.$file_id$,$meta68326__$1$$)},$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68326$},$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_thumbnail_68325$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2031$$,$state$jscomp$468$$){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$libraries$update_component_thumbnail_sync$$($state$jscomp$468$$,this.$component_id$,this.$file_id$,"component"))});return new $app$main$data$workspace$libraries$update_component_thumbnail_68325$$($component_id$jscomp$62$$,$file_id$jscomp$150$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$thumbnails$watch_state_changes$$=function($file_id$jscomp$119$$,$page_id$jscomp$142$$){typeof $app$main$data$workspace$thumbnails$watch_state_changes_66352$$==="undefined"&&($app$main$data$workspace$thumbnails$watch_state_changes_66352$$=function($file_id$jscomp$120$$,$page_id$jscomp$143$$,$meta66353$$){this.$file_id$=$file_id$jscomp$120$$;this.$page_id$=$page_id$jscomp$143$$;this.$meta66353$=$meta66353$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3648$app_DOT_main_DOT_data_DOT_workspace_DOT_thumbnails_SLASH_watch_state_changes$$},$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66354$$,$meta66353__$1$$){return new $app$main$data$workspace$thumbnails$watch_state_changes_66352$$(this.$file_id$,
this.$page_id$,$meta66353__$1$$)},$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66353$},$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$thumbnails$watch_state_changes_66352$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1927_stopper_s$$,$___$1$jscomp$1238_all_commits_s_workspace_data_s$$,
$notifier_s$jscomp$1_stream$jscomp$40$$){var $self__$jscomp$4379$$=this;$_$jscomp$1927_stopper_s$$=$APP.$beicon$v2$core$filter$$(function($event$jscomp$86_type$jscomp$467$$){$event$jscomp$86_type$jscomp$467$$=$APP.$potok$v2$core$type$$($event$jscomp$86_type$jscomp$467$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3519$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_finalize_page$$,$event$jscomp$86_type$jscomp$467$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3648$app_DOT_main_DOT_data_DOT_workspace_DOT_thumbnails_SLASH_watch_state_changes$$,
$event$jscomp$86_type$jscomp$467$$)},$notifier_s$jscomp$1_stream$jscomp$40$$);$___$1$jscomp$1238_all_commits_s_workspace_data_s$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$buffer$cljs$0core$0IFn$0_invoke$0arity$03$$(2,$APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)(null),$APP.$beicon$v2$core$from_atom$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$refs$workspace_data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1312$emit_current_value_QMARK_$$,!0],null)))));
$___$1$jscomp$1238_all_commits_s_workspace_data_s$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__66350_SHARP_$$){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.thumbnails",$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,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$$,"inconming change"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1770$origin$$,"all"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1591$frame_id$$,""+($p1__66350_SHARP_$$??"")],null)],null)}),null,"app.main.data.workspace.thumbnails",$APP.$cljs$cst$144$trace$$,!1);return null},$APP.$beicon$v2$core$merge_map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$workspace$thumbnails$extract_frame_changes$$,
$self__$jscomp$4379$$.$page_id$),$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($___$1$jscomp$1238_all_commits_s_workspace_data_s$$,$APP.$beicon$v2$core$observe_on$$($APP.$cljs$cst$2287$async$$,$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$app$main$data$changes$commit_QMARK_$$,$notifier_s$jscomp$1_stream$jscomp$40$$)))))));$notifier_s$jscomp$1_stream$jscomp$40$$=$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.thumbnails",
$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"buffer initialized"],null)],null)}),null,"app.main.data.workspace.thumbnails",$APP.$cljs$cst$144$trace$$,!1);return null},$APP.$beicon$v2$core$debounce$$(5E3,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3111$app_DOT_main_DOT_data_DOT_persistence_SLASH_commit_persisted$$),
$notifier_s$jscomp$1_stream$jscomp$40$$)));return $APP.$beicon$v2$core$take_until$$($_$jscomp$1927_stopper_s$$,$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$mapcat$$(function($frame_id$jscomp$72_p__66362$$){var $tag$jscomp$83$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame_id$jscomp$72_p__66362$$,0,null);$frame_id$jscomp$72_p__66362$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame_id$jscomp$72_p__66362$$,1,null);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$thumbnails$clear_thumbnail$cljs$0core$0IFn$0_invoke$0arity$04$$($self__$jscomp$4379$$.$file_id$,
$self__$jscomp$4379$$.$page_id$,$frame_id$jscomp$72_p__66362$$,$tag$jscomp$83$$))},$___$1$jscomp$1238_all_commits_s_workspace_data_s$$),$APP.$beicon$v2$core$map$$(function($frame_id$jscomp$73_p__66366$$){var $tag$jscomp$84$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame_id$jscomp$73_p__66366$$,0,null);$frame_id$jscomp$73_p__66366$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame_id$jscomp$73_p__66366$$,1,null);return $APP.$app$main$data$workspace$thumbnails$update_thumbnail$$($self__$jscomp$4379$$.$file_id$,
$self__$jscomp$4379$$.$page_id$,$frame_id$jscomp$73_p__66366$$,$tag$jscomp$84$$,"watch-state-changes")},$APP.$beicon$v2$core$mapcat$$(function($p1__66351_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$p1__66351_SHARP_$$)},$APP.$beicon$v2$core$buffer_until$$($notifier_s$jscomp$1_stream$jscomp$40$$,$___$1$jscomp$1238_all_commits_s_workspace_data_s$$)))))});return new $app$main$data$workspace$thumbnails$watch_state_changes_66352$$($file_id$jscomp$119$$,
$page_id$jscomp$142$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$malli$util$assoc_in$cljs$0core$0IFn$0_invoke$0arity$04$$=function($_QMARK_schema$jscomp$121_schema$jscomp$79$$,$first__34978_p__34975$$,$JSCompiler_temp$jscomp$440_value$jscomp$295$$,$JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$){var $seq__34977_seq__34977__$1$$=$APP.$cljs$core$seq$$($first__34978_p__34975$$);$first__34978_p__34975$$=$APP.$cljs$core$first$$($seq__34977_seq__34977__$1$$);$seq__34977_seq__34977__$1$$=$APP.$cljs$core$next$$($seq__34977_seq__34977__$1$$);
$_QMARK_schema$jscomp$121_schema$jscomp$79$$=$APP.$malli$core$schema$$.$cljs$core$IFn$_invoke$arity$2$($_QMARK_schema$jscomp$121_schema$jscomp$79$$,$JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$);$seq__34977_seq__34977__$1$$&&($JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$=$APP.$malli$core$schema$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$202$map$$,$APP.$malli$core$options$cljs$0core$0IFn$0_invoke$0arity$02$$($_QMARK_schema$jscomp$121_schema$jscomp$79$$)),
$JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$=$APP.$malli$util$get$cljs$0core$0IFn$0_invoke$0arity$04$$($_QMARK_schema$jscomp$121_schema$jscomp$79$$,$first__34978_p__34975$$,$JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$),$JSCompiler_temp$jscomp$440_value$jscomp$295$$=$malli$util$assoc_in$cljs$0core$0IFn$0_invoke$0arity$04$$($JSCompiler_inline_result$jscomp$441_default$$jscomp$inline_8110_options$jscomp$291$$,$seq__34977_seq__34977__$1$$,
$JSCompiler_temp$jscomp$440_value$jscomp$295$$,null));return $APP.$malli$util$assoc$cljs$0core$0IFn$0_invoke$0arity$04$$($_QMARK_schema$jscomp$121_schema$jscomp$79$$,$first__34978_p__34975$$,$JSCompiler_temp$jscomp$440_value$jscomp$295$$,null)};
$malli$error$_resolve_direct_error$$=function($JSCompiler_temp_const$jscomp$1607__$jscomp$766$$,$error$jscomp$22$$,$options$jscomp$392$$){$JSCompiler_temp_const$jscomp$1607__$jscomp$766$$=$APP.$cljs$core$PersistentVector$EMPTY_NODE$$;var $JSCompiler_inline_result$jscomp$1608_JSCompiler_temp_const$jscomp$10563$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$;var $JSCompiler_temp_const$jscomp$10562$$=$APP.$cljs$cst$295$in$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$22$$);var $JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$=
$APP.$cljs$core$__destructure_map$$($error$jscomp$22$$);var $properties$jscomp$inline_12670_schema$jscomp$inline_12666$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$,$APP.$cljs$cst$296$schema$$),$default_locale$jscomp$inline_12669_map__35287__$1$jscomp$inline_12667$$=$APP.$cljs$core$__destructure_map$$($options$jscomp$392$$);$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($default_locale$jscomp$inline_12669_map__35287__$1$jscomp$inline_12667$$,$APP.$cljs$cst$886$locale$$);$default_locale$jscomp$inline_12669_map__35287__$1$jscomp$inline_12667$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($default_locale$jscomp$inline_12669_map__35287__$1$jscomp$inline_12667$$,$APP.$cljs$cst$887$default_locale$$,$APP.$cljs$cst$881$en$$);$properties$jscomp$inline_12670_schema$jscomp$inline_12666$$=$APP.$malli$core$properties$$.$cljs$core$IFn$_invoke$arity$1$($properties$jscomp$inline_12670_schema$jscomp$inline_12666$$);
$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$=$APP.$malli$error$_maybe_localized$$($APP.$cljs$cst$888$error_SLASH_path$$.$cljs$core$IFn$_invoke$arity$1$($properties$jscomp$inline_12670_schema$jscomp$inline_12666$$),$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$);$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$)?$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$:$APP.$malli$error$_maybe_localized$$($APP.$cljs$cst$888$error_SLASH_path$$.$cljs$core$IFn$_invoke$arity$1$($properties$jscomp$inline_12670_schema$jscomp$inline_12666$$),$default_locale$jscomp$inline_12669_map__35287__$1$jscomp$inline_12667$$);
$JSCompiler_inline_result$jscomp$1608_JSCompiler_temp_const$jscomp$10563$$=$JSCompiler_inline_result$jscomp$1608_JSCompiler_temp_const$jscomp$10563$$.call($APP.$cljs$core$into$$,$JSCompiler_temp_const$jscomp$10562$$,$JSCompiler_inline_result$jscomp$10565_locale$jscomp$inline_12668_map__35286__$1$jscomp$inline_12665_or__5025__auto__$jscomp$inline_12671$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$JSCompiler_temp_const$jscomp$1607__$jscomp$766$$,[$JSCompiler_inline_result$jscomp$1608_JSCompiler_temp_const$jscomp$10563$$,
$APP.$malli$error$error_message$cljs$0core$0IFn$0_invoke$0arity$02$$($error$jscomp$22$$,$options$jscomp$392$$)],null)};
$malli$error$humanize$cljs$0core$0IFn$0_invoke$0arity$02$$=function($errors$jscomp$10_p__35468$$){var $map__35470__$1$$=$APP.$cljs$core$__destructure_map$$($errors$jscomp$10_p__35468$$),$value$jscomp$314$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__35470__$1$$,$APP.$cljs$cst$260$value$$);$errors$jscomp$10_p__35468$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__35470__$1$$,$APP.$cljs$cst$568$errors$$);var $map__35471__$1$$=$APP.$cljs$core$__destructure_map$$(null),$wrap$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__35471__$1$$,$APP.$cljs$cst$894$wrap$$,$APP.$cljs$cst$141$message$$),$resolve$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__35471__$1$$,$APP.$cljs$cst$896$resolve$$,$malli$error$_resolve_direct_error$$);return $APP.$cljs$core$truth_$$($errors$jscomp$10_p__35468$$)?$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$73$$,$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$){var $message$jscomp$46_vec__35473$$=
$resolve$jscomp$1$$.$cljs$core$IFn$_invoke$arity$3$?$resolve$jscomp$1$$.$cljs$core$IFn$_invoke$arity$3$($map__35470__$1$$,$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$,$map__35471__$1$$):$resolve$jscomp$1$$($map__35470__$1$$,$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$,$map__35471__$1$$),$path$jscomp$115$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($message$jscomp$46_vec__35473$$,0,null);$message$jscomp$46_vec__35473$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($message$jscomp$46_vec__35473$$,1,null);$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$,$APP.$cljs$cst$141$message$$,$message$jscomp$46_vec__35473$$);$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$=$wrap$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?
$wrap$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$):$wrap$jscomp$2$$($G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$);return $malli$error$_push_in$$($acc$jscomp$73$$,$value$jscomp$314$$,$path$jscomp$115$$,$G__35476$jscomp$inline_8123_JSCompiler_inline_result$jscomp$1609_error$jscomp$27$$)},null,$errors$jscomp$10_p__35468$$):null};
$app$common$schema$valid_QMARK_$$=function($s$jscomp$375$$,$value$jscomp$316$$){try{return $APP.$malli$core$validate$cljs$0core$0IFn$0_invoke$0arity$03$$($s$jscomp$375$$,$value$jscomp$316$$)}catch($e40043$$){return!1}};
$app$main$data$plugins$update_plugin_permissions_peek$$=function($map__54768__$1_p__54767_url$jscomp$84$$){$map__54768__$1_p__54767_url$jscomp$84$$=$APP.$cljs$core$__destructure_map$$($map__54768__$1_p__54767_url$jscomp$84$$);var $plugin_id$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54768__$1_p__54767_url$jscomp$84$$,$APP.$cljs$cst$1704$plugin_id$$);$map__54768__$1_p__54767_url$jscomp$84$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54768__$1_p__54767_url$jscomp$84$$,
$APP.$cljs$cst$1960$url$$);$APP.$cljs$core$truth_$$($map__54768__$1_p__54767_url$jscomp$84$$)&&$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($new_manifest$jscomp$1_permissions$jscomp$9$$){$new_manifest$jscomp$1_permissions$jscomp$9$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($new_manifest$jscomp$1_permissions$jscomp$9$$);return $APP.$cljs$core$truth_$$($new_manifest$jscomp$1_permissions$jscomp$9$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$plugins$save_plugin_permissions_peek$$($plugin_id$jscomp$7$$,
$new_manifest$jscomp$1_permissions$jscomp$9$$)):null},function(){return null},$APP.$app$main$data$plugins$fetch_manifest$$($map__54768__$1_p__54767_url$jscomp$84$$))};
$app$main$data$plugins$update_plugins_permissions_peek$$=function(){typeof $app$main$data$plugins$update_plugins_permissions_peek_54778$$==="undefined"&&($app$main$data$plugins$update_plugins_permissions_peek_54778$$=function($meta54779$$){this.$meta54779$=$meta54779$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3152$app_DOT_main_DOT_data_DOT_plugins_SLASH_update_plugins_permissions_peek$$},$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54780$$,$meta54779__$1$$){return new $app$main$data$plugins$update_plugins_permissions_peek_54778$$($meta54779__$1$$)},$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54779$},$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$plugins$update_plugins_permissions_peek_54778$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1651_now$jscomp$5$$,$state$jscomp$184$$){$_$jscomp$1651_now$jscomp$5$$=$APP.$app$common$time$now$$();var $c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$app$common$time$minus$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3153$days$$,1],null)),$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$184$$,$APP.$cljs$cst$2189$plugins_permissions_peek$$),$APP.$cljs$cst$3154$updated_at$$,0);if($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$>$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$){$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$app$plugins$register$plugins_list$$();
$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$cljs$core$seq$$($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$);$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$=null;for(var $G__54884_count__54784_54872$$=0,$G__54882_i__54785_54873$$=0;;)if($G__54882_i__54785_54873$$<$G__54884_count__54784_54872$$){var $plugin_54874$$=$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$.$cljs$core$IIndexed$_nth$arity$2$(null,
$G__54882_i__54785_54873$$);$app$main$data$plugins$update_plugin_permissions_peek$$($plugin_54874$$);$G__54882_i__54785_54873$$+=1}else if($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$cljs$core$seq$$($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$))$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$=$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$,
$APP.$cljs$core$chunked_seq_QMARK_$$($G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$)?($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$cljs$core$_chunked_first$$($G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$),$G__54882_i__54785_54873$$=$APP.$cljs$core$_chunked_rest$$($G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$),$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$=$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$,
$G__54884_count__54784_54872$$=$APP.$cljs$core$count$$($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$),$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$G__54882_i__54785_54873$$):($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$cljs$core$first$$($G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$),$app$main$data$plugins$update_plugin_permissions_peek$$($c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$),
$c__5548__auto___54881_expiration_plugin_54886_plugins_seq__54782_54870_temp__5825__auto___54879$$=$APP.$cljs$core$next$$($G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$),$G__54883_chunk__54783_54871_seq__54782_54880__$1_updated_at$$=null,$G__54884_count__54784_54872$$=0),$G__54882_i__54785_54873$$=0;else break;return $APP.$cljs$core$assoc_in$$($state$jscomp$184$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2189$plugins_permissions_peek$$,
$APP.$cljs$cst$3154$updated_at$$],null),$_$jscomp$1651_now$jscomp$5$$)}return $state$jscomp$184$$});return new $app$main$data$plugins$update_plugins_permissions_peek_54778$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$types$tokens_lib$export_dtcg_multi_file$$=function($tokens_lib$jscomp$2$$){var $active_themes$jscomp$6_vec__50087$$=$APP.$app$common$types$tokens_lib$dtcg_export_themes$$($tokens_lib$jscomp$2$$),$themes$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($active_themes$jscomp$6_vec__50087$$,0,null);$active_themes$jscomp$6_vec__50087$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($active_themes$jscomp$6_vec__50087$$,1,null);var $sets$jscomp$11$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($token_set$jscomp$6_tokens$jscomp$17$$){var $name$jscomp$220$$=$APP.$app$common$types$tokens_lib$get_name$$($token_set$jscomp$6_tokens$jscomp$17$$);$token_set$jscomp$6_tokens$jscomp$17$$=$APP.$app$common$types$tokens_lib$get_tokens_$$($token_set$jscomp$6_tokens$jscomp$17$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$220$$),
".json"].join(""),$APP.$app$common$types$tokens_lib$tokens_tree$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($token_set$jscomp$6_tokens$jscomp$17$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2085$update_token_fn$$,$APP.$app$common$types$tokens_lib$token__GT_dtcg_token$$]))],null)},$APP.$app$common$types$tokens_lib$get_sets$$($tokens_lib$jscomp$2$$)));return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($sets$jscomp$11$$,
"$themes.json",$themes$jscomp$6$$),"$metadata.json",new $APP.$cljs$core$PersistentArrayMap$$(null,3,["tokenSetOrder",$app$common$types$tokens_lib$get_set_names$$($tokens_lib$jscomp$2$$),"activeThemes",$active_themes$jscomp$6_vec__50087$$,"activeSets",$APP.$app$common$types$tokens_lib$get_active_themes_set_names$$($tokens_lib$jscomp$2$$)],null))};
$app$main$data$workspace$colors$add_recent_color$$=function($color$jscomp$92_color__$1$jscomp$12$$){$color$jscomp$92_color__$1$jscomp$12$$=(0,$APP.$app$common$types$color$check_color$$)($color$jscomp$92_color__$1$jscomp$12$$);typeof $app$main$data$workspace$colors$add_recent_color_69451$$==="undefined"&&($app$main$data$workspace$colors$add_recent_color_69451$$=function($color$jscomp$93$$,$meta69452$$){this.color=$color$jscomp$93$$;this.$meta69452$=$meta69452$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4050$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_add_recent_color$$},$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69453$$,$meta69452__$1$$){return new $app$main$data$workspace$colors$add_recent_color_69451$$(this.color,$meta69452__$1$$)},$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69452$},$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2195_file_id$jscomp$192$$,$state$jscomp$591$$){var $self__$jscomp$5156$$=this;$_$jscomp$2195_file_id$jscomp$192$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$591$$);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$591$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2175$recent_colors$$,$_$jscomp$2195_file_id$jscomp$192$$],null),function($colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$){$colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$=
$APP.$app$common$data$removev$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$workspace$colors$recent_color_equal_QMARK_$$,$self__$jscomp$5156$$.color),$colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$);$colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$,$self__$jscomp$5156$$.color);return $APP.$cljs$core$count$$($colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$)>
15?$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$02$$($colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$,1):$colors$jscomp$4_colors__$1$jscomp$2_colors__$2$jscomp$1$$})},$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_recent_color_69451$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function($_$jscomp$2196_recent_colors$$,$state$jscomp$592$$){$_$jscomp$2196_recent_colors$$=
$APP.$cljs$cst$2175$recent_colors$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$592$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2175$recent_colors$$,$_$jscomp$2196_recent_colors$$)});return new $app$main$data$workspace$colors$add_recent_color_69451$$($color$jscomp$92_color__$1$jscomp$12$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$update_colorpicker_color$$=function($changes$jscomp$219$$,$add_recent_QMARK_$$){typeof $app$main$data$workspace$colors$update_colorpicker_color_69533$$==="undefined"&&($app$main$data$workspace$colors$update_colorpicker_color_69533$$=function($changes$jscomp$220$$,$add_recent_QMARK_$jscomp$1$$,$meta69534$$){this.$changes$=$changes$jscomp$220$$;this.$add_recent_QMARK_$=$add_recent_QMARK_$jscomp$1$$;this.$meta69534$=$meta69534$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4057$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_update_colorpicker_color$$},$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69535$$,$meta69534__$1$$){return new $app$main$data$workspace$colors$update_colorpicker_color_69533$$(this.$changes$,this.$add_recent_QMARK_$,$meta69534__$1$$)},$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69534$},$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2209$$,$state$jscomp$604$$){var $self__$jscomp$5206$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$604$$,$APP.$cljs$cst$2199$colorpicker$$,function($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$){var $type$jscomp$483$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$);$G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$,
$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$merge$$,$self__$jscomp$5206$$.$changes$),$APP.$cljs$cst$4048$current_color$$,$app$main$data$workspace$colors$materialize_color_components$$),$APP.$cljs$cst$4048$current_color$$,function($p1__69532_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$483$$,$APP.$cljs$cst$1596$image$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__69532_SHARP_$$,$APP.$cljs$cst$1596$image$$):$p1__69532_SHARP_$$}),$APP.$cljs$cst$4048$current_color$$,
$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$cst$1720$ref_file$$);var $temp__5823__auto__$jscomp$179$$=$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$);if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$179$$))return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1717$stops$$,$temp__5823__auto__$jscomp$179$$],null),function($data$jscomp$378$$){return $app$main$data$workspace$colors$materialize_color_components$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$data$jscomp$378$$,$self__$jscomp$5206$$.$changes$])))});$G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$,
$APP.$cljs$cst$1708$gradient$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,$APP.$cljs$cst$4046$editing_stop$$]));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1596$image$$,$type$jscomp$483$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1284$color$$):$G__69538_state__$1$jscomp$37_state__$2$jscomp$2$$})},$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$update_colorpicker_color_69533$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$,$ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$){$_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$=$app$main$data$workspace$colors$get_color_from_colorpicker_state$$($APP.$cljs$cst$2199$colorpicker$$.$cljs$core$IFn$_invoke$arity$1$($ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$));
$ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$,$APP.$cljs$cst$139$type$$);$ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$,$APP.$cljs$cst$1284$color$$)&&$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$)==
null;var $and__5023__auto__$jscomp$inline_8125$$=this.$add_recent_QMARK_$;return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8125$$)?!$ignore_color_QMARK__state$jscomp$605_type$jscomp$484$$:$and__5023__auto__$jscomp$inline_8125$$)?($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$select_keys$$($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$,new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1596$image$$,$APP.$cljs$cst$1708$gradient$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1718$opacity$$],null))),$APP.$cljs$core$truth_$$($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$)?(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$colors$add_recent_color$$($_$jscomp$2210_state__$1$jscomp$38_temp__5825__auto__$jscomp$204$$)):null):null});return new $app$main$data$workspace$colors$update_colorpicker_color_69533$$($changes$jscomp$219$$,
$add_recent_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$activate_colorpicker_color$$=function(){typeof $app$main$data$workspace$colors$activate_colorpicker_color_69545$$==="undefined"&&($app$main$data$workspace$colors$activate_colorpicker_color_69545$$=function($meta69546$$){this.$meta69546$=$meta69546$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4067$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_activate_colorpicker_color$$},$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69547$$,$meta69546__$1$$){return new $app$main$data$workspace$colors$activate_colorpicker_color_69545$$($meta69546__$1$$)},$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69546$},$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2213$$,$state$jscomp$608$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$608$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$40$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$40$$,
$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1284$color$$),$APP.$cljs$cst$4046$editing_stop$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,$APP.$cljs$cst$1708$gradient$$]))})},$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$activate_colorpicker_color_69545$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$colors$update_colorpicker_color$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
!1))});return new $app$main$data$workspace$colors$activate_colorpicker_color_69545$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$apply_color_from_colorpicker$$=function($color$jscomp$90_color__$1$jscomp$11$$){$color$jscomp$90_color__$1$jscomp$11$$=(0,$APP.$app$common$types$color$check_color$$)($color$jscomp$90_color__$1$jscomp$11$$);typeof $app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$==="undefined"&&($app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$=function($color$jscomp$91$$,$meta69437$$){this.color=$color$jscomp$91$$;this.$meta69437$=$meta69437$$;
this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4045$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_apply_color_from_colorpicker$$},$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69438$$,$meta69437__$1$$){return new $app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$(this.color,$meta69437__$1$$)},$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69437$},$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2194$$,$state$jscomp$590$$){var $self__$jscomp$5152$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$590$$,$APP.$cljs$cst$2199$colorpicker$$,function($state__$1$jscomp$28$$){if($APP.$cljs$core$truth_$$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5152$$.color)))return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$28$$,$APP.$cljs$cst$139$type$$,
$APP.$cljs$cst$1596$image$$),$APP.$cljs$cst$4046$editing_stop$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,$APP.$cljs$cst$1708$gradient$$]));if($APP.$cljs$core$truth_$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5152$$.color)))return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$28$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1284$color$$),
$APP.$cljs$cst$4046$editing_stop$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1717$stops$$,$APP.$cljs$cst$1708$gradient$$]));var $gradient_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5152$$.color,$APP.$cljs$cst$1708$gradient$$),$APP.$cljs$cst$139$type$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$285$linear$$,$gradient_type$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$28$$,
$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$4047$linear_gradient$$),$APP.$cljs$cst$4046$editing_stop$$,0),$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1596$image$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1712$radial$$,$gradient_type$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__$1$jscomp$28$$,$APP.$cljs$cst$139$type$$,
$APP.$cljs$cst$4049$radial_gradient$$),$APP.$cljs$cst$4046$editing_stop$$,0),$APP.$cljs$cst$4048$current_color$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1596$image$$):null})});return new $app$main$data$workspace$colors$apply_color_from_colorpicker_69436$$($color$jscomp$90_color__$1$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$drawing$start_path_from_point$$=function($position$jscomp$129$$){typeof $app$main$data$workspace$path$drawing$start_path_from_point_68223$$==="undefined"&&($app$main$data$workspace$path$drawing$start_path_from_point_68223$$=function($position$jscomp$130$$,$meta68224$$){this.position=$position$jscomp$130$$;this.$meta68224$=$meta68224$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4105$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_drawing_SLASH_start_path_from_point$$},$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68225$$,$meta68224__$1$$){return new $app$main$data$workspace$path$drawing$start_path_from_point_68223$$(this.position,
$meta68224__$1$$)},$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68224$},$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$start_path_from_point_68223$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2242_stopper$jscomp$23$$,$drag_events_state$jscomp$641$$,
$stream$jscomp$66$$){$_$jscomp$2242_stopper$jscomp$23$$=$APP.$beicon$v2$core$merge$$($APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stream$jscomp$66$$,null),$APP.$beicon$v2$core$filter$$($APP.$app$main$data$workspace$path$drawing$end_path_event_QMARK_$$,$stream$jscomp$66$$));$drag_events_state$jscomp$641$$=$APP.$beicon$v2$core$take_until$$($_$jscomp$2242_stopper$jscomp$23$$,$APP.$beicon$v2$core$map$$(function($p1__68221_SHARP_$$){return $APP.$app$main$data$workspace$path$drawing$drag_handler$cljs$0core$0IFn$0_invoke$0arity$04$$(null,
null,$APP.$cljs$cst$1805$c1$$,$p1__68221_SHARP_$$)},$APP.$app$main$data$workspace$path$streams$position_stream$$($drag_events_state$jscomp$641$$)));return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$drawing$add_node$$(this.position)),$APP.$app$main$data$workspace$path$streams$drag_stream$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$beicon$v2$core$concat$$($drag_events_state$jscomp$641$$,(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$drawing$finish_drag$$()))))});
return new $app$main$data$workspace$path$drawing$start_path_from_point_68223$$($position$jscomp$129$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$drawing$close_path_drag_start$$=function($position$jscomp$127$$){typeof $app$main$data$workspace$path$drawing$close_path_drag_start_68203$$==="undefined"&&($app$main$data$workspace$path$drawing$close_path_drag_start_68203$$=function($position$jscomp$128$$,$meta68204$$){this.position=$position$jscomp$128$$;this.$meta68204$=$meta68204$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4103$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_drawing_SLASH_close_path_drag_start$$},$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68205$$,$meta68204__$1$$){return new $app$main$data$workspace$path$drawing$close_path_drag_start_68203$$(this.position,
$meta68204__$1$$)},$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68204$},$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$drawing$close_path_drag_start_68203$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$,$drag_events_stream_state$jscomp$639$$,
$stream$jscomp$65$$){var $self__$jscomp$5309$$=this;$_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($drag_events_stream_state$jscomp$639$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));$_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($app$common$types$path$get_handlers$$($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$),
$self__$jscomp$5309$$.position);$_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$),1)?$APP.$cljs$core$first$$($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$):null;var $idx$jscomp$91$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$,0,null),$prefix$jscomp$51$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($_$jscomp$2240_content$jscomp$192_handlers$jscomp$5_vec__68209$$,1,null);$drag_events_stream_state$jscomp$639$$=$APP.$beicon$v2$core$take_until$$($APP.$beicon$v2$core$merge$$($APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stream$jscomp$65$$,null),$APP.$beicon$v2$core$filter$$($APP.$app$main$data$workspace$path$drawing$end_path_event_QMARK_$$,$stream$jscomp$65$$)),$APP.$beicon$v2$core$map$$(function($p1__68201_SHARP_$$){return $APP.$app$main$data$workspace$path$drawing$drag_handler$cljs$0core$0IFn$0_invoke$0arity$04$$($self__$jscomp$5309$$.position,
$idx$jscomp$91$$,$prefix$jscomp$51$$,$p1__68201_SHARP_$$)},$APP.$app$main$data$workspace$path$streams$position_stream$$($drag_events_stream_state$jscomp$639$$)));return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$drawing$add_node$$($self__$jscomp$5309$$.position)),$APP.$app$main$data$workspace$path$streams$drag_stream$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$beicon$v2$core$concat$$($drag_events_stream_state$jscomp$639$$,(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$drawing$finish_drag$$()),
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$path$drawing$close_path_drag_end$$.$cljs$core$IFn$_invoke$arity$0$?$app$main$data$workspace$path$drawing$close_path_drag_end$$.$cljs$core$IFn$_invoke$arity$0$():$app$main$data$workspace$path$drawing$close_path_drag_end$$()))),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$common$finish_path$$()))});return new $app$main$data$workspace$path$drawing$close_path_drag_start_68203$$($position$jscomp$127$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$common$schema$validation_errors$$=function($JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$,$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$){$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$=$APP.$app$common$schema$schema$$($_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$);$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$=$APP.$malli$core$explainer$cljs$0core$0IFn$0_invoke$0arity$02$$($_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$,
null);$JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$=$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$.$cljs$core$IFn$_invoke$arity$1$?$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$):$_QMARK_schema$jscomp$inline_12673_explainer$jscomp$13_schema$jscomp$205$$($JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$);
$JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$=$malli$error$humanize$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$);return $APP.$cljs$core$not_empty$$($JSCompiler_inline_result$jscomp$1610_exp$jscomp$inline_8127_value$jscomp$319$$)};
$app$common$schema$assoc_key$cljs$0core$0IFn$0_invoke$0arity$04$$=function($s$jscomp$381_s__$1$jscomp$11$$,$k$jscomp$446$$,$v$jscomp$224_v__$1$jscomp$13$$){var $opts$jscomp$219$$=$APP.$cljs$core$PersistentArrayMap$EMPTY$$;$s$jscomp$381_s__$1$jscomp$11$$=$APP.$app$common$schema$schema$$($s$jscomp$381_s__$1$jscomp$11$$);$v$jscomp$224_v__$1$jscomp$13$$=$APP.$app$common$schema$schema$$($v$jscomp$224_v__$1$jscomp$13$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$malli$core$type$$.$cljs$core$IFn$_invoke$arity$1$($s$jscomp$381_s__$1$jscomp$11$$),
$APP.$cljs$cst$202$map$$))return $APP.$malli$util$assoc$cljs$0core$0IFn$0_invoke$0arity$04$$($s$jscomp$381_s__$1$jscomp$11$$,$k$jscomp$446$$,$v$jscomp$224_v__$1$jscomp$13$$,$opts$jscomp$219$$);var $temp__5823__auto__$jscomp$75$$=$APP.$malli$util$find_first$cljs$0core$0IFn$0_invoke$0arity$02$$($s$jscomp$381_s__$1$jscomp$11$$,function($s_SINGLEQUOTE_$$,$path$jscomp$117$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$malli$core$type$$.$cljs$core$IFn$_invoke$arity$1$($s_SINGLEQUOTE_$$),
$APP.$cljs$cst$202$map$$)?$path$jscomp$117$$:null});return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$75$$)?$malli$util$assoc_in$cljs$0core$0IFn$0_invoke$0arity$04$$($s$jscomp$381_s__$1$jscomp$11$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$75$$,$k$jscomp$446$$),$v$jscomp$224_v__$1$jscomp$13$$,$opts$jscomp$219$$):$s$jscomp$381_s__$1$jscomp$11$$};
$app$common$types$tokens_lib$walk_sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($nodes$jscomp$29$$,$map__49795__$1_p__49794$$){$map__49795__$1_p__49794$$=$APP.$cljs$core$__destructure_map$$($map__49795__$1_p__49794$$);var $skip_children_pred$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__49795__$1_p__49794$$,$APP.$cljs$cst$2095$skip_children_pred$$,$APP.$cljs$core$constantly$$(!1)),$new_editing_set_path$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49795__$1_p__49794$$,
$APP.$cljs$cst$2096$new_editing_set_path$$);return function $app$common$types$tokens_lib$walk$$($node$jscomp$243$$,$p__49797$$){var $map__49798__$1$$=$APP.$cljs$core$__destructure_map$$($p__49797$$),$parent$jscomp$191$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__49798__$1$$,$APP.$cljs$cst$1354$parent$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$depth$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__49798__$1$$,$APP.$cljs$cst$837$depth$$,0);return new $APP.$cljs$core$LazySeq$$(null,
function(){if($APP.$app$common$data$ordered_map_QMARK_$$($node$jscomp$243$$)){var $root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$new_editing_set_path$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($node$jscomp$243$$,$APP.$cljs$cst$2097$new_QMARK_$$,!0):$node$jscomp$243$$;return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__49790_SHARP_$$){return $app$common$types$tokens_lib$walk$$($p1__49790_SHARP_$$,
$map__49798__$1$$)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$]))}var $item$jscomp$51_k$jscomp$599_unprefixed_path$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($node$jscomp$243$$,0,null);$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($node$jscomp$243$$,1,null);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2097$new_QMARK_$$,
$item$jscomp$51_k$jscomp$599_unprefixed_path$$))return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2097$new_QMARK_$$,!0,$APP.$cljs$cst$2098$group_QMARK_$$,!1,$APP.$cljs$cst$2099$parent_path$$,$parent$jscomp$191$$,$APP.$cljs$cst$837$depth$$,$depth$jscomp$13$$],null)],null);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$)?$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$ instanceof
$APP.$app$common$types$tokens_lib$TokenSet$$:$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$))return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2098$group_QMARK_$$,!1,$APP.$cljs$cst$294$path$$,$APP.$app$common$types$tokens_lib$split_set_name$$($APP.$app$common$types$tokens_lib$get_name$$($root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$)),$APP.$cljs$cst$2099$parent_path$$,
$parent$jscomp$191$$,$APP.$cljs$cst$837$depth$$,$depth$jscomp$13$$,$APP.$cljs$cst$203$set$$,$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$],null)],null);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$)?$APP.$app$common$data$ordered_map_QMARK_$$($root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$):$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$)){$item$jscomp$51_k$jscomp$599_unprefixed_path$$=$APP.$cljs$core$last$$($app$common$types$tokens_lib$split_set_str_path_prefix$$($item$jscomp$51_k$jscomp$599_unprefixed_path$$));
var $path$jscomp$175$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($parent$jscomp$191$$,$item$jscomp$51_k$jscomp$599_unprefixed_path$$);$item$jscomp$51_k$jscomp$599_unprefixed_path$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2098$group_QMARK_$$,!0,$APP.$cljs$cst$294$path$$,$path$jscomp$175$$,$APP.$cljs$cst$2099$parent_path$$,$parent$jscomp$191$$,$APP.$cljs$cst$837$depth$$,$depth$jscomp$13$$],null);if($APP.$cljs$core$truth_$$($skip_children_pred$$.$cljs$core$IFn$_invoke$arity$1$?
$skip_children_pred$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$175$$):$skip_children_pred$$($path$jscomp$175$$)))return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$item$jscomp$51_k$jscomp$599_unprefixed_path$$],null);$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$175$$,$new_editing_set_path$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$,
$APP.$cljs$cst$2097$new_QMARK_$$,!0):$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$;return $APP.$cljs$core$cons$$($item$jscomp$51_k$jscomp$599_unprefixed_path$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__49791_SHARP_$$){return $app$common$types$tokens_lib$walk$$($p1__49791_SHARP_$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__49798__$1$$,$APP.$cljs$cst$1354$parent$$,$path$jscomp$175$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$837$depth$$,
$depth$jscomp$13$$+1])))},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$root$jscomp$34_v$jscomp$529_v_SINGLEQUOTE_$jscomp$3$$])))}return null},null,null)}($APP.$cljs$core$truth_$$($nodes$jscomp$29$$)?$nodes$jscomp$29$$:$APP.$linked$map$empty_linked_map$$,null)};
$app$common$logic$tokens$calculate_move_token_set_or_set_group$$=function($tokens_lib$jscomp$23$$,$map__70065__$1_p__70064_prev_before$$){$map__70065__$1_p__70064_prev_before$$=$APP.$cljs$core$__destructure_map$$($map__70065__$1_p__70064_prev_before$$);var $from_index$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70065__$1_p__70064_prev_before$$,$APP.$cljs$cst$4511$from_index$$),$to_index$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70065__$1_p__70064_prev_before$$,
$APP.$cljs$cst$4512$to_index$$),$position$jscomp$158$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__70065__$1_p__70064_prev_before$$,$APP.$cljs$cst$1660$position$$),$collapsed_paths$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__70065__$1_p__70064_prev_before$$,$APP.$cljs$cst$4513$collapsed_paths$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),$tree$jscomp$19$$=$app$common$types$tokens_lib$walk_sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$types$tokens_lib$get_set_tree$$($tokens_lib$jscomp$23$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2095$skip_children_pred$$,function($p1__70048_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($collapsed_paths$$,$p1__70048_SHARP_$$)}])),$from$jscomp$22$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($tree$jscomp$19$$,$from_index$jscomp$9$$),$to$jscomp$24$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($tree$jscomp$19$$,$to_index$jscomp$15$$),$G__70085__$1_before$jscomp$5$$=function(){var $G__70067__$1$$=
$position$jscomp$158$$ instanceof $APP.$cljs$core$Keyword$$?$position$jscomp$158$$.$fqn$:null;switch($G__70067__$1$$){case "top":return $to$jscomp$24$$;case "bot":return $APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($tree$jscomp$19$$,$to_index$jscomp$15$$+1,null);case "center":return null;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__70067__$1$$)].join(""));}}();$map__70065__$1_p__70064_prev_before$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$))?
$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($element$jscomp$73$$){return $APP.$cljs$cst$837$depth$$.$cljs$core$IFn$_invoke$arity$1$($element$jscomp$73$$)<=$APP.$cljs$cst$837$depth$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$)},$APP.$cljs$core$drop$cljs$0core$0IFn$0_invoke$0arity$02$$($from_index$jscomp$9$$+1,$tree$jscomp$19$$))):$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($tree$jscomp$19$$,$from_index$jscomp$9$$+1,null);var $G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$=
function(){var $and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1651$center$$,$position$jscomp$158$$);return $and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$?$and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$:($and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2636$bot$$,
$position$jscomp$158$$))?($and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$=$APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$24$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$)?$APP.$cljs$core$not$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($collapsed_paths$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$24$$))):$and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$):
$and__5023__auto__$jscomp$543_and__5023__auto____$1$jscomp$93_or__5025__auto__$jscomp$848$$}(),$from_path$jscomp$10$$=$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$),$to_parent_path$$=$APP.$cljs$core$truth_$$($G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$)?$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$24$$):$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$butlast$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$24$$))),
$to_path$jscomp$10$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($to_parent_path$$,$APP.$cljs$core$last$$($from_path$jscomp$10$$));$G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$=function(){var $and__5023__auto__$jscomp$544_or__5025__auto__$jscomp$849$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_index$jscomp$9$$,$to_index$jscomp$15$$);if(!$and__5023__auto__$jscomp$544_or__5025__auto__$jscomp$849$$&&($and__5023__auto__$jscomp$544_or__5025__auto__$jscomp$849$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_path$jscomp$10$$,$to_path$jscomp$10$$)))switch($position$jscomp$158$$ instanceof $APP.$cljs$core$Keyword$$?$position$jscomp$158$$.$fqn$:null){case "top":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_index$jscomp$9$$,$to_index$jscomp$15$$-1);case "bot":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($from_index$jscomp$9$$,$to_index$jscomp$15$$);default:return null}else return $and__5023__auto__$jscomp$544_or__5025__auto__$jscomp$849$$}();
var $to_exists_QMARK_$$=function(){var $and__5023__auto__$jscomp$545$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2099$parent_path$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$),$to_parent_path$$);return $and__5023__auto__$jscomp$545$$?$APP.$cljs$core$truth_$$($APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$))?$app$common$types$tokens_lib$set_group_path_exists_QMARK_$$($tokens_lib$jscomp$23$$,$to_path$jscomp$10$$):$app$common$types$tokens_lib$set_path_exists_QMARK_$$($tokens_lib$jscomp$23$$,
$to_path$jscomp$10$$):$and__5023__auto__$jscomp$545$$}(),$parent_to_child_drop_QMARK_$$=function(){var $JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2099$parent_path$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$),$to_parent_path$$);if($JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$){$JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$=
$APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$);if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$)){$JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$=$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$22$$);var $JSCompiler_temp_const$jscomp$inline_12677$$=$APP.$cljs$core$_EQ_$$,$JSCompiler_temp_const$jscomp$inline_12678$$=
$JSCompiler_temp_const$jscomp$inline_12677$$.$cljs$core$IFn$_invoke$arity$2$,$x__5113__auto__$jscomp$inline_12680$$=$APP.$cljs$core$count$$($to_path$jscomp$10$$),$y__5114__auto__$jscomp$inline_12681$$=$APP.$cljs$core$count$$($JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$);$JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$=$JSCompiler_temp_const$jscomp$inline_12678$$.call($JSCompiler_temp_const$jscomp$inline_12677$$,
$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$03$$($to_path$jscomp$10$$,0,$x__5113__auto__$jscomp$inline_12680$$<$y__5114__auto__$jscomp$inline_12681$$?$x__5113__auto__$jscomp$inline_12680$$:$y__5114__auto__$jscomp$inline_12681$$),$JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$)}return $JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$}return $JSCompiler_temp$jscomp$10549_and__5023__auto__$jscomp$546_and__5023__auto____$1$jscomp$94_v2$jscomp$inline_12676$$}();
if($APP.$cljs$core$truth_$$($G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$))return null;if($APP.$cljs$core$truth_$$($to_exists_QMARK_$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("move token set error: path exists",new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$847$error$$,$APP.$cljs$cst$4514$path_exists$$,$APP.$cljs$cst$294$path$$,$to_path$jscomp$10$$],null));if($APP.$cljs$core$truth_$$($parent_to_child_drop_QMARK_$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("move token set error: parent-to-child",
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$847$error$$,$APP.$cljs$cst$4515$parent_to_child$$,$APP.$cljs$cst$2604$from_path$$,$from_path$jscomp$10$$,$APP.$cljs$cst$2605$to_path$$,$to_path$jscomp$10$$],null));$G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2604$from_path$$,$from_path$jscomp$10$$,$APP.$cljs$cst$2605$to_path$$,$to_path$jscomp$10$$,$APP.$cljs$cst$2606$before_path$$,null,$APP.$cljs$cst$3131$before_group_QMARK_$$,
null],null);$G__70085__$1_before$jscomp$5$$=$APP.$cljs$core$truth_$$($G__70085__$1_before$jscomp$5$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$,$APP.$cljs$cst$2606$before_path$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($G__70085__$1_before$jscomp$5$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3131$before_group_QMARK_$$,$APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__70085__$1_before$jscomp$5$$)])):
$G__70085_drop_as_direct_group_child_QMARK__identical_QMARK_$$;return $APP.$cljs$core$truth_$$($map__70065__$1_p__70064_prev_before$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__70085__$1_before$jscomp$5$$,$APP.$cljs$cst$3132$prev_before_path$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($map__70065__$1_p__70064_prev_before$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3133$prev_before_group_QMARK_$$,$APP.$cljs$cst$2098$group_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($map__70065__$1_p__70064_prev_before$$)])):
$G__70085__$1_before$jscomp$5$$};
$app$common$types$tokens_lib$sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($tree$jscomp$6_tree__$1$$,$map__49813__$1_p__49812$$){$map__49813__$1_p__49812$$=$APP.$cljs$core$__destructure_map$$($map__49813__$1_p__49812$$);var $skip_children_pred$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__49813__$1_p__49812$$,$APP.$cljs$cst$2095$skip_children_pred$$,$APP.$cljs$core$constantly$$(!1)),$new_at_path$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__49813__$1_p__49812$$,$APP.$cljs$cst$2100$new_at_path$$),
$walk$jscomp$2$$=function $app$common$types$tokens_lib$walk$jscomp$1$$($p__49814$$,$parent_path$jscomp$3$$,$depth$jscomp$14$$){var $k$jscomp$600$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49814$$,0,null),$v$jscomp$530$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49814$$,1,null);return new $APP.$cljs$core$LazySeq$$(null,function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2101$is_new$$,$k$jscomp$600$$)){var $item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$=
$APP.$app$common$types$tokens_lib$make_token_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$,$APP.$cljs$core$empty_QMARK_$$($parent_path$jscomp$3$$)?"":$APP.$app$common$types$tokens_lib$join_set_path$$($parent_path$jscomp$3$$)]));return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$2101$is_new$$,!0,
$APP.$cljs$cst$2102$is_group$$,!1,$APP.$cljs$cst$294$path$$,$APP.$app$common$types$tokens_lib$split_set_name$$($item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$.name),$APP.$cljs$cst$837$depth$$,$depth$jscomp$14$$,$APP.$cljs$cst$266$id$$,$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$.id,$APP.$cljs$cst$2103$token_set$$,$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$],null)],null)}if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($v$jscomp$530$$)?$v$jscomp$530$$ instanceof
$APP.$app$common$types$tokens_lib$TokenSet$$:$v$jscomp$530$$))return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2102$is_group$$,!1,$APP.$cljs$cst$294$path$$,$APP.$app$common$types$tokens_lib$split_set_name$$($APP.$app$common$types$tokens_lib$get_name$$($v$jscomp$530$$)),$APP.$cljs$cst$837$depth$$,$depth$jscomp$14$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$types$tokens_lib$get_id$$($v$jscomp$530$$),
$APP.$cljs$cst$2103$token_set$$,$v$jscomp$530$$],null)],null);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($v$jscomp$530$$)?$APP.$app$common$data$ordered_map_QMARK_$$($v$jscomp$530$$):$v$jscomp$530$$)){$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$=$APP.$cljs$core$last$$($app$common$types$tokens_lib$split_set_str_path_prefix$$($k$jscomp$600$$));var $path$jscomp$176$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($parent_path$jscomp$3$$,$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$);
$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2102$is_group$$,!0,$APP.$cljs$cst$294$path$$,$path$jscomp$176$$,$APP.$cljs$cst$837$depth$$,$depth$jscomp$14$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$types$tokens_lib$join_set_path$$($path$jscomp$176$$)],null);if($APP.$cljs$core$truth_$$($skip_children_pred$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$skip_children_pred$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$176$$):
$skip_children_pred$jscomp$1$$($path$jscomp$176$$)))return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$],null);var $v__$1$jscomp$27$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$176$$,$new_at_path$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($v$jscomp$530$$,$APP.$cljs$cst$2101$is_new$$,!0):$v$jscomp$530$$;return $APP.$cljs$core$cons$$($item$jscomp$52_token_set$jscomp$4_unprefixed_path$jscomp$1$$,
$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__49807_SHARP_$$){return $app$common$types$tokens_lib$walk$jscomp$1$$($p1__49807_SHARP_$$,$path$jscomp$176$$,$depth$jscomp$14$$+1)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v__$1$jscomp$27$$])))}return null},null,null)};$tree$jscomp$6_tree__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$new_at_path$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($tree$jscomp$6_tree__$1$$,
$APP.$cljs$cst$2101$is_new$$,!0):$tree$jscomp$6_tree__$1$$;return $APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$206$$,$item$jscomp$53$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($item$jscomp$53$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$206$$)},$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__49808_SHARP_$$){return $walk$jscomp$2$$($p1__49808_SHARP_$$,$APP.$cljs$core$PersistentVector$EMPTY$$,0)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tree$jscomp$6_tree__$1$$])))};
$app$common$types$tokens_lib$parse_single_set_dtcg_json$$=function($set_name$jscomp$24_set_name__$1$$,$decoded_json_tokens$jscomp$1_tokens$jscomp$14$$){$set_name$jscomp$24_set_name__$1$$=$APP.$app$common$types$tokens_lib$normalize_set_name$$.$cljs$core$IFn$_invoke$arity$1$($set_name$jscomp$24_set_name__$1$$);$decoded_json_tokens$jscomp$1_tokens$jscomp$14$$=$APP.$app$common$types$tokens_lib$flatten_nested_tokens_json$$($decoded_json_tokens$jscomp$1_tokens$jscomp$14$$,"");if($APP.$cljs$core$empty_QMARK_$$($decoded_json_tokens$jscomp$1_tokens$jscomp$14$$))throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$02$$("the file doesn't contain any tokens",
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$943$error_SLASH_code$$,$APP.$cljs$cst$2116$error_DOT_import_SLASH_invalid_json_data$$],null));return $APP.$app$common$types$tokens_lib$make_tokens_lib$$().$app$common$types$tokens_lib$ITokenSets$add_set$arity$2$(null,$APP.$app$common$types$tokens_lib$make_token_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$,$set_name$jscomp$24_set_name__$1$$,$APP.$cljs$cst$2082$tokens$$,
$decoded_json_tokens$jscomp$1_tokens$jscomp$14$$])))};
$app$common$logic$libraries$add_shape_to_main$$=function($changes$jscomp$122_changes_SINGLEQUOTE_$jscomp$2$$,$shape$jscomp$449$$,$index$jscomp$257$$,$changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$,$component_container$jscomp$3$$,$page$jscomp$53$$,$root_instance$jscomp$1$$,$root_main$jscomp$5$$){$APP.$app$common$logic$libraries$enabled_shape_QMARK_$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$449$$),$page$jscomp$53$$)&&$APP.$app$common$logging$enabled_QMARK_$$("app.common.logic.libraries",
$APP.$cljs$cst$1159$info$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,["ADD [C ",$APP.$app$common$logic$libraries$pretty_uuid$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component_container$jscomp$3$$)),"] ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$449$$)),
" ",$APP.$app$common$logic$libraries$pretty_uuid$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$449$$))].join("")],null)],null)}),null,"app.common.logic.libraries",$APP.$cljs$cst$1159$info$$,!1);var $parent_shape$jscomp$1$$=$APP.$app$common$types$container$get_shape$$($page$jscomp$53$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$449$$)),$changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__65479_SHARP_$$){return $APP.$app$common$types$component$is_main_of_QMARK_$$($p1__65479_SHARP_$$,
$parent_shape$jscomp$1$$)},$APP.$app$common$files$helpers$get_children_with_self$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($component_container$jscomp$3$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($root_main$jscomp$5$$))),$all_parents$jscomp$5$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$)],
null),$APP.$app$common$files$helpers$get_parent_ids$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($component_container$jscomp$3$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$))),$updated_shapes$jscomp$4_vec__65480$$=$APP.$app$common$types$shape_tree$clone_shape$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape$jscomp$449$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$),
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$53$$,$APP.$cljs$cst$1615$objects$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2071$update_new_shape$$,function($new_shape$jscomp$9$$){return $APP.$app$common$logic$libraries$reposition_shape$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$app$common$logic$libraries$reposition_shape$$.$cljs$core$IFn$_invoke$arity$3$($new_shape$jscomp$9$$,$root_instance$jscomp$1$$,$root_main$jscomp$5$$):$APP.$app$common$logic$libraries$reposition_shape$$($new_shape$jscomp$9$$,
$root_instance$jscomp$1$$,$root_main$jscomp$5$$)},$APP.$cljs$cst$2072$update_original_shape$$,function($original_shape$jscomp$4$$,$new_shape$jscomp$10$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($original_shape$jscomp$4$$,$APP.$cljs$cst$2032$shape_ref$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$10$$))},$APP.$cljs$cst$1591$frame_id$$,$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$)?
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$):$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$)]));$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($updated_shapes$jscomp$4_vec__65480$$,0,null);$changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($updated_shapes$jscomp$4_vec__65480$$,
1,null);$updated_shapes$jscomp$4_vec__65480$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($updated_shapes$jscomp$4_vec__65480$$,2,null);$changes$jscomp$122_changes_SINGLEQUOTE_$jscomp$2$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$37$$,$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$){var $JSCompiler_temp_const$jscomp$10567$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$;$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2560$add_obj$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$),$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$),$APP.$cljs$cst$1591$frame_id$$,
$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$),$APP.$cljs$cst$1779$index$$,$index$jscomp$257$$,$APP.$cljs$cst$2508$ignore_touched$$,!0,$APP.$cljs$cst$2561$obj$$,$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$],null);$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$=$APP.$app$common$logic$libraries$make_change$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$app$common$logic$libraries$make_change$$.$cljs$core$IFn$_invoke$arity$2$($component_container$jscomp$3$$,$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$):$APP.$app$common$logic$libraries$make_change$$($component_container$jscomp$3$$,$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$);return $JSCompiler_temp_const$jscomp$10567$$.call($APP.$cljs$core$update$$,$changes__$1$jscomp$37$$,$APP.$cljs$cst$3086$redo_changes$$,
$APP.$cljs$core$conj$$,$G__65489$jscomp$inline_12684_JSCompiler_inline_result$jscomp$10569_shape_SINGLEQUOTE_$jscomp$7$$)},$changes$jscomp$122_changes_SINGLEQUOTE_$jscomp$2$$,$changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$);$changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$122_changes_SINGLEQUOTE_$jscomp$2$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2574$reg_objects$$,$APP.$cljs$cst$1611$component_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$),$APP.$cljs$cst$1598$shapes$$,$all_parents$jscomp$5$$],null));$changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$38$$,
$shape_SINGLEQUOTE_$jscomp$8$$){var $shape_original$$=$APP.$app$common$types$container$get_shape$$($page$jscomp$53$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$));return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes__$1$jscomp$38$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2562$mod_obj$$,
$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$53$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$),$APP.$cljs$cst$2563$operations$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1611$component_id$$,
$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1627$component_file$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,
$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$2029$component_root$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$2029$component_root$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$2032$shape_ref$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$2032$shape_ref$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$)],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1610$touched$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1610$touched$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$8$$)],null)],null)],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2562$mod_obj$$,$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$53$$),
$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$),$APP.$cljs$cst$2563$operations$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1611$component_id$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$)],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1627$component_file$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$2029$component_root$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$2029$component_root$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$)],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$2032$shape_ref$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$2032$shape_ref$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$203$set$$,$APP.$cljs$cst$2549$attr$$,$APP.$cljs$cst$1610$touched$$,$APP.$cljs$cst$108$val$$,$APP.$cljs$cst$1610$touched$$.$cljs$core$IFn$_invoke$arity$1$($shape_original$$)],
null)],null)],null))},$changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$,$updated_shapes$jscomp$4_vec__65480$$);$changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$39$$,$shape_SINGLEQUOTE_$jscomp$9$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes__$1$jscomp$39$$,$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2564$del_obj$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_SINGLEQUOTE_$jscomp$9$$),$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$53$$),$APP.$cljs$cst$2508$ignore_touched$$,!0],null))},$changes_SINGLEQUOTE___$1$jscomp$1_changes_SINGLEQUOTE___$2$jscomp$1_component$jscomp$70$$,$changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$);
return $APP.$app$common$files$changes_builder$apply_changes_local$$($changes_SINGLEQUOTE___$3_component_parent_shape$jscomp$1_new_shapes$jscomp$7$$)};
$app$common$logic$tokens$generate_toggle_token_set_group$$=function($changes$jscomp$278$$,$tokens_lib$jscomp$22$$,$group_path$jscomp$6$$){return $APP.$app$common$logic$tokens$generate_update_active_sets$$($changes$jscomp$278$$,$tokens_lib$jscomp$22$$,function($p1__70043_SHARP_$$){return $app$common$logic$tokens$toggle_token_set_group$$($group_path$jscomp$6$$,$tokens_lib$jscomp$22$$,$p1__70043_SHARP_$$)})};
$app$common$logic$tokens$generate_delete_token_set_group$$=function($changes$jscomp$281$$,$sets$jscomp$13_tokens_lib$jscomp$26$$,$path$jscomp$245$$){$sets$jscomp$13_tokens_lib$jscomp$26$$=$app$common$types$tokens_lib$get_sets_at_path$$($sets$jscomp$13_tokens_lib$jscomp$26$$,$path$jscomp$245$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$84$$,$set$jscomp$14$$){return $APP.$app$common$files$changes_builder$set_token_set$$($changes__$1$jscomp$84$$,
$APP.$app$common$types$tokens_lib$get_id$$($set$jscomp$14$$),null)},$changes$jscomp$281$$,$sets$jscomp$13_tokens_lib$jscomp$26$$)};
$app$common$logic$libraries$update_grid_main_attrs$$=function($changes$jscomp$136$$,$new_changes$jscomp$3_shape_main$jscomp$11$$,$shape_copy$jscomp$3$$,$main_container$jscomp$3$$,$copy_container$jscomp$2$$){var $ids_map$jscomp$10$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__65799_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($main_container$jscomp$3$$,$APP.$cljs$cst$1615$objects$$),
$p1__65799_SHARP_$$)}),$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($main_shape$jscomp$2$$){var $copy_shape$jscomp$1$$=$app$common$types$file$get_shape_in_copy$$($copy_container$jscomp$2$$,$main_shape$jscomp$2$$,$shape_copy$jscomp$3$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($copy_shape$jscomp$1$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($main_shape$jscomp$2$$)],
null)})),$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($new_changes$jscomp$3_shape_main$jscomp$11$$));$new_changes$jscomp$3_shape_main$jscomp$11$$=$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$04$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_page$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$00$$(),$main_container$jscomp$3$$),$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($main_container$jscomp$3$$)),
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($new_changes$jscomp$3_shape_main$jscomp$11$$)],null),function($shape_main__$1$jscomp$1$$){var $new_cells$$=$APP.$cljs$cst$1680$layout_grid_cells$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$shape$layout$remap_grid_cells$$($shape_copy$jscomp$3$$,$ids_map$jscomp$10$$));return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape_main__$1$jscomp$1$$,
$APP.$cljs$cst$1680$layout_grid_cells$$,$new_cells$$)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2508$ignore_touched$$,!0],null));return $APP.$app$common$files$changes_builder$concat_changes$$($changes$jscomp$136$$,$new_changes$jscomp$3_shape_main$jscomp$11$$)};
$app$common$logic$libraries$update_flex_child_main_attrs$$=function($changes$jscomp$134$$,$new_changes$jscomp$2_shape_main$jscomp$9$$,$shape_copy$jscomp$1$$,$main_container$jscomp$1$$,$copy_container$jscomp$1$$,$omit_touched_QMARK_$jscomp$10$$){$new_changes$jscomp$2_shape_main$jscomp$9$$=$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$04$$($APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$04$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_page$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$00$$(),
$main_container$jscomp$1$$),$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($main_container$jscomp$1$$)),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($new_changes$jscomp$2_shape_main$jscomp$9$$)],null),function($G__65784__$1_shape_main__$1$$){$G__65784__$1_shape_main__$1$$=$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1681$fix$$,null,$APP.$cljs$cst$1656$auto$$,null],null),null),$APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($shape_copy$jscomp$1$$))?$APP.$app$common$logic$libraries$propagate_attrs$$($G__65784__$1_shape_main__$1$$,$shape_copy$jscomp$1$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1692$layout_item_h_sizing$$,null],null),null),$omit_touched_QMARK_$jscomp$10$$):$G__65784__$1_shape_main__$1$$;
return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1681$fix$$,null,$APP.$cljs$cst$1656$auto$$,null],null),null),$APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($shape_copy$jscomp$1$$))?$APP.$app$common$logic$libraries$propagate_attrs$$($G__65784__$1_shape_main__$1$$,$shape_copy$jscomp$1$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1693$layout_item_v_sizing$$,null],null),null),$omit_touched_QMARK_$jscomp$10$$):$G__65784__$1_shape_main__$1$$},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2508$ignore_touched$$,!0],null)),$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($new_changes$jscomp$2_shape_main$jscomp$9$$),function($child_main$jscomp$15$$){var $child_copy$jscomp$1$$=$app$common$types$file$get_shape_in_copy$$($copy_container$jscomp$1$$,$child_main$jscomp$15$$,$shape_copy$jscomp$1$$);
return $APP.$app$common$logic$libraries$propagate_attrs$$($child_main$jscomp$15$$,$child_copy$jscomp$1$$,$APP.$app$common$types$component$swap_keep_attrs$$,$omit_touched_QMARK_$jscomp$10$$)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2508$ignore_touched$$,!0],null));return $APP.$app$common$files$changes_builder$concat_changes$$($changes$jscomp$134$$,$new_changes$jscomp$2_shape_main$jscomp$9$$)};
$app$common$logic$libraries$generate_sync_shape_inverse$$=function($changes$jscomp$118_changes__$1$jscomp$27$$,$file$jscomp$51$$,$libraries$jscomp$52$$,$container$jscomp$48$$,$shape_id$jscomp$70$$){$APP.$app$common$logic$libraries$enabled_shape_QMARK_$$($shape_id$jscomp$70$$,$container$jscomp$48$$)&&$APP.$app$common$logging$enabled_QMARK_$$("app.common.logic.libraries",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"Sync shape inverse"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$70$$)],null)],null)}),null,"app.common.logic.libraries",$APP.$cljs$cst$1158$debug$$,!1);var $redirect_shaperef$jscomp$2$$=
$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$logic$libraries$redirect_shaperef$$,$container$jscomp$48$$,$libraries$jscomp$52$$),$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$=$APP.$app$common$types$container$get_shape$$($container$jscomp$48$$,$shape_id$jscomp$70$$),$library$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$52$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$)),
$APP.$cljs$cst$142$data$$),$component$jscomp$68$$=$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($library$jscomp$20$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$)),$shape_main$jscomp$6$$=$APP.$cljs$core$truth_$$($component$jscomp$68$$)?$APP.$app$common$types$file$find_remote_shape$$($container$jscomp$48$$,$libraries$jscomp$52$$,$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$):null;$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$=
$redirect_shaperef$jscomp$2$$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$,$shape_main$jscomp$6$$);var $initial_root_QMARK_$jscomp$2$$=$APP.$cljs$cst$2029$component_root$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$),$root_main$jscomp$2$$=$APP.$app$common$types$file$get_component_root$$($library$jscomp$20$$,$component$jscomp$68$$);$changes$jscomp$118_changes__$1$jscomp$27$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($component$jscomp$68$$)?$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$1610$touched$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$),
$APP.$cljs$cst$2056$name_group$$):$component$jscomp$68$$)?$APP.$app$common$logic$libraries$generate_rename_component$$($changes$jscomp$118_changes__$1$jscomp$27$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$),$library$jscomp$20$$):$changes$jscomp$118_changes__$1$jscomp$27$$;return $APP.$cljs$core$truth_$$($component$jscomp$68$$)?
$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$.$cljs$core$IFn$_invoke$arity$12$?$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$.$cljs$core$IFn$_invoke$arity$12$($changes$jscomp$118_changes__$1$jscomp$27$$,$container$jscomp$48$$,$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$,$component$jscomp$68$$,$library$jscomp$20$$,$file$jscomp$51$$,$libraries$jscomp$52$$,$shape_main$jscomp$6$$,$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$,$root_main$jscomp$2$$,$initial_root_QMARK_$jscomp$2$$,
$redirect_shaperef$jscomp$2$$):$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$($changes$jscomp$118_changes__$1$jscomp$27$$,$container$jscomp$48$$,$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$,$component$jscomp$68$$,$library$jscomp$20$$,$file$jscomp$51$$,$libraries$jscomp$52$$,$shape_main$jscomp$6$$,$shape_inst$jscomp$6_shape_inst__$1$jscomp$1$$,$root_main$jscomp$2$$,$initial_root_QMARK_$jscomp$2$$,$redirect_shaperef$jscomp$2$$):$changes$jscomp$118_changes__$1$jscomp$27$$};
$app$common$logic$libraries$generate_reset_component$$=function($G__65854_changes$jscomp$145$$,$JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$,$libraries$jscomp$60$$,$container$jscomp$63$$,$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$){var $objects$jscomp$321$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$63$$),$objects$jscomp$inline_8148_swap_slot$jscomp$4$$=$APP.$app$common$types$component$get_swap_slot$$($APP.$app$common$types$container$get_shape$$($container$jscomp$63$$,
$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$));$G__65854_changes$jscomp$145$$=$APP.$app$common$logic$libraries$generate_sync_shape_direct$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_container$$($G__65854_changes$jscomp$145$$,$container$jscomp$63$$),$objects$jscomp$321$$),$JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$,$libraries$jscomp$60$$,$container$jscomp$63$$,$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$,
!0);$objects$jscomp$inline_8148_swap_slot$jscomp$4$$!=null?($head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$=$APP.$app$common$types$container$get_shape$$($container$jscomp$63$$,$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$),$objects$jscomp$inline_8148_swap_slot$jscomp$4$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$63$$),$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$inline_8148_swap_slot$jscomp$4$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$)),$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$=$APP.$app$common$types$container$get_component_shape$cljs$0core$0IFn$0_invoke$0arity$02$$($container$jscomp$63$$,$head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$),
$JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$=$APP.$app$common$logic$libraries$generate_sync_shape_direct$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_container$$($G__65854_changes$jscomp$145$$,$container$jscomp$63$$),$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$63$$)),$JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$,$libraries$jscomp$60$$,$container$jscomp$63$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($head$jscomp$inline_8150_id$jscomp$461_parent$jscomp$inline_8149_shape_inst$jscomp$inline_8147$$),
!0)):$JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$=$G__65854_changes$jscomp$145$$;return $JSCompiler_temp$jscomp$1618_file_full$jscomp$1$$};
$app$common$logic$variant_properties$generate_reorder_variant_poperties$$=function($changes$jscomp$87$$,$related_components$jscomp$2_variant_id$jscomp$13$$,$from_pos$jscomp$1$$,$to_space_between_pos$jscomp$1$$){var $data$jscomp$299$$=$APP.$app$common$files$changes_builder$get_library_data$$($changes$jscomp$87$$),$objects$jscomp$298$$=$APP.$app$common$files$changes_builder$get_objects$$($changes$jscomp$87$$);$related_components$jscomp$2_variant_id$jscomp$13$$=$APP.$app$common$files$variant$find_variant_components$cljs$0core$0IFn$0_invoke$0arity$03$$($data$jscomp$299$$,
$objects$jscomp$298$$,$related_components$jscomp$2_variant_id$jscomp$13$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes__$1$jscomp$10$$,$component$jscomp$56$$){var $main_id$jscomp$3_props$jscomp$172$$=$APP.$cljs$cst$1986$variant_properties$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$56$$),$props__$1$jscomp$30$$=$app$common$data$reorder$$($main_id$jscomp$3_props$jscomp$172$$,$from_pos$jscomp$1$$,$to_space_between_pos$jscomp$1$$);$main_id$jscomp$3_props$jscomp$172$$=
$APP.$cljs$cst$2045$main_instance_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$56$$);var $name$jscomp$283$$=$APP.$app$common$types$variant$properties_to_name$$($props__$1$jscomp$30$$);return $APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$changes_builder$update_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($changes__$1$jscomp$10$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$56$$),function($p1__54999_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__54999_SHARP_$$,
$APP.$cljs$cst$1986$variant_properties$$,$props__$1$jscomp$30$$)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3130$apply_changes_local_library_QMARK_$$,!0],null)])),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$main_id$jscomp$3_props$jscomp$172$$],null),function($p1__55000_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__55000_SHARP_$$,$APP.$cljs$cst$1987$variant_name$$,
$name$jscomp$283$$)})},$changes$jscomp$87$$,$related_components$jscomp$2_variant_id$jscomp$13$$)};
$app$common$logic$libraries$prepare_restore_component$cljs$0core$0IFn$0_invoke$0arity$04$$=function($changes$jscomp$106$$,$library_data$jscomp$23$$,$component_id$jscomp$40$$,$current_page$$){var $component$jscomp$63$$=$APP.$app$common$types$components_list$get_deleted_component$$($library_data$jscomp$23$$,$component_id$jscomp$40$$),$page$jscomp$51$$=function(){var $or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$=$APP.$app$common$types$file$get_component_page$$($library_data$jscomp$23$$,
$component$jscomp$63$$);if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$))return $or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$;$or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($p1__65190_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($current_page$$),$p1__65190_SHARP_$$)},$APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($library_data$jscomp$23$$)))?
$current_page$$:null;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$)?$or__5025__auto__$jscomp$645_or__5025__auto____$1$jscomp$76$$:$app$common$types$pages_list$get_last_page$$($library_data$jscomp$23$$)}();return $APP.$app$common$logic$libraries$prepare_restore_component$cljs$0core$0IFn$0_invoke$0arity$08$$($changes$jscomp$106$$,$library_data$jscomp$23$$,$component_id$jscomp$40$$,$page$jscomp$51$$,null,null,null,null)};
$app$common$logic$libraries$generate_restore_component$$=function($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$,$library_data$jscomp$26$$,$component_id$jscomp$43$$,$library_id$jscomp$29$$,$current_page$jscomp$1$$,$objects$jscomp$317$$){$changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$=$app$common$logic$libraries$prepare_restore_component$cljs$0core$0IFn$0_invoke$0arity$04$$($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$,$library_data$jscomp$26$$,
$component_id$jscomp$43$$,$current_page$jscomp$1$$);$changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$=$APP.$cljs$core$__destructure_map$$($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$);var $changes__$1$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$,$APP.$cljs$cst$3084$changes$$),$shape$jscomp$458$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$,
$APP.$cljs$cst$1795$shape$$),$parent_id$jscomp$49$$=$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$458$$),$insert_before_QMARK_$$=function(){var $and__5023__auto__$jscomp$393$$=$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$317$$,$parent_id$jscomp$49$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$393$$)?$APP.$cljs$core$not$$($APP.$app$common$types$shape$layout$reverse_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$317$$,
$parent_id$jscomp$49$$))):$and__5023__auto__$jscomp$393$$}(),$objects__$1$jscomp$11$$=function(){var $G__65838$$=function(){var $G__65839$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($objects$jscomp$317$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$458$$),$shape$jscomp$458$$);return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$394$$=$parent_id$jscomp$49$$!=null;return $and__5023__auto__$jscomp$394$$?$insert_before_QMARK_$$:$and__5023__auto__$jscomp$394$$}())?
$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($G__65839$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$parent_id$jscomp$49$$,$APP.$cljs$cst$1598$shapes$$],null),function($p1__65834_SHARP_$$){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$458$$)],
null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__65834_SHARP_$$]))}):$G__65839$$}();return $parent_id$jscomp$49$$!=null&&$APP.$cljs$core$not$$($insert_before_QMARK_$$)?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__65838$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$parent_id$jscomp$49$$,$APP.$cljs$cst$1598$shapes$$],null),$APP.$cljs$core$conj$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$458$$)):
$G__65838$$}(),$new_objects_ids$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__65835_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__65835_SHARP_$$),$APP.$cljs$cst$2560$add_obj$$)},$APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes__$1$jscomp$44$$)));$changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$=
function(){var $G__65840$$=$APP.$app$common$files$changes_builder$resize_parents$$($APP.$app$common$files$changes_builder$with_objects$$($changes__$1$jscomp$44$$,$objects__$1$jscomp$11$$),$new_objects_ids$$);return $APP.$cljs$core$truth_$$($APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$11$$,$parent_id$jscomp$49$$))?$APP.$app$common$files$changes_builder$reorder_children$$($G__65840$$,$parent_id$jscomp$49$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$11$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$parent_id$jscomp$49$$,$APP.$cljs$cst$1598$shapes$$],null))):$G__65840$$}();return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($changes$jscomp$139_changes__$2$jscomp$21_map__65837_map__65837__$1$$,$APP.$cljs$cst$1628$file_id$$,$library_id$jscomp$29$$)};
$app$common$logic$libraries$generate_duplicate_component$$=function($var_args$jscomp$1178$$){for(var $args__5755__auto__$jscomp$208$$=[],$len__5749__auto___65934$$=arguments.length,$i__5750__auto___65935$$=0;;)if($i__5750__auto___65935$$<$len__5749__auto___65934$$)$args__5755__auto__$jscomp$208$$.push(arguments[$i__5750__auto___65935$$]),$i__5750__auto___65935$$+=1;else break;return $APP.$app$common$logic$libraries$generate_duplicate_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(arguments[0],
arguments[1],arguments[2],arguments[3],4<$args__5755__auto__$jscomp$208$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$208$$.slice(4),0,null):null)};
$app$common$files$shapes_helpers$prepare_create_empty_artboard$$=function($changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$,$frame_id$jscomp$49$$,$parent_id$jscomp$57$$,$objects$jscomp$355$$,$target_cell_id$jscomp$2$$){var $base_parent$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$355$$,$parent_id$jscomp$57$$),$attrs$jscomp$80$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$1499$x$$,0,$APP.$cljs$cst$1500$y$$,
0,$APP.$cljs$cst$288$width$$,.01,$APP.$cljs$cst$1511$height$$,.01],null),$shape$jscomp$469$$=$APP.$app$common$types$shape$setup_shape$$(function(){var $G__65052__$2_G__65052__$3_G__65052__$4$$=$frame_id$jscomp$49$$!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($attrs$jscomp$80$$,$APP.$cljs$cst$266$id$$,$frame_id$jscomp$49$$):$attrs$jscomp$80$$;$G__65052__$2_G__65052__$3_G__65052__$4$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__65052__$2_G__65052__$3_G__65052__$4$$,
$APP.$cljs$cst$1591$frame_id$$,$frame_id$jscomp$49$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1603$parent_id$$,$parent_id$jscomp$57$$,$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$PersistentVector$EMPTY$$]));$G__65052__$2_G__65052__$3_G__65052__$4$$=$APP.$cljs$core$with_meta$$($G__65052__$2_G__65052__$3_G__65052__$4$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1779$index$$,0],null));var $or__5025__auto__$jscomp$inline_8152$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$49$$,
$APP.$app$common$uuid$zero$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8152$$?$or__5025__auto__$jscomp$inline_8152$$:!0)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__65052__$2_G__65052__$3_G__65052__$4$$,$APP.$cljs$cst$1618$fills$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1859$hide_in_viewer$$,!0])):$G__65052__$2_G__65052__$3_G__65052__$4$$}());$changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$=
$APP.$app$common$files$shapes_helpers$prepare_add_shape$$($changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$,$shape$jscomp$469$$,$objects$jscomp$355$$);var $shape__$1$jscomp$34$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$,0,null),$changes__$1$jscomp$60$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$,1,null);$changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$=
function(){return $APP.$cljs$core$truth_$$($APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$355$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$34$$)))?$APP.$app$common$files$changes_builder$reorder_grid_children$$($APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$04$$(function(){return $target_cell_id$jscomp$2$$!=null?$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($changes__$1$jscomp$60$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$34$$)],null),function($parent$jscomp$241$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parent$jscomp$241$$,$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$cst$1680$layout_grid_cells$$.$cljs$core$IFn$_invoke$arity$1$($base_parent$jscomp$1$$)),
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$target_cell_id$jscomp$2$$,$APP.$cljs$cst$1598$shapes$$],null),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_id$jscomp$49$$],null)),$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1656$auto$$)}):$changes__$1$jscomp$60$$}(),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$34$$)],null),$APP.$app$common$types$shape$layout$assign_cells$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0],null)),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$34$$)],null)):$changes__$1$jscomp$60$$}();return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape__$1$jscomp$34$$,$changes$jscomp$164_changes__$2$jscomp$29_vec__65049$$],null)};
$app$common$logic$libraries$generate_duplicate_changes$$=function($var_args$jscomp$1183$$){for(var $args__5755__auto__$jscomp$209$$=[],$len__5749__auto___66108$$=arguments.length,$i__5750__auto___66109$$=0;;)if($i__5750__auto___66109$$<$len__5749__auto___66108$$)$args__5755__auto__$jscomp$209$$.push(arguments[$i__5750__auto___66109$$]),$i__5750__auto___66109$$+=1;else break;return $APP.$app$common$logic$libraries$generate_duplicate_changes$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(arguments[0],
arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],8<$args__5755__auto__$jscomp$209$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$209$$.slice(8),0,null):null)};
$app$common$files$changes_builder$del_page$$=function($changes$jscomp$33$$,$page$jscomp$38$$){return $APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$33$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2572$del_page$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$38$$)],
null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2570$add_page$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$38$$),$APP.$cljs$cst$1608$page$$,$page$jscomp$38$$],null)))};
$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens$$=function($set_id$jscomp$31$$,$token_ids$$){typeof $app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$=function($set_id$jscomp$32$$,$token_ids$jscomp$1$$,$meta71426$$){this.$set_id$=$set_id$jscomp$32$$;this.$token_ids$=$token_ids$jscomp$1$$;this.$meta71426$=$meta71426$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4545$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_bulk_delete_tokens$$},$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_71427$$,$meta71426__$1$$){return new $app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$(this.$set_id$,this.$token_ids$,$meta71426__$1$$)},$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71426$},$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($changes$jscomp$303_data$jscomp$417_it$jscomp$248$$,$state$jscomp$904$$){var $self__$jscomp$6413$$=this;$changes$jscomp$303_data$jscomp$417_it$jscomp$248$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$904$$);$changes$jscomp$303_data$jscomp$417_it$jscomp$248$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes$jscomp$304$$,$token_id$jscomp$19$$){return $APP.$app$common$files$changes_builder$set_token$$($changes$jscomp$304$$,
$self__$jscomp$6413$$.$set_id$,$token_id$jscomp$19$$,null)},$APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$303_data$jscomp$417_it$jscomp$248$$),$self__$jscomp$6413$$.$token_ids$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$303_data$jscomp$417_it$jscomp$248$$),$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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"delete-token-node"],null)))});return new $app$main$data$workspace$tokens$library_edit$bulk_delete_tokens_71425$$($set_id$jscomp$31$$,$token_ids$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$02$$=function($id$jscomp$767$$,$params$jscomp$308$$){return $APP.$app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$03$$(null,$id$jscomp$767$$,$params$jscomp$308$$)};
$app$main$data$workspace$tokens$library_edit$create_token$cljs$0core$0IFn$0_invoke$0arity$01$$=function($token$jscomp$88$$){return $APP.$app$main$data$workspace$tokens$library_edit$create_token$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$token$jscomp$88$$)};
$app$main$data$workspace$tokens$library_edit$duplicate_token$$=function($token_id$jscomp$20$$){typeof $app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$=function($token_id$jscomp$21$$,$meta71443$$){this.$token_id$=$token_id$jscomp$21$$;this.$meta71443$=$meta71443$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4546$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_duplicate_token$$},$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71444$$,$meta71443__$1$$){return new $app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$(this.$token_id$,
$meta71443__$1$$)},$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71443$},$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$,
$new_token_state$jscomp$905_temp__5825__auto____$2$$){$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$=$APP.$app$main$data$workspace$tokens$library_edit$lookup_token_set$cljs$0core$0IFn$0_invoke$0arity$01$$($new_token_state$jscomp$905_temp__5825__auto____$2$$);if($APP.$cljs$core$truth_$$($_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$)){var $suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$=$APP.$app$main$data$workspace$tokens$library_edit$get_tokens_lib$$($new_token_state$jscomp$905_temp__5825__auto____$2$$);
if($APP.$cljs$core$truth_$$($suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$)&&($new_token_state$jscomp$905_temp__5825__auto____$2$$=$APP.$app$common$types$tokens_lib$get_token$$($suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$,$APP.$app$common$types$tokens_lib$get_id$$($_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$),this.$token_id$),$APP.$cljs$core$truth_$$($new_token_state$jscomp$905_temp__5825__auto____$2$$)))return $_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$=
$APP.$cljs$core$vals$$($APP.$app$common$types$tokens_lib$get_tokens$$($suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$,$APP.$app$common$types$tokens_lib$get_id$$($_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$))),$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$),
$suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.duplicate-suffix"),$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$=$APP.$app$common$files$helpers$generate_unique_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($new_token_state$jscomp$905_temp__5825__auto____$2$$),$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1360$suffix$$,$suffix$jscomp$25_temp__5825__auto____$1$jscomp$15$$])),$new_token_state$jscomp$905_temp__5825__auto____$2$$=$APP.$app$common$types$tokens_lib$rename$$($APP.$app$common$types$tokens_lib$reid$$($new_token_state$jscomp$905_temp__5825__auto____$2$$),$_$jscomp$2572_copy_name$jscomp$1_temp__5825__auto__$jscomp$234_tokens$jscomp$34_unames$jscomp$13$$),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$tokens$library_edit$create_token$cljs$0core$0IFn$0_invoke$0arity$01$$($new_token_state$jscomp$905_temp__5825__auto____$2$$))}return null});
return new $app$main$data$workspace$tokens$library_edit$duplicate_token_71442$$($token_id$jscomp$20$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$rename_token_set_group$$=function($set_group_path$jscomp$2$$,$set_group_fname$jscomp$2$$){typeof $app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$=function($set_group_path$jscomp$3$$,$set_group_fname$jscomp$3$$,$meta71205$$){this.$set_group_path$=$set_group_path$jscomp$3$$;this.$set_group_fname$=$set_group_fname$jscomp$3$$;this.$meta71205$=
$meta71205$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4530$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_rename_token_set_group$$},
$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71206$$,$meta71205__$1$$){return new $app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$(this.$set_group_path$,this.$set_group_fname$,$meta71205__$1$$)},$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71205$},$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $changes$jscomp$289_changes$jscomp$inline_8154$$=$APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this);var $set_group_path$jscomp$inline_8155$$=this.$set_group_path$,$set_group_fname$jscomp$inline_8156$$=this.$set_group_fname$,$undo_path$jscomp$inline_8157$$=$APP.$app$common$types$tokens_lib$replace_last_path_name$$($set_group_path$jscomp$inline_8155$$,
$set_group_fname$jscomp$inline_8156$$),$undo_fname$jscomp$inline_8158$$=$APP.$cljs$core$last$$($set_group_path$jscomp$inline_8155$$);$changes$jscomp$289_changes$jscomp$inline_8154$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$289_changes$jscomp$inline_8154$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2600$rename_token_set_group$$,$APP.$cljs$cst$2601$set_group_path$$,$set_group_path$jscomp$inline_8155$$,$APP.$cljs$cst$2602$set_group_fname$$,$set_group_fname$jscomp$inline_8156$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2600$rename_token_set_group$$,$APP.$cljs$cst$2601$set_group_path$$,$undo_path$jscomp$inline_8157$$,$APP.$cljs$cst$2602$set_group_fname$$,
$undo_fname$jscomp$inline_8158$$],null)));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$289_changes$jscomp$inline_8154$$))});return new $app$main$data$workspace$tokens$library_edit$rename_token_set_group_71204$$($set_group_path$jscomp$2$$,$set_group_fname$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$update_component_annotation$$=function($id$jscomp$737$$,$annotation$jscomp$4$$){typeof $app$main$data$workspace$update_component_annotation_70518$$==="undefined"&&($app$main$data$workspace$update_component_annotation_70518$$=function($id$jscomp$738$$,$annotation$jscomp$5$$,$meta70519$$){this.id=$id$jscomp$738$$;this.$annotation$=$annotation$jscomp$5$$;this.$meta70519$=$meta70519$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$update_component_annotation_70518$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$update_component_annotation_70518$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4367$app_DOT_main_DOT_data_DOT_workspace_SLASH_update_component_annotation$$},$app$main$data$workspace$update_component_annotation_70518$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70520$$,$meta70519__$1$$){return new $app$main$data$workspace$update_component_annotation_70518$$(this.id,
this.$annotation$,$meta70519__$1$$)},$app$main$data$workspace$update_component_annotation_70518$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70519$},$app$main$data$workspace$update_component_annotation_70518$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$update_component_annotation_70518$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$271_data$jscomp$394_it$jscomp$231$$,$state$jscomp$852$$){var $self__$jscomp$6196$$=
this;$changes$jscomp$271_data$jscomp$394_it$jscomp$231$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$852$$);$changes$jscomp$271_data$jscomp$394_it$jscomp$231$$=$APP.$app$common$files$changes_builder$update_component$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$271_data$jscomp$394_it$jscomp$231$$),$self__$jscomp$6196$$.id,function($component$jscomp$93$$){return $APP.$cljs$core$truth_$$($component$jscomp$93$$)?
$self__$jscomp$6196$$.$annotation$==null?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($component$jscomp$93$$,$APP.$cljs$cst$2499$annotation$$):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($component$jscomp$93$$,$APP.$cljs$cst$2499$annotation$$,$self__$jscomp$6196$$.$annotation$):null});return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$271_data$jscomp$394_it$jscomp$231$$)),$self__$jscomp$6196$$.$annotation$==
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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"delete-component-annotation"],null))):null)});return new $app$main$data$workspace$update_component_annotation_70518$$($id$jscomp$737$$,$annotation$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$relocate_page$$=function($id$jscomp$731$$,$index$jscomp$359$$){typeof $app$main$data$workspace$relocate_page_70332$$==="undefined"&&($app$main$data$workspace$relocate_page_70332$$=function($id$jscomp$732$$,$index$jscomp$360$$,$meta70333$$){this.id=$id$jscomp$732$$;this.index=$index$jscomp$360$$;this.$meta70333$=$meta70333$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$relocate_page_70332$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$relocate_page_70332$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4330$app_DOT_main_DOT_data_DOT_workspace_SLASH_relocate_page$$},$app$main$data$workspace$relocate_page_70332$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70334$$,$meta70333__$1$$){return new $app$main$data$workspace$relocate_page_70332$$(this.id,this.index,$meta70333__$1$$)},$app$main$data$workspace$relocate_page_70332$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta70333$},$app$main$data$workspace$relocate_page_70332$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$relocate_page_70332$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$269_it$jscomp$229_prev_index$jscomp$1$$,$page_id$jscomp$inline_8161_state$jscomp$824$$){$changes$jscomp$269_it$jscomp$229_prev_index$jscomp$1$$=$APP.$app$common$data$index_of$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$inline_8161_state$jscomp$824$$),
$APP.$cljs$cst$2190$pages$$),this.id);$page_id$jscomp$inline_8161_state$jscomp$824$$=this.id;$changes$jscomp$269_it$jscomp$229_prev_index$jscomp$1$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2573$mov_page$$,$APP.$cljs$cst$266$id$$,$page_id$jscomp$inline_8161_state$jscomp$824$$,$APP.$cljs$cst$1779$index$$,this.index],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2573$mov_page$$,$APP.$cljs$cst$266$id$$,$page_id$jscomp$inline_8161_state$jscomp$824$$,$APP.$cljs$cst$1779$index$$,$changes$jscomp$269_it$jscomp$229_prev_index$jscomp$1$$],null)));
return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$269_it$jscomp$229_prev_index$jscomp$1$$))});return new $app$main$data$workspace$relocate_page_70332$$($id$jscomp$731$$,$index$jscomp$359$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$variants$reorder_variant_poperties$$=function($variant_id$jscomp$29$$,$from_pos$jscomp$8$$,$to_space_between_pos$jscomp$8$$){typeof $app$main$data$workspace$variants$reorder_variant_properties_69976$$==="undefined"&&($app$main$data$workspace$variants$reorder_variant_properties_69976$$=function($variant_id$jscomp$30$$,$from_pos$jscomp$9$$,$to_space_between_pos$jscomp$9$$,$meta69977$$){this.$variant_id$=$variant_id$jscomp$30$$;this.$from_pos$=$from_pos$jscomp$9$$;this.$to_space_between_pos$=
$to_space_between_pos$jscomp$9$$;this.$meta69977$=$meta69977$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4276$app_DOT_main_DOT_data_DOT_workspace_DOT_variants_SLASH_reorder_variant_properties$$},
$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69978$$,$meta69977__$1$$){return new $app$main$data$workspace$variants$reorder_variant_properties_69976$$(this.$variant_id$,this.$from_pos$,this.$to_space_between_pos$,$meta69977__$1$$)},$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69977$},$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$variants$reorder_variant_properties_69976$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$,$data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$){$changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$);$data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$=
$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$);var $objects$jscomp$628$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$,$changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$),$APP.$cljs$cst$1615$objects$$);$changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$=$app$common$logic$variant_properties$generate_reorder_variant_poperties$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$02$$(this,
$changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$),$data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$),$objects$jscomp$628$$),this.$variant_id$,this.$from_pos$,this.$to_space_between_pos$);$data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$),$APP.$app$main$data$changes$commit_changes$$($changes$jscomp$261_it$jscomp$223_page_id$jscomp$241$$),
$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($data$jscomp$388_state$jscomp$775_undo_id$jscomp$64$$))});return new $app$main$data$workspace$variants$reorder_variant_properties_69976$$($variant_id$jscomp$29$$,$from_pos$jscomp$8$$,$to_space_between_pos$jscomp$8$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$shape_layout$create_cell_board$$=function($layout_id$jscomp$10$$,$cell_ids$$){typeof $app$main$data$workspace$shape_layout$create_cell_board_69809$$==="undefined"&&($app$main$data$workspace$shape_layout$create_cell_board_69809$$=function($layout_id$jscomp$11$$,$cell_ids$jscomp$1$$,$meta69810$$){this.$layout_id$=$layout_id$jscomp$11$$;this.$cell_ids$=$cell_ids$jscomp$1$$;this.$meta69810$=$meta69810$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4266$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_create_cell_board$$},$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69811$$,$meta69810__$1$$){return new $app$main$data$workspace$shape_layout$create_cell_board_69809$$(this.$layout_id$,
this.$cell_ids$,$meta69810__$1$$)},$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69810$},$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$create_cell_board_69809$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($it$jscomp$215_undo_id$jscomp$56$$,$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$){var $self__$jscomp$5846$$=
this,$it__$1$jscomp$92$$=this,$page_id$jscomp$233$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$),$objects$jscomp$619$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$),$frame_id$jscomp$102$$=$APP.$app$common$uuid$next$$();
$it$jscomp$215_undo_id$jscomp$56$$=Symbol();var $shape$jscomp$725$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$619$$,$self__$jscomp$5846$$.$layout_id$);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69808_SHARP_$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$725$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$p1__69808_SHARP_$$],null))},$self__$jscomp$5846$$.$cell_ids$);var $selected$jscomp$89$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1598$shapes$$),$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=
$APP.$app$common$types$shape$layout$cells_coordinates$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=$APP.$cljs$core$__destructure_map$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$);var $first_row$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,
$APP.$cljs$cst$1699$first_row$$),$first_column$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,$APP.$cljs$cst$1700$first_column$$),$last_row$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,$APP.$cljs$cst$1701$last_row$$),$last_column$jscomp$12$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,$APP.$cljs$cst$1702$last_column$$),$target_cell$jscomp$10$$=$APP.$app$common$types$shape$layout$get_cell_by_position$$($shape$jscomp$725$$,$first_row$jscomp$12$$,$first_column$jscomp$12$$);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=function(){var $G__69818_G__69819$jscomp$inline_8165$$=
$APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$02$$($it__$1$jscomp$92$$,$page_id$jscomp$233$$),$objects$jscomp$619$$);$G__69818_G__69819$jscomp$inline_8165$$=$APP.$app$common$data$not_empty_QMARK_$$($selected$jscomp$89$$)?$APP.$app$common$files$shapes_helpers$prepare_create_artboard_from_selection$$.$cljs$core$IFn$_invoke$arity$9$($G__69818_G__69819$jscomp$inline_8165$$,$frame_id$jscomp$102$$,$self__$jscomp$5846$$.$layout_id$,
$objects$jscomp$619$$,$selected$jscomp$89$$,0,null,!0,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$10$$)):$G__69818_G__69819$jscomp$inline_8165$$;return $APP.$cljs$core$empty_QMARK_$$($APP.$cljs$core$seq$$($selected$jscomp$89$$))?$app$common$files$shapes_helpers$prepare_create_empty_artboard$$($G__69818_G__69819$jscomp$inline_8165$$,$frame_id$jscomp$102$$,$self__$jscomp$5846$$.$layout_id$,$objects$jscomp$619$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$10$$)):
$G__69818_G__69819$jscomp$inline_8165$$}();$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,0,null);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,
1,null);$cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$=$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$frame_id$jscomp$102$$],null),function($shape__$1$jscomp$62$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape__$1$jscomp$62$$,$APP.$cljs$cst$1692$layout_item_h_sizing$$,$APP.$cljs$cst$1392$fill$$),$APP.$cljs$cst$1693$layout_item_v_sizing$$,$APP.$cljs$cst$1392$fill$$)}),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5846$$.$layout_id$],null),function($shape__$1$jscomp$63$$){var $new_row_span$jscomp$1$$=
$last_row$jscomp$12$$-$first_row$jscomp$12$$+1,$new_col_span$$=$last_column$jscomp$12$$-$first_column$jscomp$12$$+1;return $APP.$app$common$types$shape$layout$resize_cell_area$$($shape__$1$jscomp$63$$,$APP.$cljs$cst$1640$row$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$10$$),$APP.$cljs$cst$216$column$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$10$$),$first_row$jscomp$12$$,$first_column$jscomp$12$$,$new_row_span$jscomp$1$$,$new_col_span$$)});return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($it$jscomp$215_undo_id$jscomp$56$$),
$APP.$app$main$data$changes$commit_changes$$($cells$jscomp$24_changes$jscomp$253_changes__$1$jscomp$79_map__69812_map__69812__$1_state$jscomp$765_vec__69813$$),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5846$$.$layout_id$],null)],null)),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($it$jscomp$215_undo_id$jscomp$56$$))});
return new $app$main$data$workspace$shape_layout$create_cell_board_69809$$($layout_id$jscomp$10$$,$cell_ids$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$shape_layout$duplicate_layout_track$$=function($ids$jscomp$218$$,$type$jscomp$515$$,$index$jscomp$352$$){typeof $app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$==="undefined"&&($app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$=function($ids$jscomp$219$$,$type$jscomp$516$$,$index$jscomp$353$$,$meta69712$$){this.ids=$ids$jscomp$219$$;this.type=$type$jscomp$516$$;this.index=$index$jscomp$353$$;this.$meta69712$=$meta69712$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4256$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_duplicate_layout_track$$},$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69713$$,$meta69712__$1$$){return new $app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$(this.ids,this.type,this.index,$meta69712__$1$$)},$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69712$},$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$,$library_data$jscomp$33_state$jscomp$762$$){var $self__$jscomp$5810$$=this;$changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($library_data$jscomp$33_state$jscomp$762$$);var $page$jscomp$97_undo_id$jscomp$48$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$1$($library_data$jscomp$33_state$jscomp$762$$),
$objects$jscomp$611$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$97_undo_id$jscomp$48$$),$libraries$jscomp$93$$=$APP.$app$main$data$helpers$lookup_libraries$$($library_data$jscomp$33_state$jscomp$762$$);$library_data$jscomp$33_state$jscomp$762$$=$APP.$app$main$data$helpers$lookup_file$cljs$0core$0IFn$0_invoke$0arity$02$$($library_data$jscomp$33_state$jscomp$762$$,$changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$);var $shape_id$jscomp$114_shapes_by_track$$=
$APP.$cljs$core$first$$($self__$jscomp$5810$$.ids),$base_shape$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$611$$,$shape_id$jscomp$114_shapes_by_track$$);$shape_id$jscomp$114_shapes_by_track$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5810$$.type,$APP.$cljs$cst$216$column$$)?$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$shape$layout$cells_by_column$cljs$0core$0IFn$0_invoke$0arity$03$$($base_shape$$,
$self__$jscomp$5810$$.index,!1)])):$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$shape$layout$cells_by_row$cljs$0core$0IFn$0_invoke$0arity$03$$($base_shape$$,$self__$jscomp$5810$$.index,!1)]));var $selected$jscomp$88$$=$APP.$cljs$core$set$$($shape_id$jscomp$114_shapes_by_track$$);$changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$=$APP.$app$common$logic$libraries$generate_duplicate_changes_update_indices$$($app$common$logic$libraries$generate_duplicate_changes$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),
$objects$jscomp$611$$,$page$jscomp$97_undo_id$jscomp$48$$,$selected$jscomp$88$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0),$libraries$jscomp$93$$,$library_data$jscomp$33_state$jscomp$762$$,$changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$),$objects$jscomp$611$$,$selected$jscomp$88$$);var $ids_map$jscomp$19$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69710_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3404$old_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__69710_SHARP_$$),$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($p1__69710_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2561$obj$$,$APP.$cljs$cst$266$id$$],null))],null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($G__69714_p1__69709_SHARP_$$){$G__69714_p1__69709_SHARP_$$=$APP.$cljs$cst$3404$old_id$$.$cljs$core$IFn$_invoke$arity$1$($G__69714_p1__69709_SHARP_$$);
return $selected$jscomp$88$$.$cljs$core$IFn$_invoke$arity$1$?$selected$jscomp$88$$.$cljs$core$IFn$_invoke$arity$1$($G__69714_p1__69709_SHARP_$$):$selected$jscomp$88$$($G__69714_p1__69709_SHARP_$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69708_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__69708_SHARP_$$),$APP.$cljs$cst$2560$add_obj$$)},$APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$)))));
$changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$=$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$04$$($changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$,$self__$jscomp$5810$$.ids,function($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,$objects__$1$jscomp$27$$){$G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,
$APP.$cljs$core$select_keys$$($base_shape$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$cst$1679$layout_grid_columns$$,$APP.$cljs$cst$1678$layout_grid_rows$$],null))]));var $G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$=$self__$jscomp$5810$$.type;$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$=$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$ instanceof
$APP.$cljs$core$Keyword$$?$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$.$fqn$:null;switch($G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$){case "row":$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$=$self__$jscomp$5810$$.index;var $value$jscomp$inline_8171_value$jscomp$inline_8178$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,
$APP.$cljs$cst$1678$layout_grid_rows$$),$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$);$G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$=$app$common$types$shape$layout$duplicate_cells$$($APP.$app$common$types$shape$layout$add_grid_row$$.$cljs$core$IFn$_invoke$arity$3$($app$common$types$shape$layout$remove_cell_areas_after$$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,$APP.$cljs$cst$1640$row$$,
$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$),$value$jscomp$inline_8171_value$jscomp$inline_8178$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$+1),$APP.$cljs$cst$1640$row$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$+1,$ids_map$jscomp$19$$);return $APP.$app$common$types$shape$layout$assign_cells$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$app$common$types$shape$layout$assign_cells$$.$cljs$core$IFn$_invoke$arity$2$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,
$objects__$1$jscomp$27$$):$APP.$app$common$types$shape$layout$assign_cells$$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,$objects__$1$jscomp$27$$);case "column":return $G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$=$self__$jscomp$5810$$.index,$value$jscomp$inline_8171_value$jscomp$inline_8178$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,
$APP.$cljs$cst$1679$layout_grid_columns$$),$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$),$G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$=$app$common$types$shape$layout$duplicate_cells$$($APP.$app$common$types$shape$layout$add_grid_column$$.$cljs$core$IFn$_invoke$arity$3$($app$common$types$shape$layout$remove_cell_areas_after$$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,
$APP.$cljs$cst$216$column$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$),$value$jscomp$inline_8171_value$jscomp$inline_8178$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$+1),$APP.$cljs$cst$216$column$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$,$G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$+1,$ids_map$jscomp$19$$),$APP.$app$common$types$shape$layout$assign_cells$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$app$common$types$shape$layout$assign_cells$$.$cljs$core$IFn$_invoke$arity$2$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,$objects__$1$jscomp$27$$):$APP.$app$common$types$shape$layout$assign_cells$$($G__48004$jscomp$inline_8172_G__48007$jscomp$inline_8179_shape$jscomp$715_shape__$1$jscomp$57$$,$objects__$1$jscomp$27$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__69719_G__69719__$1_index$jscomp$inline_8169_index$jscomp$inline_8176$$)].join(""));
}},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0],null));$page$jscomp$97_undo_id$jscomp$48$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($page$jscomp$97_undo_id$jscomp$48$$),$APP.$app$main$data$changes$commit_changes$$($changes$jscomp$248_changes__$1$jscomp$78_file_id$jscomp$235_it$jscomp$214$$),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,$self__$jscomp$5810$$.ids],null)),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($page$jscomp$97_undo_id$jscomp$48$$))});return new $app$main$data$workspace$shape_layout$duplicate_layout_track_69711$$($ids$jscomp$218$$,$type$jscomp$515$$,$index$jscomp$352$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$pages$delete_page$$=function($id$jscomp$708$$){typeof $app$main$data$workspace$pages$delete_page_68993$$==="undefined"&&($app$main$data$workspace$pages$delete_page_68993$$=function($id$jscomp$709$$,$meta68994$$){this.id=$id$jscomp$709$$;this.$meta68994$=$meta68994$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$pages$delete_page_68993$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$pages$delete_page_68993$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4231$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_delete_page$$},$app$main$data$workspace$pages$delete_page_68993$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68995$$,$meta68994__$1$$){return new $app$main$data$workspace$pages$delete_page_68993$$(this.id,$meta68994__$1$$)},$app$main$data$workspace$pages$delete_page_68993$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68994$},$app$main$data$workspace$pages$delete_page_68993$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$delete_page_68993$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$,$state$jscomp$745$$){var $self__$jscomp$5725$$=this;$changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$745$$);
$changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$745$$,$changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$);var $page$jscomp$96_pindex$$=$APP.$cljs$cst$1614$pages_index$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$),$pages$jscomp$6_pages__$1$$=$APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$),
$index$jscomp$345_page__$1$jscomp$7$$=$APP.$app$common$data$index_of$$($pages$jscomp$6_pages__$1$$,$self__$jscomp$5725$$.id);$page$jscomp$96_pindex$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$96_pindex$$,$self__$jscomp$5725$$.id);$index$jscomp$345_page__$1$jscomp$7$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($page$jscomp$96_pindex$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$345_page__$1$jscomp$7$$);$pages$jscomp$6_pages__$1$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68992_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__68992_SHARP_$$,
$self__$jscomp$5725$$.id)},$pages$jscomp$6_pages__$1$$);$changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$=$app$common$files$changes_builder$del_page$$($app$main$data$workspace$pages$delete_page_components$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$),$index$jscomp$345_page__$1$jscomp$7$$),$index$jscomp$345_page__$1$jscomp$7$$);
return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$243_fdata$jscomp$17_file_id$jscomp$234_it$jscomp$211$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5725$$.id,$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$745$$))?$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,
1,[$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$core$first$$($pages$jscomp$6_pages__$1$$)],null)])):null)});return new $app$main$data$workspace$pages$delete_page_68993$$($id$jscomp$708$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$pages$duplicate_page$$=function($page_id$jscomp$224$$){typeof $app$main$data$workspace$pages$duplicate_page_68917$$==="undefined"&&($app$main$data$workspace$pages$duplicate_page_68917$$=function($page_id$jscomp$225$$,$meta68918$$){this.$page_id$=$page_id$jscomp$225$$;this.$meta68918$=$meta68918$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4226$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_duplicate_page$$},$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68919$$,$meta68918__$1$$){return new $app$main$data$workspace$pages$duplicate_page_68917$$(this.$page_id$,$meta68918__$1$$)},$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68918$},$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$duplicate_page_68917$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$,$base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$){function $add_comp$$($changes$jscomp$239$$,$component$jscomp$86_main$jscomp$2$$){var $new_component_id$jscomp$6$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_ids_map$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$)),$new_variant_id$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_ids_map$$,$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$)),$main_instance_id$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_ids_map$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$));
$component$jscomp$86_main$jscomp$2$$=$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($fdata$jscomp$16$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$));return $APP.$app$common$files$changes_builder$add_component$$($changes$jscomp$239$$,$new_component_id$jscomp$6$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$),
$APP.$cljs$core$PersistentVector$EMPTY$$,$main_instance_id$jscomp$6$$,$new_page_id$$,$APP.$cljs$cst$2499$annotation$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$),$new_variant_id$jscomp$1$$,$APP.$cljs$cst$1986$variant_properties$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$86_main$jscomp$2$$))}function $add_component_copy$$($objs$jscomp$17_objs__$1$jscomp$1$$,$id$jscomp$703$$,$new_shape$jscomp$22_shape$jscomp$704$$){var $children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$=
$APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($fdata$jscomp$16$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$)),$parent_id$jscomp$96$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$),$APP.$app$common$uuid$zero$$)?$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$):
null;$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$=$APP.$app$common$types$container$make_component_instance$cljs$0core$0IFn$0_invoke$0arity$05$$($page$jscomp$93$$,$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$,$fdata$jscomp$16$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$)),
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2074$keep_ids_QMARK_$$,!0,$APP.$cljs$cst$2506$force_frame_id$$,$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($new_shape$jscomp$22_shape$jscomp$704$$),$APP.$cljs$cst$2507$force_parent_id$$,$parent_id$jscomp$96$$],null));$new_shape$jscomp$22_shape$jscomp$704$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$,0,null);$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$,1,null);$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($shape__$1$jscomp$55$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$55$$),
$shape__$1$jscomp$55$$],null)},$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$));$objs$jscomp$17_objs__$1$jscomp$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($objs$jscomp$17_objs__$1$jscomp$1$$,$id$jscomp$703$$,$new_shape$jscomp$22_shape$jscomp$704$$);return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$objs$jscomp$17_objs__$1$jscomp$1$$,$children$jscomp$254_component$jscomp$85_new_shapes$jscomp$8_vec__68950$$]))}
var $it__$1$jscomp$86$$=this,$new_page_id$$=$APP.$app$common$uuid$next$$(),$fdata$jscomp$16$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$);$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fdata$jscomp$16$$,$APP.$cljs$cst$1614$pages_index$$);var $page$jscomp$93$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$,
this.$page_id$);$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$=$APP.$app$common$files$helpers$get_used_names$$($changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$);$base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$93$$);$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$=$APP.$app$common$files$helpers$generate_unique_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$,
$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1612$suffix_fn$$,function($copy_count$jscomp$2$$){return" "+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.copy-suffix")??"")+(($copy_count$jscomp$2$$>1?[" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($copy_count$jscomp$2$$)].join(""):null)??"")}]));var $objects$jscomp$598$$=$APP.$cljs$core$update_vals$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$93$$),
function($p1__68897_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__68897_SHARP_$$,$APP.$cljs$cst$2903$use_for_thumbnail$$)}),$main_not_variant_ids$$=$APP.$cljs$core$set$$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__68898_SHARP_$$){return $APP.$app$common$types$component$main_instance_QMARK_$$($APP.$cljs$core$_val$$($p1__68898_SHARP_$$))&&!$APP.$app$common$types$component$is_variant_QMARK_$$($APP.$cljs$core$_val$$($p1__68898_SHARP_$$))?$APP.$cljs$core$_key$$($p1__68898_SHARP_$$):
null},$objects$jscomp$598$$)),$ids_to_remove$$=$APP.$cljs$core$set$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$concat$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68899_SHARP_$$){return $APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$598$$,$p1__68899_SHARP_$$)},$main_not_variant_ids$$))),$variant_mains$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$component$is_variant_QMARK_$$,
$APP.$cljs$core$vals$$($objects$jscomp$598$$)),$variants_ids_map$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ids_map$jscomp$18$$,$shape$jscomp$705$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($ids_map$jscomp$18$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$705$$),$APP.$app$common$uuid$next$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$705$$),
$APP.$app$common$uuid$next$$(),$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$705$$),$APP.$app$common$uuid$next$$()]))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$variant_mains$$);$base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$,$JSCompiler_temp_const$jscomp$10575_p__68966$$){var $id$jscomp$704$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$10575_p__68966$$,0,null),$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$10575_p__68966$$,1,null);if($APP.$cljs$core$contains_QMARK_$$($main_not_variant_ids$$,$id$jscomp$704$$))$JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$=$add_component_copy$$($JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$,
$id$jscomp$704$$,$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$);else if(!$APP.$cljs$core$contains_QMARK_$$($ids_to_remove$$,$id$jscomp$704$$))if($APP.$cljs$core$contains_QMARK_$$($variants_ids_map$$,$id$jscomp$704$$)){$JSCompiler_temp_const$jscomp$10575_p__68966$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$;var $G__68956__$1$jscomp$inline_12693$$=$APP.$cljs$core$contains_QMARK_$$($JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$,$APP.$cljs$cst$1611$component_id$$)?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$,$APP.$cljs$cst$1611$component_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_ids_map$$,$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$))):$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$;$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$=$APP.$cljs$core$contains_QMARK_$$($JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$,
$APP.$cljs$cst$1985$variant_id$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68956__$1$jscomp$inline_12693$$,$APP.$cljs$cst$1985$variant_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_ids_map$$,$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$))):$G__68956__$1$jscomp$inline_12693$$;$JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$=$JSCompiler_temp_const$jscomp$10575_p__68966$$.call($APP.$cljs$core$assoc$$,
$JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$,$id$jscomp$704$$,$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$)}else $JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$,$id$jscomp$704$$,$JSCompiler_inline_result$jscomp$10577_shape$jscomp$707$$);
return $JSCompiler_temp$jscomp$10572_JSCompiler_temp$jscomp$10573_JSCompiler_temp$jscomp$10574_objs$jscomp$18$$},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$objects$jscomp$598$$);var $objects__$2$$=$APP.$cljs$core$reduce_kv$$(function($objs$jscomp$19$$,$___$1$jscomp$1609$$,$p__68970$$){var $map__68971__$1$$=$APP.$cljs$core$__destructure_map$$($p__68970$$),$id$jscomp$705$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68971__$1$$,$APP.$cljs$cst$266$id$$),$parent_id$jscomp$97$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68971__$1$$,
$APP.$cljs$cst$1603$parent_id$$),$frame_id$jscomp$101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68971__$1$$,$APP.$cljs$cst$1591$frame_id$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($objs$jscomp$19$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($variants_ids_map$$,$id$jscomp$705$$,$id$jscomp$705$$),function(){var $G__68972$$=$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__68971__$1$$,
$APP.$cljs$cst$266$id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($variants_ids_map$$,$id$jscomp$705$$,$id$jscomp$705$$)),$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($variants_ids_map$$,$parent_id$jscomp$97$$,$parent_id$jscomp$97$$)),$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($variants_ids_map$$,$frame_id$jscomp$101$$,$frame_id$jscomp$101$$));return $APP.$cljs$core$contains_QMARK_$$($map__68971__$1$$,$APP.$cljs$cst$1598$shapes$$)?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68972$$,$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68908_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($variants_ids_map$$,$p1__68908_SHARP_$$,$p1__68908_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($map__68971__$1$$))):$G__68972$$}())},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$base_name$jscomp$3_objects__$1$jscomp$25_state$jscomp$743$$),
$page__$1$jscomp$6$$=$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$($page$jscomp$93$$,$APP.$cljs$cst$723$name$$,$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$),$APP.$cljs$cst$266$id$$,$new_page_id$$),$APP.$cljs$cst$1615$objects$$,$objects__$2$$);$changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$=function(){var $JSCompiler_inline_result$jscomp$1622_changes$jscomp$240$$=
$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$($it__$1$jscomp$86$$),$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2570$add_page$$,$APP.$cljs$cst$266$id$$,$new_page_id$$,$APP.$cljs$cst$1608$page$$,
$page__$1$jscomp$6$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2572$del_page$$,$APP.$cljs$cst$266$id$$,$new_page_id$$],null)));$JSCompiler_inline_result$jscomp$1622_changes$jscomp$240$$=$APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_page$$($JSCompiler_inline_result$jscomp$1622_changes$jscomp$240$$,$page__$1$jscomp$6$$),$objects__$2$$);
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($add_comp$$,$JSCompiler_inline_result$jscomp$1622_changes$jscomp$240$$,$variant_mains$$)}();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$238_it$jscomp$209_name$jscomp$335_pages$jscomp$5_unames$jscomp$12$$))});return new $app$main$data$workspace$pages$duplicate_page_68917$$($page_id$jscomp$224$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$rename_flow$$=function($flow_id$jscomp$9$$,$name$jscomp$332$$){typeof $app$main$data$workspace$interactions$rename_flow_68674$$==="undefined"&&($app$main$data$workspace$interactions$rename_flow_68674$$=function($flow_id$jscomp$10$$,$name$jscomp$333$$,$meta68675$$){this.$flow_id$=$flow_id$jscomp$10$$;this.name=$name$jscomp$333$$;this.$meta68675$=$meta68675$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4182$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_rename_flow$$},$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68676$$,$meta68675__$1$$){return new $app$main$data$workspace$interactions$rename_flow_68674$$(this.$flow_id$,this.name,$meta68675__$1$$)},
$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68675$},$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$rename_flow_68674$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2326_page$jscomp$88$$,$state$jscomp$710$$){var $self__$jscomp$5589$$=this;$_$jscomp$2326_page$jscomp$88$$=
$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$710$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$interactions$update_flow$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2326_page$jscomp$88$$),$self__$jscomp$5589$$.$flow_id$,function($p1__68673_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__68673_SHARP_$$,$APP.$cljs$cst$723$name$$,$self__$jscomp$5589$$.name)}))});return new $app$main$data$workspace$interactions$rename_flow_68674$$($flow_id$jscomp$9$$,
$name$jscomp$332$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$data$workspace$interactions$remove_flow$cljs$0core$0IFn$0_invoke$0arity$01$$=function($flow_id$jscomp$4$$){return $APP.$app$main$data$workspace$interactions$remove_flow$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$flow_id$jscomp$4$$)};
$app$main$data$workspace$interactions$add_flow$cljs$0core$0IFn$0_invoke$0arity$01$$=function($starting_frame$jscomp$1$$){return $APP.$app$main$data$workspace$interactions$add_flow$cljs$0core$0IFn$0_invoke$0arity$04$$(null,null,null,$starting_frame$jscomp$1$$)};
$app$main$data$workspace$interactions$add_flow_selected_frame$$=function(){typeof $app$main$data$workspace$interactions$add_flow_selected_frame_68646$$==="undefined"&&($app$main$data$workspace$interactions$add_flow_selected_frame_68646$$=function($meta68647$$){this.$meta68647$=$meta68647$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4179$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_add_flow_selected_frame$$},$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68648$$,$meta68647__$1$$){return new $app$main$data$workspace$interactions$add_flow_selected_frame_68646$$($meta68647__$1$$)},$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68647$},$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-prototype-interaction"],null)},$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$add_flow_selected_frame_68646$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2323_selected$jscomp$77$$,$state$jscomp$707$$){$_$jscomp$2323_selected$jscomp$77$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$707$$);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$interactions$add_flow$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$first$$($_$jscomp$2323_selected$jscomp$77$$)))});
return new $app$main$data$workspace$interactions$add_flow_selected_frame_68646$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page$$=function($file_id$jscomp$207$$,$page_id$jscomp$192$$){typeof $app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$==="undefined"&&($app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$=function($file_id$jscomp$208$$,$page_id$jscomp$193$$,$meta68511$$){this.$file_id$=$file_id$jscomp$208$$;this.$page_id$=$page_id$jscomp$193$$;this.$meta68511$=$meta68511$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4170$app_DOT_main_DOT_data_DOT_workspace_DOT_fix_deleted_fonts_SLASH_fix_deleted_fonts_for_page$$},$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68512$$,$meta68511__$1$$){return new $app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$(this.$file_id$,this.$page_id$,$meta68511__$1$$)},$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68511$},$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$,$state$jscomp$697$$){$it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$697$$,this.$file_id$,this.$page_id$);$it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$=$APP.$cljs$core$not_empty$$($app$main$data$workspace$fix_deleted_fonts$generate_page_changes$$($it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$));return $APP.$cljs$core$truth_$$($it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$)?
(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1770$origin$$,this,$APP.$cljs$cst$3086$redo_changes$$,$it$jscomp$202_page$jscomp$81_temp__5825__auto__$jscomp$209$$,$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$cst$3092$save_undo_QMARK_$$,!1,$APP.$cljs$cst$3087$ignore_wasm_QMARK_$$,!0],null))):null});return new $app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page_68510$$($file_id$jscomp$207$$,
$page_id$jscomp$192$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$drag_selected_points$$=function($start_position$jscomp$1$$){typeof $app$main$data$workspace$path$edition$drag_selected_points_68307$$==="undefined"&&($app$main$data$workspace$path$edition$drag_selected_points_68307$$=function($start_position$jscomp$2$$,$meta68308$$){this.$start_position$=$start_position$jscomp$2$$;this.$meta68308$=$meta68308$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4139$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_drag_selected_points$$},$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68309$$,$meta68308__$1$$){return new $app$main$data$workspace$path$edition$drag_selected_points_68307$$(this.$start_position$,
$meta68308__$1$$)},$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68308$},$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$drag_selected_points_68307$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2273_stopper$jscomp$26$$,$content$jscomp$204_points$jscomp$91_state$jscomp$672$$,
$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$){var $self__$jscomp$5426$$=this;$_$jscomp$2273_stopper$jscomp$26$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$,null);$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$204_points$jscomp$91_state$jscomp$672$$,$APP.$cljs$cst$1905$workspace_local$$),
$APP.$cljs$cst$2161$edition$$);$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$204_points$jscomp$91_state$jscomp$672$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$),$APP.$cljs$cst$4125$selected_points$$,
$APP.$cljs$core$PersistentHashSet$EMPTY$$);var $start_position__$1$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$min_key$$,function($p1__68305_SHARP_$$){return $APP.$app$common$geom$point$distance$$($self__$jscomp$5426$$.$start_position$,$p1__68305_SHARP_$$)},$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$);$content$jscomp$204_points$jscomp$91_state$jscomp$672$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($content$jscomp$204_points$jscomp$91_state$jscomp$672$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));$content$jscomp$204_points$jscomp$91_state$jscomp$672$$=$APP.$app$common$types$path$get_points$$($content$jscomp$204_points$jscomp$91_state$jscomp$672$$);return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$take_until$$($_$jscomp$2273_stopper$jscomp$26$$,$APP.$beicon$v2$core$map$$(function($p1__68306_SHARP_$$){return $app$main$data$workspace$path$edition$move_selected_path_point$$($start_position__$1$$,
$p1__68306_SHARP_$$)},$app$main$data$workspace$path$streams$move_points_stream$$($start_position__$1$$,$id$jscomp$673_selected_points$jscomp$5_stream$jscomp$73$$,$content$jscomp$204_points$jscomp$91_state$jscomp$672$$))),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$edition$apply_content_modifiers$$()))});return new $app$main$data$workspace$path$edition$drag_selected_points_68307$$($start_position$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$split_segments$$=function($id$jscomp$682$$,$p__68376$$){var $map__68377__$1$$=$APP.$cljs$core$__destructure_map$$($p__68376$$),$from_p$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68377__$1$$,$APP.$cljs$cst$1837$from_p$$),$to_p$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68377__$1$$,$APP.$cljs$cst$1838$to_p$$),$t$jscomp$95$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68377__$1$$,$APP.$cljs$cst$1836$t$$);
typeof $app$main$data$workspace$path$edition$split_segments_68378$$==="undefined"&&($app$main$data$workspace$path$edition$split_segments_68378$$=function($id$jscomp$683$$,$p__68376$jscomp$1$$,$map__68377$jscomp$1$$,$from_p$jscomp$15$$,$to_p$jscomp$13$$,$t$jscomp$96$$,$meta68379$$){this.id=$id$jscomp$683$$;this.$p__68376$=$p__68376$jscomp$1$$;this.$map__68377$=$map__68377$jscomp$1$$;this.$from_p$=$from_p$jscomp$15$$;this.$to_p$=$to_p$jscomp$13$$;this.t=$t$jscomp$96$$;this.$meta68379$=$meta68379$$;
this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4146$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_split_segments$$},$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68380$$,$meta68379__$1$$){return new $app$main$data$workspace$path$edition$split_segments_68378$$(this.id,this.$p__68376$,this.$map__68377$,this.$from_p$,this.$to_p$,this.t,$meta68379__$1$$)},$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68379$},$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$,$JSCompiler_temp_const$jscomp$794_state$jscomp$679$$){$JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($JSCompiler_temp_const$jscomp$794_state$jscomp$679$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));
$JSCompiler_temp_const$jscomp$794_state$jscomp$679$$=$APP.$cljs$core$assoc_in$$($JSCompiler_temp_const$jscomp$794_state$jscomp$679$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,this.id,$APP.$cljs$cst$4083$old_content$$],null),$JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$);var $points$jscomp$inline_8188$$=$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([this.$to_p$,
this.$from_p$]),$value$jscomp$inline_8189$$=this.t;$JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$=$APP.$app$common$types$path$impl$path_data$$($JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$);$JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$=$APP.$app$common$types$path$segment$split_segments$$($JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$,
$points$jscomp$inline_8188$$,$value$jscomp$inline_8189$$);return $APP.$app$main$data$workspace$path$state$set_content$$($JSCompiler_temp_const$jscomp$794_state$jscomp$679$$,$APP.$app$common$types$path$impl$path_data$$($JSCompiler_inline_result$jscomp$795__$jscomp$2283_content$jscomp$206_content__$1$jscomp$inline_8190$$))},$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$split_segments_68378$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$changes$save_path_content$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4081$preserve_move_to$$,!0],null)))});return new $app$main$data$workspace$path$edition$split_segments_68378$$($id$jscomp$682$$,$p__68376$$,$map__68377__$1$$,$from_p$jscomp$14$$,$to_p$jscomp$12$$,$t$jscomp$95$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$touch_component$$=function($id$jscomp$583$$){typeof $app$main$data$workspace$libraries$touch_component_68429$$==="undefined"&&($app$main$data$workspace$libraries$touch_component_68429$$=function($id$jscomp$584$$,$meta68430$$){this.id=$id$jscomp$584$$;this.$meta68430$=$meta68430$$;this.$cljs$lang$protocol_mask$partition0$$=425984;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3813$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_touch_component$$},$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68431$$,$meta68430__$1$$){return new $app$main$data$workspace$libraries$touch_component_68429$$(this.id,$meta68430__$1$$)},$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68430$},$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$cljs$core$IDeref$_deref$arity$1$=function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.id],null)},$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$touch_component_68429$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($changes$jscomp$216_data$jscomp$343_it$jscomp$195$$,$state$jscomp$477$$){$changes$jscomp$216_data$jscomp$343_it$jscomp$195$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$477$$);$changes$jscomp$216_data$jscomp$343_it$jscomp$195$$=$APP.$app$common$files$changes_builder$update_component$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$216_data$jscomp$343_it$jscomp$195$$),
this.id,function($p1__68428_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__68428_SHARP_$$,$APP.$cljs$cst$1721$modified_at$$,$APP.$app$common$time$now$$())});return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1770$origin$$,this,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$216_data$jscomp$343_it$jscomp$195$$),
$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$cst$3092$save_undo_QMARK_$$,!1],null)))});return new $app$main$data$workspace$libraries$touch_component_68429$$($id$jscomp$583$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$launch_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$=function($component_id$jscomp$60$$,$file_id$jscomp$148$$,$undo_group$jscomp$20$$){typeof $app$main$data$workspace$libraries$launch_component_sync_68316$$==="undefined"&&($app$main$data$workspace$libraries$launch_component_sync_68316$$=function($component_id$jscomp$61$$,$file_id$jscomp$149$$,$undo_group$jscomp$21$$,$meta68317$$){this.$component_id$=$component_id$jscomp$61$$;this.$file_id$=$file_id$jscomp$149$$;
this.$undo_group$=$undo_group$jscomp$21$$;this.$meta68317$=$meta68317$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3795$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_launch_component_sync$$},
$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68318$$,$meta68317__$1$$){return new $app$main$data$workspace$libraries$launch_component_sync_68316$$(this.$component_id$,this.$file_id$,this.$undo_group$,$meta68317__$1$$)},$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68317$},$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$launch_component_sync_68316$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2030_current_file_id$jscomp$9$$,$state$jscomp$467_undo_id$jscomp$24$$){$_$jscomp$2030_current_file_id$jscomp$9$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$467_undo_id$jscomp$24$$);$state$jscomp$467_undo_id$jscomp$24$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($state$jscomp$467_undo_id$jscomp$24$$),
$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$?$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$($_$jscomp$2030_current_file_id$jscomp$9$$,this.$file_id$,$APP.$cljs$cst$1622$components$$,this.$component_id$,this.$undo_group$):$APP.$app$main$data$workspace$libraries$sync_file$$($_$jscomp$2030_current_file_id$jscomp$9$$,this.$file_id$,$APP.$cljs$cst$1622$components$$,this.$component_id$,this.$undo_group$),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2030_current_file_id$jscomp$9$$,
this.$file_id$)?$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$?$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$(this.$file_id$,this.$file_id$,$APP.$cljs$cst$1622$components$$,this.$component_id$,this.$undo_group$):$APP.$app$main$data$workspace$libraries$sync_file$$(this.$file_id$,this.$file_id$,$APP.$cljs$cst$1622$components$$,this.$component_id$,this.$undo_group$):null,$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($state$jscomp$467_undo_id$jscomp$24$$))});
return new $app$main$data$workspace$libraries$launch_component_sync_68316$$($component_id$jscomp$60$$,$file_id$jscomp$148$$,$undo_group$jscomp$20$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$component_changed$$=function($component_id$jscomp$64$$,$file_id$jscomp$163$$,$undo_group$jscomp$25$$){typeof $app$main$data$workspace$libraries$component_changed_68432$$==="undefined"&&($app$main$data$workspace$libraries$component_changed_68432$$=function($component_id$jscomp$65$$,$file_id$jscomp$164$$,$undo_group$jscomp$26$$,$meta68433$$){this.$component_id$=$component_id$jscomp$65$$;this.$file_id$=$file_id$jscomp$164$$;this.$undo_group$=$undo_group$jscomp$26$$;
this.$meta68433$=$meta68433$$;this.$cljs$lang$protocol_mask$partition0$$=425984;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3814$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_component_changed$$},$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68434$$,$meta68433__$1$$){return new $app$main$data$workspace$libraries$component_changed_68432$$(this.$component_id$,this.$file_id$,this.$undo_group$,$meta68433__$1$$)},$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68433$},$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$cljs$core$IDeref$_deref$arity$1$=function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[this.$component_id$,this.$file_id$],null)},$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$component_changed_68432$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$libraries$touch_component$$(this.$component_id$),$app$main$data$workspace$libraries$launch_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$(this.$component_id$,
this.$file_id$,this.$undo_group$))});return new $app$main$data$workspace$libraries$component_changed_68432$$($component_id$jscomp$64$$,$file_id$jscomp$163$$,$undo_group$jscomp$25$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$watch_component_changes$$=function(){typeof $app$main$data$workspace$libraries$watch_component_changes_68440$$==="undefined"&&($app$main$data$workspace$libraries$watch_component_changes_68440$$=function($meta68441$$){this.$meta68441$=$meta68441$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3815$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_watch_component_changes$$},$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68442$$,$meta68441__$1$$){return new $app$main$data$workspace$libraries$watch_component_changes_68440$$($meta68441__$1$$)},$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68441$},$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$watch_component_changes_68440$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2045_stopper_s$jscomp$2$$,$___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$,$changes_s_changes_s__$1_stream$jscomp$51$$){$_$jscomp$2045_stopper_s$jscomp$2$$=
$APP.$beicon$v2$core$filter$$(function($p1__68436_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3519$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_finalize_page$$,$APP.$potok$v2$core$type$$($p1__68436_SHARP_$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3815$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_watch_component_changes$$,$APP.$potok$v2$core$type$$($p1__68436_SHARP_$$))},$changes_s_changes_s__$1_stream$jscomp$51$$);
$___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$from_atom$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$refs$workspace_data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1312$emit_current_value_QMARK_$$,!0],null)));$___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$=$APP.$beicon$v2$core$buffer$cljs$0core$0IFn$0_invoke$0arity$03$$(3,$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$take$$($___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$),
$APP.$beicon$v2$core$take$$($___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$),$___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$));$changes_s_changes_s__$1_stream$jscomp$51$$=$APP.$beicon$v2$core$observe_on$$($APP.$cljs$cst$2287$async$$,$APP.$beicon$v2$core$filter$$(function($p1__68437_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2842$local$$,$APP.$cljs$cst$193$source$$.$cljs$core$IFn$_invoke$arity$1$($p1__68437_SHARP_$$))},
$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$APP.$beicon$v2$core$filter$$($APP.$app$main$data$changes$commit_QMARK_$$,$changes_s_changes_s__$1_stream$jscomp$51$$))));$changes_s_changes_s__$1_stream$jscomp$51$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$mapcat$$(function($file_id$jscomp$165_p__68446_vec__68450$$){var $event$jscomp$87_map__68453__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$165_p__68446_vec__68450$$,0,null);$file_id$jscomp$165_p__68446_vec__68450$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$165_p__68446_vec__68450$$,1,null);var $old_data$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$165_p__68446_vec__68450$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$165_p__68446_vec__68450$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$165_p__68446_vec__68450$$,2,null);if($APP.$cljs$core$truth_$$($old_data$jscomp$1$$)){$event$jscomp$87_map__68453__$1$$=
$APP.$cljs$core$__destructure_map$$($event$jscomp$87_map__68453__$1$$);$file_id$jscomp$165_p__68446_vec__68450$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$87_map__68453__$1$$,$APP.$cljs$cst$1628$file_id$$);var $changes$jscomp$217$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$87_map__68453__$1$$,$APP.$cljs$cst$3084$changes$$),$save_undo_QMARK_$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$87_map__68453__$1$$,$APP.$cljs$cst$3092$save_undo_QMARK_$$),
$undo_group$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$87_map__68453__$1$$,$APP.$cljs$cst$3090$undo_group$$),$changed_components$$=$file_id$jscomp$165_p__68446_vec__68450$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$165_p__68446_vec__68450$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($old_data$jscomp$1$$))?$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$into$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$files$changes$components_changed$$,$old_data$jscomp$1$$),$changes$jscomp$217$$)):null;return $APP.$app$common$data$not_empty_QMARK_$$($changed_components$$)?$APP.$cljs$core$truth_$$($save_undo_QMARK_$jscomp$7$$)?($APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,
3,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$$,"detected component changes"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$changed_components$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$3090$undo_group$$,$undo_group$jscomp$27$$],null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$,!1),$APP.$beicon$v2$core$map$$(function($p1__68438_SHARP_$$){return $app$main$data$workspace$libraries$component_changed$$($p1__68438_SHARP_$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($old_data$jscomp$1$$),$undo_group$jscomp$27$$)},$APP.$beicon$v2$core$from$$($changed_components$$))):$APP.$beicon$v2$core$map$$($app$main$data$workspace$libraries$touch_component$$,
$APP.$beicon$v2$core$from$$($changed_components$$)):$APP.$beicon$v2$core$empty$$()}return null},$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$02$$($___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$,$changes_s_changes_s__$1_stream$jscomp$51$$)));$___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$=$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",
$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,1,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$$,"buffer initialized"],null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$144$trace$$,!1);return null},$APP.$beicon$v2$core$debounce$$(5E3,$changes_s_changes_s__$1_stream$jscomp$51$$));
return $APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1229$component_thumbnails$$)?$APP.$beicon$v2$core$take_until$$($_$jscomp$2045_stopper_s$jscomp$2$$,$APP.$beicon$v2$core$merge$$($changes_s_changes_s__$1_stream$jscomp$51$$,$APP.$beicon$v2$core$map$$(function($file_id$jscomp$166_p__68454$$){var $component_id$jscomp$66$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$166_p__68454$$,0,null);$file_id$jscomp$166_p__68454$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_id$jscomp$166_p__68454$$,
1,null);return $app$main$data$workspace$libraries$update_component_thumbnail$$($component_id$jscomp$66$$,$file_id$jscomp$166_p__68454$$)},$APP.$beicon$v2$core$mapcat$$(function($p1__68439_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$p1__68439_SHARP_$$)},$APP.$beicon$v2$core$buffer_until$$($___$1$jscomp$1323_notifier_s$jscomp$2_workspace_buffer_s_workspace_data_s$jscomp$1$$,$APP.$beicon$v2$core$map$$($APP.$cljs$core$deref$$,$changes_s_changes_s__$1_stream$jscomp$51$$)))))):
null});return new $app$main$data$workspace$libraries$watch_component_changes_68440$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$update_component$cljs$0core$0IFn$0_invoke$0arity$02$$=function($id$jscomp$579$$,$undo_group$jscomp$16$$){typeof $app$main$data$workspace$libraries$update_component_68279$$==="undefined"&&($app$main$data$workspace$libraries$update_component_68279$$=function($id$jscomp$580$$,$undo_group$jscomp$17$$,$meta68280$$){this.id=$id$jscomp$580$$;this.$undo_group$=$undo_group$jscomp$17$$;this.$meta68280$=$meta68280$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$libraries$update_component_68279$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_68279$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3791$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_update_component$$},$app$main$data$workspace$libraries$update_component_68279$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68281$$,$meta68280__$1$$){return new $app$main$data$workspace$libraries$update_component_68279$$(this.id,
this.$undo_group$,$meta68280__$1$$)},$app$main$data$workspace$libraries$update_component_68279$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68280$},$app$main$data$workspace$libraries$update_component_68279$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_68279$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($file$jscomp$62_it$jscomp$192$$,$ldata$jscomp$3_state$jscomp$464$$){var $self__$jscomp$4689$$=
this;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"UPDATE-COMPONENT of shape"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$266$id$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$4689$$.id)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3090$undo_group$$,$self__$jscomp$4689$$.$undo_group$],null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$,!1);var $page_id$jscomp$176_shape$jscomp$548$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($ldata$jscomp$3_state$jscomp$464$$),
$changes$jscomp$213_libraries$jscomp$76$$=$APP.$app$main$data$helpers$lookup_libraries$$($ldata$jscomp$3_state$jscomp$464$$);$file$jscomp$62_it$jscomp$192$$=$APP.$app$main$data$helpers$lookup_file$cljs$0core$0IFn$0_invoke$0arity$01$$($ldata$jscomp$3_state$jscomp$464$$);var $fdata$jscomp$13$$=$APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$62_it$jscomp$192$$),$container$jscomp$68$$=$APP.$app$common$types$container$get_container$$($fdata$jscomp$13$$,$page_id$jscomp$176_shape$jscomp$548$$);
$page_id$jscomp$176_shape$jscomp$548$$=$APP.$app$common$types$container$get_shape$$($container$jscomp$68$$,$self__$jscomp$4689$$.id);if($APP.$app$common$types$component$instance_head_QMARK_$$($page_id$jscomp$176_shape$jscomp$548$$)){$changes$jscomp$213_libraries$jscomp$76$$=$app$common$logic$libraries$generate_sync_shape_inverse$$($APP.$app$common$files$changes_builder$with_container$$($APP.$app$common$files$changes_builder$set_undo_group$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),
$self__$jscomp$4689$$.$undo_group$),$container$jscomp$68$$),$fdata$jscomp$13$$,$changes$jscomp$213_libraries$jscomp$76$$,$container$jscomp$68$$,$self__$jscomp$4689$$.id);$ldata$jscomp$3_state$jscomp$464$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($ldata$jscomp$3_state$jscomp$464$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$176_shape$jscomp$548$$));var $xf_filter$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3413$local_change_QMARK_$$),
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__68262_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__68262_SHARP_$$,$APP.$cljs$cst$3413$local_change_QMARK_$$)})),$local_changes$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($changes$jscomp$213_libraries$jscomp$76$$,$APP.$cljs$cst$3086$redo_changes$$,function($p1__68263_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$xf_filter$$,$p1__68263_SHARP_$$)}),$APP.$cljs$cst$3089$undo_changes$$,function($p1__68264_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$xf_filter$$,$p1__68264_SHARP_$$)}),$xf_remove$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3413$local_change_QMARK_$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__68268_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__68268_SHARP_$$,
$APP.$cljs$cst$3413$local_change_QMARK_$$)})),$nonlocal_changes$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($changes$jscomp$213_libraries$jscomp$76$$,$APP.$cljs$cst$3086$redo_changes$$,function($p1__68269_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$xf_remove$$,$p1__68269_SHARP_$$)}),$APP.$cljs$cst$3089$undo_changes$$,function($p1__68270_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$xf_remove$$,$p1__68270_SHARP_$$)});$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"UPDATE-COMPONENT finished"],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3792$js_SLASH_local_changes$$,$APP.$app$main$data$workspace$libraries$log_changes$$($APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($local_changes$$),$fdata$jscomp$13$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3793$js_SLASH_nonlocal_changes$$,$APP.$app$main$data$workspace$libraries$log_changes$$($APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($nonlocal_changes$$),
$fdata$jscomp$13$$)],null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$1158$debug$$,!1);return(0,$APP.$beicon$v2$core$of$$)($APP.$cljs$core$seq$$($APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($local_changes$$))?$APP.$app$main$data$changes$commit_changes$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($local_changes$$,$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$62_it$jscomp$192$$))):null,$APP.$cljs$core$seq$$($APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($nonlocal_changes$$))?
$APP.$app$main$data$changes$commit_changes$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($nonlocal_changes$$,$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($ldata$jscomp$3_state$jscomp$464$$))):null)}return null});return new $app$main$data$workspace$libraries$update_component_68279$$($id$jscomp$579$$,$undo_group$jscomp$16$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$update_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$=function($shape_id$jscomp$97$$,$file_id$jscomp$145$$){typeof $app$main$data$workspace$libraries$update_component_sync_68301$$==="undefined"&&($app$main$data$workspace$libraries$update_component_sync_68301$$=function($shape_id$jscomp$98$$,$file_id$jscomp$146$$,$undo_group$jscomp$19$$,$meta68302$$){this.$shape_id$=$shape_id$jscomp$98$$;this.$file_id$=$file_id$jscomp$146$$;this.$undo_group$=$undo_group$jscomp$19$$;
this.$meta68302$=$meta68302$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3794$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_update_component_sync$$},$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68303$$,$meta68302__$1$$){return new $app$main$data$workspace$libraries$update_component_sync_68301$$(this.$shape_id$,this.$file_id$,this.$undo_group$,$meta68302__$1$$)},$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68302$},$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$update_component_sync_68301$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2029_current_file_id$jscomp$8$$,$state$jscomp$466$$){$_$jscomp$2029_current_file_id$jscomp$8$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$466$$);var $current_file_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2029_current_file_id$jscomp$8$$,this.$file_id$),$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$466$$);$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$=
$APP.$app$common$types$container$get_shape$$($component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$shape_id$);$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$=$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$);var $undo_id$jscomp$23$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$23$$),$app$main$data$workspace$libraries$update_component$cljs$0core$0IFn$0_invoke$0arity$02$$(this.$shape_id$,
this.$undo_group$),$app$main$data$workspace$libraries$update_component_thumbnail_sync$$($state$jscomp$466$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$file_id$,"frame"),$app$main$data$workspace$libraries$update_component_thumbnail_sync$$($state$jscomp$466$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$file_id$,"component"),$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$?$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$($_$jscomp$2029_current_file_id$jscomp$8$$,
this.$file_id$,$APP.$cljs$cst$1622$components$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$undo_group$):$APP.$app$main$data$workspace$libraries$sync_file$$($_$jscomp$2029_current_file_id$jscomp$8$$,this.$file_id$,$APP.$cljs$cst$1622$components$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$undo_group$),$current_file_QMARK_$$?null:$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$?$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$05$$(this.$file_id$,
this.$file_id$,$APP.$cljs$cst$1622$components$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$undo_group$):$APP.$app$main$data$workspace$libraries$sync_file$$(this.$file_id$,this.$file_id$,$APP.$cljs$cst$1622$components$$,$component_id$jscomp$58_page$jscomp$73_shape$jscomp$549$$,this.$undo_group$),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$23$$))});return new $app$main$data$workspace$libraries$update_component_sync_68301$$($shape_id$jscomp$97$$,
$file_id$jscomp$145$$,null,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$reset_component$$=function($id$jscomp$576$$){typeof $app$main$data$workspace$libraries$reset_component_68248$$==="undefined"&&($app$main$data$workspace$libraries$reset_component_68248$$=function($id$jscomp$577$$,$meta68249$$){this.id=$id$jscomp$577$$;this.$meta68249$=$meta68249$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3788$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_reset_component$$},$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68250$$,$meta68249__$1$$){return new $app$main$data$workspace$libraries$reset_component_68248$$(this.id,$meta68249__$1$$)},$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68249$},$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$reset_component_68248$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($it$jscomp$191_libraries$jscomp$75$$,$container$jscomp$67_data$jscomp$341_state$jscomp$463$$){var $self__$jscomp$4681$$=this;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$)&&
$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"RESET-COMPONENT of shape"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$4681$$.id)],
null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$,!1);$it$jscomp$191_libraries$jscomp$75$$=$APP.$cljs$cst$1901$files$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$67_data$jscomp$341_state$jscomp$463$$);var $page_id$jscomp$175_undo_id$jscomp$21$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$67_data$jscomp$341_state$jscomp$463$$),$file$jscomp$61$$=$APP.$app$main$data$helpers$lookup_file$cljs$0core$0IFn$0_invoke$0arity$01$$($container$jscomp$67_data$jscomp$341_state$jscomp$463$$);
$container$jscomp$67_data$jscomp$341_state$jscomp$463$$=$APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$61$$);$container$jscomp$67_data$jscomp$341_state$jscomp$463$$=$APP.$app$common$types$container$get_container$$($container$jscomp$67_data$jscomp$341_state$jscomp$463$$,$page_id$jscomp$175_undo_id$jscomp$21$$);$page_id$jscomp$175_undo_id$jscomp$21$$=Symbol();var $changes$jscomp$212$$=$app$common$logic$libraries$generate_reset_component$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),
$file$jscomp$61$$,$it$jscomp$191_libraries$jscomp$75$$,$container$jscomp$67_data$jscomp$341_state$jscomp$463$$,$self__$jscomp$4681$$.id);$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1530$msg$$,"RESET-COMPONENT finished"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3789$js_SLASH_rchanges$$,$APP.$app$main$data$workspace$libraries$log_changes$$($APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$212$$),$file$jscomp$61$$)],null)],null)}),null,"app.main.data.workspace.libraries",$APP.$cljs$cst$1158$debug$$,!1);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($page_id$jscomp$175_undo_id$jscomp$21$$),
$APP.$app$main$data$changes$commit_changes$$($changes$jscomp$212$$),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($page_id$jscomp$175_undo_id$jscomp$21$$))});return new $app$main$data$workspace$libraries$reset_component_68248$$($id$jscomp$576$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$reset_components$$=function($ids$jscomp$141$$){typeof $app$main$data$workspace$libraries$reset_components_68258$$==="undefined"&&($app$main$data$workspace$libraries$reset_components_68258$$=function($ids$jscomp$142$$,$meta68259$$){this.ids=$ids$jscomp$142$$;this.$meta68259$=$meta68259$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3790$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_reset_components$$},$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68260$$,$meta68259__$1$$){return new $app$main$data$workspace$libraries$reset_components_68258$$(this.ids,$meta68259__$1$$)},
$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68259$},$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$reset_components_68258$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $undo_id$jscomp$22$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$22$$)),
$APP.$beicon$v2$core$map$$(function($p1__68251_SHARP_$$){return $app$main$data$workspace$libraries$reset_component$$($p1__68251_SHARP_$$)},$APP.$beicon$v2$core$from$$(this.ids)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$22$$)))});return new $app$main$data$workspace$libraries$reset_components_68258$$($ids$jscomp$141$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$detach_components$$=function($ids$jscomp$136$$){typeof $app$main$data$workspace$libraries$detach_components_68111$$==="undefined"&&($app$main$data$workspace$libraries$detach_components_68111$$=function($ids$jscomp$137$$,$meta68112$$){this.ids=$ids$jscomp$137$$;this.$meta68112$=$meta68112$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3775$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_detach_components$$},$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68113$$,$meta68112__$1$$){return new $app$main$data$workspace$libraries$detach_components_68111$$(this.ids,$meta68112__$1$$)},
$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68112$},$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$detach_components_68111$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $undo_id$jscomp$20$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$20$$)),
$APP.$beicon$v2$core$map$$(function($p1__68110_SHARP_$$){return $APP.$app$main$data$workspace$libraries$detach_component$$($p1__68110_SHARP_$$)},$APP.$beicon$v2$core$from$$(this.ids)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$20$$)))});return new $app$main$data$workspace$libraries$detach_components_68111$$($ids$jscomp$136$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$restore_component$$=function($library_id$jscomp$34$$,$component_id$jscomp$52$$){typeof $app$main$data$workspace$libraries$restore_component_68087$$==="undefined"&&($app$main$data$workspace$libraries$restore_component_68087$$=function($library_id$jscomp$35$$,$component_id$jscomp$53$$,$meta68088$$){this.$library_id$=$library_id$jscomp$35$$;this.$component_id$=$component_id$jscomp$53$$;this.$meta68088$=$meta68088$$;this.$cljs$lang$protocol_mask$partition0$$=393216;
this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3767$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_restore_component$$},$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68089$$,$meta68088__$1$$){return new $app$main$data$workspace$libraries$restore_component_68087$$(this.$library_id$,this.$component_id$,$meta68088__$1$$)},$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68088$},$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$restore_component_68087$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($current_file_id$jscomp$6_it$jscomp$187_local_QMARK_$jscomp$4$$,$changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$){$current_file_id$jscomp$6_it$jscomp$187_local_QMARK_$jscomp$4$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$);$current_file_id$jscomp$6_it$jscomp$187_local_QMARK_$jscomp$4$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_file_id$jscomp$6_it$jscomp$187_local_QMARK_$jscomp$4$$,this.$library_id$);
$changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$,this.$library_id$);var $comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1622$components$$,
this.$component_id$],null));$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$);$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$=$APP.$app$main$data$helpers$get_page$$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$,$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$);var $frames$jscomp$14_objects$jscomp$493$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$);
$changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$=$app$common$logic$libraries$generate_restore_component$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$,this.$component_id$,this.$library_id$,$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$,$frames$jscomp$14_objects$jscomp$493$$);$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$=$APP.$cljs$core$first$$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2028$page_id$$,
$APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$)));$frames$jscomp$14_objects$jscomp$493$$=$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$3086$redo_changes$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$205_ldata$jscomp$2_state$jscomp$455$$),
$current_file_id$jscomp$6_it$jscomp$187_local_QMARK_$jscomp$4$$?$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2028$page_id$$,$comp_page_comp_page_id_component$jscomp$76_page_id$jscomp$169$$,$APP.$cljs$cst$1707$ids$$,$frames$jscomp$14_objects$jscomp$493$$],null)):null)});return new $app$main$data$workspace$libraries$restore_component_68087$$($library_id$jscomp$34$$,$component_id$jscomp$52$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$restore_components$$=function($components_data$$){typeof $app$main$data$workspace$libraries$restore_components_68091$$==="undefined"&&($app$main$data$workspace$libraries$restore_components_68091$$=function($components_data$jscomp$1$$,$meta68092$$){this.$components_data$=$components_data$jscomp$1$$;this.$meta68092$=$meta68092$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3768$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_restore_components$$},$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68093$$,$meta68092__$1$$){return new $app$main$data$workspace$libraries$restore_components_68091$$(this.$components_data$,
$meta68092__$1$$)},$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68092$},$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$restore_components_68091$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $undo_id$jscomp$18$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$18$$)),
$APP.$beicon$v2$core$map$$(function($p1__68090_SHARP_$$){return $app$main$data$workspace$libraries$restore_component$$($APP.$cljs$core$_val$$($p1__68090_SHARP_$$),$APP.$cljs$core$_key$$($p1__68090_SHARP_$$))},$APP.$beicon$v2$core$from$$(this.$components_data$)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$18$$)))});return new $app$main$data$workspace$libraries$restore_components_68091$$($components_data$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$add_multiple_components$$=function(){typeof $app$main$data$workspace$libraries$add_multiple_components_68039$$==="undefined"&&($app$main$data$workspace$libraries$add_multiple_components_68039$$=function($meta68040$$){this.$meta68040$=$meta68040$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3762$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_add_multiple_components$$},$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68041$$,$meta68040__$1$$){return new $app$main$data$workspace$libraries$add_multiple_components_68039$$($meta68040__$1$$)},$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68040$},$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$add_multiple_components_68039$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2009_can_make_component$jscomp$1_selected_objects$jscomp$1$$,$added_components_selected$jscomp$55_state$jscomp$450$$){var $objects$jscomp$491$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($added_components_selected$jscomp$55_state$jscomp$450$$);
$added_components_selected$jscomp$55_state$jscomp$450$$=$APP.$app$common$files$helpers$clean_loops$$($objects$jscomp$491$$,$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($added_components_selected$jscomp$55_state$jscomp$450$$));$_$jscomp$2009_can_make_component$jscomp$1_selected_objects$jscomp$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68037_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$491$$,$p1__68037_SHARP_$$)},
$added_components_selected$jscomp$55_state$jscomp$450$$);$_$jscomp$2009_can_make_component$jscomp$1_selected_objects$jscomp$1$$=$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$true_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__68038_SHARP_$$){return $APP.$app$common$types$container$valid_shape_for_component_QMARK_$$($objects$jscomp$491$$,$p1__68038_SHARP_$$)},$_$jscomp$2009_can_make_component$jscomp$1_selected_objects$jscomp$1$$));$added_components_selected$jscomp$55_state$jscomp$450$$=
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$566$$){return $APP.$cljs$core$with_meta$$($APP.$app$main$data$workspace$libraries$add_component2$cljs$0core$0IFn$0_invoke$0arity$02$$(null,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$566$$],null)),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1600$multiple$$,!0],null))},$added_components_selected$jscomp$55_state$jscomp$450$$);var $undo_id$jscomp$16$$=
Symbol();return $_$jscomp$2009_can_make_component$jscomp$1_selected_objects$jscomp$1$$?$APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$16$$)),$APP.$beicon$v2$core$from$$($added_components_selected$jscomp$55_state$jscomp$450$$),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$16$$))):null});return new $app$main$data$workspace$libraries$add_multiple_components_68039$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$delete_media$$=function($p__67926$$){var $map__67930__$1$$=$APP.$cljs$core$__destructure_map$$($p__67926$$),$id$jscomp$560$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__67930__$1$$,$APP.$cljs$cst$266$id$$);typeof $app$main$data$workspace$libraries$delete_media_67931$$==="undefined"&&($app$main$data$workspace$libraries$delete_media_67931$$=function($p__67926$jscomp$1$$,$map__67930$jscomp$1$$,$id$jscomp$561$$,$meta67932$$){this.$p__67926$=$p__67926$jscomp$1$$;
this.$map__67930$=$map__67930$jscomp$1$$;this.id=$id$jscomp$561$$;this.$meta67932$=$meta67932$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3754$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_delete_media$$},
$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67933$$,$meta67932__$1$$){return new $app$main$data$workspace$libraries$delete_media_67931$$(this.$p__67926$,this.$map__67930$,this.id,$meta67932__$1$$)},$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67932$},$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$app$main$data$event$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$app$main$data$event$Event$_data$arity$1$=function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,this.id],null)},$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$delete_media_67931$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$,
$id$jscomp$inline_8193_state$jscomp$443$$){$changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$inline_8193_state$jscomp$443$$);$changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$=$APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$);
$id$jscomp$inline_8193_state$jscomp$443$$=this.id;var $library_data$jscomp$inline_8194_prev_object$jscomp$inline_8195$$=$APP.$cljs$cst$3122$app_DOT_common_DOT_files_DOT_changes_builder_SLASH_library_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$));$library_data$jscomp$inline_8194_prev_object$jscomp$inline_8195$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($library_data$jscomp$inline_8194_prev_object$jscomp$inline_8195$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1623$media$$,$id$jscomp$inline_8193_state$jscomp$443$$],null));$changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$,
$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2580$del_media$$,$APP.$cljs$cst$266$id$$,$id$jscomp$inline_8193_state$jscomp$443$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2578$add_media$$,$APP.$cljs$cst$2160$object$$,$library_data$jscomp$inline_8194_prev_object$jscomp$inline_8195$$],null)));
return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$197_changes$jscomp$inline_8192_data$jscomp$334_it$jscomp$177$$))});return new $app$main$data$workspace$libraries$delete_media_67931$$($p__67926$$,$map__67930__$1$$,$id$jscomp$560$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$media$add_shapes_and_component$$=function($JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$,$file_data$jscomp$66_objects$jscomp$inline_8198$$,$main_instance_page$jscomp$inline_8206_page$jscomp$66$$,$changes$jscomp$174_name$jscomp$310$$,$p__66652_updated_shapes$jscomp$6_vec__66657$$){var $main_instance_id$jscomp$inline_8205_shape$jscomp$485$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66652_updated_shapes$jscomp$6_vec__66657$$,
0,null),$children$jscomp$226$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66652_updated_shapes$jscomp$6_vec__66657$$,1,null);$p__66652_updated_shapes$jscomp$6_vec__66657$$=$APP.$app$common$types$container$convert_shape_in_component$$($main_instance_id$jscomp$inline_8205_shape$jscomp$485$$,$children$jscomp$226$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file_data$jscomp$66_objects$jscomp$inline_8198$$));var $component_shape$jscomp$5_id$jscomp$inline_8201$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66652_updated_shapes$jscomp$6_vec__66657$$,
0,null);$p__66652_updated_shapes$jscomp$6_vec__66657$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__66652_updated_shapes$jscomp$6_vec__66657$$,1,null);$JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$=$APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$with_objects$$($APP.$app$common$files$changes_builder$with_page$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$($JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$),
$main_instance_page$jscomp$inline_8206_page$jscomp$66$$),$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($main_instance_page$jscomp$inline_8206_page$jscomp$66$$)),$file_data$jscomp$66_objects$jscomp$inline_8198$$);$file_data$jscomp$66_objects$jscomp$inline_8198$$=$APP.$cljs$core$cons$$($main_instance_id$jscomp$inline_8205_shape$jscomp$485$$,$children$jscomp$226$$);$JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$=$APP.$app$common$files$changes_builder$add_objects$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$,
$file_data$jscomp$66_objects$jscomp$inline_8198$$,null);$component_shape$jscomp$5_id$jscomp$inline_8201$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component_shape$jscomp$5_id$jscomp$inline_8201$$);$main_instance_id$jscomp$inline_8205_shape$jscomp$485$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($main_instance_id$jscomp$inline_8205_shape$jscomp$485$$);$main_instance_page$jscomp$inline_8206_page$jscomp$66$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($main_instance_page$jscomp$inline_8206_page$jscomp$66$$);
$changes$jscomp$174_name$jscomp$310$$=$APP.$app$common$files$changes_builder$add_component$$($JSCompiler_inline_result$jscomp$1619_changes$jscomp$inline_8197_it$jscomp$156$$,$component_shape$jscomp$5_id$jscomp$inline_8201$$,"",$changes$jscomp$174_name$jscomp$310$$,$p__66652_updated_shapes$jscomp$6_vec__66657$$,$main_instance_id$jscomp$inline_8205_shape$jscomp$485$$,$main_instance_page$jscomp$inline_8206_page$jscomp$66$$,null,null,null);return $APP.$app$main$data$changes$commit_changes$$($changes$jscomp$174_name$jscomp$310$$)};
$app$main$data$workspace$media$process_svg_component$$=function($svg_data$jscomp$21$$){typeof $app$main$data$workspace$media$process_svg_component_66663$$==="undefined"&&($app$main$data$workspace$media$process_svg_component_66663$$=function($svg_data$jscomp$22$$,$meta66664$$){this.$svg_data$=$svg_data$jscomp$22$$;this.$meta66664$=$meta66664$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3579$app_DOT_main_DOT_data_DOT_workspace_DOT_media_SLASH_process_svg_component$$},$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66665$$,$meta66664__$1$$){return new $app$main$data$workspace$media$process_svg_component_66663$$(this.$svg_data$,$meta66664__$1$$)},
$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66664$},$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$process_svg_component_66663$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($file_id$jscomp$103_it$jscomp$158$$,$pos$jscomp$106_state$jscomp$359$$){$file_id$jscomp$103_it$jscomp$158$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$106_state$jscomp$359$$);var $page$jscomp$68_page_id$jscomp$124$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$106_state$jscomp$359$$),$fdata$jscomp$9$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($pos$jscomp$106_state$jscomp$359$$,$file_id$jscomp$103_it$jscomp$158$$);$page$jscomp$68_page_id$jscomp$124$$=$APP.$app$main$data$helpers$get_page$$($fdata$jscomp$9$$,
$page$jscomp$68_page_id$jscomp$124$$);$pos$jscomp$106_state$jscomp$359$$=$APP.$app$main$data$helpers$get_viewport_center$$($pos$jscomp$106_state$jscomp$359$$);return $APP.$beicon$v2$core$map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$data$workspace$media$add_shapes_and_component$$,this,$fdata$jscomp$9$$,$page$jscomp$68_page_id$jscomp$124$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$(this.$svg_data$)])),
$app$main$data$workspace$media$create_shapes_svg$$($file_id$jscomp$103_it$jscomp$158$$,$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$68_page_id$jscomp$124$$),$pos$jscomp$106_state$jscomp$359$$,this.$svg_data$))});return new $app$main$data$workspace$media$process_svg_component_66663$$($svg_data$jscomp$21$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$media$process_img_component$$=function($media_obj$jscomp$1$$){typeof $app$main$data$workspace$media$process_img_component_66660$$==="undefined"&&($app$main$data$workspace$media$process_img_component_66660$$=function($media_obj$jscomp$2$$,$meta66661$$){this.$media_obj$=$media_obj$jscomp$2$$;this.$meta66661$=$meta66661$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$media$process_img_component_66660$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$process_img_component_66660$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3578$app_DOT_main_DOT_data_DOT_workspace_DOT_media_SLASH_process_img_component$$},$app$main$data$workspace$media$process_img_component_66660$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66662$$,$meta66661__$1$$){return new $app$main$data$workspace$media$process_img_component_66660$$(this.$media_obj$,$meta66661__$1$$)},
$app$main$data$workspace$media$process_img_component_66660$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta66661$},$app$main$data$workspace$media$process_img_component_66660$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$media$process_img_component_66660$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$,$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$){$JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$=
$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$);var $name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$);$JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$,
$JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$);$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$=$APP.$app$main$data$helpers$get_page$$($JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$,$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$);$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$=$APP.$app$main$data$helpers$get_viewport_center$$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$);
$JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$data$workspace$media$add_shapes_and_component$$,this,$JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$,$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$(this.$media_obj$)]));
var $frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$=$APP.$cljs$core$__destructure_map$$(this.$media_obj$);$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,$APP.$cljs$cst$723$name$$);var $width$jscomp$inline_8212$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,$APP.$cljs$cst$288$width$$),
$height$jscomp$inline_8213$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,$APP.$cljs$cst$1511$height$$),$id$jscomp$inline_8214_img_fills$jscomp$inline_8217$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,$APP.$cljs$cst$266$id$$),$mtype$jscomp$inline_8215$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,
$APP.$cljs$cst$1710$mtype$$);$frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$=$APP.$app$common$types$shape$setup_shape$$(new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$),$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$),
$APP.$cljs$cst$288$width$$,$width$jscomp$inline_8212$$,$APP.$cljs$cst$1511$height$$,$height$jscomp$inline_8213$$,$APP.$cljs$cst$723$name$$,$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$app$common$uuid$zero$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$app$common$uuid$zero$$],null));$id$jscomp$inline_8214_img_fills$jscomp$inline_8217$$=$APP.$app$common$types$fills$create$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$1731$fill_opacity$$,1,$APP.$cljs$cst$1616$fill_image$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$266$id$$,$id$jscomp$inline_8214_img_fills$jscomp$inline_8217$$,$APP.$cljs$cst$288$width$$,$width$jscomp$inline_8212$$,$APP.$cljs$cst$1511$height$$,$height$jscomp$inline_8213$$,$APP.$cljs$cst$1710$mtype$$,$mtype$jscomp$inline_8215$$,$APP.$cljs$cst$1711$keep_aspect_ratio$$,!0],null)],null)]));$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$=
$APP.$app$common$types$shape$setup_shape$$($APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1618$fills$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$),$name$jscomp$inline_8211_page$jscomp$67_page_id$jscomp$123$$,
$width$jscomp$inline_8212$$,$APP.$cljs$cst$1595$rect$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$),$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$),$id$jscomp$inline_8214_img_fills$jscomp$inline_8217$$,
$height$jscomp$inline_8213$$]));$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$=(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_shape$jscomp$inline_8216_map__66644__$1$jscomp$inline_8210$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$],
null)],null));return $APP.$beicon$v2$core$map$$($JSCompiler_temp_const$jscomp$1599_fdata$jscomp$8_file_id$jscomp$102_it$jscomp$157$$,$JSCompiler_inline_result$jscomp$1600_img_shape$jscomp$inline_8218_pos$jscomp$105_state$jscomp$358$$)});return new $app$main$data$workspace$media$process_img_component_66660$$($media_obj$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$media$upload_media_components$$=function($params$jscomp$252_params__$1$jscomp$37$$){$params$jscomp$252_params__$1$jscomp$37$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($params$jscomp$252_params__$1$jscomp$37$$,$APP.$cljs$cst$3563$local_QMARK_$$,!1,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3565$on_image$$,function($p1__66671_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$media$process_img_component$$($p1__66671_SHARP_$$))},
$APP.$cljs$cst$3566$on_svg$$,function($p1__66672_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$media$process_svg_component$$($p1__66672_SHARP_$$))}]));return $APP.$app$main$data$workspace$media$process_media_objects$$($params$jscomp$252_params__$1$jscomp$37$$)};
$app$main$data$workspace$shape_layout$merge_cells$$=function($layout_id$jscomp$6$$,$ids$jscomp$233$$){typeof $app$main$data$workspace$shape_layout$merge_cells_69787$$==="undefined"&&($app$main$data$workspace$shape_layout$merge_cells_69787$$=function($layout_id$jscomp$7$$,$ids$jscomp$234$$,$meta69788$$){this.$layout_id$=$layout_id$jscomp$7$$;this.ids=$ids$jscomp$234$$;this.$meta69788$=$meta69788$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4264$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_merge_cells$$},$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69789$$,$meta69788__$1$$){return new $app$main$data$workspace$shape_layout$merge_cells_69787$$(this.$layout_id$,this.ids,$meta69788__$1$$)},
$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69788$},$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$merge_cells_69787$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$5838$$=this,$undo_id$jscomp$54$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$54$$),
$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5838$$.$layout_id$],null),function($shape$jscomp$723$$,$objects$jscomp$617$$){var $cells$jscomp$23_first_row$jscomp$11_map__69798$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69786_SHARP_$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$723$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$p1__69786_SHARP_$$],null))},$self__$jscomp$5838$$.ids);$cells$jscomp$23_first_row$jscomp$11_map__69798$$=$APP.$app$common$types$shape$layout$cells_coordinates$$($cells$jscomp$23_first_row$jscomp$11_map__69798$$);var $last_column$jscomp$11_map__69798__$1$$=$APP.$cljs$core$__destructure_map$$($cells$jscomp$23_first_row$jscomp$11_map__69798$$);$cells$jscomp$23_first_row$jscomp$11_map__69798$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$11_map__69798__$1$$,
$APP.$cljs$cst$1699$first_row$$);var $first_column$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$11_map__69798__$1$$,$APP.$cljs$cst$1700$first_column$$),$last_row$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$11_map__69798__$1$$,$APP.$cljs$cst$1701$last_row$$);$last_column$jscomp$11_map__69798__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($last_column$jscomp$11_map__69798__$1$$,$APP.$cljs$cst$1702$last_column$$);
var $target_cell$jscomp$9$$=$APP.$app$common$types$shape$layout$get_cell_by_position$$($shape$jscomp$723$$,$cells$jscomp$23_first_row$jscomp$11_map__69798$$,$first_column$jscomp$11$$);return $APP.$app$common$types$shape$layout$assign_cells$$($APP.$app$common$types$shape$layout$resize_cell_area$$($shape$jscomp$723$$,$APP.$cljs$cst$1640$row$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$9$$),$APP.$cljs$cst$216$column$$.$cljs$core$IFn$_invoke$arity$1$($target_cell$jscomp$9$$),$cells$jscomp$23_first_row$jscomp$11_map__69798$$,
$first_column$jscomp$11$$,$last_row$jscomp$11$$-$cells$jscomp$23_first_row$jscomp$11_map__69798$$+1,$last_column$jscomp$11_map__69798__$1$$-$first_column$jscomp$11$$+1),$objects$jscomp$617$$)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0],null)),$APP.$app$main$data$workspace$grid_layout$editor$clean_selection$$($self__$jscomp$5838$$.$layout_id$),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5838$$.$layout_id$],null)],null)),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$54$$))});return new $app$main$data$workspace$shape_layout$merge_cells_69787$$($layout_id$jscomp$6$$,$ids$jscomp$233$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$reorder_strokes$$=function($ids$jscomp$194$$,$from_pos$jscomp$6$$,$to_space_between_pos$jscomp$6$$){typeof $app$main$data$workspace$colors$reorder_strokes_69408$$==="undefined"&&($app$main$data$workspace$colors$reorder_strokes_69408$$=function($ids$jscomp$195$$,$from_pos$jscomp$7$$,$to_space_between_pos$jscomp$7$$,$meta69409$$){this.ids=$ids$jscomp$195$$;this.$from_pos$=$from_pos$jscomp$7$$;this.$to_space_between_pos$=$to_space_between_pos$jscomp$7$$;this.$meta69409$=
$meta69409$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4037$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_reorder_strokes$$},$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69410$$,$meta69409__$1$$){return new $app$main$data$workspace$colors$reorder_strokes_69408$$(this.ids,this.$from_pos$,this.$to_space_between_pos$,$meta69409__$1$$)},$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69409$},$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_strokes_69408$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $self__$jscomp$5135$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($self__$jscomp$5135$$.ids,function($p1__69407_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__69407_SHARP_$$,$APP.$cljs$cst$1620$strokes$$,$app$common$data$reorder$$,$self__$jscomp$5135$$.$from_pos$,$self__$jscomp$5135$$.$to_space_between_pos$)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2595$attrs$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$],null)],null)))});return new $app$main$data$workspace$colors$reorder_strokes_69408$$($ids$jscomp$194$$,$from_pos$jscomp$6$$,$to_space_between_pos$jscomp$6$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$remove_all_strokes$$=function($ids$jscomp$190$$){typeof $app$main$data$workspace$colors$remove_all_strokes_69399$$==="undefined"&&($app$main$data$workspace$colors$remove_all_strokes_69399$$=function($ids$jscomp$191$$,$meta69400$$){this.ids=$ids$jscomp$191$$;this.$meta69400$=$meta69400$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4035$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_remove_all_strokes$$},$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69401$$,$meta69400__$1$$){return new $app$main$data$workspace$colors$remove_all_strokes_69399$$(this.ids,$meta69400__$1$$)},$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69400$},$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_all_strokes_69399$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(this.ids,function($p1__69398_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__69398_SHARP_$$,
$APP.$cljs$cst$1620$strokes$$,$APP.$cljs$core$PersistentVector$EMPTY$$)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$],null)],null)))});return new $app$main$data$workspace$colors$remove_all_strokes_69399$$($ids$jscomp$190$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$remove_stroke$$=function($ids$jscomp$188$$,$position$jscomp$111$$){typeof $app$main$data$workspace$colors$remove_stroke_69387$$==="undefined"&&($app$main$data$workspace$colors$remove_stroke_69387$$=function($ids$jscomp$189$$,$position$jscomp$112$$,$meta69388$$){this.ids=$ids$jscomp$189$$;this.position=$position$jscomp$112$$;this.$meta69388$=$meta69388$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4034$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_remove_stroke$$},$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69389$$,$meta69388__$1$$){return new $app$main$data$workspace$colors$remove_stroke_69387$$(this.ids,this.position,$meta69388__$1$$)},$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69388$},$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_stroke_69387$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){function $remove_fill_by_index$jscomp$1$$($values$jscomp$73$$,$index$jscomp$302$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$filterv$$(function($p__69394$$){var $idx$jscomp$89$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__69394$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__69394$$,1,null);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$89$$,$index$jscomp$302$$)},$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($values$jscomp$73$$)))}var $self__$jscomp$5123$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($self__$jscomp$5123$$.ids,
function($shape$jscomp$672$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$672$$,$APP.$cljs$cst$1620$strokes$$,$remove_fill_by_index$jscomp$1$$,$self__$jscomp$5123$$.position)},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$],null)],null)))});return new $app$main$data$workspace$colors$remove_stroke_69387$$($ids$jscomp$188$$,
$position$jscomp$111$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$04$$=function($ids$jscomp$180$$,$attrs$jscomp$135$$,$index$jscomp$298$$){typeof $app$main$data$workspace$colors$change_stroke_attrs_69369$$==="undefined"&&($app$main$data$workspace$colors$change_stroke_attrs_69369$$=function($ids$jscomp$181$$,$attrs$jscomp$136$$,$index$jscomp$299$$,$options$jscomp$569$$,$meta69370$$){this.ids=$ids$jscomp$181$$;this.$attrs$=$attrs$jscomp$136$$;this.index=$index$jscomp$299$$;this.options=
$options$jscomp$569$$;this.$meta69370$=$meta69370$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4030$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_change_stroke_attrs$$},$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69371$$,$meta69370__$1$$){return new $app$main$data$workspace$colors$change_stroke_attrs_69369$$(this.ids,this.$attrs$,this.index,this.options,$meta69370__$1$$)},$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69370$},$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$change_stroke_attrs_69369$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $self__$jscomp$5107$$=this,$changed_sub_attr$jscomp$5_options__$1$jscomp$73$$=$APP.$cljs$core$keys$$($self__$jscomp$5107$$.$attrs$);$changed_sub_attr$jscomp$5_options__$1$jscomp$73$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($self__$jscomp$5107$$.options,$APP.$cljs$cst$3395$changed_sub_attr$$,$changed_sub_attr$jscomp$5_options__$1$jscomp$73$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($self__$jscomp$5107$$.ids,
function($G__69373__$1_shape$jscomp$668$$){var $attrs__$1$jscomp$24_stroke$jscomp$21$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($G__69373__$1_shape$jscomp$668$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$,$self__$jscomp$5107$$.index],null)),$style_attrs$$=$APP.$app$main$data$workspace$colors$build_stroke_style_attrs$$($attrs__$1$jscomp$24_stroke$jscomp$21$$);$attrs__$1$jscomp$24_stroke$jscomp$21$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attrs__$1$jscomp$24_stroke$jscomp$21$$,
$style_attrs$$,$self__$jscomp$5107$$.$attrs$]));$G__69373__$1_shape$jscomp$668$$=$APP.$cljs$core$contains_QMARK_$$($G__69373__$1_shape$jscomp$668$$,$APP.$cljs$cst$1620$strokes$$)?$G__69373__$1_shape$jscomp$668$$:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__69373__$1_shape$jscomp$668$$,$APP.$cljs$cst$1620$strokes$$,$APP.$cljs$core$PersistentVector$EMPTY$$);return $APP.$cljs$core$assoc_in$$($G__69373__$1_shape$jscomp$668$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1620$strokes$$,$self__$jscomp$5107$$.index],null),$attrs__$1$jscomp$24_stroke$jscomp$21$$)},$changed_sub_attr$jscomp$5_options__$1$jscomp$73$$))});return new $app$main$data$workspace$colors$change_stroke_attrs_69369$$($ids$jscomp$180$$,$attrs$jscomp$135$$,$index$jscomp$298$$,null,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$=function($ids$jscomp$179$$,$attrs$jscomp$134$$,$index$jscomp$297$$){return $app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$04$$($ids$jscomp$179$$,$attrs$jscomp$134$$,$index$jscomp$297$$)};
$app$main$data$workspace$texts$commit_position_data$$=function(){typeof $app$main$data$workspace$texts$commit_position_data_68873$$==="undefined"&&($app$main$data$workspace$texts$commit_position_data_68873$$=function($meta68874$$){this.$meta68874$=$meta68874$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3866$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_commit_position_data$$},$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68875$$,$meta68874__$1$$){return new $app$main$data$workspace$texts$commit_position_data_68873$$($meta68874__$1$$)},$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68874$},$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2088$$,$state$jscomp$533$$){var $ids$jscomp$145$$=$APP.$cljs$core$keys$$($APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$533$$));return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$533$$,$APP.$cljs$cst$2198$workspace_text_modifier$$,
function($p1__68872_SHARP_$$){return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$,$p1__68872_SHARP_$$,$ids$jscomp$145$$)})},$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_position_data_68873$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2089$$,$state$jscomp$534$$){var $position_data$jscomp$9$$=$APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$534$$);
return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$keys$$($position_data$jscomp$9$$),function($shape$jscomp$577$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$577$$,$APP.$cljs$cst$1875$position_data$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position_data$jscomp$9$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$577$$)))},
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3093$stack_undo_QMARK_$$,!0,$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!1],null))),(0,$APP.$beicon$v2$core$of$$)(function($state__$1$jscomp$26$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($state__$1$jscomp$26$$,$APP.$cljs$cst$3868$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data_debounce$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$]))}))});
return new $app$main$data$workspace$texts$commit_position_data_68873$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$commit_resize_text$$=function(){typeof $app$main$data$workspace$texts$commit_resize_text_68800$$==="undefined"&&($app$main$data$workspace$texts$commit_resize_text_68800$$=function($meta68801$$){this.$meta68801$=$meta68801$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$3855$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_commit_resize_text$$},$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68802$$,$meta68801__$1$$){return new $app$main$data$workspace$texts$commit_resize_text_68800$$($meta68801__$1$$)},$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68801$},$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$commit_resize_text_68800$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2078_undo_id$jscomp$27$$,$ids$jscomp$143_state$jscomp$524$$){var $props$jscomp$183$$=$APP.$cljs$cst$3856$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_props$$.$cljs$core$IFn$_invoke$arity$1$($ids$jscomp$143_state$jscomp$524$$),$objects$jscomp$506$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($ids$jscomp$143_state$jscomp$524$$);
$_$jscomp$2078_undo_id$jscomp$27$$=Symbol();$ids$jscomp$143_state$jscomp$524$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($id$jscomp$608_new_height$jscomp$3_vec__68818$$){var $shape$jscomp$574$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$506$$,$id$jscomp$608_new_height$jscomp$3_vec__68818$$);$id$jscomp$608_new_height$jscomp$3_vec__68818$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props$jscomp$183$$,
$id$jscomp$608_new_height$jscomp$3_vec__68818$$);var $JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$608_new_height$jscomp$3_vec__68818$$,0,null);$id$jscomp$608_new_height$jscomp$3_vec__68818$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$608_new_height$jscomp$3_vec__68818$$,1,null);var $old_dim$jscomp$inline_12695$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$574$$);
($JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$=$APP.$app$common$math$abs$$($old_dim$jscomp$inline_12695$$-$JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$)>.1&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$574$$),$APP.$cljs$cst$2021$auto_width$$))||($JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$574$$),
$JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$=$APP.$app$common$math$abs$$($JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$-$id$jscomp$608_new_height$jscomp$3_vec__68818$$)>.1&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$574$$),$APP.$cljs$cst$2020$auto_height$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$574$$),
$APP.$cljs$cst$2021$auto_width$$)));return $JSCompiler_temp$jscomp$10525_new_width$jscomp$3_old_dim$jscomp$inline_12698$$}),$APP.$cljs$core$keys$$($props$jscomp$183$$));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($_$jscomp$2078_undo_id$jscomp$27$$),$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$143_state$jscomp$524$$,function($grow_type$jscomp$7_p__68824$$){var $map__68825__$1_shape__$1$jscomp$44$$=
$APP.$cljs$core$__destructure_map$$($grow_type$jscomp$7_p__68824$$),$id$jscomp$609_new_width$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68825__$1_shape__$1$jscomp$44$$,$APP.$cljs$cst$266$id$$),$selrect$jscomp$65_shape_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68825__$1_shape__$1$jscomp$44$$,$APP.$cljs$cst$1589$selrect$$);$grow_type$jscomp$7_p__68824$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68825__$1_shape__$1$jscomp$44$$,$APP.$cljs$cst$1754$grow_type$$);
var $map__68826__$1_shape_height$$=$APP.$cljs$core$__destructure_map$$($selrect$jscomp$65_shape_width$$);$selrect$jscomp$65_shape_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68826__$1_shape_height$$,$APP.$cljs$cst$288$width$$);$map__68826__$1_shape_height$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68826__$1_shape_height$$,$APP.$cljs$cst$1511$height$$);var $new_height$jscomp$4_vec__68827$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props$jscomp$183$$,
$id$jscomp$609_new_width$jscomp$4$$);$id$jscomp$609_new_width$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_height$jscomp$4_vec__68827$$,0,null);$new_height$jscomp$4_vec__68827$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_height$jscomp$4_vec__68827$$,1,null);$map__68825__$1_shape__$1$jscomp$44$$=$APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($objects$jscomp$506$$,$map__68825__$1_shape__$1$jscomp$44$$)&&$APP.$app$common$types$shape$layout$fill_width_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($map__68825__$1_shape__$1$jscomp$44$$)||
!($APP.$app$common$math$abs$$($selrect$jscomp$65_shape_width$$-$id$jscomp$609_new_width$jscomp$4$$)>.1&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$7_p__68824$$,$APP.$cljs$cst$2021$auto_width$$))?$map__68825__$1_shape__$1$jscomp$44$$:$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($map__68825__$1_shape__$1$jscomp$44$$,$APP.$app$common$types$modifiers$change_dimensions_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($map__68825__$1_shape__$1$jscomp$44$$,
$APP.$cljs$cst$288$width$$,$id$jscomp$609_new_width$jscomp$4$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1790$ignore_lock_QMARK_$$,!0],null)));return $APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($objects$jscomp$506$$,$map__68825__$1_shape__$1$jscomp$44$$)&&$APP.$app$common$types$shape$layout$fill_height_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($map__68825__$1_shape__$1$jscomp$44$$)||!($APP.$app$common$math$abs$$($map__68826__$1_shape_height$$-$new_height$jscomp$4_vec__68827$$)>
.1)||!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$7_p__68824$$,$APP.$cljs$cst$2020$auto_height$$)&&!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$7_p__68824$$,$APP.$cljs$cst$2021$auto_width$$)?$map__68825__$1_shape__$1$jscomp$44$$:$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($map__68825__$1_shape__$1$jscomp$44$$,$APP.$app$common$types$modifiers$change_dimensions_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($map__68825__$1_shape__$1$jscomp$44$$,
$APP.$cljs$cst$1511$height$$,$new_height$jscomp$4_vec__68827$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1790$ignore_lock_QMARK_$$,!0],null)))},new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0,$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!0,$APP.$cljs$cst$3093$stack_undo_QMARK_$$,!0,$APP.$cljs$cst$2508$ignore_touched$$,!0],null)),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,$ids$jscomp$143_state$jscomp$524$$],null)),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($_$jscomp$2078_undo_id$jscomp$27$$))});return new $app$main$data$workspace$texts$commit_resize_text_68800$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$remove_fill$cljs$0core$0IFn$0_invoke$0arity$03$$=function($ids$jscomp$169$$,$position$jscomp$108$$){typeof $app$main$data$workspace$colors$remove_fill_69331$$==="undefined"&&($app$main$data$workspace$colors$remove_fill_69331$$=function($ids$jscomp$170$$,$position$jscomp$109$$,$options$jscomp$563$$,$meta69332$$){this.ids=$ids$jscomp$170$$;this.position=$position$jscomp$109$$;this.options=$options$jscomp$563$$;this.$meta69332$=$meta69332$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4026$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_remove_fill$$},$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69333$$,$meta69332__$1$$){return new $app$main$data$workspace$colors$remove_fill_69331$$(this.ids,
this.position,this.options,$meta69332__$1$$)},$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69332$},$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$remove_fill_69331$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2178_undo_id$jscomp$37$$,$state$jscomp$584$$){function $remove_fill_by_index$$($fills$jscomp$26$$,
$index$jscomp$293$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$01$$(function($i$jscomp$505$$,$o$jscomp$270$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($i$jscomp$505$$,$index$jscomp$293$$)?$o$jscomp$270$$:null}),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$some_QMARK_$$)),$fills$jscomp$26$$)}
var $self__$jscomp$5091$$=this;$_$jscomp$2178_undo_id$jscomp$37$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($_$jscomp$2178_undo_id$jscomp$37$$)),$APP.$app$main$data$workspace$colors$transform_fill_STAR_$$($state$jscomp$584$$,$self__$jscomp$5091$$.ids,function($node$jscomp$321$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($node$jscomp$321$$,$APP.$cljs$cst$1618$fills$$,$APP.$app$common$types$fills$update$$,
$remove_fill_by_index$$,$self__$jscomp$5091$$.position)},$self__$jscomp$5091$$.options),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($_$jscomp$2178_undo_id$jscomp$37$$)))});return new $app$main$data$workspace$colors$remove_fill_69331$$($ids$jscomp$169$$,$position$jscomp$108$$,null,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$detach_fill$cljs$0core$0IFn$0_invoke$0arity$03$$=function($ids$jscomp$166$$,$position$jscomp$105$$){typeof $app$main$data$workspace$colors$detach_fill_69321$$==="undefined"&&($app$main$data$workspace$colors$detach_fill_69321$$=function($ids$jscomp$167$$,$position$jscomp$106$$,$options$jscomp$561$$,$meta69322$$){this.ids=$ids$jscomp$167$$;this.position=$position$jscomp$106$$;this.options=$options$jscomp$561$$;this.$meta69322$=$meta69322$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4025$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_detach_fill$$},$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69323$$,$meta69322__$1$$){return new $app$main$data$workspace$colors$detach_fill_69321$$(this.ids,
this.position,this.options,$meta69322__$1$$)},$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69322$},$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$detach_fill_69321$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2177_undo_id$jscomp$36$$,$state$jscomp$583$$){function $detach_fn$jscomp$1$$($fills$jscomp$25$$,
$index$jscomp$292$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($fills$jscomp$25$$,$index$jscomp$292$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1729$fill_color_ref_id$$,$APP.$cljs$cst$1624$fill_color_ref_file$$)}var $self__$jscomp$5087$$=this;$_$jscomp$2177_undo_id$jscomp$36$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($_$jscomp$2177_undo_id$jscomp$36$$)),$APP.$app$main$data$workspace$colors$transform_fill_STAR_$$($state$jscomp$583$$,
$self__$jscomp$5087$$.ids,function($node$jscomp$320$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($node$jscomp$320$$,$APP.$cljs$cst$1618$fills$$,$APP.$app$common$types$fills$update$$,$detach_fn$jscomp$1$$,$self__$jscomp$5087$$.position)},$self__$jscomp$5087$$.options),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($_$jscomp$2177_undo_id$jscomp$36$$)))});return new $app$main$data$workspace$colors$detach_fill_69321$$($ids$jscomp$166$$,
$position$jscomp$105$$,null,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$add_fill$cljs$0core$0IFn$0_invoke$0arity$03$$=function($ids$jscomp$163$$){var $color__$1$jscomp$9$$=(0,$APP.$app$common$types$color$check_color$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,"#B1B2B5",$APP.$cljs$cst$1718$opacity$$,1],null));typeof $app$main$data$workspace$colors$add_fill_69306$$==="undefined"&&($app$main$data$workspace$colors$add_fill_69306$$=function($ids$jscomp$164$$,$color$jscomp$80$$,$options$jscomp$559$$,$meta69307$$){this.ids=
$ids$jscomp$164$$;this.color=$color$jscomp$80$$;this.options=$options$jscomp$559$$;this.$meta69307$=$meta69307$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$add_fill_69306$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_fill_69306$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4024$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_add_fill$$},
$app$main$data$workspace$colors$add_fill_69306$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69308$$,$meta69307__$1$$){return new $app$main$data$workspace$colors$add_fill_69306$$(this.ids,this.color,this.options,$meta69307__$1$$)},$app$main$data$workspace$colors$add_fill_69306$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69307$},$app$main$data$workspace$colors$add_fill_69306$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_fill_69306$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2176_undo_id$jscomp$35$$,$state$jscomp$582$$){$_$jscomp$2176_undo_id$jscomp$35$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($_$jscomp$2176_undo_id$jscomp$35$$)),$APP.$app$main$data$workspace$colors$transform_fill$cljs$0core$0IFn$0_invoke$0arity$05$$($state$jscomp$582$$,this.ids,this.color,function($node$jscomp$319$$,$attrs$jscomp$131$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($node$jscomp$319$$,
$APP.$cljs$cst$1618$fills$$,$app$common$types$fills$prepend$$,$attrs$jscomp$131$$)},this.options),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($_$jscomp$2176_undo_id$jscomp$35$$)))});return new $app$main$data$workspace$colors$add_fill_69306$$($ids$jscomp$163$$,$color__$1$jscomp$9$$,null,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$apply_color_from_palette$$=function($color$jscomp$88_color__$1$jscomp$10$$,$stroke_QMARK_$$){$color$jscomp$88_color__$1$jscomp$10$$=(0,$APP.$app$common$types$color$check_color$$)($color$jscomp$88_color__$1$jscomp$10$$);typeof $app$main$data$workspace$colors$apply_color_from_palette_69427$$==="undefined"&&($app$main$data$workspace$colors$apply_color_from_palette_69427$$=function($color$jscomp$89$$,$stroke_QMARK_$jscomp$1$$,$meta69428$$){this.color=$color$jscomp$89$$;
this.$stroke_QMARK_$=$stroke_QMARK_$jscomp$1$$;this.$meta69428$=$meta69428$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4044$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_apply_color_from_palette$$},
$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69429$$,$meta69428__$1$$){return new $app$main$data$workspace$colors$apply_color_from_palette_69427$$(this.color,this.$stroke_QMARK_$,$meta69428__$1$$)},$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69428$},$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_palette_69427$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$){$_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$);
$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$=$APP.$app$common$files$helpers$clean_loops$$($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$));a:{for(var $pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$=$APP.$cljs$core$seq$$($G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$),
$G__69433$jscomp$inline_12707_result$jscomp$inline_12702$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;){if($APP.$cljs$core$empty_QMARK_$$($pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$)){$_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$=$G__69433$jscomp$inline_12707_result$jscomp$inline_12702$$;break a}$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$=$APP.$cljs$core$first$$($pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$);
var $G__69703$jscomp$inline_12708_group_QMARK_$jscomp$inline_12704$$=$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$);$pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$=$APP.$cljs$core$truth_$$($G__69703$jscomp$inline_12708_group_QMARK_$jscomp$inline_12704$$)?$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$),$APP.$cljs$cst$1598$shapes$$)):$pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$;$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$=$APP.$cljs$core$not$$($G__69703$jscomp$inline_12708_group_QMARK_$jscomp$inline_12704$$)?
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__69433$jscomp$inline_12707_result$jscomp$inline_12702$$,$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$):$G__69433$jscomp$inline_12707_result$jscomp$inline_12702$$;$pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$=$G__69703$jscomp$inline_12708_group_QMARK_$jscomp$inline_12704$$=$APP.$cljs$core$rest$$($pending$jscomp$inline_12701_pending__$1$jscomp$inline_12705$$);
$G__69433$jscomp$inline_12707_result$jscomp$inline_12702$$=$G__69704$jscomp$inline_12709_cur$jscomp$inline_12703_result__$1$jscomp$inline_12706_selected$jscomp$76_state$jscomp$589$$}$_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$=void 0}return $APP.$cljs$core$truth_$$(this.$stroke_QMARK_$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$colors$change_stroke_color$cljs$0core$0IFn$0_invoke$0arity$04$$($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,this.color,0)):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$colors$change_fill$cljs$0core$0IFn$0_invoke$0arity$04$$($_$jscomp$2193_ids$jscomp$197_objects$jscomp$576$$,
this.color,0))});return new $app$main$data$workspace$colors$apply_color_from_palette_69427$$($color$jscomp$88_color__$1$jscomp$10$$,$stroke_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$apply_color_from_assets$$=function($file_id$jscomp$193$$,$color$jscomp$94_color__$1$jscomp$13$$,$stroke_QMARK_$jscomp$2$$){$color$jscomp$94_color__$1$jscomp$13$$=(0,$APP.$app$common$types$color$check_library_color$$)($color$jscomp$94_color__$1$jscomp$13$$);typeof $app$main$data$workspace$colors$apply_color_from_asserts_69462$$==="undefined"&&($app$main$data$workspace$colors$apply_color_from_asserts_69462$$=function($file_id$jscomp$194$$,$color$jscomp$95$$,$stroke_QMARK_$jscomp$3$$,
$meta69463$$){this.$file_id$=$file_id$jscomp$194$$;this.color=$color$jscomp$95$$;this.$stroke_QMARK_$=$stroke_QMARK_$jscomp$3$$;this.$meta69463$=$meta69463$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4051$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_apply_color_from_asserts$$},
$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69464$$,$meta69463__$1$$){return new $app$main$data$workspace$colors$apply_color_from_asserts_69462$$(this.$file_id$,this.color,this.$stroke_QMARK_$,$meta69463__$1$$)},$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69463$},$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$apply_color_from_asserts_69462$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $color__$1$jscomp$14$$=$app$common$types$color$library_color__GT_color$$(this.color,this.$file_id$);return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$colors$apply_color_from_palette$$($color__$1$jscomp$14$$,this.$stroke_QMARK_$),$app$main$data$workspace$colors$add_recent_color$$($color__$1$jscomp$14$$))});return new $app$main$data$workspace$colors$apply_color_from_asserts_69462$$($file_id$jscomp$193$$,
$color$jscomp$94_color__$1$jscomp$13$$,$stroke_QMARK_$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$remove_text_modifier$$=function($id$jscomp$616$$){typeof $app$main$data$workspace$texts$remove_text_modifier_68866$$==="undefined"&&($app$main$data$workspace$texts$remove_text_modifier_68866$$=function($id$jscomp$617$$,$meta68867$$){this.id=$id$jscomp$617$$;this.$meta68867$=$meta68867$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3865$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_remove_text_modifier$$},$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68868$$,$meta68867__$1$$){return new $app$main$data$workspace$texts$remove_text_modifier_68866$$(this.id,$meta68867__$1$$)},
$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68867$},$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2086$$,$state$jscomp$532$$){return $APP.$app$common$data$dissoc_in$$($state$jscomp$532$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2198$workspace_text_modifier$$,this.id],null))},$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$remove_text_modifier_68866$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$3093$stack_undo_QMARK_$$,!0],null)))});return new $app$main$data$workspace$texts$remove_text_modifier_68866$$($id$jscomp$616$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$finalize_editor_state$$=function($id$jscomp$589$$,$update_name_QMARK_$$){typeof $app$main$data$workspace$texts$finalize_editor_state_68543$$==="undefined"&&($app$main$data$workspace$texts$finalize_editor_state_68543$$=function($id$jscomp$590$$,$update_name_QMARK_$jscomp$1$$,$meta68544$$){this.id=$id$jscomp$590$$;this.$update_name_QMARK_$=$update_name_QMARK_$jscomp$1$$;this.$meta68544$=$meta68544$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3843$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_finalize_editor_state$$},$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68545$$,$meta68544__$1$$){return new $app$main$data$workspace$texts$finalize_editor_state_68543$$(this.id,
this.$update_name_QMARK_$,$meta68544__$1$$)},$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68544$},$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$finalize_editor_state_68543$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$,$state$jscomp$509$$){var $self__$jscomp$4786$$=
this;if($app$main$data$workspace$common$initialized_QMARK_$$($state$jscomp$509$$)){$_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$509$$);$_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$,$self__$jscomp$4786$$.id);var $editor_state$jscomp$2_new_shape_QMARK_$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$509$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2184$workspace_editor_state$$,$self__$jscomp$4786$$.id],null)),$content$jscomp$172$$=$editor_state$jscomp$2_new_shape_QMARK_$$.getCurrentContent(),$name$jscomp$323$$=$app$main$data$workspace$texts$gen_name$$($editor_state$jscomp$2_new_shape_QMARK_$$);$editor_state$jscomp$2_new_shape_QMARK_$$=$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$)==
null;if($content$jscomp$172$$.hasText()){if($APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$509$$,"render-wasm/v1"))){var $content__$1$jscomp$37$$=$APP.$app$common$data$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$util$text_editor$export_content$$($content$jscomp$172$$),$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$),
$APP.$cljs$cst$340$children$$)]));return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$texts$update_editor_state$$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$,null)),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($content__$1$jscomp$37$$,$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$))&&$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$509$$)!=
null&&$_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$!=null?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$4786$$.id],null),function($G__68555_shape__$1$jscomp$39$$){$G__68555_shape__$1$jscomp$39$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68555_shape__$1$jscomp$39$$,$APP.$cljs$cst$1621$content$$,
$content__$1$jscomp$37$$);var $and__5023__auto__$jscomp$inline_8222$$=$self__$jscomp$4786$$.$update_name_QMARK_$;return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8222$$)?$name$jscomp$323$$!=null:$and__5023__auto__$jscomp$inline_8222$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68555_shape__$1$jscomp$39$$,$APP.$cljs$cst$723$name$$,$name$jscomp$323$$):$G__68555_shape__$1$jscomp$39$$},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3090$undo_group$$,
$editor_state$jscomp$2_new_shape_QMARK_$$?$self__$jscomp$4786$$.id:null],null)),$APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$main$data$workspace$wasm_text$resize_wasm_text_modifiers$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$,$content__$1$jscomp$37$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3090$undo_group$$,
$editor_state$jscomp$2_new_shape_QMARK_$$?$self__$jscomp$4786$$.id:null],null)]))):null)}$content__$1$jscomp$37$$=$APP.$app$common$data$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$util$text_editor$export_content$$($content$jscomp$172$$),$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$),$APP.$cljs$cst$340$children$$)]));
var $modifiers$jscomp$94$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$509$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2198$workspace_text_modifier$$,$self__$jscomp$4786$$.id],null));return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$texts$update_editor_state$$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$,null)),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($content__$1$jscomp$37$$,
$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$))&&$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$509$$)!=null&&$_$jscomp$2063_objects$jscomp$499_shape$jscomp$556$$!=null?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$4786$$.id],
null),function($shape__$1$jscomp$40$$){var $G__68561_map__68560__$1$$=$APP.$cljs$core$__destructure_map$$($modifiers$jscomp$94$$),$width$jscomp$137$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__68561_map__68560__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$123$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__68561_map__68560__$1$$,$APP.$cljs$cst$1511$height$$),$position_data$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__68561_map__68560__$1$$,$APP.$cljs$cst$1875$position_data$$);
$G__68561_map__68560__$1$$=function(){var $G__68562$$=function(){var $G__68563$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape__$1$jscomp$40$$,$APP.$cljs$cst$1621$content$$,$content__$1$jscomp$37$$);return $APP.$cljs$core$truth_$$($position_data$jscomp$7$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68563$$,$APP.$cljs$cst$1875$position_data$$,$position_data$jscomp$7$$):$G__68563$$}();return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$463$$=$self__$jscomp$4786$$.$update_name_QMARK_$;
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$463$$)?$name$jscomp$323$$!=null:$and__5023__auto__$jscomp$463$$}())?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68562$$,$APP.$cljs$cst$723$name$$,$name$jscomp$323$$):$G__68562$$}();return $width$jscomp$137$$!=null||$height$jscomp$123$$!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($G__68561_map__68560__$1$$,$APP.$app$common$types$modifiers$change_size$$($shape__$1$jscomp$40$$,$width$jscomp$137$$,
$height$jscomp$123$$)):$G__68561_map__68560__$1$$},new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3090$undo_group$$,$editor_state$jscomp$2_new_shape_QMARK_$$?$self__$jscomp$4786$$.id:null],null))):null)}return $self__$jscomp$4786$$.id!=null?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$selection$deselect_shape$$($self__$jscomp$4786$$.id),$APP.$app$main$data$workspace$shapes$delete_shapes$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$self__$jscomp$4786$$.id]))):
null}return null});return new $app$main$data$workspace$texts$finalize_editor_state_68543$$($id$jscomp$589$$,$update_name_QMARK_$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$initialize_editor_state$$=function($p__68573$$){var $decorator$jscomp$1$$=$app$main$ui$workspace$shapes$text$editor$default_decorator$$,$map__68574__$1$$=$APP.$cljs$core$__destructure_map$$($p__68573$$),$id$jscomp$591$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68574__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$324$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68574__$1$$,$APP.$cljs$cst$723$name$$),$content$jscomp$173$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68574__$1$$,
$APP.$cljs$cst$1621$content$$);typeof $app$main$data$workspace$texts$initialize_editor_state_68575$$==="undefined"&&($app$main$data$workspace$texts$initialize_editor_state_68575$$=function($p__68573$jscomp$1$$,$decorator$jscomp$2$$,$map__68574$jscomp$1$$,$shape$jscomp$558$$,$id$jscomp$592$$,$name$jscomp$325$$,$content$jscomp$174$$,$meta68576$$){this.$p__68573$=$p__68573$jscomp$1$$;this.$decorator$=$decorator$jscomp$2$$;this.$map__68574$=$map__68574$jscomp$1$$;this.shape=$shape$jscomp$558$$;this.id=
$id$jscomp$592$$;this.name=$name$jscomp$325$$;this.content=$content$jscomp$174$$;this.$meta68576$=$meta68576$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3844$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_initialize_editor_state$$},
$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68577$$,$meta68576__$1$$){return new $app$main$data$workspace$texts$initialize_editor_state_68575$$(this.$p__68573$,this.$decorator$,this.$map__68574$,this.shape,this.id,this.name,this.content,$meta68576__$1$$)},$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68576$},$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2064_editor$jscomp$4$$,$state$jscomp$510$$){var $self__$jscomp$4790$$=this,$text_state$$=function(){var $G__68580$$=$self__$jscomp$4790$$.content;return $G__68580$$==null?null:$APP.$app$util$text_editor$import_content$$($G__68580$$)}(),$attrs$jscomp$107$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$get_default_text_attrs$$(),
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$510$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$2163$default_font$$],null))]));$_$jscomp$2064_editor$jscomp$4$$=function(){var $G__68581$$=$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.createEditorState($text_state$$,$self__$jscomp$4790$$.$decorator$);return $self__$jscomp$4790$$.content==null&&$attrs$jscomp$107$$!=null?
$APP.$app$util$text_editor$update_editor_current_block_data$$($G__68581$$,$attrs$jscomp$107$$):$G__68581$$}();return $APP.$cljs$core$assoc_in$$($state$jscomp$510$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2184$workspace_editor_state$$,$self__$jscomp$4790$$.id],null),$_$jscomp$2064_editor$jscomp$4$$)},$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$texts$initialize_editor_state_68575$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2065_editor$jscomp$5$$,$state$jscomp$511$$,$stream$jscomp$52$$){var $self__$jscomp$4791$$=this;$_$jscomp$2065_editor$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$511$$,$APP.$cljs$cst$2184$workspace_editor_state$$),$self__$jscomp$4791$$.id);var $update_name_QMARK_$jscomp$2$$=$self__$jscomp$4791$$.content==
null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$4791$$.name,$app$main$data$workspace$texts$gen_name$$($_$jscomp$2065_editor$jscomp$5$$));return $APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$texts$finalize_editor_state$$($self__$jscomp$4791$$.id,$update_name_QMARK_$jscomp$2$$)},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$2318$app_DOT_main_DOT_router_SLASH_navigate$$),
$stream$jscomp$52$$),$APP.$beicon$v2$core$filter$$(function($p1__68568_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3843$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_finalize_editor_state$$,$p1__68568_SHARP_$$)},$stream$jscomp$52$$))))});return new $app$main$data$workspace$texts$initialize_editor_state_68575$$($p__68573$$,$decorator$jscomp$1$$,$map__68574__$1$$,$map__68574__$1$$,$id$jscomp$591$$,$name$jscomp$324$$,$content$jscomp$173$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$transforms$selected_fit_content$$=function(){typeof $app$main$data$workspace$transforms$selected_fit_content_67771$$==="undefined"&&($app$main$data$workspace$transforms$selected_fit_content_67771$$=function($meta67772$$){this.$meta67772$=$meta67772$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3730$app_DOT_main_DOT_data_DOT_workspace_DOT_transforms_SLASH_selected_fit_content$$},$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67773$$,$meta67772__$1$$){return new $app$main$data$workspace$transforms$selected_fit_content_67771$$($meta67772__$1$$)},$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta67772$},$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$selected_fit_content_67771$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1978_undo_group$jscomp$14$$,$state$jscomp$427$$){var $objects$jscomp$484$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$427$$),$modifiers$jscomp$89_selected$jscomp$50$$=
$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$427$$);$_$jscomp$1978_undo_group$jscomp$14$$=$APP.$app$common$uuid$next$$();$modifiers$jscomp$89_selected$jscomp$50$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($modifiers$jscomp$90$$,$JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$){if($APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$)){var $JSCompiler_temp_const$jscomp$1568_new_modif$$=
$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$,$objects__$1$jscomp$inline_8226$$=$APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($objects$jscomp$484$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$),$APP.$cljs$cst$1692$layout_item_h_sizing$$],null),$APP.$cljs$cst$1656$auto$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$),$APP.$cljs$cst$1693$layout_item_v_sizing$$],null),$APP.$cljs$cst$1656$auto$$);$JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$=$APP.$app$common$geom$modifiers$set_objects_modifiers$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1794$modifiers$$,$APP.$app$common$types$modifiers$reflow$$()],null)]),$objects__$1$jscomp$inline_8226$$);return $JSCompiler_temp_const$jscomp$1568_new_modif$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$modifiers$jscomp$90$$,$JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$]))}$JSCompiler_temp_const$jscomp$1568_new_modif$$=$app$common$geom$shapes$fit_frame$fit_frame_modifiers$$($objects$jscomp$484$$,
$JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$);return $JSCompiler_temp_const$jscomp$1568_new_modif$$!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($modifiers$jscomp$90$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1570_frame$jscomp$34$$),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1794$modifiers$$,$JSCompiler_temp_const$jscomp$1568_new_modif$$],null)):$modifiers$jscomp$90$$},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$files$helpers$frame_shape_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$484$$),$modifiers$jscomp$89_selected$jscomp$50$$)));return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$427$$,"render-wasm/v1"))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($modifiers$jscomp$89_selected$jscomp$50$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3090$undo_group$$,$_$jscomp$1978_undo_group$jscomp$14$$],null)]))):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1794$modifiers$$,$modifiers$jscomp$89_selected$jscomp$50$$,$APP.$cljs$cst$3090$undo_group$$,$_$jscomp$1978_undo_group$jscomp$14$$],
null)))});return new $app$main$data$workspace$transforms$selected_fit_content_67771$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$transforms$t_app$0main$0data$0workspace$0transforms67400$$=function($handler$jscomp$31$$,$ids$jscomp$105$$,$shape$jscomp$533$$,$resize$$,$normalize_proportion_lock$$,$meta67401$$){this.handler=$handler$jscomp$31$$;this.ids=$ids$jscomp$105$$;this.shape=$shape$jscomp$533$$;this.resize=$resize$$;this.$normalize_proportion_lock$=$normalize_proportion_lock$$;this.$meta67401$=$meta67401$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0};
$app$main$data$workspace$transforms$start_resize$$=function($handler$jscomp$33$$,$ids$jscomp$107$$,$shape$jscomp$535$$){return new $app$main$data$workspace$transforms$t_app$0main$0data$0workspace$0transforms67400$$($handler$jscomp$33$$,$ids$jscomp$107$$,$shape$jscomp$535$$,function($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,$initial$jscomp$17_initial__$1_initial__$2$$,$layout$jscomp$11_scale_text$$,$G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$,$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$){var $G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,
0,null),$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,1,null),$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,2,null),$point_snap_resize_origin__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,
3,null);$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$=$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,$APP.$cljs$cst$1589$selrect$$);var $change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$?.width??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,$APP.$cljs$cst$288$width$$),$G__67388_height$jscomp$120$$=$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,$APP.$cljs$cst$1511$height$$),$rotation$jscomp$13_rotation__$1$$=$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$?.rotation??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,$APP.$cljs$cst$1772$rotation$$),$change_height_QMARK__shape_center$jscomp$5$$=$APP.$app$common$geom$shapes$common$shape__GT_center$$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$);$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$=$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$);
var $shape_transform_inverse$$=$APP.$cljs$cst$1771$transform_inverse$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$);$rotation$jscomp$13_rotation__$1$$=$APP.$cljs$core$truth_$$($rotation$jscomp$13_rotation__$1$$)?$rotation$jscomp$13_rotation__$1$$:0;$initial$jscomp$17_initial__$1_initial__$2$$=$APP.$app$common$geom$matrix$transform_point_center$$($initial$jscomp$17_initial__$1_initial__$2$$,$change_height_QMARK__shape_center$jscomp$5$$,$shape_transform_inverse$$);
$initial$jscomp$17_initial__$1_initial__$2$$=$app$main$data$workspace$transforms$fix_init_point$$($initial$jscomp$17_initial__$1_initial__$2$$,$handler$jscomp$33$$,$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$);$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$APP.$app$common$geom$matrix$transform_point_center$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($rotation$jscomp$13_rotation__$1$$,
0)?$point_snap_resize_origin__$1$$:$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$change_height_QMARK__shape_center$jscomp$5$$,$shape_transform_inverse$$);$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$,
$G__67388_height$jscomp$120$$);$layout$jscomp$11_scale_text$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$11_scale_text$$,$APP.$cljs$cst$3586$scale_text$$);$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$=$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$||$layout$jscomp$11_scale_text$$;$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=
$APP.$app$common$geom$point$multiply$$($APP.$app$common$geom$point$subtract$$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$initial$jscomp$17_initial__$1_initial__$2$$),$app$main$data$workspace$transforms$get_handler_multiplier$$($handler$jscomp$33$$));$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$APP.$app$common$geom$point$divide$$($APP.$app$common$geom$point$add$$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$,
$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$),$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$);$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$?.x??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$,$APP.$cljs$cst$1499$x$$);$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$,
$APP.$cljs$cst$1500$y$$);$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$APP.$app$common$geom$point$pos__GT_Point$$($APP.$app$common$math$almost_zero_QMARK_$$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$)?.001:$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,
$APP.$app$common$math$almost_zero_QMARK_$$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$)?.001:$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$);$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$?($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$33$$,
$APP.$cljs$cst$258$right$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$33$$,$APP.$cljs$cst$257$left$$)?$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$APP.$cljs$cst$1499$x$$):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$33$$,$APP.$cljs$cst$1546$top$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$33$$,$APP.$cljs$cst$1547$bottom$$)?$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,
$APP.$cljs$cst$1500$y$$):Math.max($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$APP.$cljs$cst$1499$x$$),$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$?.y??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$APP.$cljs$cst$1500$y$$)),$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$,$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$)):
$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$=$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$;$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,
$APP.$cljs$cst$1589$selrect$$);$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$app$main$data$workspace$transforms$get_handler_resize_origin$$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$handler$jscomp$33$$);$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=
$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$?$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$multiply$$($APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$add$$($APP.$app$common$geom$point$multiply$$($APP.$app$common$geom$point$subtract$$($change_height_QMARK__shape_center$jscomp$5$$,$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$),$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$),
$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$),$change_height_QMARK__shape_center$jscomp$5$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(-1,-1)),$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$):null;$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$=$APP.$app$common$geom$matrix$transform_point_center$$($change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$,
$change_height_QMARK__shape_center$jscomp$5$$,$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$);$point_snap_resize_origin__$1$$=$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$!=null?$APP.$app$common$geom$point$add$$($center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$,$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$):
$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$;$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$=$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$)?$APP.$app$main$data$workspace$modifiers$next_grow_type$$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$?.$grow_type$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,
$APP.$cljs$cst$1754$grow_type$$),$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$):null;$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$=$APP.$cljs$core$not$$($APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$,
$APP.$cljs$cst$1499$x$$),1));$change_height_QMARK__shape_center$jscomp$5$$=$APP.$cljs$core$not$$($APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$,$APP.$cljs$cst$1500$y$$),1));$G__67388_height$jscomp$120$$=$APP.$app$common$types$modifiers$empty$$();
$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$=$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$!=null?$APP.$app$common$types$modifiers$move$cljs$0core$0IFn$0_invoke$0arity$02$$($G__67388_height$jscomp$120$$,$G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$):
$G__67388_height$jscomp$120$$;$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$=$APP.$app$common$types$modifiers$resize$cljs$0core$0IFn$0_invoke$0arity$05$$($G__67388__$1_deltav$jscomp$2_displacement$jscomp$1_point$jscomp$62_point__$1$jscomp$1_scalev$jscomp$3_selrect__$1$jscomp$4_x$jscomp$inline_13885$$,$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$,$point_snap_resize_origin__$1$$,$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,
$shape_transform_inverse$$);$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$=($APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$,$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$)||$APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$),
$APP.$cljs$cst$1681$fix$$)&&$change_width_QMARK__handler_origin_p$jscomp$inline_13884_shapev_width$jscomp$134_y$jscomp$inline_13886$$?$APP.$app$common$types$modifiers$change_property$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,$APP.$cljs$cst$1692$layout_item_h_sizing$$,$APP.$cljs$cst$1681$fix$$):$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$;$G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$=($APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$,
$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$)||$APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$),$APP.$cljs$cst$1681$fix$$)&&$change_height_QMARK__shape_center$jscomp$5$$?$APP.$app$common$types$modifiers$change_property$$($G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$,
$APP.$cljs$cst$1693$layout_item_v_sizing$$,$APP.$cljs$cst$1681$fix$$):$G__67388__$2_G__67388__$3_p__67367_selrect$jscomp$61_shape_transform$jscomp$1$$;$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$,$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$?.$grow_type$??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$,$APP.$cljs$cst$1754$grow_type$$)):$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$)?$APP.$app$common$types$modifiers$change_property$$($G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$,$APP.$cljs$cst$1754$grow_type$$,$center_QMARK_$jscomp$3_new_grow_type_resize_origin$jscomp$2$$):$G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$;$layout$jscomp$11_scale_text$$&&
($G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$=$JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10578_lock_QMARK__lock_QMARK___$1_scalev__$1_v$jscomp$inline_12714$$,$APP.$cljs$cst$1499$x$$),$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$truth_$$($G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$)?
$G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$:$APP.$app$common$types$modifiers$empty$$(),$APP.$cljs$cst$1764$structure_child$$,$APP.$cljs$core$conj$$,new $APP.$app$common$types$modifiers$StructureOperation$$($APP.$cljs$cst$1787$scale_content$$,null,$G__67388__$4_objects$jscomp$468_value$jscomp$inline_13889$$,null,null,null,null)));return $G__67388__$5_JSCompiler_temp$jscomp$13411_shape__$1$jscomp$38$$},function($alt_QMARK__p__67391$$){var $point$jscomp$63$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($alt_QMARK__p__67391$$,
0,null),$shift_QMARK_$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($alt_QMARK__p__67391$$,1,null);$alt_QMARK__p__67391$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($alt_QMARK__p__67391$$,2,null);var $proportion_lock_QMARK_$$=$APP.$cljs$cst$1792$proportion_lock$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$535$$);return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$point$jscomp$63$$,$proportion_lock_QMARK_$$||$shift_QMARK_$$,
$alt_QMARK__p__67391$$],null)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$app$main$data$workspace$start_resize$$=function($param70587$$,$param70588$$,$param70589$$){return $app$main$data$workspace$transforms$start_resize$$($param70587$$,$param70588$$,$param70589$$)};
$app$main$data$workspace$libraries$component_multi_swap$$=function($shapes$jscomp$107$$,$file_id$jscomp$154$$,$id_new_component$jscomp$4$$){typeof $app$main$data$workspace$libraries$component_multi_swap_68355$$==="undefined"&&($app$main$data$workspace$libraries$component_multi_swap_68355$$=function($shapes$jscomp$108$$,$file_id$jscomp$155$$,$id_new_component$jscomp$5$$,$meta68356$$){this.shapes=$shapes$jscomp$108$$;this.$file_id$=$file_id$jscomp$155$$;this.$id_new_component$=$id_new_component$jscomp$5$$;
this.$meta68356$=$meta68356$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3798$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_component_multi_swap$$},$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68357$$,$meta68356__$1$$){return new $app$main$data$workspace$libraries$component_multi_swap_68355$$(this.shapes,this.$file_id$,this.$id_new_component$,$meta68356__$1$$)},$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68356$},$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$app$main$data$event$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$app$main$data$event$Event$_data$arity$1$=
function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"component-swap"],null)},$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$component_multi_swap_68355$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2034$$,$state$jscomp$470$$){var $self__$jscomp$4710$$=this,$undo_id$jscomp$26$$=
Symbol();$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.libraries",$APP.$cljs$cst$1159$info$$)&&$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$1530$msg$$,"COMPONENT-SWAP"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$208$file$$,$APP.$app$main$data$workspace$libraries$debug_pretty_file$$($self__$jscomp$4710$$.$file_id$,$state$jscomp$470$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3799$id_new_component$$,$self__$jscomp$4710$$.$id_new_component$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3528$undo_id$$,$undo_id$jscomp$26$$],null)],null)}),null,"app.main.data.workspace.libraries",
$APP.$cljs$cst$1159$info$$,!1);return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$26$$)),$APP.$beicon$v2$core$map$$(function($p1__68354_SHARP_$$){return $APP.$app$main$data$workspace$libraries$component_swap$$($p1__68354_SHARP_$$,$self__$jscomp$4710$$.$file_id$,$self__$jscomp$4710$$.$id_new_component$,!1)},$APP.$beicon$v2$core$from$$($self__$jscomp$4710$$.shapes)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$26$$)),
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$specialized_panel$open_specialized_panel$$()))});return new $app$main$data$workspace$libraries$component_multi_swap_68355$$($shapes$jscomp$107$$,$file_id$jscomp$154$$,$id_new_component$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$drop_token_set$$=function($params$jscomp$306$$){typeof $app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$=function($params$jscomp$307$$,$meta71330$$){this.params=$params$jscomp$307$$;this.$meta71330$=$meta71330$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4540$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_drop_token_set$$},$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71331$$,$meta71330__$1$$){return new $app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$(this.params,
$meta71330__$1$$)},$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71330$},$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($it$jscomp$244$$,$state$jscomp$899$$){try{var $tokens_lib$jscomp$32$$=
$APP.$app$main$data$workspace$tokens$library_edit$get_tokens_lib$$($state$jscomp$899$$),$changes$jscomp$inline_8228$$=$APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$temp__5823__auto__$jscomp$inline_8231$$=$app$common$logic$tokens$calculate_move_token_set_or_set_group$$($tokens_lib$jscomp$32$$,this.params);if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$inline_8231$$)){var $map__54271__$1$jscomp$inline_12718$$=$APP.$cljs$core$__destructure_map$$($temp__5823__auto__$jscomp$inline_8231$$),
$from_path$jscomp$inline_12719$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$2604$from_path$$),$to_path$jscomp$inline_12720$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$2605$to_path$$),$before_path$jscomp$inline_12721$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$2606$before_path$$),$before_group_QMARK_$jscomp$inline_12722$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$3131$before_group_QMARK_$$),$prev_before_path$jscomp$inline_12723$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$3132$prev_before_path$$),$prev_before_group_QMARK_$jscomp$inline_12724$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54271__$1$jscomp$inline_12718$$,$APP.$cljs$cst$3133$prev_before_group_QMARK_$$);var $JSCompiler_temp$jscomp$10571$$=
$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$inline_8228$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2603$move_token_set$$,$APP.$cljs$cst$2604$from_path$$,$from_path$jscomp$inline_12719$$,$APP.$cljs$cst$2605$to_path$$,$to_path$jscomp$inline_12720$$,
$APP.$cljs$cst$2606$before_path$$,$before_path$jscomp$inline_12721$$,$APP.$cljs$cst$2607$before_group$$,$before_group_QMARK_$jscomp$inline_12722$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2603$move_token_set$$,$APP.$cljs$cst$2604$from_path$$,$to_path$jscomp$inline_12720$$,$APP.$cljs$cst$2605$to_path$$,$from_path$jscomp$inline_12719$$,$APP.$cljs$cst$2606$before_path$$,$prev_before_path$jscomp$inline_12723$$,
$APP.$cljs$cst$2607$before_group$$,$prev_before_group_QMARK_$jscomp$inline_12724$$],null)))}else $JSCompiler_temp$jscomp$10571$$=$changes$jscomp$inline_8228$$;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($JSCompiler_temp$jscomp$10571$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$())}catch($e71337$$){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$tokens$library_edit$drop_error$$($APP.$cljs$core$ex_data$$($e71337$$)))}});
return new $app$main$data$workspace$tokens$library_edit$drop_token_set_71329$$($params$jscomp$306$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$drop_token_set_group$$=function($drop_opts$$){typeof $app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$=function($drop_opts$jscomp$1$$,$meta71310$$){this.$drop_opts$=$drop_opts$jscomp$1$$;this.$meta71310$=$meta71310$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4539$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_drop_token_set_group$$},$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71311$$,$meta71310__$1$$){return new $app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$(this.$drop_opts$,
$meta71310__$1$$)},$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71310$},$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($it$jscomp$243$$,$state$jscomp$898$$){try{var $changes$jscomp$inline_8233$$=
$APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$tokens_lib$jscomp$inline_8234$$=$APP.$app$main$data$workspace$tokens$library_edit$get_tokens_lib$$($state$jscomp$898$$),$temp__5823__auto__$jscomp$inline_8236$$=$app$common$logic$tokens$calculate_move_token_set_or_set_group$$($tokens_lib$jscomp$inline_8234$$,this.$drop_opts$);if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$inline_8236$$)){var $map__54284__$1$jscomp$inline_12728$$=$APP.$cljs$core$__destructure_map$$($temp__5823__auto__$jscomp$inline_8236$$),
$from_path$jscomp$inline_12729$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$2604$from_path$$),$to_path$jscomp$inline_12730$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$2605$to_path$$),$before_path$jscomp$inline_12731$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$2606$before_path$$),$before_group_QMARK_$jscomp$inline_12732$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$3131$before_group_QMARK_$$),$prev_before_path$jscomp$inline_12733$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$3132$prev_before_path$$),$prev_before_group_QMARK_$jscomp$inline_12734$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__54284__$1$jscomp$inline_12728$$,$APP.$cljs$cst$3133$prev_before_group_QMARK_$$);var $JSCompiler_temp$jscomp$10570$$=
$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$inline_8233$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2608$move_token_set_group$$,$APP.$cljs$cst$2604$from_path$$,$from_path$jscomp$inline_12729$$,$APP.$cljs$cst$2605$to_path$$,$to_path$jscomp$inline_12730$$,
$APP.$cljs$cst$2606$before_path$$,$before_path$jscomp$inline_12731$$,$APP.$cljs$cst$2607$before_group$$,$before_group_QMARK_$jscomp$inline_12732$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2608$move_token_set_group$$,$APP.$cljs$cst$2604$from_path$$,$to_path$jscomp$inline_12730$$,$APP.$cljs$cst$2605$to_path$$,$from_path$jscomp$inline_12729$$,$APP.$cljs$cst$2606$before_path$$,$prev_before_path$jscomp$inline_12733$$,
$APP.$cljs$cst$2607$before_group$$,$prev_before_group_QMARK_$jscomp$inline_12734$$],null)))}else $JSCompiler_temp$jscomp$10570$$=$changes$jscomp$inline_8233$$;var $temp__5825__auto__$jscomp$233$$=$JSCompiler_temp$jscomp$10570$$;return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$233$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($temp__5825__auto__$jscomp$233$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$()):null}catch($e71323$$){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$tokens$library_edit$drop_error$$($APP.$cljs$core$ex_data$$($e71323$$)))}});
return new $app$main$data$workspace$tokens$library_edit$drop_token_set_group_71309$$($drop_opts$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$delete_token_set_group$$=function($path$jscomp$250$$){typeof $app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$=function($path$jscomp$251$$,$meta71283$$){this.path=$path$jscomp$251$$;this.$meta71283$=$meta71283$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4537$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_delete_token_set_group$$},$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71284$$,$meta71283__$1$$){return new $app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$(this.path,
$meta71283__$1$$)},$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71283$},$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($data$jscomp$412_it$jscomp$242$$,$changes$jscomp$296_state$jscomp$897$$){$data$jscomp$412_it$jscomp$242$$=
$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$296_state$jscomp$897$$);$changes$jscomp$296_state$jscomp$897$$=$app$common$logic$tokens$generate_delete_token_set_group$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$data$jscomp$412_it$jscomp$242$$),$APP.$app$main$data$workspace$tokens$library_edit$get_tokens_lib$$($changes$jscomp$296_state$jscomp$897$$),
this.path);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$296_state$jscomp$897$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$())});return new $app$main$data$workspace$tokens$library_edit$delete_token_set_group_71282$$($path$jscomp$250$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$import_tokens_lib$$=function($lib$jscomp$10$$){typeof $app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$=function($lib$jscomp$11$$,$meta71258$$){this.$lib$=$lib$jscomp$11$$;this.$meta71258$=$meta71258$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4535$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_import_tokens_lib$$},$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71259$$,$meta71258__$1$$){return new $app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$(this.$lib$,
$meta71258__$1$$)},$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71258$},$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$,
$state$jscomp$895_tokens_lib$jscomp$inline_8239$$){$changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$895_tokens_lib$jscomp$inline_8239$$);$changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$=$APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$);
$state$jscomp$895_tokens_lib$jscomp$inline_8239$$=this.$lib$;var $library_data$jscomp$inline_8240_prev_tokens_lib$jscomp$inline_8241$$=$APP.$cljs$cst$3122$app_DOT_common_DOT_files_DOT_changes_builder_SLASH_library_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$));$library_data$jscomp$inline_8240_prev_tokens_lib$jscomp$inline_8241$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($library_data$jscomp$inline_8240_prev_tokens_lib$jscomp$inline_8241$$,
$APP.$cljs$cst$2121$tokens_lib$$);$changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2591$set_tokens_lib$$,
$APP.$cljs$cst$2121$tokens_lib$$,$state$jscomp$895_tokens_lib$jscomp$inline_8239$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2591$set_tokens_lib$$,$APP.$cljs$cst$2121$tokens_lib$$,$library_data$jscomp$inline_8240_prev_tokens_lib$jscomp$inline_8241$$],null)));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$294_changes$jscomp$inline_8238_data$jscomp$410_it$jscomp$240$$),
$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$())});return new $app$main$data$workspace$tokens$library_edit$import_tokens_lib_71257$$($lib$jscomp$10$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$library_edit$toggle_token_set_group$$=function($group_path$jscomp$7$$){typeof $app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$==="undefined"&&($app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$=function($group_path$jscomp$8$$,$meta71250$$){this.$group_path$=$group_path$jscomp$8$$;this.$meta71250$=$meta71250$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4534$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_library_edit_SLASH_toggle_token_set_group$$},$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71251$$,$meta71250__$1$$){return new $app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$(this.$group_path$,
$meta71250__$1$$)},$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71250$},$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2560_data$jscomp$409$$,$changes$jscomp$293_state$jscomp$894$$){$_$jscomp$2560_data$jscomp$409$$=
$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($changes$jscomp$293_state$jscomp$894$$);$changes$jscomp$293_state$jscomp$894$$=$app$common$logic$tokens$generate_toggle_token_set_group$$($APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$00$$(),$_$jscomp$2560_data$jscomp$409$$),$APP.$app$main$data$workspace$tokens$library_edit$get_tokens_lib$$($changes$jscomp$293_state$jscomp$894$$),
this.$group_path$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$293_state$jscomp$894$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$())});return new $app$main$data$workspace$tokens$library_edit$toggle_token_set_group_71249$$($group_path$jscomp$7$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$application$get_token_properties$$=function($token$jscomp$84$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$tokens$application$token_properties$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$84$$))};
$app$main$data$workspace$transforms$start_rotate$$=function($shapes$jscomp$95$$){typeof $app$main$data$workspace$transforms$start_rotate_67461$$==="undefined"&&($app$main$data$workspace$transforms$start_rotate_67461$$=function($shapes$jscomp$96$$,$meta67462$$){this.shapes=$shapes$jscomp$96$$;this.$meta67462$=$meta67462$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3709$app_DOT_main_DOT_data_DOT_workspace_DOT_transforms_SLASH_start_rotate$$},$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67463$$,$meta67462__$1$$){return new $app$main$data$workspace$transforms$start_rotate_67461$$(this.shapes,$meta67462__$1$$)},$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta67462$},$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1958$$,$state$jscomp$411$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$411$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,
$APP.$cljs$cst$1275$transform$$],null),$APP.$cljs$cst$2822$rotate$$)},$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$start_rotate_67461$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1959_stopper$jscomp$10$$,$state$jscomp$412$$,$angle_stream_group$jscomp$36_stream$jscomp$43$$){var $self__$jscomp$4455$$=this;$_$jscomp$1959_stopper$jscomp$10$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($angle_stream_group$jscomp$36_stream$jscomp$43$$,
null);$angle_stream_group$jscomp$36_stream$jscomp$43$$=$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($self__$jscomp$4455$$.shapes);var $group_center$$=$APP.$app$common$geom$rect$rect__GT_center$$($angle_stream_group$jscomp$36_stream$jscomp$43$$),$initial_angle$$=$APP.$app$common$geom$point$angle$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$),$group_center$$);$angle_stream_group$jscomp$36_stream$jscomp$43$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$map$$(function($p__67470_shift_QMARK_$jscomp$2$$){var $angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67470_shift_QMARK_$jscomp$2$$,0,null),$angle__$3$jscomp$inline_8249_mod_QMARK_$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67470_shift_QMARK_$jscomp$2$$,1,null);$p__67470_shift_QMARK_$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67470_shift_QMARK_$jscomp$2$$,2,null);$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$=$APP.$app$common$geom$point$angle$cljs$0core$0IFn$0_invoke$0arity$02$$($angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$,
$group_center$$)-$initial_angle$$;$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$=$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$<0?360+$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$:$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$;$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$,360)?0:$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$;$angle__$3$jscomp$inline_8249_mod_QMARK_$jscomp$2$$=$APP.$cljs$core$truth_$$($angle__$3$jscomp$inline_8249_mod_QMARK_$jscomp$2$$)?$APP.$app$common$math$floor$$($angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$/
45)*45:$angle$jscomp$inline_8246_angle__$1$jscomp$inline_8247_angle__$2$jscomp$inline_8248_pos$jscomp$109$$;return $APP.$cljs$core$truth_$$($p__67470_shift_QMARK_$jscomp$2$$)?$APP.$app$common$math$floor$$($angle__$3$jscomp$inline_8249_mod_QMARK_$jscomp$2$$/15)*15:$angle__$3$jscomp$inline_8249_mod_QMARK_$jscomp$2$$},$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$main$streams$mouse_position_mod$$,$APP.$sub$jscomp$inline_6233$$,$APP.$app$main$streams$mouse_position$$)));
return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$412$$,"render-wasm/v1"))?$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$1959_stopper$jscomp$10$$,$APP.$beicon$v2$core$map$$(function($p1__67455_SHARP_$$){return $app$main$data$workspace$modifiers$set_wasm_modifiers$$($app$main$data$workspace$transforms$rotation_modifiers$$($p1__67455_SHARP_$$,$self__$jscomp$4455$$.shapes,$group_center$$))},$angle_stream_group$jscomp$36_stream$jscomp$43$$)),
$APP.$beicon$v2$core$map$$(function($p1__67456_SHARP_$$){return $APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($app$main$data$workspace$transforms$rotation_modifiers$$($p1__67456_SHARP_$$,$self__$jscomp$4455$$.shapes,$group_center$$))},$APP.$beicon$v2$core$last$$($APP.$beicon$v2$core$take_until$$($_$jscomp$1959_stopper$jscomp$10$$,$angle_stream_group$jscomp$36_stream$jscomp$43$$)))),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$transforms$finish_transform$$())):$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$1959_stopper$jscomp$10$$,
$APP.$beicon$v2$core$map$$(function($p1__67457_SHARP_$$){return $app$main$data$workspace$modifiers$set_rotation_modifiers$cljs$0core$0IFn$0_invoke$0arity$03$$($p1__67457_SHARP_$$,$self__$jscomp$4455$$.shapes,$group_center$$)},$angle_stream_group$jscomp$36_stream$jscomp$43$$))),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$APP.$app$main$data$workspace$transforms$finish_transform$$()))});return new $app$main$data$workspace$transforms$start_rotate_67461$$($shapes$jscomp$95$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$transforms$change_orientation$$=function($ids$jscomp$113$$,$orientation$jscomp$3$$){typeof $app$main$data$workspace$transforms$change_orientation_67442$$==="undefined"&&($app$main$data$workspace$transforms$change_orientation_67442$$=function($ids$jscomp$114$$,$orientation$jscomp$4$$,$meta67443$$){this.ids=$ids$jscomp$114$$;this.orientation=$orientation$jscomp$4$$;this.$meta67443$=$meta67443$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3708$app_DOT_main_DOT_data_DOT_workspace_DOT_transforms_SLASH_change_orientation$$},$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67444$$,$meta67443__$1$$){return new $app$main$data$workspace$transforms$change_orientation_67442$$(this.ids,
this.orientation,$meta67443__$1$$)},$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67443$},$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$,$state$jscomp$409$$){var $self__$jscomp$4449$$=
this;if($APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$409$$,"render-wasm/v1")))return $state$jscomp$409$$;$_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$409$$);$_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$=$APP.$app$common$geom$modifiers$set_objects_modifiers$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$modifiers$build_modif_tree$$($self__$jscomp$4449$$.ids,
$_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$,function($shape$jscomp$537$$){return $app$common$types$modifiers$change_orientation_modifiers$$($shape$jscomp$537$$,$self__$jscomp$4449$$.orientation)}),$_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$409$$,$APP.$cljs$cst$1907$workspace_modifiers$$,$_$jscomp$1956_modif_tree$jscomp$56_objects$jscomp$470$$)},$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$transforms$change_orientation_67442$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$,$state$jscomp$410$$){var $self__$jscomp$4450$$=this;return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$410$$,"render-wasm/v1"))?($_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$410$$),
$_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$=$APP.$app$common$geom$modifiers$set_objects_modifiers$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$modifiers$build_modif_tree$$($self__$jscomp$4450$$.ids,$_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$,function($shape$jscomp$538$$){return $app$common$types$modifiers$change_orientation_modifiers$$($shape$jscomp$538$$,$self__$jscomp$4450$$.orientation)}),$_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$),
(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($_$jscomp$1957_modif_tree$jscomp$57_objects$jscomp$471$$))):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null))});return new $app$main$data$workspace$transforms$change_orientation_67442$$($ids$jscomp$113$$,$orientation$jscomp$3$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$bool$change_bool_type$$=function($shape_id$jscomp$78$$,$type$jscomp$461$$){typeof $app$main$data$workspace$bool$change_bool_type_66580$$==="undefined"&&($app$main$data$workspace$bool$change_bool_type_66580$$=function($shape_id$jscomp$79$$,$type$jscomp$462$$,$meta66581$$){this.$shape_id$=$shape_id$jscomp$79$$;this.type=$type$jscomp$462$$;this.$meta66581$=$meta66581$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3542$app_DOT_main_DOT_data_DOT_workspace_DOT_bool_SLASH_change_bool_type$$},$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66582$$,$meta66581__$1$$){return new $app$main$data$workspace$bool$change_bool_type_66580$$(this.$shape_id$,this.type,$meta66581__$1$$)},$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta66581$},$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$bool$change_bool_type_66580$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1883_objects$jscomp$372$$,$state$jscomp$355$$){function $change_type$$($shape$jscomp$477$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$477$$,$APP.$cljs$cst$1872$bool_type$$,$self__$jscomp$4241$$.type)}
var $self__$jscomp$4241$$=this;$_$jscomp$1883_objects$jscomp$372$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$355$$);return $APP.$cljs$core$truth_$$($APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($_$jscomp$1883_objects$jscomp$372$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1883_objects$jscomp$372$$,$self__$jscomp$4241$$.$shape_id$)))?null:(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$4241$$.$shape_id$],null),$change_type$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!0],null)))});return new $app$main$data$workspace$bool$change_bool_type_66580$$($shape_id$jscomp$78$$,$type$jscomp$461$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$bool$bool_to_group$$=function($shape_id$jscomp$76$$){typeof $app$main$data$workspace$bool$bool_to_group_66547$$==="undefined"&&($app$main$data$workspace$bool$bool_to_group_66547$$=function($shape_id$jscomp$77$$,$meta66548$$){this.$shape_id$=$shape_id$jscomp$77$$;this.$meta66548$=$meta66548$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3541$app_DOT_main_DOT_data_DOT_workspace_DOT_bool_SLASH_bool_to_group$$},$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66549$$,$meta66548__$1$$){return new $app$main$data$workspace$bool$bool_to_group_66547$$(this.$shape_id$,$meta66548__$1$$)},$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta66548$},$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$bool$bool_to_group_66547$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1882_objects$jscomp$371$$,$state$jscomp$354$$){$_$jscomp$1882_objects$jscomp$371$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$354$$);return $APP.$cljs$core$truth_$$($APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($_$jscomp$1882_objects$jscomp$371$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1882_objects$jscomp$371$$,this.$shape_id$)))?null:(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$shape_id$],null),$app$main$data$workspace$bool$bool__GT_group$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0,$APP.$cljs$cst$3521$reg_objects_QMARK_$$,
!0],null)))});return new $app$main$data$workspace$bool$bool_to_group_66547$$($shape_id$jscomp$76$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$bool$group_to_bool$$=function($shape_id$jscomp$74$$,$type$jscomp$459$$){typeof $app$main$data$workspace$bool$group_to_bool_66528$$==="undefined"&&($app$main$data$workspace$bool$group_to_bool_66528$$=function($shape_id$jscomp$75$$,$type$jscomp$460$$,$meta66529$$){this.$shape_id$=$shape_id$jscomp$75$$;this.type=$type$jscomp$460$$;this.$meta66529$=$meta66529$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3540$app_DOT_main_DOT_data_DOT_workspace_DOT_bool_SLASH_group_to_bool$$},$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_66530$$,$meta66529__$1$$){return new $app$main$data$workspace$bool$group_to_bool_66528$$(this.$shape_id$,this.type,$meta66529__$1$$)},$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta66529$},$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$bool$group_to_bool_66528$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1881_objects$jscomp$369$$,$state$jscomp$353_update_fn$jscomp$22$$){$_$jscomp$1881_objects$jscomp$369$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$353_update_fn$jscomp$22$$);
$state$jscomp$353_update_fn$jscomp$22$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$workspace$bool$group__GT_bool$$,this.type);return $APP.$cljs$core$truth_$$($APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($_$jscomp$1881_objects$jscomp$369$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$1881_objects$jscomp$369$$,this.$shape_id$)))?null:(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$shape_id$],null),$state$jscomp$353_update_fn$jscomp$22$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3126$with_objects_QMARK_$$,!0,$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!0],null)))});return new $app$main$data$workspace$bool$group_to_bool_66528$$($shape_id$jscomp$74$$,$type$jscomp$459$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$application$apply_token_on_selected$$=function($color_operations$$,$token$jscomp$82$$){typeof $app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$==="undefined"&&($app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$=function($color_operations$jscomp$1$$,$token$jscomp$83$$,$meta70946$$){this.$color_operations$=$color_operations$jscomp$1$$;this.token=$token$jscomp$83$$;this.$meta70946$=$meta70946$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4492$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_application_SLASH_apply_token_on_selected$$},$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_70947$$,$meta70946__$1$$){return new $app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$(this.$color_operations$,this.token,$meta70946__$1$$)},$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70946$},$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $self__$jscomp$6305$$=this,$undo_id$jscomp$80$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$80$$)),$APP.$beicon$v2$core$map$$(function($G__70948_G__70948__$1_cop$$){var $shape_ids$jscomp$101$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2500$shape_id$$.$cljs$core$IFn$_invoke$arity$1$($G__70948_G__70948__$1_cop$$)],
null);$G__70948_G__70948__$1_cop$$=$APP.$cljs$cst$4042$prop$$.$cljs$core$IFn$_invoke$arity$1$($G__70948_G__70948__$1_cop$$);$G__70948_G__70948__$1_cop$$=$G__70948_G__70948__$1_cop$$ instanceof $APP.$cljs$core$Keyword$$?$G__70948_G__70948__$1_cop$$.$fqn$:null;switch($G__70948_G__70948__$1_cop$$){case "fill":return $APP.$app$main$data$workspace$tokens$application$apply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1978$attributes$$,new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$APP.$cljs$cst$1134$token$$,$self__$jscomp$6305$$.token,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$101$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_fill$$],null));case "stroke":return $APP.$app$main$data$workspace$tokens$application$apply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1978$attributes$$,new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null),$APP.$cljs$cst$1134$token$$,$self__$jscomp$6305$$.token,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$101$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_stroke_color$$],null));case "content":return $APP.$app$main$data$workspace$tokens$application$apply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1978$attributes$$,new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$APP.$cljs$cst$1134$token$$,$self__$jscomp$6305$$.token,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$101$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_fill$$],null));case "shadow":return $APP.$beicon$v2$core$empty$$();default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__70948_G__70948__$1_cop$$)].join(""));
}},$APP.$beicon$v2$core$from$$($self__$jscomp$6305$$.$color_operations$)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$80$$)))});return new $app$main$data$workspace$tokens$application$apply_token_on_selected_70945$$($color_operations$$,$token$jscomp$82$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$set_shape_proportion_lock$$=function($id$jscomp$733$$,$lock$jscomp$10$$){typeof $app$main$data$workspace$set_shape_proportion_lock_70353$$==="undefined"&&($app$main$data$workspace$set_shape_proportion_lock_70353$$=function($id$jscomp$734$$,$lock$jscomp$11$$,$meta70354$$){this.id=$id$jscomp$734$$;this.lock=$lock$jscomp$11$$;this.$meta70354$=$meta70354$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4333$app_DOT_main_DOT_data_DOT_workspace_SLASH_set_shape_proportion_lock$$},$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70355$$,$meta70354__$1$$){return new $app$main$data$workspace$set_shape_proportion_lock_70353$$(this.id,this.lock,$meta70354__$1$$)},
$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70354$},$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$set_shape_proportion_lock_70353$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$6095$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$6095$$.id],null),function($JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$){if($APP.$cljs$core$not$$($self__$jscomp$6095$$.lock))$JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$,$APP.$cljs$cst$1792$proportion_lock$$,!1);else{$JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$,$APP.$cljs$cst$1792$proportion_lock$$,!0);var $map__48785$jscomp$inline_8252_width$jscomp$inline_8254$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$),$height$jscomp$inline_8255_map__48785__$1$jscomp$inline_8253$$=$APP.$cljs$core$__destructure_map$$($map__48785$jscomp$inline_8252_width$jscomp$inline_8254$$);
$map__48785$jscomp$inline_8252_width$jscomp$inline_8254$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_8255_map__48785__$1$jscomp$inline_8253$$,$APP.$cljs$cst$288$width$$);$height$jscomp$inline_8255_map__48785__$1$jscomp$inline_8253$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$inline_8255_map__48785__$1$jscomp$inline_8253$$,$APP.$cljs$cst$1511$height$$);$JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$,
$APP.$cljs$cst$1791$proportion$$,$map__48785$jscomp$inline_8252_width$jscomp$inline_8254$$/$height$jscomp$inline_8255_map__48785__$1$jscomp$inline_8253$$)}return $JSCompiler_temp$jscomp$1485_shape$jscomp$737_shape$jscomp$inline_8251$$}))});return new $app$main$data$workspace$set_shape_proportion_lock_70353$$($id$jscomp$733$$,$lock$jscomp$10$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$shape_layout$reorder_layout_track$$=function($ids$jscomp$220$$,$type$jscomp$517$$,$from_index$jscomp$7$$,$to_index$jscomp$11$$,$move_content_QMARK_$jscomp$3$$){typeof $app$main$data$workspace$shape_layout$reorder_layout_track_69720$$==="undefined"&&($app$main$data$workspace$shape_layout$reorder_layout_track_69720$$=function($ids$jscomp$221$$,$type$jscomp$518$$,$from_index$jscomp$8$$,$to_index$jscomp$12$$,$move_content_QMARK_$jscomp$4$$,$meta69721$$){this.ids=$ids$jscomp$221$$;
this.type=$type$jscomp$518$$;this.$from_index$=$from_index$jscomp$8$$;this.$to_index$=$to_index$jscomp$12$$;this.$move_content_QMARK_$=$move_content_QMARK_$jscomp$4$$;this.$meta69721$=$meta69721$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4257$app_DOT_main_DOT_data_DOT_workspace_DOT_shape_layout_SLASH_reorder_layout_track$$},$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69722$$,$meta69721__$1$$){return new $app$main$data$workspace$shape_layout$reorder_layout_track_69720$$(this.ids,this.type,this.$from_index$,this.$to_index$,this.$move_content_QMARK_$,$meta69721__$1$$)},$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69721$},$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$shape_layout$reorder_layout_track_69720$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$5814$$=this,$undo_id$jscomp$49$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$49$$),$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$5814$$.ids,
function($shape$jscomp$716$$){var $G__69725_G__69725__$1$$=$self__$jscomp$5814$$.type;$G__69725_G__69725__$1$$=$G__69725_G__69725__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__69725_G__69725__$1$$.$fqn$:null;switch($G__69725_G__69725__$1$$){case "row":return $app$common$types$shape$layout$reorder_grid_track$$($shape$jscomp$716$$,$self__$jscomp$5814$$.$from_index$,$self__$jscomp$5814$$.$to_index$,$self__$jscomp$5814$$.$move_content_QMARK_$,$APP.$cljs$cst$1678$layout_grid_rows$$,$APP.$cljs$cst$1640$row$$);
case "column":return $app$common$types$shape$layout$reorder_grid_track$$($shape$jscomp$716$$,$self__$jscomp$5814$$.$from_index$,$self__$jscomp$5814$$.$to_index$,$self__$jscomp$5814$$.$move_content_QMARK_$,$APP.$cljs$cst$1679$layout_grid_columns$$,$APP.$cljs$cst$216$column$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__69725_G__69725__$1$$)].join(""));}}),$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,$self__$jscomp$5814$$.ids],null)),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$49$$))});return new $app$main$data$workspace$shape_layout$reorder_layout_track_69720$$($ids$jscomp$220$$,$type$jscomp$517$$,$from_index$jscomp$7$$,$to_index$jscomp$11$$,$move_content_QMARK_$jscomp$3$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$variants$combine_selected_as_variants$$=function($options$jscomp$578$$){typeof $app$main$data$workspace$variants$combine_selected_as_variants_70103$$==="undefined"&&($app$main$data$workspace$variants$combine_selected_as_variants_70103$$=function($options$jscomp$579$$,$meta70104$$){this.options=$options$jscomp$579$$;this.$meta70104$=$meta70104$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4288$app_DOT_main_DOT_data_DOT_workspace_DOT_variants_SLASH_combine_selected_as_variants$$},$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_70105$$,$meta70104__$1$$){return new $app$main$data$workspace$variants$combine_selected_as_variants_70103$$(this.options,
$meta70104__$1$$)},$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta70104$},$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$variants$combine_selected_as_variants_70103$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2420_selected$jscomp$90$$,$state$jscomp$785$$){$_$jscomp$2420_selected$jscomp$90$$=
$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$785$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$variants$combine_as_variants$$($_$jscomp$2420_selected$jscomp$90$$,this.options))});return new $app$main$data$workspace$variants$combine_selected_as_variants_70103$$($options$jscomp$578$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$finish_move_overlay_pos$$=function($index$jscomp$343$$,$frame_pos$jscomp$3$$,$offset$jscomp$173$$){typeof $app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$==="undefined"&&($app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$=function($index$jscomp$344$$,$frame_pos$jscomp$4$$,$offset$jscomp$174$$,$meta68744$$){this.index=$index$jscomp$344$$;this.$frame_pos$=$frame_pos$jscomp$4$$;this.offset=$offset$jscomp$174$$;this.$meta68744$=
$meta68744$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4198$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_finish_move_overlay_pos$$},$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68745$$,$meta68744__$1$$){return new $app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$(this.index,this.$frame_pos$,this.offset,$meta68744__$1$$)},$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68744$},$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2340$$,$state$jscomp$723$$){return $APP.$app$common$data$dissoc_in$$($APP.$app$common$data$dissoc_in$$($state$jscomp$723$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4195$move_overlay_to$$],null)),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4196$move_overlay_index$$],null))},
$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$,$shape$jscomp$703_state$jscomp$724$$){$_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);
var $overlay_pos$jscomp$1$$=$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$,this.$frame_pos$),this.offset);$_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$703_state$jscomp$724$$);$_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$=
$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$703_state$jscomp$724$$,$_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$);$shape$jscomp$703_state$jscomp$724$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$,$APP.$cljs$core$first$$($APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$703_state$jscomp$724$$)));
$_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$=$APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$703_state$jscomp$724$$);var $new_interactions$jscomp$1$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($_$jscomp$2341_interactions$jscomp$13_objects$jscomp$596_page_id$jscomp$207_pos$jscomp$114$$,this.index,function($p1__68740_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($p1__68740_SHARP_$$,
$APP.$cljs$cst$1956$overlay_pos_type$$,$APP.$cljs$cst$1657$manual$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1955$overlay_position$$,$overlay_pos$jscomp$1$$]))});return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$703_state$jscomp$724$$)],
null),function($p1__68741_SHARP_$$){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__68741_SHARP_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2036$interactions$$,$new_interactions$jscomp$1$$],null)]))}))});return new $app$main$data$workspace$interactions$finish_move_overlay_pos_68743$$($index$jscomp$343$$,$frame_pos$jscomp$3$$,$offset$jscomp$173$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$start_move_overlay_pos$$=function($index$jscomp$341$$){typeof $app$main$data$workspace$interactions$start_move_overlay_pos_68729$$==="undefined"&&($app$main$data$workspace$interactions$start_move_overlay_pos_68729$$=function($index$jscomp$342$$,$meta68730$$){this.index=$index$jscomp$342$$;this.$meta68730$=$meta68730$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4194$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_start_move_overlay_pos$$},$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68731$$,$meta68730__$1$$){return new $app$main$data$workspace$interactions$start_move_overlay_pos_68729$$(this.index,
$meta68730__$1$$)},$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68730$},$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2337$$,$state$jscomp$720$$){return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$720$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4195$move_overlay_to$$],null),null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4196$move_overlay_index$$],null),this.index)},$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$interactions$start_move_overlay_pos_68729$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2338_initial_pos$jscomp$3$$,$overlay_pos_state$jscomp$721$$,$stopper$jscomp$32_stream$jscomp$82$$){$_$jscomp$2338_initial_pos$jscomp$3$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);var $objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($overlay_pos_state$jscomp$721$$);
$stopper$jscomp$32_stream$jscomp$82$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stopper$jscomp$32_stream$jscomp$82$$,null);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$))){$objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($overlay_pos_state$jscomp$721$$);
$objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_state$jscomp$721$$,$objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$);var $shape$jscomp$702$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$,$APP.$cljs$core$first$$($APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($overlay_pos_state$jscomp$721$$)));
$overlay_pos_state$jscomp$721$$=$APP.$cljs$cst$1955$overlay_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$702$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2036$interactions$$,this.index],null)));$objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$=$APP.$app$common$files$helpers$get_frame$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$,
$shape$jscomp$702$$);var $frame_pos$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$595_orig_frame$jscomp$1_page_id$jscomp$206_selected$jscomp$79$$)),$offset$jscomp$170$$=$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($_$jscomp$2338_initial_pos$jscomp$3$$,
$overlay_pos_state$jscomp$721$$),$frame_pos$$);return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$map$$(function($p1__68727_SHARP_$$){return $app$main$data$workspace$interactions$move_overlay_pos$$.$cljs$core$IFn$_invoke$arity$3$?$app$main$data$workspace$interactions$move_overlay_pos$$.$cljs$core$IFn$_invoke$arity$3$($p1__68727_SHARP_$$,$frame_pos$$,$offset$jscomp$170$$):$app$main$data$workspace$interactions$move_overlay_pos$$($p1__68727_SHARP_$$,$frame_pos$$,$offset$jscomp$170$$)},$APP.$beicon$v2$core$take_until$$($stopper$jscomp$32_stream$jscomp$82$$,
$APP.$app$main$streams$mouse_position$$)),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$interactions$finish_move_overlay_pos$$.$cljs$core$IFn$_invoke$arity$3$?$app$main$data$workspace$interactions$finish_move_overlay_pos$$.$cljs$core$IFn$_invoke$arity$3$(this.index,$frame_pos$$,$offset$jscomp$170$$):$app$main$data$workspace$interactions$finish_move_overlay_pos$$(this.index,$frame_pos$$,$offset$jscomp$170$$)))}return null});return new $app$main$data$workspace$interactions$start_move_overlay_pos_68729$$($index$jscomp$341$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$remove_all_interactions_nav_to$$=function($frame_id$jscomp$99$$){typeof $app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$==="undefined"&&($app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$=function($frame_id$jscomp$100$$,$meta68702$$){this.$frame_id$=$frame_id$jscomp$100$$;this.$meta68702$=$meta68702$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4187$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_remove_all_interactions_nav_to$$},$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68703$$,$meta68702__$1$$){return new $app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$(this.$frame_id$,
$meta68702__$1$$)},$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68702$},$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2331_page_id$jscomp$205$$,$objects$jscomp$593_state$jscomp$713$$){var $self__$jscomp$5609$$=
this;$_$jscomp$2331_page_id$jscomp$205$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$593_state$jscomp$713$$);$objects$jscomp$593_state$jscomp$713$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$593_state$jscomp$713$$,$_$jscomp$2331_page_id$jscomp$205$$);return $APP.$beicon$v2$core$from$$($APP.$app$common$data$vec_without_nils$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($shape$jscomp$700$$){var $interactions$jscomp$12$$=
$APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$700$$),$new_interactions$$=$app$common$types$shape$interactions$remove_interactions$$(function($p1__68700_SHARP_$$){var $frame_id$jscomp$inline_8258$$=$self__$jscomp$5609$$.$frame_id$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__68700_SHARP_$$),$APP.$cljs$cst$1926$navigate$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__68700_SHARP_$$),
$frame_id$jscomp$inline_8258$$)},$interactions$jscomp$12$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($interactions$jscomp$12$$),$APP.$cljs$core$count$$($new_interactions$$))?$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$700$$)],null),function($shape__$1$jscomp$54$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape__$1$jscomp$54$$,
$APP.$cljs$cst$2036$interactions$$,$new_interactions$$)}):null},$APP.$cljs$core$vals$$($objects$jscomp$593_state$jscomp$713$$))))});return new $app$main$data$workspace$interactions$remove_all_interactions_nav_to_68701$$($frame_id$jscomp$99$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$add_new_interaction$cljs$0core$0IFn$0_invoke$0arity$02$$=function($shape$jscomp$692$$,$destination$jscomp$11$$){typeof $app$main$data$workspace$interactions$add_new_interaction_68685$$==="undefined"&&($app$main$data$workspace$interactions$add_new_interaction_68685$$=function($shape$jscomp$693$$,$destination$jscomp$12$$,$meta68686$$){this.shape=$shape$jscomp$693$$;this.destination=$destination$jscomp$12$$;this.$meta68686$=$meta68686$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4184$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_add_new_interaction$$},$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68687$$,$meta68686__$1$$){return new $app$main$data$workspace$interactions$add_new_interaction_68685$$(this.shape,this.destination,$meta68686__$1$$)},$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68686$},$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$add_new_interaction_68685$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$,$objects$jscomp$592_state$jscomp$712$$){var $self__$jscomp$5597$$=this;$_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$592_state$jscomp$712$$);var $flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$592_state$jscomp$712$$,$_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$);
$objects$jscomp$592_state$jscomp$712$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$,$APP.$cljs$cst$1615$objects$$);$_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$=$app$common$files$helpers$get_root_frame$$($objects$jscomp$592_state$jscomp$712$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5597$$.shape));var $first_QMARK_$jscomp$1$$=$cljs$core$not_any_QMARK_$$(function($p1__68682_SHARP_$$){return $APP.$cljs$core$seq$$($APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($p1__68682_SHARP_$$))},
$APP.$cljs$core$vals$$($objects$jscomp$592_state$jscomp$712$$));$flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$,$APP.$cljs$cst$2041$flows$$);$flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$=$APP.$app$common$types$page$get_frame_flow$$($flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$));return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$5597$$.shape)],null),function($shape__$1$jscomp$51$$){var $new_interaction$jscomp$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($app$common$types$shape$interactions$set_destination$$($APP.$app$common$types$shape$interactions$default_interaction$$,$self__$jscomp$5597$$.destination),$APP.$cljs$cst$1959$position_relative_to$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$51$$));
return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($shape__$1$jscomp$51$$,$APP.$cljs$cst$2036$interactions$$,$APP.$app$common$types$shape$interactions$add_interaction$$,$new_interaction$jscomp$1$$)})),$APP.$cljs$core$truth_$$($self__$jscomp$5597$$.destination)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5597$$.destination],
null),$APP.$app$common$logic$shapes$show_in_viewer$$)):null,$APP.$cljs$core$not$$($app$main$data$workspace$interactions$connected_frame_QMARK_$$($objects$jscomp$592_state$jscomp$712$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$)))&&$flow$jscomp$4_flows$jscomp$5_page$jscomp$89$$==null?(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$interactions$add_flow$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2328_frame$jscomp$38_page_id$jscomp$202$$))):
null,$first_QMARK_$jscomp$1$$?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-prototype"],null))):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-prototype-interaction"],null))))});return new $app$main$data$workspace$interactions$add_new_interaction_68685$$($shape$jscomp$692$$,
$destination$jscomp$11$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$finish_edit_interaction$$=function($index$jscomp$339$$,$initial_pos$jscomp$1$$){typeof $app$main$data$workspace$interactions$finish_edit_interaction_68723$$==="undefined"&&($app$main$data$workspace$interactions$finish_edit_interaction_68723$$=function($index$jscomp$340$$,$initial_pos$jscomp$2$$,$meta68724$$){this.index=$index$jscomp$340$$;this.$initial_pos$=$initial_pos$jscomp$2$$;this.$meta68724$=$meta68724$$;this.$cljs$lang$protocol_mask$partition0$$=393216;
this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4193$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_finish_edit_interaction$$},$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68725$$,$meta68724__$1$$){return new $app$main$data$workspace$interactions$finish_edit_interaction_68723$$(this.index,this.$initial_pos$,$meta68724__$1$$)},$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68724$},$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2335$$,$state$jscomp$718$$){return $APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$718$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4189$editing_interaction_index$$],null),null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4191$draw_interaction_to$$],
null),null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4192$draw_interaction_to_frame$$],null),null)},$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$finish_edit_interaction_68723$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2336_position$jscomp$148$$,
$shape$jscomp$701_state$jscomp$719$$){function $change_interaction$$($G__68726__$1_interaction$jscomp$41$$){$G__68726__$1_interaction$jscomp$41$$=$APP.$cljs$core$not$$($APP.$app$common$types$shape$interactions$has_destination$$($G__68726__$1_interaction$jscomp$41$$))?$app$common$types$shape$interactions$set_action_type$$($G__68726__$1_interaction$jscomp$41$$,$APP.$cljs$cst$1926$navigate$$):$G__68726__$1_interaction$jscomp$41$$;return $app$common$types$shape$interactions$set_destination$$($G__68726__$1_interaction$jscomp$41$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_frame$jscomp$7$$))}$_$jscomp$2336_position$jscomp$148$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);var $target_frame$jscomp$7$$=$app$main$data$workspace$interactions$get_target_frame$$($shape$jscomp$701_state$jscomp$719$$,$_$jscomp$2336_position$jscomp$148$$),$shape_id$jscomp$113_undo_id$jscomp$40$$=$APP.$cljs$core$first$$($APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$701_state$jscomp$719$$));
$shape$jscomp$701_state$jscomp$719$$=$APP.$app$main$data$helpers$lookup_shape$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$701_state$jscomp$719$$,$shape_id$jscomp$113_undo_id$jscomp$40$$);$shape_id$jscomp$113_undo_id$jscomp$40$$=Symbol();return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($shape_id$jscomp$113_undo_id$jscomp$40$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1859$hide_in_viewer$$.$cljs$core$IFn$_invoke$arity$1$($target_frame$jscomp$7$$))?
$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_frame$jscomp$7$$)],null),function($p1__68722_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__68722_SHARP_$$,$APP.$cljs$cst$1859$hide_in_viewer$$)}):null,$shape$jscomp$701_state$jscomp$719$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2336_position$jscomp$148$$,
this.$initial_pos$)||this.index==null&&$target_frame$jscomp$7$$==null?null:this.index!=null&&$target_frame$jscomp$7$$==null?$APP.$app$main$data$workspace$interactions$remove_interaction$cljs$0core$0IFn$0_invoke$0arity$03$$($shape$jscomp$701_state$jscomp$719$$,this.index):this.index==null?$app$main$data$workspace$interactions$add_new_interaction$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$701_state$jscomp$719$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_frame$jscomp$7$$)):
$APP.$app$main$data$workspace$interactions$update_interaction$cljs$0core$0IFn$0_invoke$0arity$04$$($shape$jscomp$701_state$jscomp$719$$,this.index,$change_interaction$$,null),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($shape_id$jscomp$113_undo_id$jscomp$40$$))});return new $app$main$data$workspace$interactions$finish_edit_interaction_68723$$($index$jscomp$339$$,$initial_pos$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$interactions$start_edit_interaction$$=function($index$jscomp$337$$){typeof $app$main$data$workspace$interactions$start_edit_interaction_68705$$==="undefined"&&($app$main$data$workspace$interactions$start_edit_interaction_68705$$=function($index$jscomp$338$$,$meta68706$$){this.index=$index$jscomp$338$$;this.$meta68706$=$meta68706$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4188$app_DOT_main_DOT_data_DOT_workspace_DOT_interactions_SLASH_start_edit_interaction$$},$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68707$$,$meta68706__$1$$){return new $app$main$data$workspace$interactions$start_edit_interaction_68705$$(this.index,
$meta68706__$1$$)},$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68706$},$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2332$$,$state$jscomp$714$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$714$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$4189$editing_interaction_index$$],null),this.index)},$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$interactions$start_edit_interaction_68705$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2333_selected$jscomp$78$$,
$state$jscomp$715$$,$stopper$jscomp$31_stream$jscomp$81$$){var $initial_pos$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);$_$jscomp$2333_selected$jscomp$78$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($state$jscomp$715$$);$stopper$jscomp$31_stream$jscomp$81$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stopper$jscomp$31_stream$jscomp$81$$,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($_$jscomp$2333_selected$jscomp$78$$))?
$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$map$$(function($p1__68704_SHARP_$$){return $app$main$data$workspace$interactions$move_edit_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$app$main$data$workspace$interactions$move_edit_interaction$$.$cljs$core$IFn$_invoke$arity$2$($initial_pos$$,$p1__68704_SHARP_$$):$app$main$data$workspace$interactions$move_edit_interaction$$($initial_pos$$,$p1__68704_SHARP_$$)},$APP.$beicon$v2$core$take_until$$($stopper$jscomp$31_stream$jscomp$81$$,$APP.$app$main$streams$mouse_position$$)),
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$interactions$finish_edit_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$app$main$data$workspace$interactions$finish_edit_interaction$$.$cljs$core$IFn$_invoke$arity$2$(this.index,$initial_pos$$):$app$main$data$workspace$interactions$finish_edit_interaction$$(this.index,$initial_pos$$))):null});return new $app$main$data$workspace$interactions$start_edit_interaction_68705$$($index$jscomp$337$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$create_node_at_position$$=function($params$jscomp$282$$){typeof $app$main$data$workspace$path$edition$create_node_at_position_68384$$==="undefined"&&($app$main$data$workspace$path$edition$create_node_at_position_68384$$=function($params$jscomp$283$$,$meta68385$$){this.params=$params$jscomp$283$$;this.$meta68385$=$meta68385$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4147$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_create_node_at_position$$},$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68386$$,$meta68385__$1$$){return new $app$main$data$workspace$path$edition$create_node_at_position_68384$$(this.params,
$meta68385__$1$$)},$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68385$},$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$create_node_at_position_68384$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2285_id$jscomp$684$$,$state$jscomp$680$$){$_$jscomp$2285_id$jscomp$684$$=
$APP.$app$main$data$workspace$path$state$get_path_id$$($state$jscomp$680$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$_$jscomp$2285_id$jscomp$684$$],null),$APP.$app$common$types$path$convert_to_path$$),$app$main$data$workspace$path$edition$split_segments$$($_$jscomp$2285_id$jscomp$684$$,this.params))});return new $app$main$data$workspace$path$edition$create_node_at_position_68384$$($params$jscomp$282$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$start_move_handler$$=function($index$jscomp$329$$,$prefix$jscomp$59$$){typeof $app$main$data$workspace$path$edition$start_move_handler_68344$$==="undefined"&&($app$main$data$workspace$path$edition$start_move_handler_68344$$=function($index$jscomp$330$$,$prefix$jscomp$60$$,$meta68345$$){this.index=$index$jscomp$330$$;this.prefix=$prefix$jscomp$60$$;this.$meta68345$=$meta68345$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4143$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_start_move_handler$$},$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68346$$,
$meta68345__$1$$){return new $app$main$data$workspace$path$edition$start_move_handler_68344$$(this.index,this.prefix,$meta68345__$1$$)},$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68345$},$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$start_move_handler_68344$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,$points$jscomp$93_state$jscomp$676$$,$stream$jscomp$75$$){var $self__$jscomp$5440$$=this,$id$jscomp$677$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($points$jscomp$93_state$jscomp$676$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2161$edition$$);$_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$=$APP.$app$common$data$prefix_keyword$$($self__$jscomp$5440$$.prefix,
$APP.$cljs$cst$1499$x$$);var $cy$jscomp$21_op_idx$jscomp$1$$=$APP.$app$common$data$prefix_keyword$$($self__$jscomp$5440$$.prefix,$APP.$cljs$cst$1500$y$$),$modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($points$jscomp$93_state$jscomp$676$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),
$id$jscomp$677$$),$APP.$cljs$cst$1909$content_modifiers$$),$start_delta_x$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$,$self__$jscomp$5440$$.index),$_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,0),$start_delta_y$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$,
$self__$jscomp$5440$$.index),$cy$jscomp$21_op_idx$jscomp$1$$,0);$_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$=$APP.$app$main$data$workspace$path$state$get_path$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($points$jscomp$93_state$jscomp$676$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$]));$points$jscomp$93_state$jscomp$676$$=$APP.$app$common$types$path$get_points$$($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$);
var $point$jscomp$74$$=$APP.$app$common$types$path$helpers$segment__GT_point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$5440$$.prefix,$APP.$cljs$cst$1805$c1$$)?$self__$jscomp$5440$$.index-1:$self__$jscomp$5440$$.index)),$handler$jscomp$40$$=$app$common$types$path$get_handler$$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,
$self__$jscomp$5440$$.index),$self__$jscomp$5440$$.prefix);$modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$=$APP.$app$common$types$path$opposite_index$$($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,$self__$jscomp$5440$$.index,$self__$jscomp$5440$$.prefix);$cy$jscomp$21_op_idx$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$,0,null);$modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$,
1,null);$_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$=$APP.$app$common$types$path$get_handler_point$$($_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,$cy$jscomp$21_op_idx$jscomp$1$$,$modifiers$jscomp$102_op_prefix$jscomp$1_vec__68348$$);return $APP.$app$main$data$workspace$path$streams$drag_stream$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$677$$],null),$APP.$app$common$types$path$convert_to_path$$)),$APP.$beicon$v2$core$take_until$$($APP.$beicon$v2$core$merge$$($APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($stream$jscomp$75$$,null),$APP.$beicon$v2$core$filter$$($APP.$app$main$data$workspace$path$streams$finish_edition_QMARK_$$,$stream$jscomp$75$$)),$APP.$beicon$v2$core$map$$(function($alt_QMARK_$jscomp$12_p__68358$$){var $map__68359__$1_shift_QMARK_$jscomp$28$$=
$APP.$cljs$core$__destructure_map$$($alt_QMARK_$jscomp$12_p__68358$$),$G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68359__$1_shift_QMARK_$jscomp$28$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$437$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68359__$1_shift_QMARK_$jscomp$28$$,$APP.$cljs$cst$1500$y$$);$alt_QMARK_$jscomp$12_p__68358$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68359__$1_shift_QMARK_$jscomp$28$$,
$APP.$cljs$cst$4088$alt_QMARK_$$);$map__68359__$1_shift_QMARK_$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__68359__$1_shift_QMARK_$jscomp$28$$,$APP.$cljs$cst$4087$shift_QMARK_$$);$G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$,$y$jscomp$437$$);$G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$=$APP.$cljs$core$truth_$$($map__68359__$1_shift_QMARK_$jscomp$28$$)?
$APP.$app$common$types$path$helpers$position_fixed_angle$$($G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$,$point$jscomp$74$$):$G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$;return $app$main$data$workspace$path$edition$modify_handler$$($id$jscomp$677$$,$self__$jscomp$5440$$.index,$self__$jscomp$5440$$.prefix,$start_delta_x$$+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$)-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($handler$jscomp$40$$)),
$start_delta_y$$+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($G__68360$jscomp$inline_8260_pos$jscomp$111_x$jscomp$1203$$)-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($handler$jscomp$40$$)),$APP.$cljs$core$not$$($alt_QMARK_$jscomp$12_p__68358$$))},$app$main$data$workspace$path$streams$move_handler_stream$$($handler$jscomp$40$$,$point$jscomp$74$$,$handler$jscomp$40$$,$_$jscomp$2278_content$jscomp$205_cx$jscomp$20_opposite$jscomp$4$$,$points$jscomp$93_state$jscomp$676$$))),$APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$path$edition$apply_content_modifiers$$()))))});
return new $app$main$data$workspace$path$edition$start_move_handler_68344$$($index$jscomp$329$$,$prefix$jscomp$59$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$edition$start_move_path_point$$=function($position$jscomp$138$$,$shift_QMARK_$jscomp$24$$){typeof $app$main$data$workspace$path$edition$start_move_path_point_68296$$==="undefined"&&($app$main$data$workspace$path$edition$start_move_path_point_68296$$=function($position$jscomp$139$$,$shift_QMARK_$jscomp$25$$,$meta68297$$){this.position=$position$jscomp$139$$;this.$shift_QMARK_$=$shift_QMARK_$jscomp$25$$;this.$meta68297$=$meta68297$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4138$app_DOT_main_DOT_data_DOT_workspace_DOT_path_DOT_edition_SLASH_start_move_path_point$$},$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68298$$,$meta68297__$1$$){return new $app$main$data$workspace$path$edition$start_move_path_point_68296$$(this.position,this.$shift_QMARK_$,$meta68297__$1$$)},$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68297$},$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$path$edition$start_move_path_point_68296$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$,$JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$){$JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2161$edition$$);$JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$1908$edit_path$$),$JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$),$APP.$cljs$cst$4125$selected_points$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$);
var $JSCompiler_temp_const$jscomp$1644_selected_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$,this.position);$JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$=$APP.$app$main$data$workspace$path$streams$drag_stream$cljs$0core$0IFn$0_invoke$0arity$02$$;$JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$=$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$],null),$APP.$app$common$types$path$convert_to_path$$);$JSCompiler_temp_const$jscomp$1644_selected_QMARK_$$=$JSCompiler_temp_const$jscomp$1644_selected_QMARK_$$?null:$app$main$data$workspace$path$selection$select_node$$(this.position,this.$shift_QMARK_$);var $G__68304$jscomp$inline_8262_JSCompiler_inline_result$jscomp$1647$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);
$G__68304$jscomp$inline_8262_JSCompiler_inline_result$jscomp$1647$$=$app$main$data$workspace$path$edition$drag_selected_points$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$data$workspace$path$edition$drag_selected_points$$.$cljs$core$IFn$_invoke$arity$1$($G__68304$jscomp$inline_8262_JSCompiler_inline_result$jscomp$1647$$):$app$main$data$workspace$path$edition$drag_selected_points$$($G__68304$jscomp$inline_8262_JSCompiler_inline_result$jscomp$1647$$);return $JSCompiler_temp_const$jscomp$1646_selected_points$jscomp$4_state$jscomp$671$$((0,$APP.$beicon$v2$core$of$$)($JSCompiler_temp_const$jscomp$1645__$jscomp$2272_id$jscomp$672$$,
$JSCompiler_temp_const$jscomp$1644_selected_QMARK_$$,$G__68304$jscomp$inline_8262_JSCompiler_inline_result$jscomp$1647$$),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$path$selection$select_node$$(this.position,this.$shift_QMARK_$)))});return new $app$main$data$workspace$path$edition$start_move_path_point_68296$$($position$jscomp$138$$,$shift_QMARK_$jscomp$24$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$path$shortcuts$get_tooltip$$=function($shortcut$jscomp$6$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$path$shortcuts$shortcuts$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shortcut$jscomp$6$$,$APP.$cljs$cst$2630$tooltip$$],null))};
$app$main$data$workspace$colors$reorder_shadows$$=function($ids$jscomp$192$$,$from_pos$jscomp$4$$,$to_space_between_pos$jscomp$4$$){typeof $app$main$data$workspace$colors$reorder_shadow_69404$$==="undefined"&&($app$main$data$workspace$colors$reorder_shadow_69404$$=function($ids$jscomp$193$$,$from_pos$jscomp$5$$,$to_space_between_pos$jscomp$5$$,$meta69405$$){this.ids=$ids$jscomp$193$$;this.$from_pos$=$from_pos$jscomp$5$$;this.$to_space_between_pos$=$to_space_between_pos$jscomp$5$$;this.$meta69405$=
$meta69405$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4036$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_reorder_shadow$$},$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69406$$,$meta69405__$1$$){return new $app$main$data$workspace$colors$reorder_shadow_69404$$(this.ids,this.$from_pos$,this.$to_space_between_pos$,$meta69405__$1$$)},$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69405$},$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_shadow_69404$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function(){var $self__$jscomp$5131$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$5131$$.ids,function($p1__69402_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__69402_SHARP_$$,$APP.$cljs$cst$1638$shadow$$,$app$common$data$reorder$$,$self__$jscomp$5131$$.$from_pos$,$self__$jscomp$5131$$.$to_space_between_pos$)}))});return new $app$main$data$workspace$colors$reorder_shadow_69404$$($ids$jscomp$192$$,
$from_pos$jscomp$4$$,$to_space_between_pos$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$add_shadow$$=function($ids$jscomp$184$$){var $shadow__$1$jscomp$10$$=new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$1890$drop_shadow$$,$APP.$cljs$cst$1284$color$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,"#000000",$APP.$cljs$cst$1718$opacity$$,.2],null),$APP.$cljs$cst$1634$offset_x$$,4,$APP.$cljs$cst$1635$offset_y$$,4,$APP.$cljs$cst$1637$blur$$,
4,$APP.$cljs$cst$1636$spread$$,0,$APP.$cljs$cst$1604$hidden$$,!1],null);typeof $app$main$data$workspace$colors$add_shadow_69380$$==="undefined"&&($app$main$data$workspace$colors$add_shadow_69380$$=function($ids$jscomp$185$$,$shadow$jscomp$1$$,$meta69381$$){this.ids=$ids$jscomp$185$$;this.shadow=$shadow$jscomp$1$$;this.$meta69381$=$meta69381$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4032$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_add_shadow$$},$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69382$$,$meta69381__$1$$){return new $app$main$data$workspace$colors$add_shadow_69380$$(this.ids,this.shadow,$meta69381__$1$$)},$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69381$},$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$add_shadow_69380$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$5115$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$5115$$.ids,function($shape$jscomp$670$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$670$$,
$APP.$cljs$cst$1638$shadow$$,function($p1__69379_SHARP_$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$5115$$.shadow],null),$p1__69379_SHARP_$$)})}))});return new $app$main$data$workspace$colors$add_shadow_69380$$($ids$jscomp$184$$,$shadow__$1$jscomp$10$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$change_hide_fill_on_export$$=function($ids$jscomp$174$$,$hide_fill_on_export$$){typeof $app$main$data$workspace$colors$change_hide_fill_on_export_69356$$==="undefined"&&($app$main$data$workspace$colors$change_hide_fill_on_export_69356$$=function($ids$jscomp$175$$,$hide_fill_on_export$jscomp$1$$,$meta69357$$){this.ids=$ids$jscomp$175$$;this.$hide_fill_on_export$=$hide_fill_on_export$jscomp$1$$;this.$meta69357$=$meta69357$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4028$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_change_hide_fill_on_export$$},$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69358$$,$meta69357__$1$$){return new $app$main$data$workspace$colors$change_hide_fill_on_export_69356$$(this.ids,this.$hide_fill_on_export$,$meta69357__$1$$)},$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69357$},$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$change_hide_fill_on_export_69356$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2180_page_id$jscomp$182$$,$shape_ids$jscomp$14_state$jscomp$586$$){$_$jscomp$2180_page_id$jscomp$182$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_ids$jscomp$14_state$jscomp$586$$);var $objects$jscomp$575$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($shape_ids$jscomp$14_state$jscomp$586$$,$_$jscomp$2180_page_id$jscomp$182$$);$shape_ids$jscomp$14_state$jscomp$586$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$complement$$(function($p1__69355_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,
$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$575$$,$p1__69355_SHARP_$$)))}),this.ids);var $attrs$jscomp$132$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1858$hide_fill_on_export$$,this.$hide_fill_on_export$],null);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($shape_ids$jscomp$14_state$jscomp$586$$,function($shape$jscomp$666$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$666$$),
$APP.$cljs$cst$1590$frame$$)?$APP.$app$common$data$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$shape$jscomp$666$$,$attrs$jscomp$132$$])):$shape$jscomp$666$$}))});return new $app$main$data$workspace$colors$change_hide_fill_on_export_69356$$($ids$jscomp$174$$,$hide_fill_on_export$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$colors$reorder_fills$$=function($ids$jscomp$154$$,$from_pos$jscomp$2$$,$to_space_between_pos$jscomp$2$$){typeof $app$main$data$workspace$colors$reorder_fills_69253$$==="undefined"&&($app$main$data$workspace$colors$reorder_fills_69253$$=function($ids$jscomp$155$$,$from_pos$jscomp$3$$,$to_space_between_pos$jscomp$3$$,$meta69254$$){this.ids=$ids$jscomp$155$$;this.$from_pos$=$from_pos$jscomp$3$$;this.$to_space_between_pos$=$to_space_between_pos$jscomp$3$$;this.$meta69254$=$meta69254$$;
this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4021$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_reorder_fills$$},$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_69255$$,$meta69254__$1$$){return new $app$main$data$workspace$colors$reorder_fills_69253$$(this.ids,this.$from_pos$,this.$to_space_between_pos$,$meta69254__$1$$)},$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69254$},$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$colors$reorder_fills_69253$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2173_objects$jscomp$574_text_ids$jscomp$3$$,$shape_ids$jscomp$13_state$jscomp$579_vec__69266$$){function $transform_attrs$jscomp$1$$($object$jscomp$31$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$6$($object$jscomp$31$$,$APP.$cljs$cst$1618$fills$$,$APP.$app$common$types$fills$update$$,$app$common$data$reorder$$,$self__$jscomp$5071$$.$from_pos$,$self__$jscomp$5071$$.$to_space_between_pos$)}var $self__$jscomp$5071$$=this;$_$jscomp$2173_objects$jscomp$574_text_ids$jscomp$3$$=
$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($shape_ids$jscomp$13_state$jscomp$579_vec__69266$$);$shape_ids$jscomp$13_state$jscomp$579_vec__69266$$=$app$main$data$helpers$split_text_shapes$$($_$jscomp$2173_objects$jscomp$574_text_ids$jscomp$3$$,$self__$jscomp$5071$$.ids);$_$jscomp$2173_objects$jscomp$574_text_ids$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($shape_ids$jscomp$13_state$jscomp$579_vec__69266$$,0,null);$shape_ids$jscomp$13_state$jscomp$579_vec__69266$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($shape_ids$jscomp$13_state$jscomp$579_vec__69266$$,1,null);return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$from$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__69246_SHARP_$$){return $APP.$app$main$data$workspace$texts$update_text_with_function$cljs$0core$0IFn$0_invoke$0arity$03$$($p1__69246_SHARP_$$,$transform_attrs$jscomp$1$$,null)},$_$jscomp$2173_objects$jscomp$574_text_ids$jscomp$3$$)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($shape_ids$jscomp$13_state$jscomp$579_vec__69266$$,
$transform_attrs$jscomp$1$$)))});return new $app$main$data$workspace$colors$reorder_fills_69253$$($ids$jscomp$154$$,$from_pos$jscomp$2$$,$to_space_between_pos$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$add_typography$$=function($file_id$jscomp$179$$){typeof $app$main$data$workspace$texts$add_typography_68935$$==="undefined"&&($app$main$data$workspace$texts$add_typography_68935$$=function($file_id$jscomp$180$$,$meta68936$$){this.$file_id$=$file_id$jscomp$180$$;this.$meta68936$=$meta68936$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$add_typography_68935$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$add_typography_68935$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3873$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_add_typography$$},$app$main$data$workspace$texts$add_typography_68935$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68937$$,$meta68936__$1$$){return new $app$main$data$workspace$texts$add_typography_68935$$(this.$file_id$,$meta68936__$1$$)},$app$main$data$workspace$texts$add_typography_68935$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68936$},$app$main$data$workspace$texts$add_typography_68935$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$add_typography_68935$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$,$multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$){$_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$=$APP.$app$main$data$helpers$lookup_selected$cljs$0core$0IFn$0_invoke$0arity$01$$($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$);
var $objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$);$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$)),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$files$helpers$text_shape_QMARK_$$));
var $shapes$jscomp$109_typ_values__$1$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$,$_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$);$_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$=$APP.$cljs$core$first$$($shapes$jscomp$109_typ_values__$1$jscomp$2$$);$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$=$APP.$app$main$data$workspace$texts$current_text_values$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$3848$editor_state$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$,$APP.$cljs$cst$2184$workspace_editor_state$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$)),$APP.$cljs$cst$1795$shape$$,$_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$,$APP.$cljs$cst$2595$attrs$$,$APP.$app$common$types$text$text_node_attrs$$],
null));$multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$=($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$=1>$APP.$cljs$core$count$$($shapes$jscomp$109_typ_values__$1$jscomp$2$$))?$multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$:$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$_EQ_$$,$APP.$cljs$cst$1600$multiple$$),
$APP.$cljs$core$vals$$($objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$));$shapes$jscomp$109_typ_values__$1$jscomp$2$$=$APP.$cljs$core$select_keys$$($APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$),$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$common$types$text$text_font_attrs$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$text_spacing_attrs$$,
$APP.$app$common$types$text$text_transform_attrs$$])));$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$=$APP.$app$common$uuid$next$$();$shapes$jscomp$109_typ_values__$1$jscomp$2$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($app$main$data$workspace$texts$generate_typography_name$$($APP.$cljs$core$truth_$$($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$)?$APP.$app$common$types$text$default_typography$$:$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$default_typography$$,
$shapes$jscomp$109_typ_values__$1$jscomp$2$$]))),$APP.$cljs$cst$266$id$$,$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$);return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$libraries$add_typography$cljs$0core$0IFn$0_invoke$0arity$02$$($shapes$jscomp$109_typ_values__$1$jscomp$2$$,!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$$,"add-asset-to-library",$APP.$cljs$cst$2502$asset_type$$,"typography"],null))),$APP.$cljs$core$not$$($multiple_QMARK_$jscomp$1_or__5025__auto__$jscomp$inline_8264_state$jscomp$540$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$texts$update_attrs$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2096_selected$jscomp$59_shape$jscomp$578$$),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1740$typography_ref_id$$,
$objects$jscomp$507_typ_id_values$jscomp$72_xform$jscomp$36$$,$APP.$cljs$cst$1626$typography_ref_file$$,this.$file_id$],null))):null)});return new $app$main$data$workspace$texts$add_typography_68935$$($file_id$jscomp$179$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$texts$update_all_attrs$$=function($ids$jscomp$146$$,$attrs$jscomp$127$$){typeof $app$main$data$workspace$texts$update_all_attrs_68914$$==="undefined"&&($app$main$data$workspace$texts$update_all_attrs_68914$$=function($ids$jscomp$147$$,$attrs$jscomp$128$$,$meta68915$$){this.ids=$ids$jscomp$147$$;this.$attrs$=$attrs$jscomp$128$$;this.$meta68915$=$meta68915$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3871$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_all_attrs$$},$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68916$$,$meta68915__$1$$){return new $app$main$data$workspace$texts$update_all_attrs_68914$$(this.ids,this.$attrs$,$meta68915__$1$$)},$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta68915$},$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_all_attrs_68914$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$4877$$=this,$undo_id$jscomp$28$$=Symbol();return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$28$$)),$APP.$beicon$v2$core$map$$(function($p1__68913_SHARP_$$){return $APP.$app$main$data$workspace$texts$update_attrs$$($p1__68913_SHARP_$$,
$self__$jscomp$4877$$.$attrs$)},$APP.$beicon$v2$core$from$$($self__$jscomp$4877$$.ids)),(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$28$$)))});return new $app$main$data$workspace$texts$update_all_attrs_68914$$($ids$jscomp$146$$,$attrs$jscomp$127$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$shortcuts$get_tooltip$$=function($shortcut$jscomp$3$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$shortcuts$shortcuts$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shortcut$jscomp$3$$,$APP.$cljs$cst$2630$tooltip$$],null))};
$app$main$data$workspace$pages$select_frame_tool$$=function($file_id$jscomp$221$$,$page_id$jscomp$211$$){typeof $app$main$data$workspace$pages$select_frame_tool_68788$$==="undefined"&&($app$main$data$workspace$pages$select_frame_tool_68788$$=function($file_id$jscomp$222$$,$page_id$jscomp$212$$,$meta68789$$){this.$file_id$=$file_id$jscomp$222$$;this.$page_id$=$page_id$jscomp$212$$;this.$meta68789$=$meta68789$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4219$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_select_frame_tool$$},$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68790$$,$meta68789__$1$$){return new $app$main$data$workspace$pages$select_frame_tool_68788$$(this.$file_id$,
this.$page_id$,$meta68789__$1$$)},$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68789$},$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$select_frame_tool_68788$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2358_page$jscomp$90$$,$state$jscomp$735$$){$_$jscomp$2358_page$jscomp$90$$=
$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$735$$,this.$file_id$,this.$page_id$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2358_page$jscomp$90$$)))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$drawing$select_for_drawing$$($APP.$cljs$cst$1590$frame$$)):null});return new $app$main$data$workspace$pages$select_frame_tool_68788$$($file_id$jscomp$221$$,
$page_id$jscomp$211$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$pages$initialize_page$$=function($file_id$jscomp$226$$,$page_id$jscomp$216$$){typeof $app$main$data$workspace$pages$initialize_page_68841$$==="undefined"&&($app$main$data$workspace$pages$initialize_page_68841$$=function($file_id$jscomp$227$$,$page_id$jscomp$217$$,$meta68842$$){this.$file_id$=$file_id$jscomp$227$$;this.$page_id$=$page_id$jscomp$217$$;this.$meta68842$=$meta68842$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},
$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3783$app_DOT_main_DOT_data_DOT_workspace_DOT_pages_SLASH_initialize_page$$},$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68843$$,$meta68842__$1$$){return new $app$main$data$workspace$pages$initialize_page_68841$$(this.$file_id$,
this.$page_id$,$meta68842__$1$$)},$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68842$},$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$pages$initialize_page_68841$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$,$JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$){if($APP.$cljs$core$truth_$$($APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$,
this.$file_id$,this.$page_id$))){$JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$=(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$pages$initialize_page_STAR_$$(this.$file_id$,this.$page_id$),$app$main$data$workspace$fix_deleted_fonts$fix_deleted_fonts_for_page$$(this.$file_id$,this.$page_id$));var $JSCompiler_temp_const$jscomp$1650$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$,
"render-wasm/v1"))?$APP.$beicon$v2$core$empty$$():(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$thumbnails$watch_state_changes$$(this.$file_id$,this.$page_id$)),$JSCompiler_temp_const$jscomp$1649$$=(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$libraries$watch_component_changes$$());$JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$=$APP.$cljs$cst$1899$profile$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$);
$JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$,$APP.$cljs$cst$573$props$$);$JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$=$APP.$cljs$core$not$$($APP.$cljs$cst$3620$workspace_visited$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$))?
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$pages$select_frame_tool$$(this.$file_id$,this.$page_id$)):null;$JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$=$APP.$beicon$v2$core$concat$$($JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$,$JSCompiler_temp_const$jscomp$1650$$,$JSCompiler_temp_const$jscomp$1649$$,$JSCompiler_inline_result$jscomp$1652_profile$jscomp$inline_8266_props$jscomp$inline_8267_state$jscomp$739$$)}else $JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$=
(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$$,this.$file_id$,$APP.$cljs$cst$2412$app_DOT_main_DOT_router_SLASH_replace$$,!0])));return $JSCompiler_temp$jscomp$1648_JSCompiler_temp_const$jscomp$1651__$jscomp$2361$$});return new $app$main$data$workspace$pages$initialize_page_68841$$($file_id$jscomp$226$$,$page_id$jscomp$216$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$versions$restore_version$$=function($id$jscomp$818$$,$origin$jscomp$51$$){typeof $app$main$data$workspace$versions$restore_version_71467$$==="undefined"&&($app$main$data$workspace$versions$restore_version_71467$$=function($id$jscomp$819$$,$origin$jscomp$52$$,$meta71468$$){this.id=$id$jscomp$819$$;this.origin=$origin$jscomp$52$$;this.$meta71468$=$meta71468$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$versions$restore_version_71467$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$restore_version_71467$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4836$app_DOT_main_DOT_data_DOT_workspace_DOT_versions_SLASH_restore_version$$},$app$main$data$workspace$versions$restore_version_71467$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_71469$$,$meta71468__$1$$){return new $app$main$data$workspace$versions$restore_version_71467$$(this.id,this.origin,$meta71468__$1$$)},
$app$main$data$workspace$versions$restore_version_71467$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta71468$},$app$main$data$workspace$versions$restore_version_71467$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$versions$restore_version_71467$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2672$$,$state$jscomp$977$$){var $self__$jscomp$6737$$=this,$file_id$jscomp$299$$=$APP.$cljs$cst$1902$current_file_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$977$$),
$team_id$jscomp$113$$=$APP.$cljs$cst$1911$current_team_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$977$$);return $APP.$beicon$v2$core$concat$$((0,$APP.$beicon$v2$core$of$$)($APP.$cljs$cst$2491$app_DOT_main_DOT_data_DOT_persistence_SLASH_force_persist$$,$APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3589$document_history$$)),$APP.$beicon$v2$core$map$$(function(){return $APP.$app$main$data$workspace$initialize_workspace$$($team_id$jscomp$113$$,$file_id$jscomp$299$$)},
$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return $app$main$data$workspace$thumbnails$clear_queue_BANG_$$()},$APP.$beicon$v2$core$mapcat$$(function(){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4837$restore_file_snapshot$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$299$$,$APP.$cljs$cst$266$id$$,$self__$jscomp$6737$$.id],null))},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$(function($p1__71465_SHARP_$$){return $p1__71465_SHARP_$$==
null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3101$saved$$,$p1__71465_SHARP_$$)},$APP.$beicon$v2$core$from_atom$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$refs$persistence_state$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1312$emit_current_value_QMARK_$$,!0],null))))))),function(){var $G__71483$$=$self__$jscomp$6737$$.origin;switch($G__71483$$ instanceof $APP.$cljs$core$Keyword$$?$G__71483$$.$fqn$:null){case "version":return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"restore-pin-version"],null)));case "snapshot":return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"restore-autosave"],null)));case "plugin":return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"restore-version-plugin"],null)));default:return $APP.$beicon$v2$core$empty$$()}}())});return new $app$main$data$workspace$versions$restore_version_71467$$($id$jscomp$818$$,$origin$jscomp$51$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$clipboard$paste_from_event$$=function($event$jscomp$93$$,$in_viewport_QMARK_$jscomp$1$$){typeof $app$main$data$workspace$clipboard$paste_from_event_69078$$==="undefined"&&($app$main$data$workspace$clipboard$paste_from_event_69078$$=function($event$jscomp$94$$,$in_viewport_QMARK_$jscomp$2$$,$meta69079$$){this.event=$event$jscomp$94$$;this.$in_viewport_QMARK_$=$in_viewport_QMARK_$jscomp$2$$;this.$meta69079$=$meta69079$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=
0},$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3991$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_paste_from_event$$},$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69080$$,$meta69079__$1$$){return new $app$main$data$workspace$clipboard$paste_from_event_69078$$(this.event,
this.$in_viewport_QMARK_$,$meta69079__$1$$)},$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta69079$},$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$paste_from_event_69078$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$,
$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$){$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$);$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$,$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2161$edition$$);$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$=$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$,$APP.$cljs$cst$139$type$$],null))):
$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$;if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$))$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$=$APP.$beicon$v2$core$empty$$();else{$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$=
$APP.$app$main$data$workspace$clipboard$create_paste_from_blob$$(this.$in_viewport_QMARK_$);$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$=this.event;var $is_input_QMARK_$jscomp$inline_12739_target$jscomp$inline_12737$$=$APP.$app$util$dom$get_target$$($JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$),$content_editable_QMARK_$jscomp$inline_12738$$=$is_input_QMARK_$jscomp$inline_12739_target$jscomp$inline_12737$$.isContentEditable;
$is_input_QMARK_$jscomp$inline_12739_target$jscomp$inline_12737$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$dom$get_tag_name$$($is_input_QMARK_$jscomp$inline_12739_target$jscomp$inline_12737$$),"INPUT");$APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($content_editable_QMARK_$jscomp$inline_12738$$)?$content_editable_QMARK_$jscomp$inline_12738$$:$is_input_QMARK_$jscomp$inline_12739_target$jscomp$inline_12737$$)?($JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$=
$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$.getBrowserEvent(),$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$=$APP.$app$util$clipboard$from_data_transfer$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$.clipboardData,$APP.$app$main$data$workspace$clipboard$default_options$$)):
$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$=$APP.$beicon$v2$core$empty$$();$JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$=$APP.$beicon$v2$core$mapcat$$($JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$,$JSCompiler_temp$jscomp$13381__$jscomp$2152_event$jscomp$inline_12736_event$jscomp$inline_13891_objects$jscomp$562$$)}return $JSCompiler_temp$jscomp$10527_JSCompiler_temp_const$jscomp$10528_edit_id$jscomp$1_is_editing_QMARK__state$jscomp$553$$});
return new $app$main$data$workspace$clipboard$paste_from_event_69078$$($event$jscomp$93$$,$in_viewport_QMARK_$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$clipboard$paste_from_clipboard$$=function(){typeof $app$main$data$workspace$clipboard$paste_from_clipboard_69072$$==="undefined"&&($app$main$data$workspace$clipboard$paste_from_clipboard_69072$$=function($meta69073$$){this.$meta69073$=$meta69073$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3990$app_DOT_main_DOT_data_DOT_workspace_DOT_clipboard_SLASH_paste_from_clipboard$$},$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_69074$$,$meta69073__$1$$){return new $app$main$data$workspace$clipboard$paste_from_clipboard_69072$$($meta69073__$1$$)},$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta69073$},$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$clipboard$paste_from_clipboard_69072$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$workspace$clipboard$on_clipboard_permission_error$$,$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$mapcat$$($APP.$app$main$data$workspace$clipboard$default_paste_from_blob$$,
$APP.$app$util$clipboard$from_navigator$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$main$data$workspace$clipboard$default_options$$))))});return new $app$main$data$workspace$clipboard$paste_from_clipboard_69072$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$cljs$spec$alpha$explain_printer$$=function($ed$jscomp$1$$){if($APP.$cljs$core$truth_$$($ed$jscomp$1$$)){var $problems$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__33728_SHARP_$$){return-$APP.$cljs$core$count$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__33728_SHARP_$$))},$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__33727_SHARP_$$){return-$APP.$cljs$core$count$$($APP.$cljs$cst$295$in$$.$cljs$core$IFn$_invoke$arity$1$($p1__33727_SHARP_$$))},
$APP.$cljs$cst$979$cljs_DOT_spec_DOT_alpha_SLASH_problems$$.$cljs$core$IFn$_invoke$arity$1$($ed$jscomp$1$$)));$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([function(){var $sb__5670__auto__$jscomp$2$$=new $APP.$goog$string$StringBuffer$$,$_STAR_print_newline_STAR__orig_val__33731_34756$$=$APP.$cljs$core$_STAR_print_newline_STAR_$$,$_STAR_print_fn_STAR__orig_val__33732_34757$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=
!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$2$$){return $sb__5670__auto__$jscomp$2$$.append($x__5671__auto__$jscomp$2$$)};try{for(var $seq__33736_34760$$=$APP.$cljs$core$seq$$($problems$$),$chunk__33737_34761$$=null,$count__33738_34762$$=0,$i__33739_34763$$=0;;)if($i__33739_34763$$<$count__33738_34762$$){var $map__33800_34764$$=$chunk__33737_34761$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__33739_34763$$),$map__33800_34765__$1$$=$APP.$cljs$core$__destructure_map$$($map__33800_34764$$),
$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=$map__33800_34765__$1$$,$path_34767$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,$APP.$cljs$cst$294$path$$),$pred_34768$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,$APP.$cljs$cst$349$pred$$),$val_34769$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,$APP.$cljs$cst$108$val$$),$reason_34770$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,
$APP.$cljs$cst$982$reason$$),$via_34771$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,$APP.$cljs$cst$143$via$$),$in_34772$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33800_34765__$1$$,$APP.$cljs$cst$295$in$$);$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$val_34769$$]));$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([" - failed: "]));
$APP.$cljs$core$truth_$$($reason_34770$$)?$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$reason_34770$$])):$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$spec$alpha$abbrev$$($pred_34768$$)]));$APP.$cljs$core$empty_QMARK_$$($in_34772$$)||$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" in: ",
$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$in_34772$$]))].join("")]));$APP.$cljs$core$empty_QMARK_$$($path_34767$$)||$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" at: ",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$path_34767$$]))].join("")]));$APP.$cljs$core$empty_QMARK_$$($via_34771$$)||
$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" spec: ",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$last$$($via_34771$$)]))].join("")]));var $seq__33809_34775$$=$APP.$cljs$core$seq$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$);$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=null;for(var $chunk__33840_34824_count__33811_34777_prob_34816$$=
0,$count__33841_34825_i__33812_34778$$=0;;)if($count__33841_34825_i__33812_34778$$<$chunk__33840_34824_count__33811_34777_prob_34816$$){var $vec__33828_34779$$=$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$count__33841_34825_i__33812_34778$$),$k_34780$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33828_34779$$,0,null),$v_34781$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33828_34779$$,1,null);$APP.$cljs$core$truth_$$(function(){var $fexpr__33833$$=
new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$349$pred$$,null,$APP.$cljs$cst$143$via$$,null,$APP.$cljs$cst$108$val$$,null,$APP.$cljs$cst$982$reason$$,null,$APP.$cljs$cst$295$in$$,null],null),null);return $fexpr__33833$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__33833$$.$cljs$core$IFn$_invoke$arity$1$($k_34780$$):$fexpr__33833$$($k_34780$$)}())||($APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["\n\t",
$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$k_34780$$]))," "])),$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v_34781$$])));$count__33841_34825_i__33812_34778$$+=1}else{var $temp__5825__auto___34789$$=$APP.$cljs$core$seq$$($seq__33809_34775$$);if($temp__5825__auto___34789$$){var $G__34793_i__33842_34826_seq__33809_34790__$1$$=$temp__5825__auto___34789$$;
if($APP.$cljs$core$chunked_seq_QMARK_$$($G__34793_i__33842_34826_seq__33809_34790__$1$$)){var $c__5548__auto___34791$$=$APP.$cljs$core$_chunked_first$$($G__34793_i__33842_34826_seq__33809_34790__$1$$),$G__34792$$=$APP.$cljs$core$_chunked_rest$$($G__34793_i__33842_34826_seq__33809_34790__$1$$);$G__34793_i__33842_34826_seq__33809_34790__$1$$=$c__5548__auto___34791$$;var $G__34794$$=$APP.$cljs$core$count$$($c__5548__auto___34791$$);$seq__33809_34775$$=$G__34792$$;$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=
$G__34793_i__33842_34826_seq__33809_34790__$1$$;$chunk__33840_34824_count__33811_34777_prob_34816$$=$G__34794$$}else{var $vec__33834_34796$$=$APP.$cljs$core$first$$($G__34793_i__33842_34826_seq__33809_34790__$1$$),$k_34797$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33834_34796$$,0,null),$v_34798$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33834_34796$$,1,null);$APP.$cljs$core$truth_$$(function(){var $fexpr__33837$$=new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$349$pred$$,null,$APP.$cljs$cst$143$via$$,null,$APP.$cljs$cst$108$val$$,null,$APP.$cljs$cst$982$reason$$,null,$APP.$cljs$cst$295$in$$,null],null),null);return $fexpr__33837$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__33837$$.$cljs$core$IFn$_invoke$arity$1$($k_34797$$):$fexpr__33837$$($k_34797$$)}())||($APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["\n\t",
$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$k_34797$$]))," "])),$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v_34798$$])));$seq__33809_34775$$=$APP.$cljs$core$next$$($G__34793_i__33842_34826_seq__33809_34790__$1$$);$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=null;$chunk__33840_34824_count__33811_34777_prob_34816$$=
0}$count__33841_34825_i__33812_34778$$=0}else break}$APP.$cljs$core$newline$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$i__33739_34763$$+=1}else{var $temp__5825__auto___34807$$=$APP.$cljs$core$seq$$($seq__33736_34760$$);if($temp__5825__auto___34807$$){$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=$temp__5825__auto___34807$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$)){var $c__5548__auto___34809$$=$APP.$cljs$core$_chunked_first$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$),
$G__34810$$=$APP.$cljs$core$_chunked_rest$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$);$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$=$c__5548__auto___34809$$;var $G__34812$$=$APP.$cljs$core$count$$($c__5548__auto___34809$$);$seq__33736_34760$$=$G__34810$$;$chunk__33737_34761$$=$G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$;$count__33738_34762$$=$G__34812$$}else{var $map__33838_34814$$=$APP.$cljs$core$first$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$),
$map__33838_34815__$1$$=$APP.$cljs$core$__destructure_map$$($map__33838_34814$$);$chunk__33840_34824_count__33811_34777_prob_34816$$=$map__33838_34815__$1$$;var $path_34817$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$294$path$$),$pred_34818$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$349$pred$$),$val_34819$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$108$val$$),
$reason_34820$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$982$reason$$),$via_34821$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$143$via$$),$in_34822$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__33838_34815__$1$$,$APP.$cljs$cst$295$in$$);$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$val_34819$$]));$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([" - failed: "]));
$APP.$cljs$core$truth_$$($reason_34820$$)?$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$reason_34820$$])):$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$spec$alpha$abbrev$$($pred_34818$$)]));$APP.$cljs$core$empty_QMARK_$$($in_34822$$)||$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" in: ",
$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$in_34822$$]))].join("")]));$APP.$cljs$core$empty_QMARK_$$($path_34817$$)||$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" at: ",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$path_34817$$]))].join("")]));$APP.$cljs$core$empty_QMARK_$$($via_34821$$)||
$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([[" spec: ",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$last$$($via_34821$$)]))].join("")]));var $seq__33839_34823$$=$APP.$cljs$core$seq$$($chunk__33840_34824_count__33811_34777_prob_34816$$);$chunk__33840_34824_count__33811_34777_prob_34816$$=null;for($G__34793_i__33842_34826_seq__33809_34790__$1$$=
$count__33841_34825_i__33812_34778$$=0;;)if($G__34793_i__33842_34826_seq__33809_34790__$1$$<$count__33841_34825_i__33812_34778$$){var $vec__33853_34828$$=$chunk__33840_34824_count__33811_34777_prob_34816$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__34793_i__33842_34826_seq__33809_34790__$1$$),$k_34829$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33853_34828$$,0,null),$v_34830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33853_34828$$,1,null);$APP.$cljs$core$truth_$$(function(){var $fexpr__33859$$=
new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$349$pred$$,null,$APP.$cljs$cst$143$via$$,null,$APP.$cljs$cst$108$val$$,null,$APP.$cljs$cst$982$reason$$,null,$APP.$cljs$cst$295$in$$,null],null),null);return $fexpr__33859$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__33859$$.$cljs$core$IFn$_invoke$arity$1$($k_34829$$):$fexpr__33859$$($k_34829$$)}())||($APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["\n\t",
$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$k_34829$$]))," "])),$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v_34830$$])));$G__34793_i__33842_34826_seq__33809_34790__$1$$+=1}else{var $temp__5825__auto___34841__$1$$=$APP.$cljs$core$seq$$($seq__33839_34823$$);if($temp__5825__auto___34841__$1$$){var $G__34845_seq__33839_34842__$1$$=$temp__5825__auto___34841__$1$$;
if($APP.$cljs$core$chunked_seq_QMARK_$$($G__34845_seq__33839_34842__$1$$)){var $c__5548__auto___34843$$=$APP.$cljs$core$_chunked_first$$($G__34845_seq__33839_34842__$1$$),$G__34844$$=$APP.$cljs$core$_chunked_rest$$($G__34845_seq__33839_34842__$1$$);$G__34845_seq__33839_34842__$1$$=$c__5548__auto___34843$$;var $G__34846$$=$APP.$cljs$core$count$$($c__5548__auto___34843$$);$seq__33839_34823$$=$G__34844$$;$chunk__33840_34824_count__33811_34777_prob_34816$$=$G__34845_seq__33839_34842__$1$$;$count__33841_34825_i__33812_34778$$=
$G__34846$$}else{var $vec__33860_34848$$=$APP.$cljs$core$first$$($G__34845_seq__33839_34842__$1$$),$k_34849$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33860_34848$$,0,null),$v_34850$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__33860_34848$$,1,null);$APP.$cljs$core$truth_$$(function(){var $fexpr__33863$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$349$pred$$,null,
$APP.$cljs$cst$143$via$$,null,$APP.$cljs$cst$108$val$$,null,$APP.$cljs$cst$982$reason$$,null,$APP.$cljs$cst$295$in$$,null],null),null);return $fexpr__33863$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__33863$$.$cljs$core$IFn$_invoke$arity$1$($k_34849$$):$fexpr__33863$$($k_34849$$)}())||($APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["\n\t",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$k_34849$$])),
" "])),$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v_34850$$])));$seq__33839_34823$$=$APP.$cljs$core$next$$($G__34845_seq__33839_34842__$1$$);$chunk__33840_34824_count__33811_34777_prob_34816$$=null;$count__33841_34825_i__33812_34778$$=0}$G__34793_i__33842_34826_seq__33809_34790__$1$$=0}else break}$APP.$cljs$core$newline$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$seq__33736_34760$$=$APP.$cljs$core$next$$($G__34811_chunk__33810_34776_prob_34766_seq__33736_34808__$1$$);
$chunk__33737_34761$$=null;$count__33738_34762$$=0}$i__33739_34763$$=0}else break}}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=$_STAR_print_fn_STAR__orig_val__33732_34757$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__33731_34756$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$2$$)}()]))}else $APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Success!"]))};
$cljs$spec$alpha$assert_STAR_$$=function($spec$jscomp$45$$,$x$jscomp$940$$){if(!$APP.$cljs$spec$alpha$valid_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($spec$jscomp$45$$,$x$jscomp$940$$)){var $ed$jscomp$4$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cljs$spec$alpha$explain_data_STAR_$$($spec$jscomp$45$$,$x$jscomp$940$$),$APP.$cljs$cst$1130$cljs_DOT_spec_DOT_alpha_SLASH_failure$$,
$APP.$cljs$cst$1131$assertion_failed$$)]));throw Error(["Spec assertion failed\n",function(){var $sb__5670__auto__$jscomp$4$$=new $APP.$goog$string$StringBuffer$$,$_STAR_print_newline_STAR__orig_val__34696_35224$$=$APP.$cljs$core$_STAR_print_newline_STAR_$$,$_STAR_print_fn_STAR__orig_val__34697_35225$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$4$$){return $sb__5670__auto__$jscomp$4$$.append($x__5671__auto__$jscomp$4$$)};
try{$cljs$spec$alpha$explain_printer$$.call(null,$ed$jscomp$4$$)}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=$_STAR_print_fn_STAR__orig_val__34697_35225$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__34696_35224$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$4$$)}()].join(""));}};
$instaparse$auto_flatten_seq$conj_flat$$=function($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,$obj$jscomp$210$$){if($JSCompiler_temp$jscomp$1653_self$jscomp$81$$!=null&&$JSCompiler_temp$jscomp$1653_self$jscomp$81$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$!=null)$JSCompiler_temp$jscomp$1653_self$jscomp$81$$=$JSCompiler_temp$jscomp$1653_self$jscomp$81$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,$obj$jscomp$210$$);else{var $m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$=
$instaparse$auto_flatten_seq$conj_flat$$[$APP.$goog$typeOf$$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$==null?null:$JSCompiler_temp$jscomp$1653_self$jscomp$81$$)];if($m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$!=null)$JSCompiler_temp$jscomp$1653_self$jscomp$81$$=$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$.$cljs$core$IFn$_invoke$arity$2$?$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,
$obj$jscomp$210$$):$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,$obj$jscomp$210$$);else if($m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$=$instaparse$auto_flatten_seq$conj_flat$$._,$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$!=null)$JSCompiler_temp$jscomp$1653_self$jscomp$81$$=$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$.$cljs$core$IFn$_invoke$arity$2$?
$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,$obj$jscomp$210$$):$m__5372__auto__$jscomp$inline_8274_m__5374__auto__$jscomp$inline_8273$$($JSCompiler_temp$jscomp$1653_self$jscomp$81$$,$obj$jscomp$210$$);else throw $APP.$cljs$core$missing_protocol$$("ConjFlat.conj-flat",$JSCompiler_temp$jscomp$1653_self$jscomp$81$$);}return $JSCompiler_temp$jscomp$1653_self$jscomp$81$$};
$instaparse$auto_flatten_seq$delve$$=function($G__73730_v$jscomp$629_v__$1$jscomp$29$$,$G__73731_index$jscomp$402_index__$1$jscomp$19$$){for($G__73730_v$jscomp$629_v__$1$jscomp$29$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($G__73730_v$jscomp$629_v__$1$jscomp$29$$,$G__73731_index$jscomp$402_index__$1$jscomp$19$$);;)if($APP.$cljs$core$truth_$$($instaparse$auto_flatten_seq$afs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$auto_flatten_seq$afs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__73730_v$jscomp$629_v__$1$jscomp$29$$):
$instaparse$auto_flatten_seq$afs_QMARK_$$($G__73730_v$jscomp$629_v__$1$jscomp$29$$)))$G__73730_v$jscomp$629_v__$1$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__73730_v$jscomp$629_v__$1$jscomp$29$$,0),$G__73731_index$jscomp$402_index__$1$jscomp$19$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__73731_index$jscomp$402_index__$1$jscomp$19$$,0);else return $G__73731_index$jscomp$402_index__$1$jscomp$19$$};
$instaparse$auto_flatten_seq$flat_seq$cljs$0core$0IFn$0_invoke$0arity$02$$=function($v$jscomp$632$$,$index$jscomp$404$$){return new $APP.$cljs$core$LazySeq$$(null,function(){var $JSCompiler_temp_const$jscomp$1658$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($v$jscomp$632$$,$index$jscomp$404$$);a:{var $G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$=$v$jscomp$632$$;for(var $G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$=$index$jscomp$404$$;;){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$),
1)){$G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$=$APP.$cljs$core$peek$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$)<($instaparse$auto_flatten_seq$true_count$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$auto_flatten_seq$true_count$$.$cljs$core$IFn$_invoke$arity$1$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$):$instaparse$auto_flatten_seq$true_count$$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$))-
1?$instaparse$auto_flatten_seq$delve$$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$peek$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$)+1],null)):null;break a}var $JSCompiler_temp_const$jscomp$inline_12745$$=$APP.$cljs$core$peek$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$);var $G__73638$jscomp$inline_12747_JSCompiler_inline_result$jscomp$inline_12746$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$,$APP.$cljs$core$pop$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$));$G__73638$jscomp$inline_12747_JSCompiler_inline_result$jscomp$inline_12746$$=$instaparse$auto_flatten_seq$true_count$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$auto_flatten_seq$true_count$$.$cljs$core$IFn$_invoke$arity$1$($G__73638$jscomp$inline_12747_JSCompiler_inline_result$jscomp$inline_12746$$):
$instaparse$auto_flatten_seq$true_count$$($G__73638$jscomp$inline_12747_JSCompiler_inline_result$jscomp$inline_12746$$);if($JSCompiler_temp_const$jscomp$inline_12745$$<$G__73638$jscomp$inline_12747_JSCompiler_inline_result$jscomp$inline_12746$$-1){$G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$=$instaparse$auto_flatten_seq$delve$$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$pop$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$),
$APP.$cljs$core$peek$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$)+1));break a}$G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$=$APP.$cljs$core$pop$$($G__73733$jscomp$inline_12749_index$jscomp$inline_12744$$)}$G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$=void 0}return $APP.$cljs$core$cons$$($JSCompiler_temp_const$jscomp$1658$$,$APP.$cljs$core$truth_$$($G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$)?
$instaparse$auto_flatten_seq$flat_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($v$jscomp$632$$,$G__73732$jscomp$inline_12748_temp__5825__auto__$jscomp$inline_8278_v$jscomp$inline_12743$$):null)},null,null)};
$instaparse$auto_flatten_seq$AutoFlattenSeq$$=function($v$jscomp$633$$,$premix_hashcode$$,$hashcode$$,$cnt$jscomp$46$$,$dirty$$){this.v=$v$jscomp$633$$;this.$premix_hashcode$=$premix_hashcode$$;this.$hashcode$=$hashcode$$;this.$cnt$=$cnt$jscomp$46$$;this.$dirty$=$dirty$$;this.$cached_seq$=null;this.$cljs$lang$protocol_mask$partition0$$=31850958;this.$cljs$lang$protocol_mask$partition1$$=0};
$instaparse$auto_flatten_seq$hash_cat$$=function($v1$jscomp$39$$,$v2$jscomp$31$$){var $JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$=$APP.$cljs$core$count$$($v2$jscomp$31$$);a:if($JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$===0)$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$=1;else{$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$|=
0;for(var $G__73725$jscomp$inline_8291_G__73728$jscomp$inline_8293_y$jscomp$inline_8287$$=1,$G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$=31;;){var $t$jscomp$inline_8289$$=$APP.$cljs$core$even_QMARK_$$($JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$);$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$=$APP.$cljs$core$quot$$($JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$,
2);if($t$jscomp$inline_8289$$)$G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$=(0,$APP.$cljs$core$imul$$)($G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$,$G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$);else{if($JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$===0){$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$=
(0,$APP.$cljs$core$imul$$)($G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$,$G__73725$jscomp$inline_8291_G__73728$jscomp$inline_8293_y$jscomp$inline_8287$$);break a}$G__73725$jscomp$inline_8291_G__73728$jscomp$inline_8293_y$jscomp$inline_8287$$=(0,$APP.$cljs$core$imul$$)($G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$,$G__73725$jscomp$inline_8291_G__73728$jscomp$inline_8293_y$jscomp$inline_8287$$);$G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$=
(0,$APP.$cljs$core$imul$$)($G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$,$G__73726$jscomp$inline_8292_G__73729$jscomp$inline_8294_z$jscomp$inline_8288$$)}}$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$=void 0}$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$|=0;return(0,$APP.$cljs$core$imul$$)($JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$,
$v1$jscomp$39$$.$premix_hashcode$)+($v2$jscomp$31$$.$premix_hashcode$-$JSCompiler_inline_result$jscomp$1654_c$jscomp$299_e$jscomp$333_n$jscomp$inline_8286_n__$1$jscomp$inline_8290$$)};
$instaparse$auto_flatten_seq$auto_flatten_seq$$=function($v$jscomp$635_v__$1$jscomp$30$$){$v$jscomp$635_v__$1$jscomp$30$$=$APP.$cljs$core$vec$$($v$jscomp$635_v__$1$jscomp$30$$);a:{var $G__73780$jscomp$inline_12754_JSCompiler_inline_result$jscomp$10583_unmixed_hash$jscomp$inline_12752$$=1;for(var $G__73781$jscomp$inline_12755_coll__$1$jscomp$inline_12753$$=$APP.$cljs$core$seq$$($v$jscomp$635_v__$1$jscomp$30$$);;)if($G__73781$jscomp$inline_12755_coll__$1$jscomp$inline_12753$$!=null)$G__73780$jscomp$inline_12754_JSCompiler_inline_result$jscomp$10583_unmixed_hash$jscomp$inline_12752$$=
(0,$APP.$cljs$core$imul$$)(31,$G__73780$jscomp$inline_12754_JSCompiler_inline_result$jscomp$10583_unmixed_hash$jscomp$inline_12752$$)+$APP.$cljs$core$hash$$($APP.$cljs$core$first$$($G__73781$jscomp$inline_12755_coll__$1$jscomp$inline_12753$$))|0,$G__73781$jscomp$inline_12755_coll__$1$jscomp$inline_12753$$=$APP.$cljs$core$next$$($G__73781$jscomp$inline_12755_coll__$1$jscomp$inline_12753$$);else break a;$G__73780$jscomp$inline_12754_JSCompiler_inline_result$jscomp$10583_unmixed_hash$jscomp$inline_12752$$=
void 0}return new $instaparse$auto_flatten_seq$AutoFlattenSeq$$($v$jscomp$635_v__$1$jscomp$30$$,$G__73780$jscomp$inline_12754_JSCompiler_inline_result$jscomp$10583_unmixed_hash$jscomp$inline_12752$$,$APP.$cljs$core$hash$$($v$jscomp$635_v__$1$jscomp$30$$),$APP.$cljs$core$count$$($v$jscomp$635_v__$1$jscomp$30$$),!1)};$instaparse$auto_flatten_seq$afs_QMARK_$$=function($s$jscomp$546$$){return $s$jscomp$546$$ instanceof $instaparse$auto_flatten_seq$AutoFlattenSeq$$};
$instaparse$auto_flatten_seq$true_count$$=function($v$jscomp$636$$){return $instaparse$auto_flatten_seq$afs_QMARK_$$($v$jscomp$636$$)?$APP.$cljs$core$count$$($v$jscomp$636$$.v):$APP.$cljs$core$count$$($v$jscomp$636$$)};
$instaparse$auto_flatten_seq$FlattenOnDemandVector$$=function($v$jscomp$639$$,$hashcode$jscomp$2$$,$cnt$jscomp$48$$,$flat$$){this.v=$v$jscomp$639$$;this.$hashcode$=$hashcode$jscomp$2$$;this.$cnt$=$cnt$jscomp$48$$;this.flat=$flat$$;this.$cljs$lang$protocol_mask$partition0$$=167142175;this.$cljs$lang$protocol_mask$partition1$$=2048};
$JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$=function($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$){$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.flat))&&($APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.flat,function(){var $JSCompiler_inline_result$jscomp$1664_v$jscomp$inline_8296$$=
$APP.$cljs$core$_deref$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.v);$JSCompiler_inline_result$jscomp$1664_v$jscomp$inline_8296$$=$APP.$cljs$core$persistent_BANG_$$($instaparse$auto_flatten_seq$flat_vec_helper$$($APP.$cljs$core$_as_transient$$($APP.$cljs$core$PersistentVector$EMPTY$$),$JSCompiler_inline_result$jscomp$1664_v$jscomp$inline_8296$$));return $APP.$cljs$core$with_meta$$($JSCompiler_inline_result$jscomp$1664_v$jscomp$inline_8296$$,$APP.$cljs$core$meta$$($APP.$cljs$core$_deref$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.v)))}),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.v,function(){return null}));return $APP.$cljs$core$_deref$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$self$$.flat)};
$instaparse$auto_flatten_seq$convert_afs_to_vec$$=function($afs$jscomp$1$$){return $APP.$cljs$core$truth_$$($afs$jscomp$1$$.$dirty$)?$APP.$cljs$core$truth_$$($afs$jscomp$1$$.$cached_seq$)?$APP.$cljs$core$vec$$($APP.$cljs$core$seq$$($afs$jscomp$1$$)):new $instaparse$auto_flatten_seq$FlattenOnDemandVector$$($APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($afs$jscomp$1$$.v),$afs$jscomp$1$$.$hashcode$,$afs$jscomp$1$$.$cnt$,$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null)):$afs$jscomp$1$$.v};
$instaparse$print$paren_for_tags$$=function($JSCompiler_inline_result$jscomp$1665_tag_set$$,$G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$,$parser$jscomp$16$$){($G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$=$APP.$cljs$core$not$$($G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$))?($G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$=
$parser$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$parser$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$78$tag$$):$parser$jscomp$16$$($APP.$cljs$cst$78$tag$$),$JSCompiler_inline_result$jscomp$1665_tag_set$$=$JSCompiler_inline_result$jscomp$1665_tag_set$$.$cljs$core$IFn$_invoke$arity$1$?$JSCompiler_inline_result$jscomp$1665_tag_set$$.$cljs$core$IFn$_invoke$arity$1$($G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$):$JSCompiler_inline_result$jscomp$1665_tag_set$$($G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$)):
$JSCompiler_inline_result$jscomp$1665_tag_set$$=$G__73652$jscomp$inline_8301_and__5023__auto__$jscomp$inline_8300_hidden_QMARK_$jscomp$3$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1665_tag_set$$)?["(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$?$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($parser$jscomp$16$$,!1):$instaparse$print$combinators__GT_str$$($parser$jscomp$16$$,
!1)),")"].join(""):$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$?$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($parser$jscomp$16$$,!1):$instaparse$print$combinators__GT_str$$($parser$jscomp$16$$,!1)};$instaparse$print$regexp_replace$$=function($s$jscomp$548$$){switch($s$jscomp$548$$){case "\n":return"\\n";case "\b":return"\\b";case "\f":return"\\f";case "\r":return"\\r";case "\t":return"\\t";default:return $s$jscomp$548$$}};
$instaparse$print$regexp__GT_str$$=function($r$jscomp$127$$){return $APP.$clojure$string$replace$$(['#"',$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($r$jscomp$127$$.source,1),'"'].join(""),/[\s]/,$instaparse$print$regexp_replace$$)};$instaparse$print$number__GT_hex_padded$$=function($n$jscomp$287$$){return $n$jscomp$287$$<=4095?["0000",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($n$jscomp$287$$.toString(16))].join("").substr(-4):$n$jscomp$287$$.toString(16)};
$instaparse$print$char_range__GT_str$$=function($lo$jscomp$5_p__73660$$){var $hi$jscomp$7_map__73662__$1$$=$APP.$cljs$core$__destructure_map$$($lo$jscomp$5_p__73660$$);$lo$jscomp$5_p__73660$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hi$jscomp$7_map__73662__$1$$,$cljs$cst$5175$lo$$);$hi$jscomp$7_map__73662__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hi$jscomp$7_map__73662__$1$$,$cljs$cst$5176$hi$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($lo$jscomp$5_p__73660$$,
$hi$jscomp$7_map__73662__$1$$)?["%x",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$number__GT_hex_padded$$($lo$jscomp$5_p__73660$$))].join(""):["%x",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$number__GT_hex_padded$$($lo$jscomp$5_p__73660$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$number__GT_hex_padded$$($hi$jscomp$7_map__73662__$1$$))].join("")};
$instaparse$print$combinators__GT_str$$=function($var_args$jscomp$1387$$){switch(arguments.length){case 1:return $instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$(arguments[0],!1);case 2:return $instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};
$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$=function($_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$,$hidden_QMARK_$jscomp$4$$){var $map__73668__$1$$=$APP.$cljs$core$__destructure_map$$($_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$);$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73668__$1$$,$APP.$cljs$cst$644$parser$$);var $_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73668__$1$$,$cljs$cst$5177$parser1$$),$parser2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73668__$1$$,$cljs$cst$5178$parser2$$),$parsers$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73668__$1$$,
$cljs$cst$5179$parsers$$),$G__73670__$1_tag$jscomp$86$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73668__$1$$,$APP.$cljs$cst$78$tag$$);if($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$657$$=$APP.$cljs$core$not$$($hidden_QMARK_$jscomp$4$$);return $and__5023__auto__$jscomp$657$$?$APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$):$and__5023__auto__$jscomp$657$$}()))return["\x3c",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($map__73668__$1$$,
!0)),"\x3e"].join("");$G__73670__$1_tag$jscomp$86$$=$G__73670__$1_tag$jscomp$86$$ instanceof $APP.$cljs$core$Keyword$$?$G__73670__$1_tag$jscomp$86$$.$fqn$:null;switch($G__73670__$1_tag$jscomp$86$$){case "epsilon":return"ε";case "opt":return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$)),"?"].join("");
case "plus":return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$)),"+"].join("");case "star":return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$)),
"*"].join("");case "rep":return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$336$min$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$),$APP.$cljs$cst$337$max$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$))?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$)),"{",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$336$min$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)),
",",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$337$max$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)),"}"].join(""):[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$)),"{",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$336$min$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)),
"}"].join("");case "alt":return $APP.$clojure$string$join$$.$cljs$core$IFn$_invoke$arity$2$(" | ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($instaparse$print$paren_for_tags$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5174$ord$$,null],null),null),$hidden_QMARK_$jscomp$4$$),$parsers$jscomp$6$$));case "ord":return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_tags$$(new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$715$alt$$,null],null),null),$hidden_QMARK_$jscomp$4$$,$_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$))," / ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_tags$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$715$alt$$,null],null),null),$hidden_QMARK_$jscomp$4$$,$parser2$$))].join("");case "cat":return $APP.$clojure$string$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($instaparse$print$paren_for_tags$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5174$ord$$,null,$APP.$cljs$cst$715$alt$$,null],null),null),$hidden_QMARK_$jscomp$4$$),$parsers$jscomp$6$$));case "string":var $sb__5670__auto__$jscomp$8$$=new $APP.$goog$string$StringBuffer$$;$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$=
$APP.$cljs$core$_STAR_print_newline_STAR_$$;$_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$8$$){return $sb__5670__auto__$jscomp$8$$.append($x__5671__auto__$jscomp$8$$)};try{$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)]))}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=
$_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$8$$);case "string-ci":$sb__5670__auto__$jscomp$8$$=new $APP.$goog$string$StringBuffer$$;$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$=
$APP.$cljs$core$_STAR_print_newline_STAR_$$;$_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$9$$){return $sb__5670__auto__$jscomp$8$$.append($x__5671__auto__$jscomp$9$$)};try{$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)]))}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=
$_STAR_print_fn_STAR__orig_val__73672_73701__STAR_print_fn_STAR__orig_val__73676_73706_parser1$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$8$$);case "char":return $instaparse$print$char_range__GT_str$$($map__73668__$1$$);case "regexp":return $instaparse$print$regexp__GT_str$$($cljs$cst$5180$regexp$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$));
case "nt":return $APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$221$keyword$$.$cljs$core$IFn$_invoke$arity$1$($map__73668__$1$$)),1);case "look":return["\x26",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$))].join("");case "neg":return["!",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$paren_for_compound$$($hidden_QMARK_$jscomp$4$$,$_STAR_print_newline_STAR__orig_val__73671_73700__STAR_print_newline_STAR__orig_val__73675_73705_p__73667_parser$jscomp$17$$))].join("");default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73670__$1_tag$jscomp$86$$)].join(""));}};
$instaparse$print$rule__GT_str$$=function($JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$,$parser$jscomp$18$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5181$reduction_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$18$$)),$APP.$cljs$cst$559$raw$$))$JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$=["\x3c",$APP.$cljs$core$name$$($JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$),"\x3e \x3d ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($parser$jscomp$18$$,
!1))].join("");else{var $temp__5823__auto__$jscomp$inline_8304$$=$APP.$cljs$core$namespace$$($JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$);$JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$=[$APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$inline_8304$$)?[$temp__5823__auto__$jscomp$inline_8304$$,"/",$APP.$cljs$core$name$$($JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$)].join(""):$APP.$cljs$core$name$$($JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$)," \x3d ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($parser$jscomp$18$$,
!1))].join("")}return $JSCompiler_temp$jscomp$1666_non_terminal$jscomp$1$$};
$instaparse$print$Parser__GT_str$$=function($map__73684__$1_p__73683$$){$map__73684__$1_p__73683$$=$APP.$cljs$core$__destructure_map$$($map__73684__$1_p__73683$$);var $grammar$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73684__$1_p__73683$$,$cljs$cst$5183$grammar$$),$start$jscomp$230$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73684__$1_p__73683$$,$cljs$cst$5184$start_production$$);return $APP.$clojure$string$join$$.$cljs$core$IFn$_invoke$arity$2$("\n",$APP.$cljs$core$cons$$($instaparse$print$rule__GT_str$$($start$jscomp$230$$,
$grammar$$.$cljs$core$IFn$_invoke$arity$1$?$grammar$$.$cljs$core$IFn$_invoke$arity$1$($start$jscomp$230$$):$grammar$$($start$jscomp$230$$)),function(){return function $instaparse$print$Parser__GT_str_$_iter__73685$$($s__73686$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(var $s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$=$s__73686$$;;)if($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$=$APP.$cljs$core$seq$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$)){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$)){var $JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$=
$APP.$cljs$core$_chunked_first$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$),$size__5502__auto__$jscomp$37$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$),$b__73688_non_terminal$jscomp$2$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$37$$);a:{for(var $i__73687$jscomp$inline_8306$$=0;;)if($i__73687$jscomp$inline_8306$$<$size__5502__auto__$jscomp$37$$){var $b$jscomp$inline_12759_vec__73689$jscomp$inline_8307$$=
$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$,$i__73687$jscomp$inline_8306$$),$non_terminal$jscomp$inline_8308_x$jscomp$inline_12760$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12759_vec__73689$jscomp$inline_8307$$,0,null),$parser$jscomp$inline_8309$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12759_vec__73689$jscomp$inline_8307$$,1,null);$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($non_terminal$jscomp$inline_8308_x$jscomp$inline_12760$$,
$start$jscomp$230$$)&&($b$jscomp$inline_12759_vec__73689$jscomp$inline_8307$$=$b__73688_non_terminal$jscomp$2$$,$non_terminal$jscomp$inline_8308_x$jscomp$inline_12760$$=$instaparse$print$rule__GT_str$$($non_terminal$jscomp$inline_8308_x$jscomp$inline_12760$$,$parser$jscomp$inline_8309$$),$b$jscomp$inline_12759_vec__73689$jscomp$inline_8307$$.add($non_terminal$jscomp$inline_8308_x$jscomp$inline_12760$$));$i__73687$jscomp$inline_8306$$+=1}else{$JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$=
!0;break a}$JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$=void 0}return $JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73688_non_terminal$jscomp$2$$),$instaparse$print$Parser__GT_str_$_iter__73685$$($APP.$cljs$core$_chunked_rest$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73688_non_terminal$jscomp$2$$),
null)}$JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$=$APP.$cljs$core$first$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$);$b__73688_non_terminal$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$,0,null);$JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$,
1,null);if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($b__73688_non_terminal$jscomp$2$$,$start$jscomp$230$$))return $APP.$cljs$core$cons$$($instaparse$print$rule__GT_str$$($b__73688_non_terminal$jscomp$2$$,$JSCompiler_inline_result$jscomp$1668_c__5501__auto__$jscomp$37_parser$jscomp$19_vec__73692$$),$instaparse$print$Parser__GT_str_$_iter__73685$$($APP.$cljs$core$rest$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$)));$s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$=
$APP.$cljs$core$rest$$($s__73686__$1_s__73686__$2_temp__5825__auto__$jscomp$307$$)}else return null},null,null)}($grammar$$)}()))};
$instaparse$failure$print_reason$$=function($r$jscomp$128$$){$APP.$cljs$core$truth_$$($cljs$cst$5185$NOT$$.$cljs$core$IFn$_invoke$arity$1$($r$jscomp$128$$))?($APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["NOT "])),$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5185$NOT$$.$cljs$core$IFn$_invoke$arity$1$($r$jscomp$128$$)]))):$APP.$cljs$core$truth_$$($cljs$cst$5186$char_range$$.$cljs$core$IFn$_invoke$arity$1$($r$jscomp$128$$))?
$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$print$char_range__GT_str$$($r$jscomp$128$$)])):$r$jscomp$128$$ instanceof RegExp?$APP.$cljs$core$print$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$print$regexp__GT_str$$($r$jscomp$128$$)])):$APP.$cljs$core$pr$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$r$jscomp$128$$]))};
$instaparse$failure$pprint_failure$$=function($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$){$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$APP.$cljs$core$__destructure_map$$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$);var $G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,$APP.$cljs$cst$209$line$$),$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,
$APP.$cljs$cst$216$column$$),$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,$APP.$cljs$cst$1572$text$$);$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,
$APP.$cljs$cst$982$reason$$);$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([["Parse error at line ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),", column ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),
":"].join("")]));$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$]));$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$)?$APP.$cljs$core$integer_QMARK_$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$):
$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$)?($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=$APP.$clojure$string$replace$$($G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$,/[^\s]/," "),$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$<=
1?"^":[$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$,0,$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$-1),"^"].join("")):$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=
null;$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$]));$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5187$expecting$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1259$full$$,$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$)));$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5187$expecting$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$complement$$($APP.$cljs$cst$1259$full$$),
$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$)));$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=$APP.$cljs$core$count$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$)+$APP.$cljs$core$count$$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$);
$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$!==0&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$)?$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Expected:"])):$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Expected one of:"])));
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$seq$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$);$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
null;for(var $G__73758_i__73717_73749_i__73722$$=$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=0;;)if($G__73758_i__73717_73749_i__73722$$<$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$){var $r_73750$$=$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__73758_i__73717_73749_i__73722$$);$instaparse$failure$print_reason$$($r_73750$$);
$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([" (followed by end-of-string)"]));$G__73758_i__73717_73749_i__73722$$+=1}else if($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$seq$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$))$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$)?($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=
$APP.$cljs$core$_chunked_first$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),$G__73758_i__73717_73749_i__73722$$=$APP.$cljs$core$_chunked_rest$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$,$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=$APP.$cljs$core$count$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=
$G__73758_i__73717_73749_i__73722$$):($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$first$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),$instaparse$failure$print_reason$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),
$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([" (followed by end-of-string)"])),$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$APP.$cljs$core$next$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),
$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=null,$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=0),$G__73758_i__73717_73749_i__73722$$=0;else break;$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$);
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=null;for($G__73758_i__73717_73749_i__73722$$=$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=0;;)if($G__73758_i__73717_73749_i__73722$$<$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$)$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__73758_i__73717_73749_i__73722$$),$instaparse$failure$print_reason$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),$APP.$cljs$core$println$$(),$G__73758_i__73717_73749_i__73722$$+=1;else if($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=
$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$))$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$)?
($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$APP.$cljs$core$_chunked_first$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=$APP.$cljs$core$_chunked_rest$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),
$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$,$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$),
$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$,$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=$G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$):($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$=
$APP.$cljs$core$first$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),$instaparse$failure$print_reason$$($G__73759_G__73773_chunk__73715_73747_line$jscomp$28_marker_text$jscomp$inline_12764_r$jscomp$129_seq__73714_73756__$1_total$jscomp$21$$),$APP.$cljs$core$println$$(),$c__5548__auto__$jscomp$36_map__73713__$1_p__73712_partial_reasons_reason$jscomp$25_seq__73719_temp__5825__auto__$jscomp$308$$=
$APP.$cljs$core$next$$($G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$),$G__73772_JSCompiler_inline_result$jscomp$10588_c__5548__auto___73757_chunk__73720_column$jscomp$38_full_reasons_r_73762_seq__73714_73746_seq__73719__$1_temp__5825__auto___73755$$=null,$G__73760_G__73771_count__73716_73748_count__73721_text$jscomp$72$$=0),$G__73758_i__73717_73749_i__73722$$=0;else break};
$instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($message$jscomp$111$$){throw $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$message$jscomp$111$$);};$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($message$jscomp$112$$){throw $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$message$jscomp$112$$);};
$instaparse$util$regexp_flags$$=function($re$jscomp$23$$){var $G__73809__$1_G__73809__$2$$=$APP.$cljs$core$truth_$$($re$jscomp$23$$.ignoreCase)?"i":"";$G__73809__$1_G__73809__$2$$=$APP.$cljs$core$truth_$$($re$jscomp$23$$.multiline)?[$G__73809__$1_G__73809__$2$$,"m"].join(""):$G__73809__$1_G__73809__$2$$;return $APP.$cljs$core$truth_$$($re$jscomp$23$$.unicode)?[$G__73809__$1_G__73809__$2$$,"u"].join(""):$G__73809__$1_G__73809__$2$$};
$instaparse$reduction$singleton_QMARK_$$=function($s$jscomp$549$$){return $APP.$cljs$core$seq$$($s$jscomp$549$$)&&$APP.$cljs$core$not$$($APP.$cljs$core$next$$($s$jscomp$549$$))};
$instaparse$reduction$apply_reduction$$=function($f$jscomp$839$$,$content$jscomp$231_result$jscomp$327$$){var $G__73817$$=$cljs$cst$5181$reduction_type$$.$cljs$core$IFn$_invoke$arity$1$($f$jscomp$839$$);switch($G__73817$$ instanceof $APP.$cljs$core$Keyword$$?$G__73817$$.$fqn$:null){case "raw":return $instaparse$auto_flatten_seq$EMPTY$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,$content$jscomp$231_result$jscomp$327$$);case "hiccup":return $instaparse$auto_flatten_seq$convert_afs_to_vec$$($instaparse$auto_flatten_seq$auto_flatten_seq$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($f$jscomp$839$$)],null)).$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,$content$jscomp$231_result$jscomp$327$$));case "enlive":return $content$jscomp$231_result$jscomp$327$$=$instaparse$auto_flatten_seq$EMPTY$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,$content$jscomp$231_result$jscomp$327$$),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($f$jscomp$839$$),$APP.$cljs$cst$1621$content$$,$APP.$cljs$core$count$$($content$jscomp$231_result$jscomp$327$$)===0?null:$content$jscomp$231_result$jscomp$327$$],null);default:return $f$jscomp$839$$.$cljs$core$IFn$_invoke$arity$1$?$f$jscomp$839$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$231_result$jscomp$327$$):$f$jscomp$839$$($content$jscomp$231_result$jscomp$327$$)}};
$instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$=function($reduction_type$$,$grammar$jscomp$2$$){var $temp__5823__auto__$jscomp$207$$=$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$($reduction_type$$):$instaparse$reduction$reduction_types$$($reduction_type$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$207$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
function(){return function $instaparse$reduction$iter__73823$$($s__73824$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__73824__$2_temp__5825__auto__$jscomp$309$$=$APP.$cljs$core$seq$$($s__73824$$);if($s__73824__$2_temp__5825__auto__$jscomp$309$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73824__$2_temp__5825__auto__$jscomp$309$$)){var $JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$=$APP.$cljs$core$_chunked_first$$($s__73824__$2_temp__5825__auto__$jscomp$309$$),
$size__5502__auto__$jscomp$38$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$),$b__73826_k$jscomp$670$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$38$$);a:{for(var $i__73825$jscomp$inline_8311$$=0;;)if($i__73825$jscomp$inline_8311$$<$size__5502__auto__$jscomp$38$$){var $b$jscomp$inline_12766_vec__73827$jscomp$inline_8312$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$,
$i__73825$jscomp$inline_8311$$),$k$jscomp$inline_8313_x$jscomp$inline_12767$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12766_vec__73827$jscomp$inline_8312$$,0,null),$v$jscomp$inline_8314$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12766_vec__73827$jscomp$inline_8312$$,1,null);$b$jscomp$inline_12766_vec__73827$jscomp$inline_8312$$=$b__73826_k$jscomp$670$$;$k$jscomp$inline_8313_x$jscomp$inline_12767$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($v$jscomp$inline_8314$$))?
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8313_x$jscomp$inline_12767$$,$v$jscomp$inline_8314$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8313_x$jscomp$inline_12767$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($v$jscomp$inline_8314$$,$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$207$$.$cljs$core$IFn$_invoke$arity$1$?$temp__5823__auto__$jscomp$207$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$inline_8313_x$jscomp$inline_12767$$):
$temp__5823__auto__$jscomp$207$$($k$jscomp$inline_8313_x$jscomp$inline_12767$$))],null);$b$jscomp$inline_12766_vec__73827$jscomp$inline_8312$$.add($k$jscomp$inline_8313_x$jscomp$inline_12767$$);$i__73825$jscomp$inline_8311$$+=1}else{$JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$=!0;break a}$JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$=void 0}return $JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$?
$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73826_k$jscomp$670$$),$instaparse$reduction$iter__73823$$($APP.$cljs$core$_chunked_rest$$($s__73824__$2_temp__5825__auto__$jscomp$309$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73826_k$jscomp$670$$),null)}$JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$=$APP.$cljs$core$first$$($s__73824__$2_temp__5825__auto__$jscomp$309$$);$b__73826_k$jscomp$670$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$,
0,null);$JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$,1,null);return $APP.$cljs$core$cons$$($APP.$cljs$core$truth_$$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$))?new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73826_k$jscomp$670$$,$JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73826_k$jscomp$670$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1670_c__5501__auto__$jscomp$38_v$jscomp$642_vec__73830$$,$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$207$$.$cljs$core$IFn$_invoke$arity$1$?
$temp__5823__auto__$jscomp$207$$.$cljs$core$IFn$_invoke$arity$1$($b__73826_k$jscomp$670$$):$temp__5823__auto__$jscomp$207$$($b__73826_k$jscomp$670$$))],null),$instaparse$reduction$iter__73823$$($APP.$cljs$core$rest$$($s__73824__$2_temp__5825__auto__$jscomp$309$$)))}return null}},null,null)}($grammar$jscomp$2$$)}()):$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid output format ",$reduction_type$$,
". Use :enlive or :hiccup."]))};$instaparse$combinators_source$opt$$=function($parser$jscomp$22$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$22$$,$instaparse$combinators_source$Epsilon$$)?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$22$$],null)};
$instaparse$combinators_source$plus$$=function($parser$jscomp$23$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$23$$,$instaparse$combinators_source$Epsilon$$)?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$23$$],null)};
$instaparse$combinators_source$star$$=function($parser$jscomp$24$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$24$$,$instaparse$combinators_source$Epsilon$$)?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5192$star$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$24$$],null)};
$instaparse$combinators_source$rep$$=function($m$jscomp$220$$,$n$jscomp$290$$,$parser$jscomp$25$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$25$$,$instaparse$combinators_source$Epsilon$$)?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5193$rep$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$25$$,$APP.$cljs$cst$336$min$$,$m$jscomp$220$$,$APP.$cljs$cst$337$max$$,$n$jscomp$290$$],null)};
$instaparse$combinators_source$string$$=function($s$jscomp$550$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($s$jscomp$550$$,"")?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,$s$jscomp$550$$],null)};
$instaparse$combinators_source$string_ci$$=function($s$jscomp$551$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($s$jscomp$551$$,"")?$instaparse$combinators_source$Epsilon$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5194$string_ci$$,$APP.$cljs$cst$198$string$$,$s$jscomp$551$$],null)};
$instaparse$combinators_source$unicode_char$cljs$0core$0IFn$0_invoke$0arity$02$$=function($lo$jscomp$6$$,$hi$jscomp$8$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5175$lo$$,$lo$jscomp$6$$,$cljs$cst$5176$hi$$,$hi$jscomp$8$$],null)};
$instaparse$combinators_source$regexp$$=function($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$,"")?$JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$=$instaparse$combinators_source$Epsilon$$:($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$=
$APP.$cljs$core$re_pattern$$($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$),$JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$=$APP.$cljs$core$regexp_QMARK_$$($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$)?new RegExp(["^",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$.source)].join(""),
$instaparse$util$regexp_flags$$($JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$)):$JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$,$JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5180$regexp$$,$cljs$cst$5180$regexp$$,$JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$],
null));return $JSCompiler_inline_result$jscomp$1674_JSCompiler_temp$jscomp$1672_r$jscomp$131_r$jscomp$inline_8319$$};$instaparse$combinators_source$nt$$=function($s$jscomp$552$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$s$jscomp$552$$],null)};
$instaparse$combinators_source$look$$=function($parser$jscomp$26$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5197$look$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$26$$],null)};$instaparse$combinators_source$neg$$=function($parser$jscomp$27$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5198$neg$$,$APP.$cljs$cst$644$parser$$,$parser$jscomp$27$$],null)};
$instaparse$combinators_source$hide$$=function($parser$jscomp$28$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$28$$,$APP.$cljs$cst$2302$hide$$,!0)};$instaparse$combinators_source$hide_tag$$=function($parser$jscomp$29$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$29$$,$APP.$cljs$cst$5182$red$$,$instaparse$reduction$raw_non_terminal_reduction$$)};
$instaparse$combinators_source$unhide_all_content$$=function($grammar$jscomp$3$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,function(){return function $instaparse$combinators_source$unhide_all_content_$_iter__73860$$($s__73861$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__73861__$2_temp__5825__auto__$jscomp$310$$=$APP.$cljs$core$seq$$($s__73861$$);if($s__73861__$2_temp__5825__auto__$jscomp$310$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73861__$2_temp__5825__auto__$jscomp$310$$)){var $JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$=
$APP.$cljs$core$_chunked_first$$($s__73861__$2_temp__5825__auto__$jscomp$310$$),$size__5502__auto__$jscomp$39$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$),$b__73863_k$jscomp$672$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$39$$);a:{for(var $i__73862$jscomp$inline_8321$$=0;;)if($i__73862$jscomp$inline_8321$$<$size__5502__auto__$jscomp$39$$){var $b$jscomp$inline_12769_vec__73864$jscomp$inline_8322$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$,
$i__73862$jscomp$inline_8321$$),$k$jscomp$inline_8323_x$jscomp$inline_12770$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12769_vec__73864$jscomp$inline_8322$$,0,null),$v$jscomp$inline_8324$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12769_vec__73864$jscomp$inline_8322$$,1,null);$b$jscomp$inline_12769_vec__73864$jscomp$inline_8322$$=$b__73863_k$jscomp$672$$;$k$jscomp$inline_8323_x$jscomp$inline_12770$$=new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8323_x$jscomp$inline_12770$$,$instaparse$combinators_source$unhide_content$$($v$jscomp$inline_8324$$)],null);$b$jscomp$inline_12769_vec__73864$jscomp$inline_8322$$.add($k$jscomp$inline_8323_x$jscomp$inline_12770$$);$i__73862$jscomp$inline_8321$$+=1}else{$JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$=!0;break a}$JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$=
void 0}return $JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73863_k$jscomp$672$$),$instaparse$combinators_source$unhide_all_content_$_iter__73860$$($APP.$cljs$core$_chunked_rest$$($s__73861__$2_temp__5825__auto__$jscomp$310$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73863_k$jscomp$672$$),null)}$JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$=
$APP.$cljs$core$first$$($s__73861__$2_temp__5825__auto__$jscomp$310$$);$b__73863_k$jscomp$672$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$,0,null);$JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$,1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73863_k$jscomp$672$$,$instaparse$combinators_source$unhide_content$$($JSCompiler_inline_result$jscomp$1675_c__5501__auto__$jscomp$39_v$jscomp$644_vec__73867$$)],null),$instaparse$combinators_source$unhide_all_content_$_iter__73860$$($APP.$cljs$core$rest$$($s__73861__$2_temp__5825__auto__$jscomp$310$$)))}return null}},null,null)}($grammar$jscomp$3$$)}())};
$instaparse$combinators_source$unhide_tags$$=function($reduction_type$jscomp$1$$,$grammar$jscomp$4$$){var $temp__5823__auto__$jscomp$208$$=$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$($reduction_type$jscomp$1$$):$instaparse$reduction$reduction_types$$($reduction_type$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$208$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
function(){return function $instaparse$combinators_source$unhide_tags_$_iter__73870$$($s__73871$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__73871__$2_temp__5825__auto__$jscomp$311$$=$APP.$cljs$core$seq$$($s__73871$$);if($s__73871__$2_temp__5825__auto__$jscomp$311$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73871__$2_temp__5825__auto__$jscomp$311$$)){var $JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$=$APP.$cljs$core$_chunked_first$$($s__73871__$2_temp__5825__auto__$jscomp$311$$),
$size__5502__auto__$jscomp$40$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$),$b__73873_k$jscomp$674$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$40$$);a:{for(var $i__73872$jscomp$inline_8326$$=0;;)if($i__73872$jscomp$inline_8326$$<$size__5502__auto__$jscomp$40$$){var $b$jscomp$inline_12772_vec__73874$jscomp$inline_8327$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$,
$i__73872$jscomp$inline_8326$$),$k$jscomp$inline_8328_x$jscomp$inline_12773$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12772_vec__73874$jscomp$inline_8327$$,0,null),$v$jscomp$inline_8329$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12772_vec__73874$jscomp$inline_8327$$,1,null);$b$jscomp$inline_12772_vec__73874$jscomp$inline_8327$$=$b__73873_k$jscomp$674$$;$k$jscomp$inline_8328_x$jscomp$inline_12773$$=new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8328_x$jscomp$inline_12773$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($v$jscomp$inline_8329$$,$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$208$$.$cljs$core$IFn$_invoke$arity$1$?$temp__5823__auto__$jscomp$208$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$inline_8328_x$jscomp$inline_12773$$):$temp__5823__auto__$jscomp$208$$($k$jscomp$inline_8328_x$jscomp$inline_12773$$))],null);$b$jscomp$inline_12772_vec__73874$jscomp$inline_8327$$.add($k$jscomp$inline_8328_x$jscomp$inline_12773$$);
$i__73872$jscomp$inline_8326$$+=1}else{$JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$=!0;break a}$JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$=void 0}return $JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73873_k$jscomp$674$$),$instaparse$combinators_source$unhide_tags_$_iter__73870$$($APP.$cljs$core$_chunked_rest$$($s__73871__$2_temp__5825__auto__$jscomp$311$$))):
$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73873_k$jscomp$674$$),null)}$JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$=$APP.$cljs$core$first$$($s__73871__$2_temp__5825__auto__$jscomp$311$$);$b__73873_k$jscomp$674$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$,0,null);$JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$,1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73873_k$jscomp$674$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1676_c__5501__auto__$jscomp$40_v$jscomp$646_vec__73877$$,$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$208$$.$cljs$core$IFn$_invoke$arity$1$?
$temp__5823__auto__$jscomp$208$$.$cljs$core$IFn$_invoke$arity$1$($b__73873_k$jscomp$674$$):$temp__5823__auto__$jscomp$208$$($b__73873_k$jscomp$674$$))],null),$instaparse$combinators_source$unhide_tags_$_iter__73870$$($APP.$cljs$core$rest$$($s__73871__$2_temp__5825__auto__$jscomp$311$$)))}return null}},null,null)}($grammar$jscomp$4$$)}()):$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid output format ",
$reduction_type$jscomp$1$$,". Use :enlive or :hiccup."]))};
$instaparse$combinators_source$unhide_all$$=function($reduction_type$jscomp$2$$,$grammar$jscomp$5$$){var $temp__5823__auto__$jscomp$209$$=$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$reduction$reduction_types$$.$cljs$core$IFn$_invoke$arity$1$($reduction_type$jscomp$2$$):$instaparse$reduction$reduction_types$$($reduction_type$jscomp$2$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$209$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
function(){return function $instaparse$combinators_source$unhide_all_$_iter__73880$$($s__73881$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__73881__$2_temp__5825__auto__$jscomp$312$$=$APP.$cljs$core$seq$$($s__73881$$);if($s__73881__$2_temp__5825__auto__$jscomp$312$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73881__$2_temp__5825__auto__$jscomp$312$$)){var $JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$=$APP.$cljs$core$_chunked_first$$($s__73881__$2_temp__5825__auto__$jscomp$312$$),
$size__5502__auto__$jscomp$41$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$),$b__73883_k$jscomp$676$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$41$$);a:{for(var $i__73882$jscomp$inline_8331$$=0;;)if($i__73882$jscomp$inline_8331$$<$size__5502__auto__$jscomp$41$$){var $b$jscomp$inline_12775_vec__73884$jscomp$inline_8332$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$,
$i__73882$jscomp$inline_8331$$),$k$jscomp$inline_8333_x$jscomp$inline_12776$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12775_vec__73884$jscomp$inline_8332$$,0,null),$v$jscomp$inline_8334$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12775_vec__73884$jscomp$inline_8332$$,1,null);$b$jscomp$inline_12775_vec__73884$jscomp$inline_8332$$=$b__73883_k$jscomp$676$$;$k$jscomp$inline_8333_x$jscomp$inline_12776$$=new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8333_x$jscomp$inline_12776$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($instaparse$combinators_source$unhide_content$$($v$jscomp$inline_8334$$),$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$209$$.$cljs$core$IFn$_invoke$arity$1$?$temp__5823__auto__$jscomp$209$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$inline_8333_x$jscomp$inline_12776$$):$temp__5823__auto__$jscomp$209$$($k$jscomp$inline_8333_x$jscomp$inline_12776$$))],
null);$b$jscomp$inline_12775_vec__73884$jscomp$inline_8332$$.add($k$jscomp$inline_8333_x$jscomp$inline_12776$$);$i__73882$jscomp$inline_8331$$+=1}else{$JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$=!0;break a}$JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$=void 0}return $JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73883_k$jscomp$676$$),
$instaparse$combinators_source$unhide_all_$_iter__73880$$($APP.$cljs$core$_chunked_rest$$($s__73881__$2_temp__5825__auto__$jscomp$312$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73883_k$jscomp$676$$),null)}$JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$=$APP.$cljs$core$first$$($s__73881__$2_temp__5825__auto__$jscomp$312$$);$b__73883_k$jscomp$676$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$,
0,null);$JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$,1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73883_k$jscomp$676$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($instaparse$combinators_source$unhide_content$$($JSCompiler_inline_result$jscomp$1677_c__5501__auto__$jscomp$41_v$jscomp$648_vec__73887$$),
$APP.$cljs$cst$5182$red$$,$temp__5823__auto__$jscomp$209$$.$cljs$core$IFn$_invoke$arity$1$?$temp__5823__auto__$jscomp$209$$.$cljs$core$IFn$_invoke$arity$1$($b__73883_k$jscomp$676$$):$temp__5823__auto__$jscomp$209$$($b__73883_k$jscomp$676$$))],null),$instaparse$combinators_source$unhide_all_$_iter__73880$$($APP.$cljs$core$rest$$($s__73881__$2_temp__5825__auto__$jscomp$312$$)))}return null}},null,null)}($grammar$jscomp$5$$)}()):$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid output format ",
$reduction_type$jscomp$2$$,". Use :enlive or :hiccup."]))};
$instaparse$combinators_source$auto_whitespace$$=function($grammar$jscomp$6$$,$final_grammar_start$jscomp$231$$,$grammar_ws_grammar_ws__$1$$,$modified_grammar_start_ws$$){var $ws_parser$jscomp$1$$=$instaparse$combinators_source$hide$$($instaparse$combinators_source$opt$$($instaparse$combinators_source$nt$$($modified_grammar_start_ws$$)));$grammar_ws_grammar_ws__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($grammar_ws_grammar_ws__$1$$,$modified_grammar_start_ws$$,$instaparse$combinators_source$hide_tag$$($grammar_ws_grammar_ws__$1$$.$cljs$core$IFn$_invoke$arity$1$?
$grammar_ws_grammar_ws__$1$$.$cljs$core$IFn$_invoke$arity$1$($modified_grammar_start_ws$$):$grammar_ws_grammar_ws__$1$$($modified_grammar_start_ws$$)));$modified_grammar_start_ws$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,function(){return function $instaparse$combinators_source$auto_whitespace_$_iter__73896$$($s__73897$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__73897__$2_temp__5825__auto__$jscomp$313$$=$APP.$cljs$core$seq$$($s__73897$$);
if($s__73897__$2_temp__5825__auto__$jscomp$313$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__73897__$2_temp__5825__auto__$jscomp$313$$)){var $JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$=$APP.$cljs$core$_chunked_first$$($s__73897__$2_temp__5825__auto__$jscomp$313$$),$size__5502__auto__$jscomp$42$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$),$b__73899_nt$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$42$$);
a:{for(var $i__73898$jscomp$inline_8336$$=0;;)if($i__73898$jscomp$inline_8336$$<$size__5502__auto__$jscomp$42$$){var $b$jscomp$inline_12778_vec__73900$jscomp$inline_8337$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$,$i__73898$jscomp$inline_8336$$),$nt$jscomp$inline_8338_x$jscomp$inline_12779$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12778_vec__73900$jscomp$inline_8337$$,0,null),$parser$jscomp$inline_8339$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12778_vec__73900$jscomp$inline_8337$$,1,null);$b$jscomp$inline_12778_vec__73900$jscomp$inline_8337$$=$b__73899_nt$$;$nt$jscomp$inline_8338_x$jscomp$inline_12779$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$nt$jscomp$inline_8338_x$jscomp$inline_12779$$,$instaparse$combinators_source$auto_whitespace_parser$$($parser$jscomp$inline_8339$$,$ws_parser$jscomp$1$$)],null);$b$jscomp$inline_12778_vec__73900$jscomp$inline_8337$$.add($nt$jscomp$inline_8338_x$jscomp$inline_12779$$);
$i__73898$jscomp$inline_8336$$+=1}else{$JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$=!0;break a}$JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$=void 0}return $JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73899_nt$$),$instaparse$combinators_source$auto_whitespace_$_iter__73896$$($APP.$cljs$core$_chunked_rest$$($s__73897__$2_temp__5825__auto__$jscomp$313$$))):
$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__73899_nt$$),null)}$JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$=$APP.$cljs$core$first$$($s__73897__$2_temp__5825__auto__$jscomp$313$$);$b__73899_nt$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$,0,null);$JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$,1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__73899_nt$$,$instaparse$combinators_source$auto_whitespace_parser$$($JSCompiler_inline_result$jscomp$1678_c__5501__auto__$jscomp$42_parser$jscomp$33_vec__73903$$,$ws_parser$jscomp$1$$)],null),$instaparse$combinators_source$auto_whitespace_$_iter__73896$$($APP.$cljs$core$rest$$($s__73897__$2_temp__5825__auto__$jscomp$313$$)))}return null}},
null,null)}($grammar$jscomp$6$$)}());$final_grammar_start$jscomp$231$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($modified_grammar_start_ws$$,$final_grammar_start$jscomp$231$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($modified_grammar_start_ws$$.$cljs$core$IFn$_invoke$arity$1$?
$modified_grammar_start_ws$$.$cljs$core$IFn$_invoke$arity$1$($final_grammar_start$jscomp$231$$):$modified_grammar_start_ws$$($final_grammar_start$jscomp$231$$),$APP.$cljs$cst$5182$red$$),$ws_parser$jscomp$1$$])),$APP.$cljs$cst$5182$red$$,$APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($modified_grammar_start_ws$$.$cljs$core$IFn$_invoke$arity$1$?$modified_grammar_start_ws$$.$cljs$core$IFn$_invoke$arity$1$($final_grammar_start$jscomp$231$$):$modified_grammar_start_ws$$($final_grammar_start$jscomp$231$$))));
return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$final_grammar_start$jscomp$231$$,$grammar_ws_grammar_ws__$1$$]))};
$goog$i18n$uChar$fromCharCode$$=function($code$jscomp$53$$){if($code$jscomp$53$$==null||!($code$jscomp$53$$>=0&&$code$jscomp$53$$<=1114111))return null;if($code$jscomp$53$$>=65536&&$code$jscomp$53$$<=1114111){const $trailCodePoint$$=($code$jscomp$53$$&1023)+56320;return String.fromCharCode(($code$jscomp$53$$>>10)+55232)+String.fromCharCode($trailCodePoint$$)}return String.fromCharCode($code$jscomp$53$$)};
$goog$i18n$uChar$getCodePointAround$$=function($lead$jscomp$1_string$jscomp$18_trail$$,$index$jscomp$406$$){const $charCode$jscomp$1$$=$lead$jscomp$1_string$jscomp$18_trail$$.charCodeAt($index$jscomp$406$$);if($charCode$jscomp$1$$>=55296&&$charCode$jscomp$1$$<=56319&&$index$jscomp$406$$+1<$lead$jscomp$1_string$jscomp$18_trail$$.length){if($lead$jscomp$1_string$jscomp$18_trail$$=$lead$jscomp$1_string$jscomp$18_trail$$.charCodeAt($index$jscomp$406$$+1),$lead$jscomp$1_string$jscomp$18_trail$$>=56320&&
$lead$jscomp$1_string$jscomp$18_trail$$<=57343)return $charCode$jscomp$1$$>=55296&&$charCode$jscomp$1$$<=56319&&$lead$jscomp$1_string$jscomp$18_trail$$>=56320&&$lead$jscomp$1_string$jscomp$18_trail$$<=57343?($charCode$jscomp$1$$<<10)-56623104+($lead$jscomp$1_string$jscomp$18_trail$$-56320+65536):null}else if($charCode$jscomp$1$$>=56320&&$charCode$jscomp$1$$<=57343&&$index$jscomp$406$$>0&&($lead$jscomp$1_string$jscomp$18_trail$$=$lead$jscomp$1_string$jscomp$18_trail$$.charCodeAt($index$jscomp$406$$-
1),$lead$jscomp$1_string$jscomp$18_trail$$>=55296&&$lead$jscomp$1_string$jscomp$18_trail$$<=56319))return-($lead$jscomp$1_string$jscomp$18_trail$$>=55296&&$lead$jscomp$1_string$jscomp$18_trail$$<=56319&&$charCode$jscomp$1$$>=56320&&$charCode$jscomp$1$$<=57343?($lead$jscomp$1_string$jscomp$18_trail$$<<10)-56623104+($charCode$jscomp$1$$-56320+65536):0);return $charCode$jscomp$1$$};
$instaparse$gll$_parse$$=function($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$){var $G__74707_G__74707__$1$$=$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$35$$);$G__74707_G__74707__$1$$=$G__74707_G__74707__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__74707_G__74707__$1$$.$fqn$:null;switch($G__74707_G__74707__$1$$){case "nt":return $instaparse$gll$non_terminal_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$non_terminal_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,
$index$jscomp$407$$,$tramp$$):$instaparse$gll$non_terminal_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "alt":return $instaparse$gll$alt_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$alt_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$alt_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "cat":return $instaparse$gll$cat_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$cat_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,
$index$jscomp$407$$,$tramp$$):$instaparse$gll$cat_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "string":return $instaparse$gll$string_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$string_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$string_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "string-ci":return $instaparse$gll$string_case_insensitive_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$string_case_insensitive_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,
$index$jscomp$407$$,$tramp$$):$instaparse$gll$string_case_insensitive_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "char":return $instaparse$gll$char_range_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$char_range_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$char_range_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "epsilon":return $instaparse$gll$epsilon_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$epsilon_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$epsilon_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "opt":return $instaparse$gll$opt_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$opt_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$opt_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "plus":return $instaparse$gll$plus_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$plus_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$plus_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "rep":return $instaparse$gll$rep_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$rep_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$rep_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "star":return $instaparse$gll$star_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$star_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$star_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "regexp":return $instaparse$gll$regexp_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$regexp_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$regexp_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "look":return $instaparse$gll$lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$lookahead_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);case "neg":return $instaparse$gll$negative_lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$negative_lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$negative_lookahead_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,
$tramp$$);case "ord":return $instaparse$gll$ordered_alt_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$ordered_alt_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$):$instaparse$gll$ordered_alt_parse$$($parser$jscomp$35$$,$index$jscomp$407$$,$tramp$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74707_G__74707__$1$$)].join(""));}};
$instaparse$gll$_full_parse$$=function($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$){var $G__74710_G__74710__$1$$=$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$36$$);$G__74710_G__74710__$1$$=$G__74710_G__74710__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__74710_G__74710__$1$$.$fqn$:null;switch($G__74710_G__74710__$1$$){case "nt":return $instaparse$gll$non_terminal_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$non_terminal_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,
$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$non_terminal_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "alt":return $instaparse$gll$alt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$alt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$alt_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "cat":return $instaparse$gll$cat_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$cat_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$cat_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "string":return $instaparse$gll$string_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$string_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$string_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,
$tramp$jscomp$1$$);case "string-ci":return $instaparse$gll$string_case_insensitive_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$string_case_insensitive_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$string_case_insensitive_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "char":return $instaparse$gll$char_range_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$char_range_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,
$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$char_range_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "epsilon":return $instaparse$gll$epsilon_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$epsilon_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$epsilon_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "opt":return $instaparse$gll$opt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$opt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$opt_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "plus":return $instaparse$gll$plus_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$plus_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$plus_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);
case "rep":return $instaparse$gll$rep_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$rep_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$rep_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "star":return $instaparse$gll$star_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$star_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):
$instaparse$gll$star_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "regexp":return $instaparse$gll$regexp_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$regexp_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$regexp_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "look":return $instaparse$gll$lookahead_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$lookahead_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,
$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$lookahead_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "neg":return $instaparse$gll$negative_lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$?$instaparse$gll$negative_lookahead_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$negative_lookahead_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);case "ord":return $instaparse$gll$ordered_alt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$?
$instaparse$gll$ordered_alt_full_parse$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$):$instaparse$gll$ordered_alt_full_parse$$($parser$jscomp$36$$,$index$jscomp$408$$,$tramp$jscomp$1$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74710_G__74710__$1$$)].join(""));}};
$instaparse$gll$Failure$$=function($index$jscomp$409$$,$reason$jscomp$26$$,$__meta$jscomp$35$$,$__extmap$jscomp$35$$,$__hash$jscomp$94$$){this.index=$index$jscomp$409$$;this.reason=$reason$jscomp$26$$;this.$__meta$=$__meta$jscomp$35$$;this.$__extmap$=$__extmap$jscomp$35$$;this.$__hash$=$__hash$jscomp$94$$;this.$cljs$lang$protocol_mask$partition0$$=2230716170;this.$cljs$lang$protocol_mask$partition1$$=139264};
$instaparse$gll$Tramp$$=function($grammar$jscomp$8$$,$text$jscomp$76$$,$segment$jscomp$47$$,$fail_index$$,$node_builder$$,$stack$jscomp$34$$,$next_stack$jscomp$2$$,$generation$$,$negative_listeners$$,$msg_cache$$,$nodes$jscomp$36$$,$success$jscomp$7$$,$failure$jscomp$1$$,$trace_QMARK_$$,$__meta$jscomp$36$$,$__extmap$jscomp$36$$,$__hash$jscomp$95$$){this.$grammar$=$grammar$jscomp$8$$;this.text=$text$jscomp$76$$;this.segment=$segment$jscomp$47$$;this.$fail_index$=$fail_index$$;this.$node_builder$=$node_builder$$;
this.stack=$stack$jscomp$34$$;this.$next_stack$=$next_stack$jscomp$2$$;this.$generation$=$generation$$;this.$negative_listeners$=$negative_listeners$$;this.$msg_cache$=$msg_cache$$;this.$nodes$=$nodes$jscomp$36$$;this.$success$=$success$jscomp$7$$;this.$failure$=$failure$jscomp$1$$;this.$trace_QMARK_$=$trace_QMARK_$$;this.$__meta$=$__meta$jscomp$36$$;this.$__extmap$=$__extmap$jscomp$36$$;this.$__hash$=$__hash$jscomp$95$$;this.$cljs$lang$protocol_mask$partition0$$=2230716170;this.$cljs$lang$protocol_mask$partition1$$=
139264};
$instaparse$gll$make_tramp$cljs$0core$0IFn$0_invoke$0arity$05$$=function($grammar$jscomp$13$$,$text$jscomp$81$$,$segment$jscomp$50$$,$fail_index$jscomp$3$$,$node_builder$jscomp$3$$){return new $instaparse$gll$Tramp$$($grammar$jscomp$13$$,$text$jscomp$81$$,$segment$jscomp$50$$,$fail_index$jscomp$3$$,$node_builder$jscomp$3$$,$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(0),
$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$sorted_map_by$$($APP.$cljs$core$_GT_$$)),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(new $instaparse$gll$Failure$$(0,$APP.$cljs$core$PersistentVector$EMPTY$$,
null,null,null)),!1,null,null,null)};$instaparse$gll$make_success$$=function($result$jscomp$328$$,$index$jscomp$411$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$826$result$$,$result$jscomp$328$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$411$$],null)};
$instaparse$gll$total_success_QMARK_$$=function($tramp$jscomp$2$$,$s$jscomp$553$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$2$$)),$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($s$jscomp$553$$))};
$instaparse$gll$Node$$=function($listeners$jscomp$1$$,$full_listeners$$,$results$jscomp$2$$,$full_results$$,$__meta$jscomp$37$$,$__extmap$jscomp$37$$,$__hash$jscomp$96$$){this.$listeners$=$listeners$jscomp$1$$;this.$full_listeners$=$full_listeners$$;this.results=$results$jscomp$2$$;this.$full_results$=$full_results$$;this.$__meta$=$__meta$jscomp$37$$;this.$__extmap$=$__extmap$jscomp$37$$;this.$__hash$=$__hash$jscomp$96$$;this.$cljs$lang$protocol_mask$partition0$$=2230716170;this.$cljs$lang$protocol_mask$partition1$$=
139264};$instaparse$gll$push_stack$$=function($tramp$jscomp$3$$,$item$jscomp$118$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$3556$stack$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$3$$),$APP.$cljs$core$conj$$,$item$jscomp$118$$)};
$instaparse$gll$push_message$$=function($tramp$jscomp$4$$,$listener$jscomp$103$$,$result$jscomp$329$$){function $f$jscomp$840$$(){return $listener$jscomp$103$$.$cljs$core$IFn$_invoke$arity$1$?$listener$jscomp$103$$.$cljs$core$IFn$_invoke$arity$1$($result$jscomp$329$$):$listener$jscomp$103$$($result$jscomp$329$$)}var $cache$jscomp$103$$=$cljs$cst$5205$msg_cache$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$4$$),$i$jscomp$516_k$jscomp$678$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($result$jscomp$329$$);
$i$jscomp$516_k$jscomp$678$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$listener$jscomp$103$$,$i$jscomp$516_k$jscomp$678$$],null);var $c$jscomp$300$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($cache$jscomp$103$$),$i$jscomp$516_k$jscomp$678$$,0);$c$jscomp$300$$>$APP.$cljs$core$deref$$($cljs$cst$5203$generation$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$4$$))?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($cljs$cst$5202$next_stack$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$4$$),
$APP.$cljs$core$conj$$,$f$jscomp$840$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$3556$stack$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$4$$),$APP.$cljs$core$conj$$,$f$jscomp$840$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($cache$jscomp$103$$,$APP.$cljs$core$assoc$$,$i$jscomp$516_k$jscomp$678$$,$c$jscomp$300$$+1)};
$instaparse$gll$listener_exists_QMARK_$$=function($fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$,$node_key_temp__5825__auto__$jscomp$314$$){$fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$=$cljs$cst$5206$nodes$$.$cljs$core$IFn$_invoke$arity$1$($fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$);$fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$=$APP.$cljs$core$_deref$$($fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$);
$node_key_temp__5825__auto__$jscomp$314$$=$fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($node_key_temp__5825__auto__$jscomp$314$$):$fexpr__74820$jscomp$inline_8341_nodes$jscomp$38_tramp$jscomp$5$$($node_key_temp__5825__auto__$jscomp$314$$);return $APP.$cljs$core$truth_$$($node_key_temp__5825__auto__$jscomp$314$$)?$APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5219$listeners$$.$cljs$core$IFn$_invoke$arity$1$($node_key_temp__5825__auto__$jscomp$314$$)))>
0:null};
$instaparse$gll$full_listener_exists_QMARK_$$=function($fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$,$node_key$jscomp$1_temp__5825__auto__$jscomp$315$$){$fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$=$cljs$cst$5206$nodes$$.$cljs$core$IFn$_invoke$arity$1$($fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$);$fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$=$APP.$cljs$core$_deref$$($fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$);$node_key$jscomp$1_temp__5825__auto__$jscomp$315$$=
$fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$1_temp__5825__auto__$jscomp$315$$):$fexpr__74821$jscomp$inline_8343_nodes$jscomp$39_tramp$jscomp$6$$($node_key$jscomp$1_temp__5825__auto__$jscomp$315$$);return $APP.$cljs$core$truth_$$($node_key$jscomp$1_temp__5825__auto__$jscomp$315$$)?$APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5220$full_listeners$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$1_temp__5825__auto__$jscomp$315$$)))>
0||$APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5219$listeners$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$1_temp__5825__auto__$jscomp$315$$)))>0:null};
$instaparse$gll$result_exists_QMARK_$$=function($fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$,$node_key$jscomp$2_temp__5825__auto__$jscomp$316$$){$fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$=$cljs$cst$5206$nodes$$.$cljs$core$IFn$_invoke$arity$1$($fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$);$fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$=$APP.$cljs$core$_deref$$($fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$);
$node_key$jscomp$2_temp__5825__auto__$jscomp$316$$=$fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$2_temp__5825__auto__$jscomp$316$$):$fexpr__74822$jscomp$inline_8345_nodes$jscomp$40_tramp$jscomp$7$$($node_key$jscomp$2_temp__5825__auto__$jscomp$316$$);return $APP.$cljs$core$truth_$$($node_key$jscomp$2_temp__5825__auto__$jscomp$316$$)?
$APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5222$full_results$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$2_temp__5825__auto__$jscomp$316$$)))>0||$APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5221$results$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$2_temp__5825__auto__$jscomp$316$$)))>0:null};
$instaparse$gll$node_get$$=function($nodes$jscomp$42_tramp$jscomp$9$$,$node_key$jscomp$4$$){$nodes$jscomp$42_tramp$jscomp$9$$=$cljs$cst$5206$nodes$$.$cljs$core$IFn$_invoke$arity$1$($nodes$jscomp$42_tramp$jscomp$9$$);var $fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$=$APP.$cljs$core$_deref$$($nodes$jscomp$42_tramp$jscomp$9$$);$fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$=$fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$.$cljs$core$IFn$_invoke$arity$1$?
$fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$.$cljs$core$IFn$_invoke$arity$1$($node_key$jscomp$4$$):$fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$($node_key$jscomp$4$$);$APP.$cljs$core$truth_$$($fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$)||($fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$=new $instaparse$gll$Node$$($APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$),
$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),null,null,null),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($nodes$jscomp$42_tramp$jscomp$9$$,$APP.$cljs$core$assoc$$,$node_key$jscomp$4$$,$fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$));
return $fexpr__74824$jscomp$inline_8347_node$jscomp$383_temp__5823__auto__$jscomp$210$$};
$instaparse$gll$safe_with_meta$$=function($obj$jscomp$213$$,$metamap$jscomp$2$$){return($obj$jscomp$213$$!=null?$obj$jscomp$213$$.$cljs$lang$protocol_mask$partition0$$&262144||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$obj$jscomp$213$$.$cljs$core$IWithMeta$$||($obj$jscomp$213$$.$cljs$lang$protocol_mask$partition0$$?0:$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IWithMeta$$,$obj$jscomp$213$$)):$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IWithMeta$$,$obj$jscomp$213$$))?$APP.$cljs$core$with_meta$$($obj$jscomp$213$$,
$metamap$jscomp$2$$):$obj$jscomp$213$$};
$instaparse$gll$push_result$$=function($tramp$jscomp$10$$,$node_key$jscomp$5$$,$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$){var $c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$instaparse$gll$node_get$$($tramp$jscomp$10$$,$node_key$jscomp$5$$),$parser$jscomp$37$$=$node_key$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$(1):$node_key$jscomp$5$$(1),$result__$1$jscomp$41$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$37$$))?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$,$APP.$cljs$cst$826$result$$,null):$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$,$result__$2$jscomp$9$$=function(){var $temp__5823__auto__$jscomp$211$$=$APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$37$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$211$$)?$instaparse$gll$make_success$$($instaparse$gll$safe_with_meta$$($instaparse$reduction$apply_reduction$$($temp__5823__auto__$jscomp$211$$,
$APP.$cljs$cst$826$result$$.$cljs$core$IFn$_invoke$arity$1$($result__$1$jscomp$41$$)),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,$node_key$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$(0):$node_key$jscomp$5$$(0),$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($result__$1$jscomp$41$$)],null)),$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($result__$1$jscomp$41$$)):
$result__$1$jscomp$41$$}(),$results$jscomp$4$$=($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$=$instaparse$gll$total_success_QMARK_$$($tramp$jscomp$10$$,$result__$2$jscomp$9$$))?$cljs$cst$5222$full_results$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$):$cljs$cst$5221$results$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$);if($APP.$cljs$core$not$$(function(){var $fexpr__74826$$=
$APP.$cljs$core$_deref$$($results$jscomp$4$$);return $fexpr__74826$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__74826$$.$cljs$core$IFn$_invoke$arity$1$($result__$2$jscomp$9$$):$fexpr__74826$$($result__$2$jscomp$9$$)}())){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($results$jscomp$4$$,$APP.$cljs$core$conj$$,$result__$2$jscomp$9$$);for(var $G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$seq$$($APP.$cljs$core$deref$$($cljs$cst$5219$listeners$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$))),
$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=null,$G__75030_count__74829_75018_i__74834$$=0,$G__75028_i__74830_75019$$=0;;)if($G__75028_i__74830_75019$$<$G__75030_count__74829_75018_i__74834$$){var $listener_75020$$=$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75028_i__74830_75019$$);$instaparse$gll$push_message$$($tramp$jscomp$10$$,$listener_75020$$,$result__$2$jscomp$9$$);$G__75028_i__74830_75019$$+=
1}else if($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$seq$$($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$))$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$)?
($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$_chunked_first$$($G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$),$G__75028_i__74830_75019$$=$APP.$cljs$core$_chunked_rest$$($G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$),$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$,
$G__75030_count__74829_75018_i__74834$$=$APP.$cljs$core$count$$($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$),$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$G__75028_i__74830_75019$$):($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$first$$($G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$),
$instaparse$gll$push_message$$($tramp$jscomp$10$$,$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$,$result__$2$jscomp$9$$),$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$next$$($G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$),$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=null,$G__75030_count__74829_75018_i__74834$$=
0),$G__75028_i__74830_75019$$=0;else break;if($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$)for($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$APP.$cljs$core$seq$$($APP.$cljs$core$deref$$($cljs$cst$5220$full_listeners$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$))),$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$=null,$G__75030_count__74829_75018_i__74834$$=
$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=0;;)if($G__75030_count__74829_75018_i__74834$$<$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$)$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75030_count__74829_75018_i__74834$$),$instaparse$gll$push_message$$($tramp$jscomp$10$$,
$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$,$result__$2$jscomp$9$$),$G__75030_count__74829_75018_i__74834$$+=1;else if($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$))$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$=$c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$,
$APP.$cljs$core$chunked_seq_QMARK_$$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$)?($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$APP.$cljs$core$_chunked_first$$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$),$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=$APP.$cljs$core$_chunked_rest$$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$),$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$=
$c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$,$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$),$c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$,$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=
$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$):($G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$=$APP.$cljs$core$first$$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$),$instaparse$gll$push_message$$($tramp$jscomp$10$$,$G__75043_c__5548__auto___75027_listener$jscomp$104_listener_75032_seq__74827_75016_temp__5825__auto___75025$$,$result__$2$jscomp$9$$),
$c__5548__auto__$jscomp$37_node$jscomp$384_seq__74831_temp__5825__auto__$jscomp$318$$=$APP.$cljs$core$next$$($G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$),$G__75042_chunk__74832_result$jscomp$330_seq__74831__$1_total_QMARK_$$=null,$G__75029_G__75041_chunk__74828_75017_count__74833_seq__74827_75026__$1$$=0),$G__75030_count__74829_75018_i__74834$$=0;else return null;else return null}else return null};
$instaparse$gll$push_listener$$=function($tramp$jscomp$11$$,$node_key$jscomp$6$$,$listener$jscomp$105$$){var $listener_already_exists_QMARK_$$=$instaparse$gll$listener_exists_QMARK_$$($tramp$jscomp$11$$,$node_key$jscomp$6$$),$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$instaparse$gll$node_get$$($tramp$jscomp$11$$,$node_key$jscomp$6$$),$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=
$cljs$cst$5219$listeners$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$,$APP.$cljs$core$conj$$,$listener$jscomp$105$$);$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=
$APP.$cljs$core$seq$$($APP.$cljs$core$deref$$($cljs$cst$5221$results$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$)));for(var $G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=null,$G__75067_G__75087_count__74837_75055_i__74842_75078$$=0,$G__75065_i__74838_75056_result_75079$$=0;;)if($G__75065_i__74838_75056_result_75079$$<$G__75067_G__75087_count__74837_75055_i__74842_75078$$){var $result_75057$$=
$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75065_i__74838_75056_result_75079$$);$instaparse$gll$push_message$$($tramp$jscomp$11$$,$listener$jscomp$105$$,$result_75057$$);$G__75065_i__74838_75056_result_75079$$+=1}else if($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$APP.$cljs$core$seq$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$))$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=
$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$)?($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$APP.$cljs$core$_chunked_first$$($G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$),
$G__75065_i__74838_75056_result_75079$$=$APP.$cljs$core$_chunked_rest$$($G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$),$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$,$G__75067_G__75087_count__74837_75055_i__74842_75078$$=$APP.$cljs$core$count$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),
$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$G__75065_i__74838_75056_result_75079$$):($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$APP.$cljs$core$first$$($G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$),$instaparse$gll$push_message$$($tramp$jscomp$11$$,$listener$jscomp$105$$,
$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$APP.$cljs$core$next$$($G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$),$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=null,$G__75067_G__75087_count__74837_75055_i__74842_75078$$=
0),$G__75065_i__74838_75056_result_75079$$=0;else break;$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$APP.$cljs$core$seq$$($APP.$cljs$core$deref$$($cljs$cst$5222$full_results$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$)));$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=
null;for($G__75067_G__75087_count__74837_75055_i__74842_75078$$=$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=0;;)if($G__75067_G__75087_count__74837_75055_i__74842_75078$$<$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$)$G__75065_i__74838_75056_result_75079$$=$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$.$cljs$core$IIndexed$_nth$arity$2$(null,
$G__75067_G__75087_count__74837_75055_i__74842_75078$$),$instaparse$gll$push_message$$($tramp$jscomp$11$$,$listener$jscomp$105$$,$G__75065_i__74838_75056_result_75079$$),$G__75067_G__75087_count__74837_75055_i__74842_75078$$+=1;else if($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$APP.$cljs$core$seq$$($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$))$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=
$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$)?($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$APP.$cljs$core$_chunked_first$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),
$G__75067_G__75087_count__74837_75055_i__74842_75078$$=$APP.$cljs$core$_chunked_rest$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$,$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=
$APP.$cljs$core$count$$($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$),$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$G__75067_G__75087_count__74837_75055_i__74842_75078$$):($c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$APP.$cljs$core$first$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),
$instaparse$gll$push_message$$($tramp$jscomp$11$$,$listener$jscomp$105$$,$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$),$c__5548__auto___75086_node$jscomp$385_result_75091_seq__74839_75075_temp__5825__auto___75084$$=$APP.$cljs$core$next$$($G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$),$G__75088_c__5548__auto___75064_chunk__74840_75076_listeners$jscomp$3_result_75069_seq__74835_75053_seq__74839_75085__$1_temp__5825__auto___75062$$=
null,$G__75066_G__75089_chunk__74836_75054_count__74841_75077_seq__74835_75063__$1$$=0),$G__75067_G__75087_count__74837_75055_i__74842_75078$$=0;else break;return $APP.$cljs$core$not$$($listener_already_exists_QMARK_$$)?$instaparse$gll$push_stack$$($tramp$jscomp$11$$,function(){return $instaparse$gll$_parse$$($node_key$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$(1):$node_key$jscomp$6$$(1),$node_key$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$(0):
$node_key$jscomp$6$$(0),$tramp$jscomp$11$$)}):null};
$instaparse$gll$push_full_listener$$=function($tramp$jscomp$12$$,$node_key$jscomp$7$$,$listener$jscomp$106$$){var $full_listener_already_exists_QMARK_$$=$instaparse$gll$full_listener_exists_QMARK_$$($tramp$jscomp$12$$,$node_key$jscomp$7$$),$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=$instaparse$gll$node_get$$($tramp$jscomp$12$$,$node_key$jscomp$7$$),$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$=$cljs$cst$5220$full_listeners$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$);
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$,$APP.$cljs$core$conj$$,$listener$jscomp$106$$);$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=$APP.$cljs$core$seq$$($APP.$cljs$core$deref$$($cljs$cst$5222$full_results$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$)));$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$=
null;for(var $G__75111_count__74845_75098$$=0,$G__75109_i__74846_75099$$=0;;)if($G__75109_i__74846_75099$$<$G__75111_count__74845_75098$$){var $result_75100$$=$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75109_i__74846_75099$$);$instaparse$gll$push_message$$($tramp$jscomp$12$$,$listener$jscomp$106$$,$result_75100$$);$G__75109_i__74846_75099$$+=1}else if($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=
$APP.$cljs$core$seq$$($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$))$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$=$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$)?($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=$APP.$cljs$core$_chunked_first$$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$),
$G__75109_i__74846_75099$$=$APP.$cljs$core$_chunked_rest$$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$),$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$=$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$,$G__75111_count__74845_75098$$=$APP.$cljs$core$count$$($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$),$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=
$G__75109_i__74846_75099$$):($c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=$APP.$cljs$core$first$$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$),$instaparse$gll$push_message$$($tramp$jscomp$12$$,$listener$jscomp$106$$,$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$),$c__5548__auto___75108_node$jscomp$386_result_75113_seq__74843_75096_temp__5825__auto___75105$$=$APP.$cljs$core$next$$($G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$),
$G__75110_chunk__74844_75097_listeners$jscomp$4_seq__74843_75107__$1$$=null,$G__75111_count__74845_75098$$=0),$G__75109_i__74846_75099$$=0;else break;return $APP.$cljs$core$not$$($full_listener_already_exists_QMARK_$$)?$instaparse$gll$push_stack$$($tramp$jscomp$12$$,function(){return $instaparse$gll$_full_parse$$($node_key$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$(1):$node_key$jscomp$7$$(1),$node_key$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$?
$node_key$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$(0):$node_key$jscomp$7$$(0),$tramp$jscomp$12$$)}):null};
$instaparse$gll$push_negative_listener$$=function($tramp$jscomp$13$$,$creator$$,$negative_listener$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($cljs$cst$5204$negative_listeners$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$13$$),$instaparse$gll$merge_negative_listeners$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$creator$$.$cljs$core$IFn$_invoke$arity$1$?$creator$$.$cljs$core$IFn$_invoke$arity$1$(0):$creator$$(0),new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$negative_listener$$],null)]))};
$instaparse$gll$fail$$=function($tramp$jscomp$14$$,$node_key$jscomp$8$$,$index$jscomp$412$$,$reason$jscomp$28$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$845$failure$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$),function($failure$jscomp$3$$){var $G__74847_current_index$jscomp$6$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($failure$jscomp$3$$);$G__74847_current_index$jscomp$6$$=$APP.$cljs$core$compare$$($index$jscomp$412$$,$G__74847_current_index$jscomp$6$$);
switch($G__74847_current_index$jscomp$6$$){case 1:return new $instaparse$gll$Failure$$($index$jscomp$412$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$reason$jscomp$28$$],null),null,null,null);case 0:return new $instaparse$gll$Failure$$($index$jscomp$412$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$982$reason$$.$cljs$core$IFn$_invoke$arity$1$($failure$jscomp$3$$),$reason$jscomp$28$$),null,null,null);case -1:return $failure$jscomp$3$$;
default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74847_current_index$jscomp$6$$)].join(""));}});return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$412$$,$cljs$cst$5200$fail_index$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$))?$instaparse$gll$push_result$$($tramp$jscomp$14$$,$node_key$jscomp$8$$,$instaparse$gll$make_success$$(function(){var $G__74848$$=$cljs$cst$5201$node_builder$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$);
var $G__74850_G__74853$jscomp$inline_8349$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$);$G__74850_G__74853$jscomp$inline_8349$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($G__74850_G__74853$jscomp$inline_8349$$,$index$jscomp$412$$):$APP.$cljs$core$subs$$($G__74850_G__74853$jscomp$inline_8349$$,$index$jscomp$412$$);var $G__74852$$=$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$));
return $instaparse$gll$build_node_with_meta$$.$cljs$core$IFn$_invoke$arity$5$?$instaparse$gll$build_node_with_meta$$.$cljs$core$IFn$_invoke$arity$5$($G__74848$$,$cljs$cst$5229$instaparse_SLASH_failure$$,$G__74850_G__74853$jscomp$inline_8349$$,$index$jscomp$412$$,$G__74852$$):$instaparse$gll$build_node_with_meta$$($G__74848$$,$cljs$cst$5229$instaparse_SLASH_failure$$,$G__74850_G__74853$jscomp$inline_8349$$,$index$jscomp$412$$,$G__74852$$)}(),$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$14$$)))):
null};$instaparse$gll$step$$=function($stack$jscomp$36$$){var $top$jscomp$10$$=$APP.$cljs$core$peek$$($APP.$cljs$core$_deref$$($stack$jscomp$36$$));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($stack$jscomp$36$$,$APP.$cljs$core$pop$$);$top$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$?$top$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$():$top$jscomp$10$$()};
$instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$=function($tramp$jscomp$16$$,$found_result_QMARK__next_stack$jscomp$4$$){for(;;){var $index$jscomp$413_stack$jscomp$37$$=$APP.$cljs$cst$3556$stack$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$deref$$($APP.$cljs$cst$2301$success$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$))))return $APP.$cljs$core$cons$$($APP.$cljs$cst$826$result$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$deref$$($APP.$cljs$cst$2301$success$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$))),
new $APP.$cljs$core$LazySeq$$(null,function($tramp$jscomp$17$$){return function(){$APP.$cljs$core$reset_BANG_$$($APP.$cljs$cst$2301$success$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$17$$),null);return $instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$($tramp$jscomp$17$$,!0)}}($tramp$jscomp$16$$,$found_result_QMARK__next_stack$jscomp$4$$,$index$jscomp$413_stack$jscomp$37$$),null,null));if($APP.$cljs$core$count$$($APP.$cljs$core$_deref$$($index$jscomp$413_stack$jscomp$37$$))>0)$instaparse$gll$step$$($index$jscomp$413_stack$jscomp$37$$);
else if($APP.$cljs$core$count$$($APP.$cljs$core$deref$$($cljs$cst$5204$negative_listeners$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$)))>0){var $listeners$jscomp$5_vec__74857$$=$APP.$cljs$core$first$$($APP.$cljs$core$deref$$($cljs$cst$5204$negative_listeners$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$)));$index$jscomp$413_stack$jscomp$37$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($listeners$jscomp$5_vec__74857$$,0,null);$listeners$jscomp$5_vec__74857$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($listeners$jscomp$5_vec__74857$$,
1,null);var $listener$jscomp$107$$=$APP.$cljs$core$peek$$($listeners$jscomp$5_vec__74857$$);$listener$jscomp$107$$.$cljs$core$IFn$_invoke$arity$0$?$listener$jscomp$107$$.$cljs$core$IFn$_invoke$arity$0$():$listener$jscomp$107$$();$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($listeners$jscomp$5_vec__74857$$),1)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($cljs$cst$5204$negative_listeners$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$),$APP.$cljs$core$dissoc$$,
$index$jscomp$413_stack$jscomp$37$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($cljs$cst$5204$negative_listeners$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$),$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$413_stack$jscomp$37$$],null),$APP.$cljs$core$pop$$)}else if($APP.$cljs$core$truth_$$($found_result_QMARK__next_stack$jscomp$4$$))$found_result_QMARK__next_stack$jscomp$4$$=$cljs$cst$5202$next_stack$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$),
$APP.$cljs$core$reset_BANG_$$($index$jscomp$413_stack$jscomp$37$$,$APP.$cljs$core$_deref$$($found_result_QMARK__next_stack$jscomp$4$$)),$APP.$cljs$core$reset_BANG_$$($found_result_QMARK__next_stack$jscomp$4$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5203$generation$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$16$$),$APP.$cljs$core$inc$$),$found_result_QMARK__next_stack$jscomp$4$$=null;else return null}};
$instaparse$gll$NodeListener$$=function($node_key$jscomp$9$$,$tramp$jscomp$18$$){return function($result$jscomp$331$$){return $instaparse$gll$push_result$$($tramp$jscomp$18$$,$node_key$jscomp$9$$,$result$jscomp$331$$)}};
$instaparse$gll$LookListener$$=function($node_key$jscomp$10$$,$tramp$jscomp$19$$){return function(){return $instaparse$gll$push_result$$($tramp$jscomp$19$$,$node_key$jscomp$10$$,$instaparse$gll$make_success$$(null,$node_key$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$?$node_key$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$(0):$node_key$jscomp$10$$(0)))}};
$instaparse$gll$TopListener$$=function($tramp$jscomp$26$$){return function($result$jscomp$339$$){return $APP.$cljs$core$reset_BANG_$$($APP.$cljs$cst$2301$success$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$26$$),$result$jscomp$339$$)}};
$instaparse$gll$string_parse$$=function($this$$jscomp$768$$,$index$jscomp$414$$,$tramp$jscomp$27$$){var $string$jscomp$19$$=$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$768$$),$head$jscomp$23_text$jscomp$82$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$27$$);var $end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$=$APP.$cljs$core$count$$($head$jscomp$23_text$jscomp$82$$);var $y__5114__auto__$jscomp$inline_8354$$=$index$jscomp$414$$+$APP.$cljs$core$count$$($string$jscomp$19$$);
$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$=$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$<$y__5114__auto__$jscomp$inline_8354$$?$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$:$y__5114__auto__$jscomp$inline_8354$$;$head$jscomp$23_text$jscomp$82$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($head$jscomp$23_text$jscomp$82$$,$index$jscomp$414$$,$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$):$APP.$cljs$core$subs$$($head$jscomp$23_text$jscomp$82$$,
$index$jscomp$414$$,$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($string$jscomp$19$$,$head$jscomp$23_text$jscomp$82$$)?$instaparse$gll$push_result$$($tramp$jscomp$27$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$414$$,$this$$jscomp$768$$],null),$instaparse$gll$make_success$$($string$jscomp$19$$,$end$jscomp$94_x__5113__auto__$jscomp$inline_8353$$)):$instaparse$gll$fail$$($tramp$jscomp$27$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$414$$,$this$$jscomp$768$$],null),$index$jscomp$414$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$cljs$cst$5187$expecting$$,$string$jscomp$19$$],null))};
$instaparse$gll$string_full_parse$$=function($this$$jscomp$769$$,$index$jscomp$415$$,$tramp$jscomp$28$$){var $string$jscomp$20$$=$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$769$$),$text$jscomp$83$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$28$$);var $end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$=$APP.$cljs$core$count$$($text$jscomp$83$$);var $head$jscomp$24_y__5114__auto__$jscomp$inline_8357$$=$index$jscomp$415$$+$APP.$cljs$core$count$$($string$jscomp$20$$);
$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$=$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$<$head$jscomp$24_y__5114__auto__$jscomp$inline_8357$$?$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$:$head$jscomp$24_y__5114__auto__$jscomp$inline_8357$$;$head$jscomp$24_y__5114__auto__$jscomp$inline_8357$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($text$jscomp$83$$,$index$jscomp$415$$,$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$):
$APP.$cljs$core$subs$$($text$jscomp$83$$,$index$jscomp$415$$,$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$,$APP.$cljs$core$count$$($text$jscomp$83$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($string$jscomp$20$$,$head$jscomp$24_y__5114__auto__$jscomp$inline_8357$$)?$instaparse$gll$push_result$$($tramp$jscomp$28$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$415$$,$this$$jscomp$769$$],null),$instaparse$gll$make_success$$($string$jscomp$20$$,$end$jscomp$95_x__5113__auto__$jscomp$inline_8356$$)):$instaparse$gll$fail$$($tramp$jscomp$28$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$415$$,$this$$jscomp$769$$],null),$index$jscomp$415$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$cljs$cst$5187$expecting$$,$string$jscomp$20$$,
$APP.$cljs$cst$1259$full$$,!0],null))};
$instaparse$gll$string_case_insensitive_parse$$=function($this$$jscomp$770$$,$index$jscomp$416$$,$tramp$jscomp$29$$){var $string$jscomp$21$$=$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$770$$),$head$jscomp$25_text$jscomp$84$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$29$$);var $end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$=$APP.$cljs$core$count$$($head$jscomp$25_text$jscomp$84$$);var $y__5114__auto__$jscomp$inline_8360$$=$index$jscomp$416$$+
$APP.$cljs$core$count$$($string$jscomp$21$$);$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$=$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$<$y__5114__auto__$jscomp$inline_8360$$?$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$:$y__5114__auto__$jscomp$inline_8360$$;$head$jscomp$25_text$jscomp$84$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($head$jscomp$25_text$jscomp$84$$,$index$jscomp$416$$,$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$):
$APP.$cljs$core$subs$$($head$jscomp$25_text$jscomp$84$$,$index$jscomp$416$$,$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($string$jscomp$21$$.toUpperCase(),$head$jscomp$25_text$jscomp$84$$.toUpperCase())?$instaparse$gll$push_result$$($tramp$jscomp$29$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$416$$,$this$$jscomp$770$$],null),$instaparse$gll$make_success$$($string$jscomp$21$$,
$end$jscomp$96_x__5113__auto__$jscomp$inline_8359$$)):$instaparse$gll$fail$$($tramp$jscomp$29$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$416$$,$this$$jscomp$770$$],null),$index$jscomp$416$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$cljs$cst$5187$expecting$$,$string$jscomp$21$$],null))};
$instaparse$gll$string_case_insensitive_full_parse$$=function($this$$jscomp$771$$,$index$jscomp$417$$,$tramp$jscomp$30$$){var $string$jscomp$22$$=$APP.$cljs$cst$198$string$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$771$$),$text$jscomp$85$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$30$$);var $end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$=$APP.$cljs$core$count$$($text$jscomp$85$$);var $head$jscomp$26_y__5114__auto__$jscomp$inline_8363$$=$index$jscomp$417$$+$APP.$cljs$core$count$$($string$jscomp$22$$);
$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$=$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$<$head$jscomp$26_y__5114__auto__$jscomp$inline_8363$$?$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$:$head$jscomp$26_y__5114__auto__$jscomp$inline_8363$$;$head$jscomp$26_y__5114__auto__$jscomp$inline_8363$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($text$jscomp$85$$,$index$jscomp$417$$,$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$):
$APP.$cljs$core$subs$$($text$jscomp$85$$,$index$jscomp$417$$,$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$,$APP.$cljs$core$count$$($text$jscomp$85$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($string$jscomp$22$$.toUpperCase(),$head$jscomp$26_y__5114__auto__$jscomp$inline_8363$$.toUpperCase())?$instaparse$gll$push_result$$($tramp$jscomp$30$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$417$$,$this$$jscomp$771$$],null),$instaparse$gll$make_success$$($string$jscomp$22$$,$end$jscomp$97_x__5113__auto__$jscomp$inline_8362$$)):$instaparse$gll$fail$$($tramp$jscomp$30$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$417$$,$this$$jscomp$771$$],null),$index$jscomp$417$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,
$cljs$cst$5187$expecting$$,$string$jscomp$22$$,$APP.$cljs$cst$1259$full$$,!0],null))};
$instaparse$gll$char_range_parse$$=function($this$$jscomp$772$$,$index$jscomp$420$$,$tramp$jscomp$31$$){var $lo$jscomp$7$$=$cljs$cst$5175$lo$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$772$$),$hi$jscomp$9$$=$cljs$cst$5176$hi$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$772$$),$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$31$$);if($index$jscomp$420$$>=$APP.$cljs$core$count$$($code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$))return $instaparse$gll$fail$$($tramp$jscomp$31$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$420$$,$this$$jscomp$772$$],null),$index$jscomp$420$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,!0,$cljs$cst$5175$lo$$,$lo$jscomp$7$$,$cljs$cst$5176$hi$$,$hi$jscomp$9$$],null)],null));if($hi$jscomp$9$$<=65535)return $code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$=
$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$.charCodeAt($index$jscomp$420$$),$lo$jscomp$7$$<=$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$&&$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$<=$hi$jscomp$9$$?$instaparse$gll$push_result$$($tramp$jscomp$31$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$420$$,$this$$jscomp$772$$],null),$instaparse$gll$make_success$$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$char$0$$($code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$)),
$index$jscomp$420$$+1)):$instaparse$gll$fail$$($tramp$jscomp$31$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$420$$,$this$$jscomp$772$$],null),$index$jscomp$420$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,!0,$cljs$cst$5175$lo$$,$lo$jscomp$7$$,$cljs$cst$5176$hi$$,$hi$jscomp$9$$],
null)],null));$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$=$goog$i18n$uChar$getCodePointAround$$($code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$,$index$jscomp$420$$|0);var $char_string$$=$goog$i18n$uChar$fromCharCode$$($code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$);return $lo$jscomp$7$$<=$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$&&$code$jscomp$54_code_point$jscomp$2_text$jscomp$88$$<=$hi$jscomp$9$$?$instaparse$gll$push_result$$($tramp$jscomp$31$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$420$$,$this$$jscomp$772$$],null),$instaparse$gll$make_success$$($char_string$$,$index$jscomp$420$$+$APP.$cljs$core$count$$($char_string$$))):$instaparse$gll$fail$$($tramp$jscomp$31$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$420$$,$this$$jscomp$772$$],null),$index$jscomp$420$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,
$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,!0,$cljs$cst$5175$lo$$,$lo$jscomp$7$$,$cljs$cst$5176$hi$$,$hi$jscomp$9$$],null)],null))};
$instaparse$gll$char_range_full_parse$$=function($this$$jscomp$773$$,$index$jscomp$421$$,$tramp$jscomp$32$$){var $lo$jscomp$8$$=$cljs$cst$5175$lo$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$773$$),$hi$jscomp$10$$=$cljs$cst$5176$hi$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$773$$),$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$=$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$32$$),$end$jscomp$98$$=$APP.$cljs$core$count$$($code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$);
if($index$jscomp$421$$>=$APP.$cljs$core$count$$($code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$))return $instaparse$gll$fail$$($tramp$jscomp$32$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$421$$,$this$$jscomp$773$$],null),$index$jscomp$421$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,
!0,$cljs$cst$5175$lo$$,$lo$jscomp$8$$,$cljs$cst$5176$hi$$,$hi$jscomp$10$$],null)],null));if($hi$jscomp$10$$<=65535)return $code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$=$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$.charCodeAt($index$jscomp$421$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$421$$+1,$end$jscomp$98$$)&&$lo$jscomp$8$$<=$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$&&$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$<=$hi$jscomp$10$$?$instaparse$gll$push_result$$($tramp$jscomp$32$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$421$$,$this$$jscomp$773$$],null),$instaparse$gll$make_success$$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$char$0$$($code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$)),$end$jscomp$98$$)):$instaparse$gll$fail$$($tramp$jscomp$32$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$421$$,$this$$jscomp$773$$],
null),$index$jscomp$421$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,!0,$cljs$cst$5175$lo$$,$lo$jscomp$8$$,$cljs$cst$5176$hi$$,$hi$jscomp$10$$],null)],null));$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$=$goog$i18n$uChar$getCodePointAround$$($code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$,$index$jscomp$421$$|0);var $char_string$jscomp$1$$=
$goog$i18n$uChar$fromCharCode$$($code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$421$$+$APP.$cljs$core$count$$($char_string$jscomp$1$$),$end$jscomp$98$$)&&$lo$jscomp$8$$<=$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$&&$code$jscomp$55_code_point$jscomp$3_text$jscomp$89$$<=$hi$jscomp$10$$?$instaparse$gll$push_result$$($tramp$jscomp$32$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$421$$,$this$$jscomp$773$$],null),$instaparse$gll$make_success$$($char_string$jscomp$1$$,$end$jscomp$98$$)):$instaparse$gll$fail$$($tramp$jscomp$32$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$421$$,$this$$jscomp$773$$],null),$index$jscomp$421$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5195$char$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5186$char_range$$,
!0,$cljs$cst$5175$lo$$,$lo$jscomp$8$$,$cljs$cst$5176$hi$$,$hi$jscomp$10$$],null),$APP.$cljs$cst$1259$full$$,!0],null))};
$instaparse$gll$re_match_at_front$$=function($m$jscomp$223_regexp$jscomp$3$$,$text$jscomp$90$$){$m$jscomp$223_regexp$jscomp$3$$=(new RegExp($m$jscomp$223_regexp$jscomp$3$$.source,["g",$instaparse$util$regexp_flags$$($m$jscomp$223_regexp$jscomp$3$$)].join(""))).exec($text$jscomp$90$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($m$jscomp$223_regexp$jscomp$3$$)?$m$jscomp$223_regexp$jscomp$3$$.index===0:$m$jscomp$223_regexp$jscomp$3$$)?$APP.$cljs$core$first$$($m$jscomp$223_regexp$jscomp$3$$):
null};
$instaparse$gll$regexp_parse$$=function($this$$jscomp$774$$,$index$jscomp$422$$,$tramp$jscomp$33$$){var $regexp$jscomp$4$$=$cljs$cst$5180$regexp$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$774$$),$match$jscomp$56_substring_text$jscomp$91$$=$APP.$cljs$cst$1845$segment$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$33$$);$match$jscomp$56_substring_text$jscomp$91$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($match$jscomp$56_substring_text$jscomp$91$$,$index$jscomp$422$$):
$APP.$cljs$core$subs$$($match$jscomp$56_substring_text$jscomp$91$$,$index$jscomp$422$$);$match$jscomp$56_substring_text$jscomp$91$$=$instaparse$gll$re_match_at_front$$($regexp$jscomp$4$$,$match$jscomp$56_substring_text$jscomp$91$$);return $APP.$cljs$core$truth_$$($match$jscomp$56_substring_text$jscomp$91$$)?$instaparse$gll$push_result$$($tramp$jscomp$33$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$422$$,$this$$jscomp$774$$],null),$instaparse$gll$make_success$$($match$jscomp$56_substring_text$jscomp$91$$,
$index$jscomp$422$$+$APP.$cljs$core$count$$($match$jscomp$56_substring_text$jscomp$91$$))):$instaparse$gll$fail$$($tramp$jscomp$33$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$422$$,$this$$jscomp$774$$],null),$index$jscomp$422$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5180$regexp$$,$cljs$cst$5187$expecting$$,$regexp$jscomp$4$$],null))};
$instaparse$gll$regexp_full_parse$$=function($this$$jscomp$775$$,$index$jscomp$423$$,$tramp$jscomp$34$$){var $regexp$jscomp$5$$=$cljs$cst$5180$regexp$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$775$$),$text$jscomp$92$$=$APP.$cljs$cst$1845$segment$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$34$$),$match$jscomp$57_substring$jscomp$1$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($text$jscomp$92$$,$index$jscomp$423$$):$APP.$cljs$core$subs$$($text$jscomp$92$$,
$index$jscomp$423$$);$match$jscomp$57_substring$jscomp$1$$=$instaparse$gll$re_match_at_front$$($regexp$jscomp$5$$,$match$jscomp$57_substring$jscomp$1$$);var $desired_length$$=$APP.$cljs$core$count$$($text$jscomp$92$$)-$index$jscomp$423$$;return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($match$jscomp$57_substring$jscomp$1$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($match$jscomp$57_substring$jscomp$1$$),$desired_length$$):$match$jscomp$57_substring$jscomp$1$$)?
$instaparse$gll$push_result$$($tramp$jscomp$34$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$423$$,$this$$jscomp$775$$],null),$instaparse$gll$make_success$$($match$jscomp$57_substring$jscomp$1$$,$APP.$cljs$core$count$$($text$jscomp$92$$))):$instaparse$gll$fail$$($tramp$jscomp$34$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$423$$,$this$$jscomp$775$$],null),$index$jscomp$423$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5180$regexp$$,$cljs$cst$5187$expecting$$,$regexp$jscomp$5$$,$APP.$cljs$cst$1259$full$$,!0],null))};
$instaparse$gll$cat_parse$$=function($this$$jscomp$776$$,$index$jscomp$424$$,$tramp$jscomp$35$$){var $parsers$jscomp$10$$=$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$776$$);return $instaparse$gll$push_listener$$($tramp$jscomp$35$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$424$$,$APP.$cljs$core$first$$($parsers$jscomp$10$$)],null),$instaparse$gll$CatListener$$($instaparse$auto_flatten_seq$EMPTY$$,$APP.$cljs$core$next$$($parsers$jscomp$10$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$424$$,$this$$jscomp$776$$],null),$tramp$jscomp$35$$))};
$instaparse$gll$cat_full_parse$$=function($this$$jscomp$777$$,$index$jscomp$425$$,$tramp$jscomp$36$$){var $parsers$jscomp$11$$=$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$777$$);return $instaparse$gll$push_listener$$($tramp$jscomp$36$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$425$$,$APP.$cljs$core$first$$($parsers$jscomp$11$$)],null),$instaparse$gll$CatFullListener$$($instaparse$auto_flatten_seq$EMPTY$$,
$APP.$cljs$core$next$$($parsers$jscomp$11$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$425$$,$this$$jscomp$777$$],null),$tramp$jscomp$36$$))};
$instaparse$gll$plus_parse$$=function($this$$jscomp$778$$,$index$jscomp$426$$,$tramp$jscomp$37$$){var $parser$jscomp$42$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$778$$);return $instaparse$gll$push_listener$$($tramp$jscomp$37$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$426$$,$parser$jscomp$42$$],null),$instaparse$gll$PlusListener$$($instaparse$auto_flatten_seq$EMPTY$$,$parser$jscomp$42$$,$index$jscomp$426$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$426$$,$this$$jscomp$778$$],null),$tramp$jscomp$37$$))};
$instaparse$gll$plus_full_parse$$=function($this$$jscomp$779$$,$index$jscomp$427$$,$tramp$jscomp$38$$){var $parser$jscomp$43$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$779$$);return $instaparse$gll$push_listener$$($tramp$jscomp$38$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$427$$,$parser$jscomp$43$$],null),$instaparse$gll$PlusFullListener$$($instaparse$auto_flatten_seq$EMPTY$$,$parser$jscomp$43$$,$index$jscomp$427$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$427$$,$this$$jscomp$779$$],null),$tramp$jscomp$38$$))};
$instaparse$gll$rep_parse$$=function($this$$jscomp$780$$,$index$jscomp$428$$,$tramp$jscomp$39$$){var $parser$jscomp$44$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$780$$),$m$jscomp$224$$=$APP.$cljs$cst$336$min$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$780$$),$n$jscomp$293$$=$APP.$cljs$cst$337$max$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$780$$);return $m$jscomp$224$$===0?($instaparse$gll$push_result$$($tramp$jscomp$39$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$428$$,$this$$jscomp$780$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$428$$)),$n$jscomp$293$$>=1?$instaparse$gll$push_listener$$($tramp$jscomp$39$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$428$$,$parser$jscomp$44$$],null),$instaparse$gll$RepListener$$($instaparse$auto_flatten_seq$EMPTY$$,0,$parser$jscomp$44$$,1,$n$jscomp$293$$,$index$jscomp$428$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$428$$,$this$$jscomp$780$$],null),$tramp$jscomp$39$$)):null):$instaparse$gll$push_listener$$($tramp$jscomp$39$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$428$$,$parser$jscomp$44$$],null),$instaparse$gll$RepListener$$($instaparse$auto_flatten_seq$EMPTY$$,0,$parser$jscomp$44$$,$m$jscomp$224$$,$n$jscomp$293$$,$index$jscomp$428$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$428$$,$this$$jscomp$780$$],null),$tramp$jscomp$39$$))};
$instaparse$gll$rep_full_parse$$=function($this$$jscomp$781$$,$index$jscomp$429$$,$tramp$jscomp$40$$){var $parser$jscomp$45$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$781$$),$m$jscomp$225$$=$APP.$cljs$cst$336$min$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$781$$),$n$jscomp$294$$=$APP.$cljs$cst$337$max$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$781$$);return $m$jscomp$225$$===0?($instaparse$gll$push_result$$($tramp$jscomp$40$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$429$$,$this$$jscomp$781$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$429$$)),$n$jscomp$294$$>=1?$instaparse$gll$push_listener$$($tramp$jscomp$40$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$429$$,$parser$jscomp$45$$],null),$instaparse$gll$RepFullListener$$($instaparse$auto_flatten_seq$EMPTY$$,0,$parser$jscomp$45$$,1,$n$jscomp$294$$,$index$jscomp$429$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$429$$,$this$$jscomp$781$$],null),$tramp$jscomp$40$$)):null):$instaparse$gll$push_listener$$($tramp$jscomp$40$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$429$$,$parser$jscomp$45$$],null),$instaparse$gll$RepFullListener$$($instaparse$auto_flatten_seq$EMPTY$$,0,$parser$jscomp$45$$,$m$jscomp$225$$,$n$jscomp$294$$,$index$jscomp$429$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$429$$,$this$$jscomp$781$$],null),$tramp$jscomp$40$$))};
$instaparse$gll$star_parse$$=function($this$$jscomp$782$$,$index$jscomp$430$$,$tramp$jscomp$41$$){var $parser$jscomp$46$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$782$$);$instaparse$gll$push_listener$$($tramp$jscomp$41$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$430$$,$parser$jscomp$46$$],null),$instaparse$gll$PlusListener$$($instaparse$auto_flatten_seq$EMPTY$$,$parser$jscomp$46$$,$index$jscomp$430$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$430$$,$this$$jscomp$782$$],null),$tramp$jscomp$41$$));return $instaparse$gll$push_result$$($tramp$jscomp$41$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$430$$,$this$$jscomp$782$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$430$$))};
$instaparse$gll$star_full_parse$$=function($this$$jscomp$783$$,$index$jscomp$431$$,$tramp$jscomp$42$$){var $parser$jscomp$47$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$783$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$431$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$42$$)))?$instaparse$gll$push_result$$($tramp$jscomp$42$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$431$$,$this$$jscomp$783$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$431$$)):$instaparse$gll$push_listener$$($tramp$jscomp$42$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$431$$,$parser$jscomp$47$$],null),$instaparse$gll$PlusFullListener$$($instaparse$auto_flatten_seq$EMPTY$$,$parser$jscomp$47$$,$index$jscomp$431$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$431$$,$this$$jscomp$783$$],null),$tramp$jscomp$42$$))};
$instaparse$gll$alt_parse$$=function($this$$jscomp$784$$,$index$jscomp$432$$,$tramp$jscomp$43$$){var $c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$784$$);$c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$);for(var $G__75241_chunk__74881_seq__74880__$1$$=
null,$G__75240_count__74882$$=0,$i__74883$$=0;;)if($i__74883$$<$G__75240_count__74882$$){var $G__75242_parser$jscomp$48$$=$G__75241_chunk__74881_seq__74880__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__74883$$);$instaparse$gll$push_listener$$($tramp$jscomp$43$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$432$$,$G__75242_parser$jscomp$48$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$432$$,$this$$jscomp$784$$],null),$tramp$jscomp$43$$));$i__74883$$+=1}else if($c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$))$G__75241_chunk__74881_seq__74880__$1$$=$c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75241_chunk__74881_seq__74880__$1$$)?($c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=
$APP.$cljs$core$_chunked_first$$($G__75241_chunk__74881_seq__74880__$1$$),$G__75240_count__74882$$=$APP.$cljs$core$_chunked_rest$$($G__75241_chunk__74881_seq__74880__$1$$),$G__75241_chunk__74881_seq__74880__$1$$=$c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$,$G__75242_parser$jscomp$48$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$),$c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=
$G__75240_count__74882$$,$G__75240_count__74882$$=$G__75242_parser$jscomp$48$$):($G__75242_parser$jscomp$48$$=$APP.$cljs$core$first$$($G__75241_chunk__74881_seq__74880__$1$$),$instaparse$gll$push_listener$$($tramp$jscomp$43$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$432$$,$G__75242_parser$jscomp$48$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$432$$,$this$$jscomp$784$$],null),$tramp$jscomp$43$$)),$c__5548__auto__$jscomp$38_parsers$jscomp$12_seq__74880_temp__5825__auto__$jscomp$319$$=$APP.$cljs$core$next$$($G__75241_chunk__74881_seq__74880__$1$$),$G__75241_chunk__74881_seq__74880__$1$$=null,$G__75240_count__74882$$=0),$i__74883$$=0;else return null};
$instaparse$gll$alt_full_parse$$=function($this$$jscomp$785$$,$index$jscomp$433$$,$tramp$jscomp$44$$){var $c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$785$$);$c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$);for(var $G__75254_chunk__74886_seq__74885__$1$$=
null,$G__75253_count__74887$$=0,$i__74888$$=0;;)if($i__74888$$<$G__75253_count__74887$$){var $G__75255_parser$jscomp$49$$=$G__75254_chunk__74886_seq__74885__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__74888$$);$instaparse$gll$push_full_listener$$($tramp$jscomp$44$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$433$$,$G__75255_parser$jscomp$49$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$433$$,$this$$jscomp$785$$],null),$tramp$jscomp$44$$));$i__74888$$+=1}else if($c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$))$G__75254_chunk__74886_seq__74885__$1$$=$c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75254_chunk__74886_seq__74885__$1$$)?($c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=
$APP.$cljs$core$_chunked_first$$($G__75254_chunk__74886_seq__74885__$1$$),$G__75253_count__74887$$=$APP.$cljs$core$_chunked_rest$$($G__75254_chunk__74886_seq__74885__$1$$),$G__75254_chunk__74886_seq__74885__$1$$=$c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$,$G__75255_parser$jscomp$49$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$),$c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=
$G__75253_count__74887$$,$G__75253_count__74887$$=$G__75255_parser$jscomp$49$$):($G__75255_parser$jscomp$49$$=$APP.$cljs$core$first$$($G__75254_chunk__74886_seq__74885__$1$$),$instaparse$gll$push_full_listener$$($tramp$jscomp$44$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$433$$,$G__75255_parser$jscomp$49$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$433$$,$this$$jscomp$785$$],null),$tramp$jscomp$44$$)),$c__5548__auto__$jscomp$39_parsers$jscomp$13_seq__74885_temp__5825__auto__$jscomp$320$$=$APP.$cljs$core$next$$($G__75254_chunk__74886_seq__74885__$1$$),$G__75254_chunk__74886_seq__74885__$1$$=null,$G__75253_count__74887$$=0),$i__74888$$=0;else return null};
$instaparse$gll$ordered_alt_parse$$=function($this$$jscomp$786$$,$index$jscomp$434$$,$tramp$jscomp$45$$){var $node_key_parser1_parser1$jscomp$3$$=$cljs$cst$5177$parser1$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$786$$),$parser2$jscomp$2$$=$cljs$cst$5178$parser2$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$786$$);$node_key_parser1_parser1$jscomp$3$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$434$$,$node_key_parser1_parser1$jscomp$3$$],
null);var $node_key_parser2$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$434$$,$parser2$jscomp$2$$],null),$listener$jscomp$108$$=$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$434$$,$this$$jscomp$786$$],null),$tramp$jscomp$45$$);$instaparse$gll$push_listener$$($tramp$jscomp$45$$,$node_key_parser1_parser1$jscomp$3$$,$listener$jscomp$108$$);return $instaparse$gll$push_negative_listener$$($tramp$jscomp$45$$,
$node_key_parser1_parser1$jscomp$3$$,function(){return $instaparse$gll$push_listener$$($tramp$jscomp$45$$,$node_key_parser2$$,$listener$jscomp$108$$)})};
$instaparse$gll$ordered_alt_full_parse$$=function($this$$jscomp$787$$,$index$jscomp$435$$,$tramp$jscomp$46$$){var $node_key_parser1$jscomp$1_parser1$jscomp$4$$=$cljs$cst$5177$parser1$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$787$$),$parser2$jscomp$3$$=$cljs$cst$5178$parser2$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$787$$);$node_key_parser1$jscomp$1_parser1$jscomp$4$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$435$$,$node_key_parser1$jscomp$1_parser1$jscomp$4$$],
null);var $node_key_parser2$jscomp$1$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$435$$,$parser2$jscomp$3$$],null),$listener$jscomp$109$$=$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$435$$,$this$$jscomp$787$$],null),$tramp$jscomp$46$$);$instaparse$gll$push_full_listener$$($tramp$jscomp$46$$,$node_key_parser1$jscomp$1_parser1$jscomp$4$$,$listener$jscomp$109$$);
return $instaparse$gll$push_negative_listener$$($tramp$jscomp$46$$,$node_key_parser1$jscomp$1_parser1$jscomp$4$$,function(){return $instaparse$gll$push_full_listener$$($tramp$jscomp$46$$,$node_key_parser2$jscomp$1$$,$listener$jscomp$109$$)})};
$instaparse$gll$opt_parse$$=function($this$$jscomp$788$$,$index$jscomp$436$$,$tramp$jscomp$47$$){var $parser$jscomp$50$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$788$$);$instaparse$gll$push_listener$$($tramp$jscomp$47$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$436$$,$parser$jscomp$50$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$436$$,$this$$jscomp$788$$],null),$tramp$jscomp$47$$));return $instaparse$gll$push_result$$($tramp$jscomp$47$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$436$$,$this$$jscomp$788$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$436$$))};
$instaparse$gll$opt_full_parse$$=function($this$$jscomp$789$$,$index$jscomp$437$$,$tramp$jscomp$48$$){var $parser$jscomp$51$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$789$$);$instaparse$gll$push_full_listener$$($tramp$jscomp$48$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$437$$,$parser$jscomp$51$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$437$$,$this$$jscomp$789$$],null),$tramp$jscomp$48$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$437$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$48$$)))?$instaparse$gll$push_result$$($tramp$jscomp$48$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$437$$,$this$$jscomp$789$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$437$$)):
$instaparse$gll$fail$$($tramp$jscomp$48$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$437$$,$this$$jscomp$789$$],null),$index$jscomp$437$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$448$optional$$,$cljs$cst$5187$expecting$$,$cljs$cst$5230$end_of_string$$],null))};
$instaparse$gll$non_terminal_parse$$=function($this$$jscomp$790$$,$index$jscomp$438$$,$tramp$jscomp$49$$){var $grammar$jscomp$inline_8365_parser$jscomp$52$$=$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$49$$);var $p$jscomp$inline_8366$$=$APP.$cljs$cst$221$keyword$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$790$$);$grammar$jscomp$inline_8365_parser$jscomp$52$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($grammar$jscomp$inline_8365_parser$jscomp$52$$,$p$jscomp$inline_8366$$,
$p$jscomp$inline_8366$$);return $instaparse$gll$push_listener$$($tramp$jscomp$49$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$438$$,$grammar$jscomp$inline_8365_parser$jscomp$52$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$438$$,$this$$jscomp$790$$],null),$tramp$jscomp$49$$))};
$instaparse$gll$non_terminal_full_parse$$=function($this$$jscomp$791$$,$index$jscomp$439$$,$tramp$jscomp$50$$){var $grammar$jscomp$inline_8368_parser$jscomp$53$$=$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$50$$);var $p$jscomp$inline_8369$$=$APP.$cljs$cst$221$keyword$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$791$$);$grammar$jscomp$inline_8368_parser$jscomp$53$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($grammar$jscomp$inline_8368_parser$jscomp$53$$,$p$jscomp$inline_8369$$,
$p$jscomp$inline_8369$$);return $instaparse$gll$push_full_listener$$($tramp$jscomp$50$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$439$$,$grammar$jscomp$inline_8368_parser$jscomp$53$$],null),$instaparse$gll$NodeListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$439$$,$this$$jscomp$791$$],null),$tramp$jscomp$50$$))};
$instaparse$gll$lookahead_parse$$=function($this$$jscomp$792$$,$index$jscomp$440$$,$tramp$jscomp$51$$){var $parser$jscomp$54$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$792$$);return $instaparse$gll$push_listener$$($tramp$jscomp$51$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$440$$,$parser$jscomp$54$$],null),$instaparse$gll$LookListener$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$440$$,$this$$jscomp$792$$],null),$tramp$jscomp$51$$))};
$instaparse$gll$lookahead_full_parse$$=function($this$$jscomp$793$$,$index$jscomp$441$$,$tramp$jscomp$52$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$441$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$52$$)))?$instaparse$gll$lookahead_parse$$($this$$jscomp$793$$,$index$jscomp$441$$,$tramp$jscomp$52$$):$instaparse$gll$fail$$($tramp$jscomp$52$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$441$$,$this$$jscomp$793$$],null),$index$jscomp$441$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5231$lookahead$$,$cljs$cst$5187$expecting$$,$cljs$cst$5230$end_of_string$$],null))};
$instaparse$gll$negative_lookahead_parse$$=function($this$$jscomp$794$$,$index$jscomp$442$$,$tramp$jscomp$53$$){var $parser$jscomp$55$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($this$$jscomp$794$$),$node_key$jscomp$17$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$442$$,$parser$jscomp$55$$],null);if($APP.$cljs$core$truth_$$($instaparse$gll$result_exists_QMARK_$$($tramp$jscomp$53$$,$node_key$jscomp$17$$)))return $instaparse$gll$fail$$($tramp$jscomp$53$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$442$$,$this$$jscomp$794$$],null),$index$jscomp$442$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5232$negative_lookahead$$],null));$instaparse$gll$push_listener$$($tramp$jscomp$53$$,$node_key$jscomp$17$$,function(){var $fail_send$$=new $APP.$cljs$core$Delay$$(function(){return $instaparse$gll$fail$$($tramp$jscomp$53$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$442$$,$this$$jscomp$794$$],null),$index$jscomp$442$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5232$negative_lookahead$$,$cljs$cst$5187$expecting$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5185$NOT$$,$instaparse$print$combinators__GT_str$cljs$0core$0IFn$0_invoke$0arity$02$$($parser$jscomp$55$$,!1)],null)],null))});return function(){return $APP.$cljs$core$force$$($fail_send$$)}}());
return $instaparse$gll$push_negative_listener$$($tramp$jscomp$53$$,$node_key$jscomp$17$$,function(){return $APP.$cljs$core$not$$($instaparse$gll$result_exists_QMARK_$$($tramp$jscomp$53$$,$node_key$jscomp$17$$))?$instaparse$gll$push_result$$($tramp$jscomp$53$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$442$$,$this$$jscomp$794$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$442$$)):null})};
$instaparse$gll$epsilon_parse$$=function($this$$jscomp$795$$,$index$jscomp$443$$,$tramp$jscomp$54$$){return $instaparse$gll$push_result$$($tramp$jscomp$54$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$443$$,$this$$jscomp$795$$],null),$instaparse$gll$make_success$$(null,$index$jscomp$443$$))};
$instaparse$gll$epsilon_full_parse$$=function($this$$jscomp$796$$,$index$jscomp$444$$,$tramp$jscomp$55$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$444$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$55$$)))?$instaparse$gll$push_result$$($tramp$jscomp$55$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$444$$,$this$$jscomp$796$$],null),$instaparse$gll$make_success$$(null,
$index$jscomp$444$$)):$instaparse$gll$fail$$($tramp$jscomp$55$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$444$$,$this$$jscomp$796$$],null),$index$jscomp$444$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5233$Epsilon$$,$cljs$cst$5187$expecting$$,$cljs$cst$5230$end_of_string$$],null))};
$instaparse$gll$start_parser$$=function($tramp$jscomp$56$$,$parser$jscomp$56$$,$partial_QMARK_$$){$APP.$cljs$core$truth_$$($partial_QMARK_$$)?$instaparse$gll$push_listener$$($tramp$jscomp$56$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[0,$parser$jscomp$56$$],null),$instaparse$gll$TopListener$$($tramp$jscomp$56$$)):$instaparse$gll$push_full_listener$$($tramp$jscomp$56$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[0,$parser$jscomp$56$$],null),$instaparse$gll$TopListener$$($tramp$jscomp$56$$))};
$instaparse$gll$parse$$=function($JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$,$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$,$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$,$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$){$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$=$instaparse$gll$make_tramp$cljs$0core$0IFn$0_invoke$0arity$05$$($JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$,
$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$,$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$,-1,null);$instaparse$gll$start_parser$$($JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$,$instaparse$combinators_source$nt$$($JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$),
$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$);$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$=$instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$,null);if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$))$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$=
$APP.$cljs$core$first$$($JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$);else{$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$=$APP.$cljs$core$deref$$($APP.$cljs$cst$845$failure$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$));a:{$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$=
$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$);for(var $G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$=$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$=1,$G__73737$jscomp$inline_12786_G__73740$jscomp$inline_12787_counter$jscomp$inline_12785$$=0;;){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$,
$G__73737$jscomp$inline_12786_G__73740$jscomp$inline_12787_counter$jscomp$inline_12785$$)){$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$209$line$$,$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$,$APP.$cljs$cst$216$column$$,$G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$],null);
break a}$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("\n",$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$,$G__73737$jscomp$inline_12786_G__73740$jscomp$inline_12787_counter$jscomp$inline_12785$$))?($G__73737$jscomp$inline_12786_G__73740$jscomp$inline_12787_counter$jscomp$inline_12785$$+=1,$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$+=
1,$G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$=1):($G__73737$jscomp$inline_12786_G__73740$jscomp$inline_12787_counter$jscomp$inline_12785$$+=1,$G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$+=1)}$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$=void 0}$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$=
$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$;a:{$G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$=$APP.$cljs$cst$209$line$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$);for($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$=$APP.$cljs$core$seq$$($APP.$clojure$string$replace$$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$,
"\r\n","\n"));;){if($APP.$cljs$core$empty_QMARK_$$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$)){$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$="";break a}if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$,
1)){$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$APP.$cljs$core$take_while$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$complement$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,["\n",null],null),null)),$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$));
break a}$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("\n",$APP.$cljs$core$first$$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$))?($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$=$APP.$cljs$core$next$$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$),
--$G__73742$jscomp$inline_12794_G__73744$jscomp$inline_12796_col$jscomp$inline_12784_n$jscomp$inline_12789_n__$1$jscomp$inline_12792$$):$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$=$APP.$cljs$core$next$$($G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$)}$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$=
void 0}$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$=$JSCompiler_temp_const$jscomp$10585_grammar$jscomp$15_line$jscomp$inline_12783_tramp$jscomp$58$$.call($APP.$cljs$core$merge$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$,$index$jscomp$inline_12781_lc$jscomp$inline_8373_partial_QMARK_$jscomp$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1572$text$$,$G__73741$jscomp$inline_12793_G__73743$jscomp$inline_12795_JSCompiler_inline_result$jscomp$10587_chars$jscomp$inline_12791_text$jscomp$94$$],null)]))}return $JSCompiler_temp$jscomp$1669_failure$jscomp$inline_8371_start$jscomp$233_temp__5823__auto__$jscomp$213$$};
$instaparse$gll$build_node_with_meta$$=function($node_builder$jscomp$4$$,$tag$jscomp$89$$,$content$jscomp$232$$,$start$jscomp$234$$,$end$jscomp$99$$){return $APP.$cljs$core$with_meta$$($node_builder$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$node_builder$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($tag$jscomp$89$$,$content$jscomp$232$$):$node_builder$jscomp$4$$($tag$jscomp$89$$,$content$jscomp$232$$),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,
$start$jscomp$234$$,$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$end$jscomp$99$$],null))};
$instaparse$cfg$string_PLUS_$$=function($s$jscomp$554$$,$ci_by_default_QMARK_$$){var $G__74906$$=$instaparse$cfg$_STAR_case_insensitive_literals_STAR_$$;if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!0,$G__74906$$))return $instaparse$combinators_source$string_ci$$($s$jscomp$554$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!1,$G__74906$$))return $instaparse$combinators_source$string$$($s$jscomp$554$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$205$default$$,
$G__74906$$))return $APP.$cljs$core$truth_$$($ci_by_default_QMARK_$$)?$instaparse$combinators_source$string_ci$$($s$jscomp$554$$):$instaparse$combinators_source$string$$($s$jscomp$554$$);throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74906$$)].join(""));};
$instaparse$cfg$make_cfg$$=function($allow_namespaced_nts_QMARK_$$){return $instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5188$hiccup$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5198$neg$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5174$ord$$,$cljs$cst$5235$rule_separator$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5197$look$$,$cljs$cst$5236$rule$$,$cljs$cst$5196$nt$$,$cljs$cst$5237$hide_nt$$,$cljs$cst$5238$inside_comment$$,$cljs$cst$5192$star$$,$APP.$cljs$cst$198$string$$,
$APP.$cljs$cst$5239$rules$$,$APP.$cljs$cst$2302$hide$$,$cljs$cst$5240$paren$$,$cljs$cst$5241$alt_or_ord$$,$cljs$cst$5180$regexp$$,$cljs$cst$5242$factor$$,$APP.$cljs$cst$3309$comment$$,$cljs$cst$5191$plus$$,$cljs$cst$5190$epsilon$$,$cljs$cst$5234$opt_whitespace$$,$cljs$cst$5243$rules_or_parser$$,$APP.$cljs$cst$991$opt$$],[$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("!")),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$)])),$instaparse$combinators_source$plus$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$),
$instaparse$combinators_source$nt$$($cljs$cst$5197$look$$),$instaparse$combinators_source$nt$$($cljs$cst$5198$neg$$)])),$instaparse$cfg$opt_whitespace$$]))),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$592$cat$$),$instaparse$combinators_source$plus$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$cfg$opt_whitespace$$,
$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("/")),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($APP.$cljs$cst$592$cat$$)])))])),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$(":"),$instaparse$combinators_source$string$$(":\x3d"),$instaparse$combinators_source$string$$("::\x3d"),$instaparse$combinators_source$string$$("\x3d")])),
$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$592$cat$$),$instaparse$combinators_source$star$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("|")),$instaparse$cfg$opt_whitespace$$,
$instaparse$combinators_source$nt$$($APP.$cljs$cst$592$cat$$)])))])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("\x26")),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$)])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5196$nt$$),
$instaparse$combinators_source$nt$$($cljs$cst$5237$hide_nt$$)])),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$nt$$($cljs$cst$5235$rule_separator$$)),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$),$instaparse$combinators_source$hide$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5234$opt_whitespace$$),
$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5234$opt_whitespace$$),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$(";"),$instaparse$combinators_source$string$$(".")])),$instaparse$combinators_source$nt$$($cljs$cst$5234$opt_whitespace$$)]))])))])),
$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$neg$$($instaparse$combinators_source$nt$$($cljs$cst$5190$epsilon$$)),$instaparse$combinators_source$regexp$$($APP.$cljs$core$truth_$$($allow_namespaced_nts_QMARK_$$)?$instaparse$cfg$non_terminal_namespace_allowed$$:$instaparse$cfg$non_terminal$$)])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("\x3c")),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5196$nt$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("\x3e"))])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$($instaparse$cfg$inside_comment$$),$instaparse$combinators_source$star$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$3309$comment$$),
$instaparse$combinators_source$regexp$$($instaparse$cfg$inside_comment$$)])))])),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("{")),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("}"))])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("*"))]))])),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$($instaparse$cfg$single_quoted_string$$),
$instaparse$combinators_source$regexp$$($instaparse$cfg$double_quoted_string$$)])),$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$plus$$($instaparse$combinators_source$nt$$($cljs$cst$5236$rule$$))]))),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("\x3c")),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("\x3e"))])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("(")),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$(")"))])),$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$715$alt$$),$instaparse$combinators_source$nt$$($cljs$cst$5174$ord$$)]))),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$($instaparse$cfg$single_quoted_regexp$$),
$instaparse$combinators_source$regexp$$($instaparse$cfg$double_quoted_regexp$$)])),$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5196$nt$$),$instaparse$combinators_source$nt$$($APP.$cljs$cst$198$string$$),$instaparse$combinators_source$nt$$($cljs$cst$5180$regexp$$),$instaparse$combinators_source$nt$$($APP.$cljs$cst$991$opt$$),
$instaparse$combinators_source$nt$$($cljs$cst$5192$star$$),$instaparse$combinators_source$nt$$($cljs$cst$5191$plus$$),$instaparse$combinators_source$nt$$($cljs$cst$5240$paren$$),$instaparse$combinators_source$nt$$($APP.$cljs$cst$2302$hide$$),$instaparse$combinators_source$nt$$($cljs$cst$5190$epsilon$$)]))),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$("(*"),$instaparse$combinators_source$nt$$($cljs$cst$5238$inside_comment$$),
$instaparse$combinators_source$string$$("*)")])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("+"))])),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$("Epsilon"),
$instaparse$combinators_source$string$$("epsilon"),$instaparse$combinators_source$string$$("EPSILON"),$instaparse$combinators_source$string$$("eps"),$instaparse$combinators_source$string$$("ε")])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$($instaparse$cfg$ws$$),$instaparse$combinators_source$star$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$3309$comment$$),
$instaparse$combinators_source$regexp$$($instaparse$cfg$ws$$)])))])),$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($APP.$cljs$cst$5239$rules$$),$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$)]))),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("[")),
$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$nt$$($cljs$cst$5241$alt_or_ord$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("]"))])),$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$nt$$($cljs$cst$5242$factor$$),$instaparse$cfg$opt_whitespace$$,$instaparse$combinators_source$hide$$($instaparse$combinators_source$string$$("?"))]))]))]))};
$instaparse$cfg$escape$$=function($s$jscomp$555$$){for(var $G__75158_G__75160_G__75162_G__75164_sq$$=$APP.$cljs$core$seq$$($s$jscomp$555$$),$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$=$APP.$cljs$core$PersistentVector$EMPTY$$;;){var $c$jscomp$301_temp__5823__auto__$jscomp$216$$=$APP.$cljs$core$first$$($G__75158_G__75160_G__75162_G__75164_sq$$);if($APP.$cljs$core$truth_$$($c$jscomp$301_temp__5823__auto__$jscomp$216$$))switch($c$jscomp$301_temp__5823__auto__$jscomp$216$$){case "\\":var $c2$jscomp$26_temp__5823__auto____$1$jscomp$14$$=
$APP.$cljs$core$second$$($G__75158_G__75160_G__75162_G__75164_sq$$);if($APP.$cljs$core$truth_$$($c2$jscomp$26_temp__5823__auto____$1$jscomp$14$$)){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($c2$jscomp$26_temp__5823__auto____$1$jscomp$14$$,"'")?($G__75158_G__75160_G__75162_G__75164_sq$$=$APP.$cljs$core$drop$cljs$0core$0IFn$0_invoke$0arity$02$$(2,$G__75158_G__75160_G__75162_G__75164_sq$$),$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$,
$c2$jscomp$26_temp__5823__auto____$1$jscomp$14$$)):($G__75158_G__75160_G__75162_G__75164_sq$$=$APP.$cljs$core$drop$cljs$0core$0IFn$0_invoke$0arity$02$$(2,$G__75158_G__75160_G__75162_G__75164_sq$$),$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$variadic$($G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$,$c$jscomp$301_temp__5823__auto__$jscomp$216$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$c2$jscomp$26_temp__5823__auto____$1$jscomp$14$$])));
continue}else return $instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Encountered backslash character at end of string: ",$s$jscomp$555$$]));break;case '"':$G__75158_G__75160_G__75162_G__75164_sq$$=$APP.$cljs$core$next$$($G__75158_G__75160_G__75162_G__75164_sq$$);$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$variadic$($G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$,
"\\",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(['"']));continue;default:$G__75158_G__75160_G__75162_G__75164_sq$$=$APP.$cljs$core$next$$($G__75158_G__75160_G__75162_G__75164_sq$$);$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$,$c$jscomp$301_temp__5823__auto__$jscomp$216$$);continue}else return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,
$G__75159_G__75161_G__75163_G__75165_v$jscomp$650$$);break}};
$instaparse$cfg$process_string$$=function($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$){$G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$,1,$APP.$cljs$core$count$$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$)-1);
$G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$=$instaparse$cfg$escape$$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$);$G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$),'"'].join("");
$G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$=new $APP.$cljs$tools$reader$reader_types$PushbackReader$$(new $APP.$cljs$tools$reader$reader_types$StringReader$$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$,$APP.$cljs$core$count$$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$)));return $read_string_STAR__75166$$.$cljs$core$IFn$_invoke$arity$4$?
$read_string_STAR__75166$$.$cljs$core$IFn$_invoke$arity$4$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$,null,null,null):$read_string_STAR__75166$$($G__74957$jscomp$inline_8388_remove_escaped_single_quotes_s$jscomp$557_s$jscomp$inline_8387_stripped$$,null,null,null)};
$instaparse$cfg$process_regexp$$=function($remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$){$remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$=$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$,2,$APP.$cljs$core$count$$($remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$)-1);$remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$=$instaparse$cfg$escape$$($remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$);
return $APP.$cljs$core$re_pattern$$($remove_escaped_single_quotes$jscomp$1_s$jscomp$558_stripped$jscomp$1$$)};
$instaparse$cfg$check_grammar$$=function($grammar_map$$){for(var $valid_nts_75187$$=$APP.$cljs$core$set$$($APP.$cljs$core$keys$$($grammar_map$$)),$c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$APP.$cljs$core$seq$$($APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($instaparse$cfg$seq_nt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vals$$($grammar_map$$)])))),
$G__75204_chunk__75002_75190_seq__75001_75201__$1$$=null,$G__75205_count__75003_75191$$=0,$G__75203_i__75004_75192$$=0;;)if($G__75203_i__75004_75192$$<$G__75205_count__75003_75191$$){var $nt_75193$$=$G__75204_chunk__75002_75190_seq__75001_75201__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75203_i__75004_75192$$);$APP.$cljs$core$truth_$$($valid_nts_75187$$.$cljs$core$IFn$_invoke$arity$1$?$valid_nts_75187$$.$cljs$core$IFn$_invoke$arity$1$($nt_75193$$):$valid_nts_75187$$($nt_75193$$))||$instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($nt_75193$$),
1)," occurs on the right-hand side of your grammar, but not on the left"]));$G__75203_i__75004_75192$$+=1}else if($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$APP.$cljs$core$seq$$($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$))$G__75204_chunk__75002_75190_seq__75001_75201__$1$$=$c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75204_chunk__75002_75190_seq__75001_75201__$1$$)?
($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$APP.$cljs$core$_chunked_first$$($G__75204_chunk__75002_75190_seq__75001_75201__$1$$),$G__75203_i__75004_75192$$=$APP.$cljs$core$_chunked_rest$$($G__75204_chunk__75002_75190_seq__75001_75201__$1$$),$G__75204_chunk__75002_75190_seq__75001_75201__$1$$=$c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$,$G__75205_count__75003_75191$$=$APP.$cljs$core$count$$($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$),
$c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$G__75203_i__75004_75192$$):($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$APP.$cljs$core$first$$($G__75204_chunk__75002_75190_seq__75001_75201__$1$$),$APP.$cljs$core$truth_$$($valid_nts_75187$$.$cljs$core$IFn$_invoke$arity$1$?$valid_nts_75187$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$):$valid_nts_75187$$($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$))||
$instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$),1)," occurs on the right-hand side of your grammar, but not on the left"])),$c__5548__auto___75202_nt_75207_seq__75001_75189_temp__5825__auto___75200$$=$APP.$cljs$core$next$$($G__75204_chunk__75002_75190_seq__75001_75201__$1$$),
$G__75204_chunk__75002_75190_seq__75001_75201__$1$$=null,$G__75205_count__75003_75191$$=0),$G__75203_i__75004_75192$$=0;else break;return $grammar_map$$};
$instaparse$cfg$build_parser$cljs$0core$0IFn$0_invoke$0arity$03$$=function($productions_spec$jscomp$47$$,$output_format$jscomp$1$$,$allow_namespaced_nts_QMARK_$jscomp$1_start_production$$){var $rules$$=$instaparse$gll$parse$$($APP.$cljs$core$truth_$$($allow_namespaced_nts_QMARK_$jscomp$1_start_production$$)?$instaparse$cfg$cfg_allow_namespaced_nts$$:$instaparse$cfg$cfg$$,$APP.$cljs$cst$5239$rules$$,$productions_spec$jscomp$47$$,!1);if($rules$$ instanceof $instaparse$gll$Failure$$)return $instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Error parsing grammar specification:\n",
function(){var $sb__5670__auto__$jscomp$10$$=new $APP.$goog$string$StringBuffer$$,$_STAR_print_newline_STAR__orig_val__75049_75218$$=$APP.$cljs$core$_STAR_print_newline_STAR_$$,$_STAR_print_fn_STAR__orig_val__75050_75219$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$11$$){return $sb__5670__auto__$jscomp$10$$.append($x__5671__auto__$jscomp$11$$)};try{$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$rules$$]))}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=
$_STAR_print_fn_STAR__orig_val__75050_75219$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__75049_75218$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$10$$)}()]));$productions_spec$jscomp$47$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$cfg$build_rule$$,$rules$$);$allow_namespaced_nts_QMARK_$jscomp$1_start_production$$=$APP.$cljs$core$first$$($APP.$cljs$core$first$$($productions_spec$jscomp$47$$));return new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$cljs$cst$5183$grammar$$,$instaparse$cfg$check_grammar$$($instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$($output_format$jscomp$1$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$productions_spec$jscomp$47$$))),$cljs$cst$5184$start_production$$,$allow_namespaced_nts_QMARK_$jscomp$1_start_production$$,$cljs$cst$5249$output_format$$,$output_format$jscomp$1$$],null)};
$instaparse$cfg$build_parser_from_combinators$$=function($grammar_map$jscomp$1$$,$output_format$jscomp$2$$,$start_production$jscomp$1$$){return $start_production$jscomp$1$$==null?$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["When you build a parser from a map of parser combinators, you must provide a start production using the :start keyword argument."])):new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$cljs$cst$5183$grammar$$,$instaparse$cfg$check_grammar$$($instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$($output_format$jscomp$2$$,$grammar_map$jscomp$1$$)),$cljs$cst$5184$start_production$$,$start_production$jscomp$1$$,$cljs$cst$5249$output_format$$,$output_format$jscomp$2$$],null)};
$instaparse$transform$merge_meta$$=function($obj$jscomp$215$$,$metamap$jscomp$4$$){return($obj$jscomp$215$$!=null?$obj$jscomp$215$$.$cljs$lang$protocol_mask$partition0$$&262144||$APP.$cljs$core$PROTOCOL_SENTINEL$$===$obj$jscomp$215$$.$cljs$core$IWithMeta$$||($obj$jscomp$215$$.$cljs$lang$protocol_mask$partition0$$?0:$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IWithMeta$$,$obj$jscomp$215$$)):$APP.$cljs$core$native_satisfies_QMARK_$$($APP.$cljs$core$IWithMeta$$,$obj$jscomp$215$$))?$APP.$cljs$core$with_meta$$($obj$jscomp$215$$,
$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$metamap$jscomp$4$$,$APP.$cljs$core$meta$$($obj$jscomp$215$$)]))):$obj$jscomp$215$$};
$instaparse$abnf$project$$=function($m$jscomp$226$$,$ks$jscomp$63$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,function(){return function $instaparse$abnf$project_$_iter__75577$$($s__75578$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(var $s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$=$s__75578$$;;)if($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$=$APP.$cljs$core$seq$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$)){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$)){var $JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$=
$APP.$cljs$core$_chunked_first$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$),$size__5502__auto__$jscomp$44$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$),$b__75580_k$jscomp$679$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$44$$);a:{for(var $i__75579$jscomp$inline_8399$$=0;;)if($i__75579$jscomp$inline_8399$$<$size__5502__auto__$jscomp$44$$){var $k$jscomp$inline_8400_x$jscomp$inline_12810$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$,
$i__75579$jscomp$inline_8399$$);if($APP.$cljs$core$contains_QMARK_$$($m$jscomp$226$$,$k$jscomp$inline_8400_x$jscomp$inline_12810$$)){var $b$jscomp$inline_12809$$=$b__75580_k$jscomp$679$$;$k$jscomp$inline_8400_x$jscomp$inline_12810$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$inline_8400_x$jscomp$inline_12810$$,$m$jscomp$226$$.$cljs$core$IFn$_invoke$arity$1$?$m$jscomp$226$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$inline_8400_x$jscomp$inline_12810$$):
$m$jscomp$226$$($k$jscomp$inline_8400_x$jscomp$inline_12810$$)],null);$b$jscomp$inline_12809$$.add($k$jscomp$inline_8400_x$jscomp$inline_12810$$)}$i__75579$jscomp$inline_8399$$+=1}else{$JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$=!0;break a}$JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$=void 0}return $JSCompiler_inline_result$jscomp$1688_c__5501__auto__$jscomp$44$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__75580_k$jscomp$679$$),$instaparse$abnf$project_$_iter__75577$$($APP.$cljs$core$_chunked_rest$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$))):
$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__75580_k$jscomp$679$$),null)}$b__75580_k$jscomp$679$$=$APP.$cljs$core$first$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$);if($APP.$cljs$core$contains_QMARK_$$($m$jscomp$226$$,$b__75580_k$jscomp$679$$))return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__75580_k$jscomp$679$$,$m$jscomp$226$$.$cljs$core$IFn$_invoke$arity$1$?$m$jscomp$226$$.$cljs$core$IFn$_invoke$arity$1$($b__75580_k$jscomp$679$$):
$m$jscomp$226$$($b__75580_k$jscomp$679$$)],null),$instaparse$abnf$project_$_iter__75577$$($APP.$cljs$core$rest$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$)));$s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$=$APP.$cljs$core$rest$$($s__75578__$1_s__75578__$2_temp__5825__auto__$jscomp$322$$)}else return null},null,null)}($ks$jscomp$63$$)}())};
$instaparse$abnf$merge_core$$=function($grammar_map$jscomp$2$$){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$abnf$project$$($instaparse$abnf$abnf_core$$,$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($instaparse$cfg$seq_nt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vals$$($grammar_map$jscomp$2$$)])))),
$grammar_map$jscomp$2$$]))};
$instaparse$abnf$alt_preserving_hide_tag$$=function($p1$jscomp$81$$,$p2$jscomp$62$$){var $hide_tag_p1_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($p1$jscomp$81$$),$instaparse$reduction$raw_non_terminal_reduction$$),$hide_tag_p2_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($p2$jscomp$62$$),$instaparse$reduction$raw_non_terminal_reduction$$);return $hide_tag_p1_QMARK_$$&&
$hide_tag_p2_QMARK_$$?$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1$jscomp$81$$,$APP.$cljs$cst$5182$red$$),$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p2$jscomp$62$$,$APP.$cljs$cst$5182$red$$)]))):$hide_tag_p1_QMARK_$$?$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1$jscomp$81$$,
$APP.$cljs$cst$5182$red$$),$p2$jscomp$62$$]))):$hide_tag_p2_QMARK_$$?$instaparse$combinators_source$hide_tag$$($instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1$jscomp$81$$,$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p2$jscomp$62$$,$APP.$cljs$cst$5182$red$$)]))):$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1$jscomp$81$$,
$p2$jscomp$62$$]))};
$instaparse$abnf$build_parser$$=function($grammar_map$jscomp$3_spec$jscomp$50$$,$output_format$jscomp$3$$){var $rule_tree$$=$instaparse$gll$parse$$($instaparse$abnf$abnf_parser$$,$cljs$cst$5285$rulelist$$,$grammar_map$jscomp$3_spec$jscomp$50$$,!1);if($rule_tree$$ instanceof $instaparse$gll$Failure$$)return $instaparse$util$throw_runtime_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Error parsing grammar specification:\n",function(){var $sb__5670__auto__$jscomp$13$$=
new $APP.$goog$string$StringBuffer$$,$_STAR_print_newline_STAR__orig_val__75607_75684$$=$APP.$cljs$core$_STAR_print_newline_STAR_$$,$_STAR_print_fn_STAR__orig_val__75608_75685$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$14$$){return $sb__5670__auto__$jscomp$13$$.append($x__5671__auto__$jscomp$14$$)};try{$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$rule_tree$$]))}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=
$_STAR_print_fn_STAR__orig_val__75608_75685$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__75607_75684$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$13$$)}()]));var $rules$jscomp$3_start_production$jscomp$2$$=$instaparse$transform$transform$$($instaparse$abnf$abnf_transformer$$,$rule_tree$$);$grammar_map$jscomp$3_spec$jscomp$50$$=$instaparse$abnf$merge_core$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$merge_with$$,
$instaparse$abnf$alt_preserving_hide_tag$$,$rules$jscomp$3_start_production$jscomp$2$$));$rules$jscomp$3_start_production$jscomp$2$$=$APP.$cljs$core$first$$($APP.$cljs$core$first$$($APP.$cljs$core$first$$($rules$jscomp$3_start_production$jscomp$2$$)));return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5183$grammar$$,$instaparse$cfg$check_grammar$$($instaparse$reduction$apply_standard_reductions$cljs$0core$0IFn$0_invoke$0arity$02$$($output_format$jscomp$3$$,$grammar_map$jscomp$3_spec$jscomp$50$$)),
$cljs$cst$5184$start_production$$,$rules$jscomp$3_start_production$jscomp$2$$,$cljs$cst$5249$output_format$$,$output_format$jscomp$3$$],null)};
$instaparse$viz$span$$=function($s$jscomp$559_tree$jscomp$22$$){var $e$jscomp$334_m$jscomp$227$$=$APP.$cljs$core$meta$$($s$jscomp$559_tree$jscomp$22$$);$s$jscomp$559_tree$jscomp$22$$=$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$334_m$jscomp$227$$);$e$jscomp$334_m$jscomp$227$$=$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$334_m$jscomp$227$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($s$jscomp$559_tree$jscomp$22$$)?
$e$jscomp$334_m$jscomp$227$$:$s$jscomp$559_tree$jscomp$22$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$s$jscomp$559_tree$jscomp$22$$,$e$jscomp$334_m$jscomp$227$$],null):null};
$instaparse$repeat$empty_result_QMARK_$$=function($result$jscomp$342$$){return $APP.$cljs$core$vector_QMARK_$$($result$jscomp$342$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($result$jscomp$342$$),1)||$APP.$cljs$core$map_QMARK_$$($result$jscomp$342$$)&&$APP.$cljs$core$contains_QMARK_$$($result$jscomp$342$$,$APP.$cljs$cst$78$tag$$)&&$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($result$jscomp$342$$,$APP.$cljs$cst$1621$content$$))||
$APP.$cljs$core$empty_QMARK_$$($result$jscomp$342$$)};
$instaparse$repeat$parse_from_index$$=function($grammar$jscomp$20_tramp$jscomp$61$$,$initial_parser$$,$text$jscomp$100$$,$segment$jscomp$51$$,$index$jscomp$446$$){$grammar$jscomp$20_tramp$jscomp$61$$=$instaparse$gll$make_tramp$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$20_tramp$jscomp$61$$,$text$jscomp$100$$,$segment$jscomp$51$$,-1,null);$instaparse$gll$push_listener$$($grammar$jscomp$20_tramp$jscomp$61$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$index$jscomp$446$$,$initial_parser$$],null),$instaparse$gll$TopListener$$($grammar$jscomp$20_tramp$jscomp$61$$));return $instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$($grammar$jscomp$20_tramp$jscomp$61$$,null)};
$instaparse$repeat$select_parse$$=function($grammar$jscomp$21$$,$initial_parser$jscomp$1$$,$text$jscomp$101$$,$segment$jscomp$52$$,$index$jscomp$447$$,$parses_parses__$1$$){var $length$jscomp$51$$=$APP.$cljs$core$count$$($text$jscomp$101$$);for($parses_parses__$1$$=$APP.$cljs$core$seq$$($parses_parses__$1$$);;)if($parses_parses__$1$$){var $parse$jscomp$7$$=$APP.$cljs$core$first$$($parses_parses__$1$$),$end$jscomp$102_end__$1_vec__74923$$=$instaparse$viz$span$$($parse$jscomp$7$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$102_end__$1_vec__74923$$,
0,null);$end$jscomp$102_end__$1_vec__74923$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$102_end__$1_vec__74923$$,1,null);$end$jscomp$102_end__$1_vec__74923$$=$APP.$cljs$core$truth_$$($end$jscomp$102_end__$1_vec__74923$$)?$end$jscomp$102_end__$1_vec__74923$$:$index$jscomp$447$$+$APP.$cljs$core$count$$($parse$jscomp$7$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$102_end__$1_vec__74923$$,$length$jscomp$51$$))return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$parse$jscomp$7$$,$end$jscomp$102_end__$1_vec__74923$$,null],null);var $temp__5823__auto__$jscomp$218$$=$APP.$cljs$core$seq$$($instaparse$repeat$parse_from_index$$($grammar$jscomp$21$$,$initial_parser$jscomp$1$$,$text$jscomp$101$$,$segment$jscomp$52$$,$end$jscomp$102_end__$1_vec__74923$$));if($temp__5823__auto__$jscomp$218$$)return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$parse$jscomp$7$$,$end$jscomp$102_end__$1_vec__74923$$,
$temp__5823__auto__$jscomp$218$$],null);$parses_parses__$1$$=$APP.$cljs$core$next$$($parses_parses__$1$$)}else return null};
$instaparse$repeat$repeat_parse_no_tag$cljs$0core$0IFn$0_invoke$0arity$05$$=function($grammar$jscomp$27$$,$initial_parser$jscomp$7$$,$text$jscomp$107$$,$segment$jscomp$58$$,$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$){var $length$jscomp$54$$=$APP.$cljs$core$count$$($text$jscomp$107$$),$G__75181_first_result$jscomp$2_index__$2$jscomp$6_index__$3$jscomp$4$$=$instaparse$repeat$parse_from_index$$($grammar$jscomp$27$$,$initial_parser$jscomp$7$$,$text$jscomp$107$$,
$segment$jscomp$58$$,$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$);$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$=$APP.$cljs$core$fix$$($G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$);var $G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$=$instaparse$repeat$select_parse$$($grammar$jscomp$27$$,$initial_parser$jscomp$7$$,$text$jscomp$107$$,$segment$jscomp$58$$,$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$,
$G__75181_first_result$jscomp$2_index__$2$jscomp$6_index__$3$jscomp$4$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$,2,null);$G__75181_first_result$jscomp$2_index__$2$jscomp$6_index__$3$jscomp$4$$=$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$;
for($G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$=$instaparse$auto_flatten_seq$EMPTY$$;;){var $vec__75009$$=$G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$,$parse__$1$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__75009$$,0,null);$G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__75009$$,1,null);var $follow_ups__$1$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__75009$$,
2,null);if($vec__75009$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__75181_first_result$jscomp$2_index__$2$jscomp$6_index__$3$jscomp$4$$,$G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$))return $instaparse$repeat$failure_signal$$;if($follow_ups__$1$jscomp$2$$==null)return $instaparse$gll$safe_with_meta$$($instaparse$auto_flatten_seq$conj_flat$$($G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$,$parse__$1$jscomp$2$$),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$cljs$cst$5290$optimize$$,$cljs$cst$5291$memory$$,$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,0,$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$length$jscomp$54$$],null));$G__75181_first_result$jscomp$2_index__$2$jscomp$6_index__$3$jscomp$4$$=$APP.$cljs$core$fix$$($G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$);$G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$=$instaparse$auto_flatten_seq$conj_flat$$($G__75182_index$jscomp$450_index__$1$jscomp$22_parses__$1$jscomp$3_parses__$2$jscomp$2$$,
$parse__$1$jscomp$2$$);$G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$=$instaparse$repeat$select_parse$$($grammar$jscomp$27$$,$initial_parser$jscomp$7$$,$text$jscomp$107$$,$segment$jscomp$58$$,$G__74997_G__74997__$1_G__75183_end__$1$jscomp$3$$,$follow_ups__$1$jscomp$2$$)}};
$instaparse$repeat$repeat_parse$cljs$0core$0IFn$0_invoke$0arity$05$$=function($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,$length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$,$G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$,$text$jscomp$109$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$,
$cljs$cst$5188$hiccup$$))a:{$length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$=$APP.$cljs$core$count$$($text$jscomp$109$$);var $G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$instaparse$repeat$parse_from_index$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,
$text$jscomp$109$$,$text$jscomp$109$$,0),$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$=$APP.$cljs$core$fix$$(0),$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=
$instaparse$auto_flatten_seq$auto_flatten_seq$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$],null));$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$instaparse$repeat$select_parse$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,
$initial_parser$jscomp$9$$,$text$jscomp$109$$,$text$jscomp$109$$,$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$,$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$);
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,
1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,2,null);$G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$=$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$;
$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$=$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$;for($G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=
$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$;;){var $parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$=$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$,
$follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$,0,null);$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$,
1,null);$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$,2,null);if($parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$,
$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$)){$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=$instaparse$repeat$failure_signal$$;break a}if($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$==
null){$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=$instaparse$gll$safe_with_meta$$($instaparse$auto_flatten_seq$convert_afs_to_vec$$($instaparse$auto_flatten_seq$conj_flat$$($G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$,$follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$)),
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5290$optimize$$,$cljs$cst$5291$memory$$,$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,0,$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$],null));break a}$G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$=$APP.$cljs$core$fix$$($G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$);
$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$=$instaparse$auto_flatten_seq$conj_flat$$($G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$,
$follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$);$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=$instaparse$repeat$select_parse$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,$text$jscomp$109$$,$text$jscomp$109$$,$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$,
$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$)}$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=void 0}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$,$cljs$cst$5189$enlive$$))a:{$length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$=
$APP.$cljs$core$count$$($text$jscomp$109$$);$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=$instaparse$repeat$parse_from_index$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,$text$jscomp$109$$,$text$jscomp$109$$,0);$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$=
$APP.$cljs$core$fix$$(0);$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$instaparse$repeat$select_parse$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,$text$jscomp$109$$,$text$jscomp$109$$,$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$,
$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,
0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,
2,null);for($G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=$instaparse$auto_flatten_seq$EMPTY$$;;){var $vec__74976$jscomp$inline_12849$$=$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$;
$parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__74976$jscomp$inline_12849$$,0,null);$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__74976$jscomp$inline_12849$$,1,null);$follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__74976$jscomp$inline_12849$$,2,null);if($vec__74976$jscomp$inline_12849$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$,$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$)){$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=
$instaparse$repeat$failure_signal$$;break a}if($follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$==null){$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=$instaparse$gll$safe_with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$G__75153$jscomp$inline_12831_index__$2$jscomp$inline_12822_index__$3$jscomp$inline_12825_root_tag$jscomp$4$$,$APP.$cljs$cst$1621$content$$,$APP.$cljs$core$seq$$($instaparse$auto_flatten_seq$conj_flat$$($G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$,
$parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$))],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5290$optimize$$,$cljs$cst$5291$memory$$,$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,0,$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$length$jscomp$inline_12817_length$jscomp$inline_12840_output_format$jscomp$5$$],null));break a}$G__75154$jscomp$inline_12832_G__75169$jscomp$inline_12853_index__$1$jscomp$inline_12819_index__$1$jscomp$inline_12842_index__$2$jscomp$inline_12844_index__$3$jscomp$inline_12847_parses__$1$jscomp$inline_12823_parses__$2$jscomp$inline_12826$$=
$APP.$cljs$core$fix$$($G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$);$G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$=$instaparse$auto_flatten_seq$conj_flat$$($G__74932__$1$jscomp$inline_12824_G__75155$jscomp$inline_12833_G__75170$jscomp$inline_12854_end__$1$jscomp$inline_12829_first_result$jscomp$inline_12841_parses$jscomp$inline_12820_parses__$1$jscomp$inline_12845_parses__$2$jscomp$inline_12848$$,
$parse__$1$jscomp$inline_12850_vec__74944$jscomp$inline_12827$$);$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$=$instaparse$repeat$select_parse$$($JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$,$initial_parser$jscomp$9$$,$text$jscomp$109$$,$text$jscomp$109$$,$G__74932$jscomp$inline_12821_G__74964$jscomp$inline_12843_G__74964__$1$jscomp$inline_12846_G__75171$jscomp$inline_12855_end__$1$jscomp$inline_12851_first_result$jscomp$inline_12818_follow_ups__$1$jscomp$inline_12830$$,
$follow_ups__$1$jscomp$inline_12852_parse__$1$jscomp$inline_12828$$)}$JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=void 0}else $JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$=null;return $JSCompiler_temp$jscomp$10593_JSCompiler_temp$jscomp$10594_grammar$jscomp$29$$};
$instaparse$repeat$repeat_parse_with_header$$=function($grammar$jscomp$30_repeat_result$$,$JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$,$repeating_parser$$,$output_format$jscomp$6$$,$root_tag$jscomp$5$$,$text$jscomp$110$$){var $length$jscomp$55_span_meta$$=$APP.$cljs$core$count$$($text$jscomp$110$$),$header_result_header_results$$=$instaparse$repeat$parse_from_index$$($grammar$jscomp$30_repeat_result$$,$JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$,$text$jscomp$110$$,
$text$jscomp$110$$,0),$or__5025__auto__$jscomp$inline_8402$$=$APP.$cljs$core$empty_QMARK_$$($header_result_header_results$$);$JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$=$or__5025__auto__$jscomp$inline_8402$$?$or__5025__auto__$jscomp$inline_8402$$:$APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$);if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$))return $instaparse$repeat$failure_signal$$;
$header_result_header_results$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$max_key$$,$instaparse$repeat$get_end$$,$header_result_header_results$$);$JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$=$instaparse$repeat$get_end$$.$cljs$core$IFn$_invoke$arity$1$($header_result_header_results$$);$grammar$jscomp$30_repeat_result$$=$instaparse$repeat$repeat_parse_no_tag$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$30_repeat_result$$,$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($repeating_parser$$),
$text$jscomp$110$$,$text$jscomp$110$$,$JSCompiler_inline_result$jscomp$1690_end$jscomp$106_header_parser$$);$length$jscomp$55_span_meta$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5290$optimize$$,$cljs$cst$5291$memory$$,$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$,0,$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$,$length$jscomp$55_span_meta$$],null);if($grammar$jscomp$30_repeat_result$$ instanceof $instaparse$gll$Failure$$||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($repeating_parser$$),
$cljs$cst$5192$star$$)&&$instaparse$repeat$empty_result_QMARK_$$($grammar$jscomp$30_repeat_result$$))return $instaparse$repeat$failure_signal$$;switch($output_format$jscomp$6$$ instanceof $APP.$cljs$core$Keyword$$?$output_format$jscomp$6$$.$fqn$:null){case "enlive":return $instaparse$gll$safe_with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$root_tag$jscomp$5$$,$APP.$cljs$cst$1621$content$$,$instaparse$auto_flatten_seq$conj_flat$$($instaparse$auto_flatten_seq$EMPTY$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,
$header_result_header_results$$),$grammar$jscomp$30_repeat_result$$)],null),$length$jscomp$55_span_meta$$);case "hiccup":return $instaparse$gll$safe_with_meta$$($instaparse$auto_flatten_seq$convert_afs_to_vec$$($instaparse$auto_flatten_seq$conj_flat$$($instaparse$auto_flatten_seq$auto_flatten_seq$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$root_tag$jscomp$5$$],null)).$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,$header_result_header_results$$),
$grammar$jscomp$30_repeat_result$$)),$length$jscomp$55_span_meta$$);default:return $instaparse$gll$safe_with_meta$$($instaparse$auto_flatten_seq$conj_flat$$($instaparse$auto_flatten_seq$EMPTY$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$(null,$header_result_header_results$$),$grammar$jscomp$30_repeat_result$$),$length$jscomp$55_span_meta$$)}};
$instaparse$repeat$try_repeating_parse_strategy_with_header$$=function($grammar$jscomp$31$$,$text$jscomp$111$$,$start_production$jscomp$3$$,$start_rule$$,$output_format$jscomp$7$$){var $header_parser$jscomp$1_parsers$jscomp$14$$=$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$$),$repeating_parser$jscomp$1$$=$APP.$cljs$core$last$$($header_parser$jscomp$1_parsers$jscomp$14$$),$G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$;
if($G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$$),$APP.$cljs$cst$592$cat$$)){$G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$=$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($repeating_parser$jscomp$1$$);
var $fexpr__75135$jscomp$inline_12860$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5192$star$$,null,$cljs$cst$5191$plus$$,null],null),null);$G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$=$fexpr__75135$jscomp$inline_12860$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__75135$jscomp$inline_12860$$.$cljs$core$IFn$_invoke$arity$1$($G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$):
$fexpr__75135$jscomp$inline_12860$$($G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$);$G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$=$APP.$cljs$core$truth_$$($G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$)?
$APP.$cljs$core$not$$($APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($repeating_parser$jscomp$1$$))&&$APP.$cljs$core$not$$($APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($repeating_parser$jscomp$1$$))):$G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$}if($APP.$cljs$core$not$$($G__75136$jscomp$inline_12859_JSCompiler_inline_result$jscomp$10595_and__5023__auto__$jscomp$inline_12857_and__5023__auto____$1$jscomp$inline_12858$$))return $instaparse$repeat$failure_signal$$;
$header_parser$jscomp$1_parsers$jscomp$14$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$cat$$,$APP.$cljs$core$butlast$$($header_parser$jscomp$1_parsers$jscomp$14$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$$),$instaparse$reduction$raw_non_terminal_reduction$$)?$instaparse$repeat$repeat_parse_with_header$$($grammar$jscomp$31$$,$header_parser$jscomp$1_parsers$jscomp$14$$,
$repeating_parser$jscomp$1$$,null,$start_production$jscomp$3$$,$text$jscomp$111$$):$instaparse$repeat$repeat_parse_with_header$$($grammar$jscomp$31$$,$header_parser$jscomp$1_parsers$jscomp$14$$,$repeating_parser$jscomp$1$$,$output_format$jscomp$7$$,$start_production$jscomp$3$$,$text$jscomp$111$$)};
$instaparse$repeat$try_repeating_parse_strategy$$=function($output_format$jscomp$8_parser$jscomp$62$$,$result$jscomp$343_text$jscomp$112$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$){var $grammar$jscomp$32$$=$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($output_format$jscomp$8_parser$jscomp$62$$);$output_format$jscomp$8_parser$jscomp$62$$=$cljs$cst$5249$output_format$$.$cljs$core$IFn$_invoke$arity$1$($output_format$jscomp$8_parser$jscomp$62$$);
var $start_rule$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grammar$jscomp$32$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),!0)?$instaparse$repeat$failure_signal$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),
$instaparse$reduction$raw_non_terminal_reduction$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$cljs$cst$5192$star$$)?($initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$instaparse$repeat$repeat_parse_no_tag$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$32$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,
$result$jscomp$343_text$jscomp$112$$,$result$jscomp$343_text$jscomp$112$$,0)):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$cljs$cst$5191$plus$$)?($initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$result$jscomp$343_text$jscomp$112$$=$instaparse$repeat$repeat_parse_no_tag$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$32$$,
$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,$result$jscomp$343_text$jscomp$112$$,$result$jscomp$343_text$jscomp$112$$,0),$instaparse$repeat$empty_result_QMARK_$$($result$jscomp$343_text$jscomp$112$$)?$instaparse$repeat$failure_signal$$:$result$jscomp$343_text$jscomp$112$$):$instaparse$repeat$try_repeating_parse_strategy_with_header$$($grammar$jscomp$32$$,$result$jscomp$343_text$jscomp$112$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,
$start_rule$jscomp$1$$,$output_format$jscomp$8_parser$jscomp$62$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$cljs$cst$5192$star$$)?$instaparse$repeat$repeat_parse$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$32$$,$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$output_format$jscomp$8_parser$jscomp$62$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,
$result$jscomp$343_text$jscomp$112$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$cljs$cst$5191$plus$$)?($result$jscomp$343_text$jscomp$112$$=$instaparse$repeat$repeat_parse$cljs$0core$0IFn$0_invoke$0arity$05$$($grammar$jscomp$32$$,$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($start_rule$jscomp$1$$),$output_format$jscomp$8_parser$jscomp$62$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,
$result$jscomp$343_text$jscomp$112$$),$instaparse$repeat$empty_result_QMARK_$$($result$jscomp$343_text$jscomp$112$$)?$instaparse$repeat$failure_signal$$:$result$jscomp$343_text$jscomp$112$$):$instaparse$repeat$try_repeating_parse_strategy_with_header$$($grammar$jscomp$32$$,$result$jscomp$343_text$jscomp$112$$,$initial_parser$jscomp$inline_8408_initial_parser$jscomp$inline_8412_start_production$jscomp$4$$,$start_rule$jscomp$1$$,$output_format$jscomp$8_parser$jscomp$62$$)};
$instaparse$core$unhide_parser$$=function($parser$jscomp$63$$,$unhide$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(null,$unhide$$))return $parser$jscomp$63$$;if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1621$content$$,$unhide$$))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$63$$,$cljs$cst$5183$grammar$$,$instaparse$combinators_source$unhide_all_content$$($cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$63$$)));
if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3094$tags$$,$unhide$$))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$63$$,$cljs$cst$5183$grammar$$,$instaparse$combinators_source$unhide_tags$$($cljs$cst$5249$output_format$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$63$$),$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$63$$)));if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2106$all$$,$unhide$$))return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$63$$,
$cljs$cst$5183$grammar$$,$instaparse$combinators_source$unhide_all$$($cljs$cst$5249$output_format$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$63$$),$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$63$$)));throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($unhide$$)].join(""));};
$instaparse$core$Parser$$=function($grammar$jscomp$33$$,$start_production$jscomp$7$$,$output_format$jscomp$9$$,$__meta$jscomp$39$$,$__extmap$jscomp$39$$,$__hash$jscomp$98$$){this.$grammar$=$grammar$jscomp$33$$;this.$start_production$=$start_production$jscomp$7$$;this.$output_format$=$output_format$jscomp$9$$;this.$__meta$=$__meta$jscomp$39$$;this.$__extmap$=$__extmap$jscomp$39$$;this.$__hash$=$__hash$jscomp$98$$;this.$cljs$lang$protocol_mask$partition0$$=2230716171;this.$cljs$lang$protocol_mask$partition1$$=
139264};
$instaparse$core$map__GT_Parser$$=function($G__76002$$){var $G__76041$jscomp$inline_8415_extmap__5365__auto__$jscomp$39$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__76002$$,$cljs$cst$5183$grammar$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5184$start_production$$,$cljs$cst$5249$output_format$$]));$G__76041$jscomp$inline_8415_extmap__5365__auto__$jscomp$39$$=$APP.$cljs$core$record_QMARK_$$($G__76002$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$G__76041$jscomp$inline_8415_extmap__5365__auto__$jscomp$39$$):
$G__76041$jscomp$inline_8415_extmap__5365__auto__$jscomp$39$$;return new $instaparse$core$Parser$$($cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($G__76002$$),$cljs$cst$5184$start_production$$.$cljs$core$IFn$_invoke$arity$1$($G__76002$$),$cljs$cst$5249$output_format$$.$cljs$core$IFn$_invoke$arity$1$($G__76002$$),null,$APP.$cljs$core$not_empty$$($G__76041$jscomp$inline_8415_extmap__5365__auto__$jscomp$39$$),null)};
$instaparse$core$parser$$=function($var_args$jscomp$1417$$){for(var $args__5755__auto__$jscomp$246$$=[],$len__5749__auto___76127$$=arguments.length,$i__5750__auto___76128$$=0;;)if($i__5750__auto___76128$$<$len__5749__auto___76127$$)$args__5755__auto__$jscomp$246$$.push(arguments[$i__5750__auto___76128$$]),$i__5750__auto___76128$$+=1;else break;return $instaparse$core$parser$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(arguments[0],1<$args__5755__auto__$jscomp$246$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$246$$.slice(1),
0,null):null)};
$instaparse$core$parser$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($grammar_specification$$,$built_parser_p__76052$$){var $options$jscomp$601$$=$APP.$cljs$core$__destructure_map$$($built_parser_p__76052$$),$input_format$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($options$jscomp$601$$,$cljs$cst$5301$input_format$$,$cljs$cst$5297$ebnf$$),$output_format$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($options$jscomp$601$$,$cljs$cst$5249$output_format$$,$cljs$cst$5188$hiccup$$),
$start$jscomp$243$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($options$jscomp$601$$,$APP.$cljs$cst$1278$start$$,null);$built_parser_p__76052$$=typeof $grammar_specification$$==="string"?function(){a:{var $_STAR_case_insensitive_literals_STAR__orig_val__76054$jscomp$inline_8419$$=$instaparse$cfg$_STAR_case_insensitive_literals_STAR_$$;$instaparse$cfg$_STAR_case_insensitive_literals_STAR_$$=$cljs$cst$5194$string_ci$$.$cljs$core$IFn$_invoke$arity$2$($options$jscomp$601$$,$APP.$cljs$cst$205$default$$);
try{var $G__76056__$1$jscomp$inline_8420$$=$input_format$$ instanceof $APP.$cljs$core$Keyword$$?$input_format$$.$fqn$:null;switch($G__76056__$1$jscomp$inline_8420$$){case "abnf":var $parser$jscomp$78$$=$instaparse$abnf$build_parser$$($grammar_specification$$,$output_format$jscomp$11$$);break a;case "ebnf":$parser$jscomp$78$$=$instaparse$cfg$build_parser$cljs$0core$0IFn$0_invoke$0arity$03$$($grammar_specification$$,$output_format$jscomp$11$$,$cljs$cst$5302$allow_namespaced_nts$$.$cljs$core$IFn$_invoke$arity$2$($options$jscomp$601$$,
!1));break a;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76056__$1$jscomp$inline_8420$$)].join(""));}}finally{$instaparse$cfg$_STAR_case_insensitive_literals_STAR_$$=$_STAR_case_insensitive_literals_STAR__orig_val__76054$jscomp$inline_8419$$}$parser$jscomp$78$$=void 0}return $APP.$cljs$core$truth_$$($start$jscomp$243$$)?$instaparse$core$map__GT_Parser$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$78$$,$cljs$cst$5184$start_production$$,
$start$jscomp$243$$)):$instaparse$core$map__GT_Parser$$($parser$jscomp$78$$)}():$APP.$cljs$core$map_QMARK_$$($grammar_specification$$)?function(){var $parser$jscomp$79$$=$instaparse$cfg$build_parser_from_combinators$$($grammar_specification$$,$output_format$jscomp$11$$,$start$jscomp$243$$);return $instaparse$core$map__GT_Parser$$($parser$jscomp$79$$)}():$APP.$cljs$core$vector_QMARK_$$($grammar_specification$$)?function(){var $parser$jscomp$80_start__$1$jscomp$14$$=$APP.$cljs$core$truth_$$($start$jscomp$243$$)?
$start$jscomp$243$$:$grammar_specification$$.$cljs$core$IFn$_invoke$arity$1$?$grammar_specification$$.$cljs$core$IFn$_invoke$arity$1$(0):$grammar_specification$$(0);$parser$jscomp$80_start__$1$jscomp$14$$=$instaparse$cfg$build_parser_from_combinators$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$hash_map$$,$grammar_specification$$),$output_format$jscomp$11$$,$parser$jscomp$80_start__$1$jscomp$14$$);return $instaparse$core$map__GT_Parser$$($parser$jscomp$80_start__$1$jscomp$14$$)}():
$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Expected string, map, or vector as grammar specification, got ",$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$grammar_specification$$]))]));var $auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($options$jscomp$601$$,
$cljs$cst$5303$auto_whitespace$$);$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$=$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$ instanceof $APP.$cljs$core$Keyword$$?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$core$standard_whitespace_parsers$$,$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$):$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$;if($APP.$cljs$core$truth_$$($auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$)){var $map__76066__$1_ws_start$$=
$APP.$cljs$core$__destructure_map$$($auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$);$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76066__$1_ws_start$$,$cljs$cst$5183$grammar$$);$map__76066__$1_ws_start$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76066__$1_ws_start$$,$cljs$cst$5184$start_production$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($built_parser_p__76052$$,$cljs$cst$5183$grammar$$,
$instaparse$combinators_source$auto_whitespace$$($built_parser_p__76052$$.$grammar$,$built_parser_p__76052$$.$start_production$,$auto_whitespace_temp__5823__auto__$jscomp$219_ws_grammar$$,$map__76066__$1_ws_start$$))}return $built_parser_p__76052$$};$instaparse$core$failure_QMARK_$$=function($result$jscomp$345$$){return $result$jscomp$345$$ instanceof $instaparse$gll$failure_type$$||$APP.$cljs$core$meta$$($result$jscomp$345$$)instanceof $instaparse$gll$failure_type$$};
$app$util$simple_math$expr_eval$$=function($expecting_expr$jscomp$5_result$jscomp$347$$,$init_value$jscomp$1_init_value__$1_text$jscomp$130$$){$APP.$cljs$core$truth_$$(!1)&&$APP.$cljs$core$truth_$$($APP.$cljs$core$deref$$(new $APP.$cljs$core$Var$$(function(){return!1},$cljs$cst$5306$cljs_DOT_spec_DOT_alpha_SLASH__STAR_runtime_asserts_STAR_$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1467$private$$,$APP.$cljs$cst$176$ns$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$218$end_column$$,
$APP.$cljs$cst$216$column$$,$cljs$cst$5307$dynamic$$,$APP.$cljs$cst$209$line$$,$APP.$cljs$cst$217$end_line$$,$APP.$cljs$cst$1468$arglists$$,$APP.$cljs$cst$1469$doc$$,$APP.$cljs$cst$171$test$$],[!0,$cljs$cst$5308$cljs_DOT_spec_DOT_alpha$$,$cljs$cst$5309$_STAR_runtime_asserts_STAR_$$,"cljs/spec/alpha.cljs",20,1,!0,1480,1482,$APP.$cljs$core$List$EMPTY$$,null,$APP.$cljs$core$truth_$$(!1)?(!1).$cljs$lang$test$:null]))))&&$cljs$spec$alpha$assert_STAR_$$($APP.$cljs$core$string_QMARK_$$,$expecting_expr$jscomp$5_result$jscomp$347$$);
$expecting_expr$jscomp$5_result$jscomp$347$$=$app$util$simple_math$parser$$.$cljs$core$IFn$_invoke$arity$1$?$app$util$simple_math$parser$$.$cljs$core$IFn$_invoke$arity$1$($expecting_expr$jscomp$5_result$jscomp$347$$):$app$util$simple_math$parser$$($expecting_expr$jscomp$5_result$jscomp$347$$);$init_value$jscomp$1_init_value__$1_text$jscomp$130$$=$APP.$cljs$core$truth_$$($init_value$jscomp$1_init_value__$1_text$jscomp$130$$)?$init_value$jscomp$1_init_value__$1_text$jscomp$130$$:0;$APP.$cljs$core$truth_$$(!1)&&
$APP.$cljs$core$truth_$$($APP.$cljs$core$deref$$(new $APP.$cljs$core$Var$$(function(){return!1},$cljs$cst$5306$cljs_DOT_spec_DOT_alpha_SLASH__STAR_runtime_asserts_STAR_$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1467$private$$,$APP.$cljs$cst$176$ns$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$218$end_column$$,$APP.$cljs$cst$216$column$$,$cljs$cst$5307$dynamic$$,$APP.$cljs$cst$209$line$$,$APP.$cljs$cst$217$end_line$$,$APP.$cljs$cst$1468$arglists$$,$APP.$cljs$cst$1469$doc$$,
$APP.$cljs$cst$171$test$$],[!0,$cljs$cst$5308$cljs_DOT_spec_DOT_alpha$$,$cljs$cst$5309$_STAR_runtime_asserts_STAR_$$,"cljs/spec/alpha.cljs",20,1,!0,1480,1482,$APP.$cljs$core$List$EMPTY$$,null,$APP.$cljs$core$truth_$$(!1)?(!1).$cljs$lang$test$:null]))))&&$cljs$spec$alpha$assert_STAR_$$($APP.$cljs$core$number_QMARK_$$,$init_value$jscomp$1_init_value__$1_text$jscomp$130$$);if($instaparse$core$failure_QMARK_$$($expecting_expr$jscomp$5_result$jscomp$347$$)){$init_value$jscomp$1_init_value__$1_text$jscomp$130$$=
$APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($expecting_expr$jscomp$5_result$jscomp$347$$);var $index$jscomp$454$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($expecting_expr$jscomp$5_result$jscomp$347$$);$expecting_expr$jscomp$5_result$jscomp$347$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$some_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5187$expecting$$,$APP.$cljs$cst$982$reason$$.$cljs$core$IFn$_invoke$arity$1$($expecting_expr$jscomp$5_result$jscomp$347$$)));
console.debug(["Invalid value '",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($init_value$jscomp$1_init_value__$1_text$jscomp$130$$),"' at index ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$454$$),". Expected one of ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($expecting_expr$jscomp$5_result$jscomp$347$$),"."].join(""));return null}return $app$util$simple_math$interpret$$($expecting_expr$jscomp$5_result$jscomp$347$$,$init_value$jscomp$1_init_value__$1_text$jscomp$130$$)};
$app$main$ui$workspace$colorpicker$color_inputs$parse_hex$$=function($val$jscomp$195$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($val$jscomp$195$$),"#")?$val$jscomp$195$$:["#",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($val$jscomp$195$$)].join("")};
$app$main$ui$workspace$colorpicker$color_inputs$color_inputs$$=function($map__74715_props_74709_type$jscomp$581$$){function $on_key_down_property$$($property$jscomp$81$$,$max_value$jscomp$3$$){return $on_key_down_step$$($max_value$jscomp$3$$,function($p1__74708_SHARP_$$){return $apply_property_change$$($property$jscomp$81$$,$p1__74708_SHARP_$$)})}function $on_key_down_step$$($max_value$jscomp$2$$,$on_step$$){return function($e$jscomp$345$$){var $new_value$jscomp$13_up_QMARK_$jscomp$2$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($e$jscomp$345$$),
$and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($e$jscomp$345$$);$and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$=$APP.$cljs$core$truth_$$($new_value$jscomp$13_up_QMARK_$jscomp$2$$)?$new_value$jscomp$13_up_QMARK_$jscomp$2$$:$and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$;return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$)?
$e$jscomp$345$$.shiftKey||$e$jscomp$345$$.altKey:$and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$)&&($APP.$app$util$dom$prevent_default$$($e$jscomp$345$$),$and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$dom$get_target_val$$)($e$jscomp$345$$)),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$))?
($new_value$jscomp$13_up_QMARK_$jscomp$2$$=$APP.$app$common$math$clamp$$($and__5023__auto__$jscomp$inline_12868_down_QMARK_$jscomp$2_temp__5825__auto__$jscomp$328$$+($e$jscomp$345$$.shiftKey?$APP.$cljs$core$truth_$$($new_value$jscomp$13_up_QMARK_$jscomp$2$$)?10:-10:$e$jscomp$345$$.altKey?$APP.$cljs$core$truth_$$($new_value$jscomp$13_up_QMARK_$jscomp$2$$)?.1:-.1:null),0,$max_value$jscomp$2$$),$app$util$dom$set_value_BANG_$$($APP.$app$util$dom$get_target$$($e$jscomp$345$$),$new_value$jscomp$13_up_QMARK_$jscomp$2$$),
$on_step$$.$cljs$core$IFn$_invoke$arity$1$?$on_step$$.$cljs$core$IFn$_invoke$arity$1$($new_value$jscomp$13_up_QMARK_$jscomp$2$$):$on_step$$($new_value$jscomp$13_up_QMARK_$jscomp$2$$)):null}}function $on_change_property$$($property$jscomp$80$$,$max_value$jscomp$1$$){return function($e$jscomp$344_val$jscomp$201$$){$e$jscomp$344_val$jscomp$201$$=$APP.$app$common$math$clamp$$($APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$dom$get_target_val$$)($e$jscomp$344_val$jscomp$201$$)),
0,$max_value$jscomp$1$$);return $e$jscomp$344_val$jscomp$201$$!=null?$apply_property_change$$($property$jscomp$80$$,$e$jscomp$344_val$jscomp$201$$):null}}function $apply_property_change$$($property$jscomp$79$$,$val$jscomp$200$$){var $G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=function(){switch($property$jscomp$79$$ instanceof $APP.$cljs$core$Keyword$$?$property$jscomp$79$$.$fqn$:null){case "s":return $val$jscomp$200$$/100;case "v":return $val$jscomp$200$$/
100*255;case "alpha":return $val$jscomp$200$$/100;default:return $val$jscomp$200$$}}();if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($property$jscomp$79$$,$APP.$cljs$cst$744$alpha$$))return $G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$744$alpha$$,$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$],null),$on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$):$on_change$jscomp$30$$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$);if($APP.$cljs$core$truth_$$(function(){var $fexpr__74732$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1727$r$$,null,$APP.$cljs$cst$1728$g$$,null,$APP.$cljs$cst$1509$b$$,
null],null),null);return $fexpr__74732$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__74732$$.$cljs$core$IFn$_invoke$arity$1$($property$jscomp$79$$):$fexpr__74732$$($property$jscomp$79$$)}())){$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$color$jscomp$138$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$property$jscomp$79$$],
[$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$])]));var $h$jscomp$175_map__74733__$1$$=$APP.$cljs$core$__destructure_map$$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$);$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$175_map__74733__$1$$,$APP.$cljs$cst$1727$r$$);var $g$jscomp$157$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$175_map__74733__$1$$,$APP.$cljs$cst$1728$g$$),$b$jscomp$352_vec__74739$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$175_map__74733__$1$$,$APP.$cljs$cst$1509$b$$),$hex__$1$jscomp$2$$=$APP.$app$common$types$color$rgb__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,
$g$jscomp$157$$,$b$jscomp$352_vec__74739$$],null)),$v$jscomp$652_vec__74734$$=$app$common$types$color$hex__GT_hsv$$($hex__$1$jscomp$2$$);$h$jscomp$175_map__74733__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$652_vec__74734$$,0,null);var $s$jscomp$562$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$652_vec__74734$$,1,null);$v$jscomp$652_vec__74734$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$652_vec__74734$$,2,null);$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$2955$hex$$,$hex__$1$jscomp$2$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$175_map__74733__$1$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$562$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$652_vec__74734$$,$APP.$cljs$cst$1727$r$$,$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$157$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$352_vec__74739$$],null);return $on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$):$on_change$jscomp$30$$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$)}$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$color$jscomp$138$$,
$APP.$cljs$core$PersistentHashMap$fromArrays$$([$property$jscomp$79$$],[$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$])]));$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=$APP.$cljs$core$__destructure_map$$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$);$h$jscomp$175_map__74733__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,
$APP.$cljs$cst$1884$h$$);$s$jscomp$562$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,$APP.$cljs$cst$4052$s$$);$v$jscomp$652_vec__74734$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,$APP.$cljs$cst$2947$v$$);$hex__$1$jscomp$2$$=$app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$h$jscomp$175_map__74733__$1$$,$s$jscomp$562$$,$v$jscomp$652_vec__74734$$],null));$b$jscomp$352_vec__74739$$=$APP.$app$common$types$color$hex__GT_rgb$$($hex__$1$jscomp$2$$);$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$352_vec__74739$$,0,null);$g$jscomp$157$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$352_vec__74739$$,
1,null);$b$jscomp$352_vec__74739$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$352_vec__74739$$,2,null);$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$=new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$2955$hex$$,$hex__$1$jscomp$2$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$175_map__74733__$1$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$562$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$652_vec__74734$$,$APP.$cljs$cst$1727$r$$,$G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$,
$APP.$cljs$cst$1728$g$$,$g$jscomp$157$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$352_vec__74739$$],null);return $on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$):$on_change$jscomp$30$$($G__74731_G__74737_G__74742_map__74733_map__74738_map__74738__$1_r$jscomp$135_val__$1$jscomp$15$$)}function $setup_hex_color$$($G__74724_hex__$1$jscomp$1$$){var $b$jscomp$351_vec__74718$$=
$APP.$app$common$types$color$hex__GT_rgb$$($G__74724_hex__$1$jscomp$1$$),$r$jscomp$134$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$351_vec__74718$$,0,null),$g$jscomp$156$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$351_vec__74718$$,1,null);$b$jscomp$351_vec__74718$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$351_vec__74718$$,2,null);var $v$jscomp$651_vec__74721$$=$app$common$types$color$hex__GT_hsv$$($G__74724_hex__$1$jscomp$1$$),
$h$jscomp$174$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$651_vec__74721$$,0,null),$s$jscomp$561$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$651_vec__74721$$,1,null);$v$jscomp$651_vec__74721$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$651_vec__74721$$,2,null);$G__74724_hex__$1$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$2955$hex$$,$G__74724_hex__$1$jscomp$1$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$174$$,
$APP.$cljs$cst$4052$s$$,$s$jscomp$561$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$651_vec__74721$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$134$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$156$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$351_vec__74718$$],null);return $on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$30$$.$cljs$core$IFn$_invoke$arity$1$($G__74724_hex__$1$jscomp$1$$):$on_change$jscomp$30$$($G__74724_hex__$1$jscomp$1$$)}$map__74715_props_74709_type$jscomp$581$$=$APP.$rumext$v2$util$wrap_props$$($map__74715_props_74709_type$jscomp$581$$);
var $map__74715__$1_red$jscomp$5$$=$APP.$cljs$core$__destructure_map$$($map__74715_props_74709_type$jscomp$581$$);$map__74715_props_74709_type$jscomp$581$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74715__$1_red$jscomp$5$$,$APP.$cljs$cst$139$type$$);var $color$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74715__$1_red$jscomp$5$$,$APP.$cljs$cst$1284$color$$),$disable_opacity$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74715__$1_red$jscomp$5$$,
$APP.$cljs$cst$4039$disable_opacity$$),$on_change$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74715__$1_red$jscomp$5$$,$APP.$cljs$cst$4041$on_change$$),$alpha$jscomp$11_map__74717__$1$$=$APP.$cljs$core$__destructure_map$$($color$jscomp$138$$);$map__74715__$1_red$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$1727$r$$);var $green$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,
$APP.$cljs$cst$1728$g$$),$blue$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$1509$b$$),$hue$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$1884$h$$),$saturation$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$4052$s$$),$value$jscomp$758$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,
$APP.$cljs$cst$2947$v$$),$hex$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$2955$hex$$);$alpha$jscomp$11_map__74717__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$744$alpha$$);var $refs$$=new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$2955$hex$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$1727$r$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$1728$g$$,
(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$1509$b$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$1884$h$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$4052$s$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$2947$v$$,(0,$APP.$rumext$v2$use_ref$$)(null),$APP.$cljs$cst$744$alpha$$,(0,$APP.$rumext$v2$use_ref$$)(null)],null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$138$$),$APP.$rumext$v2$adapt$$($map__74715_props_74709_type$jscomp$581$$)],
function(){for(var $G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$=$APP.$cljs$core$seq$$($APP.$cljs$core$keys$$($refs$$)),$G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$=null,$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$=0,$i__74747$$=0;;)if($i__74747$$<$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$){var $ref_key$jscomp$1$$=$G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,
$i__74747$$),$property_val_74773$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$138$$,$ref_key$jscomp$1$$),$property_ref_74774$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($refs$$,$ref_key$jscomp$1$$);if($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$676$$=$property_val_74773$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$676$$)?$property_ref_74774$$:$and__5023__auto__$jscomp$676$$}())){var $node_74776_temp__5825__auto___74775$$=$APP.$rumext$v2$ref_val$$($property_ref_74774$$);
if($APP.$cljs$core$truth_$$($node_74776_temp__5825__auto___74775$$)){var $new_val_74777$$=function(){var $G__74754$$=$ref_key$jscomp$1$$;switch($G__74754$$ instanceof $APP.$cljs$core$Keyword$$?$G__74754$$.$fqn$:null){case "s":case "alpha":return $APP.$app$common$math$precision$$($property_val_74773$$*100,2);case "v":return $APP.$app$common$math$precision$$($property_val_74773$$/255*100,2);default:return $property_val_74773$$}}();$app$util$dom$set_value_BANG_$$($node_74776_temp__5825__auto___74775$$,
$new_val_74777$$)}}$i__74747$$+=1}else if($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$=$APP.$cljs$core$seq$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$)){if($APP.$cljs$core$chunked_seq_QMARK_$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$))$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$=$APP.$cljs$core$_chunked_first$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$),$G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$=
$APP.$cljs$core$_chunked_rest$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$),$G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$=$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$,$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$=$APP.$cljs$core$count$$($G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$);else{$ref_key$jscomp$1$$=$APP.$cljs$core$first$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$);
var $property_val_74787$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$138$$,$ref_key$jscomp$1$$),$property_ref_74788$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($refs$$,$ref_key$jscomp$1$$);$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$677$$=$property_val_74787$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$677$$)?$property_ref_74788$$:$and__5023__auto__$jscomp$677$$}())&&($G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$=
$APP.$rumext$v2$ref_val$$($property_ref_74788$$),$APP.$cljs$core$truth_$$($G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$)&&($G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$=function(){var $G__74757$$=$ref_key$jscomp$1$$;switch($G__74757$$ instanceof $APP.$cljs$core$Keyword$$?$G__74757$$.$fqn$:null){case "s":case "alpha":return $APP.$app$common$math$precision$$($property_val_74787$$*100,2);case "v":return $APP.$app$common$math$precision$$($property_val_74787$$/255*
100,2);default:return $property_val_74787$$}}(),$app$util$dom$set_value_BANG_$$($G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$,$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$)));$G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$=$APP.$cljs$core$next$$($G__74783_seq__74744_seq__74744__$1_temp__5825__auto__$jscomp$329$$);$G__74784_chunk__74745_node_74790_temp__5825__auto___74789__$1$$=null;$G__74785_c__5548__auto__$jscomp$40_count__74746_new_val_74791$$=
0}$i__74747$$=0}else return null});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__color-values "+($APP.$cljs$core$truth_$$($disable_opacity$$)?"main_ui_workspace_colorpicker_color_inputs__disable-opacity":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__colors-row",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__74715_props_74709_type$jscomp$581$$,$cljs$cst$5310$rgb$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"red-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"R"}),(0,$APP.$rumext$v2$jsx$$)("input",{id:"red-value",ref:$APP.$cljs$cst$1727$r$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),type:"number",min:0,max:255,defaultValue:$map__74715__$1_red$jscomp$5$$,onChange:$on_change_property$$($APP.$cljs$cst$1727$r$$,
255),onKeyDown:$on_key_down_property$$($APP.$cljs$cst$1727$r$$,255)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"green-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"G"}),(0,$APP.$rumext$v2$jsx$$)("input",{id:"green-value",ref:$APP.$cljs$cst$1728$g$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),type:"number",min:0,max:255,defaultValue:$green$jscomp$5$$,
onChange:$on_change_property$$($APP.$cljs$cst$1728$g$$,255),onKeyDown:$on_key_down_property$$($APP.$cljs$cst$1728$g$$,255)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"blue-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"B"}),(0,$APP.$rumext$v2$jsx$$)("input",{id:"blue-value",ref:$APP.$cljs$cst$1509$b$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),
type:"number",min:0,max:255,defaultValue:$blue$jscomp$5$$,onChange:$on_change_property$$($APP.$cljs$cst$1509$b$$,255),onKeyDown:$on_key_down_property$$($APP.$cljs$cst$1509$b$$,255)})]})]}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"hue-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"H"}),
(0,$APP.$rumext$v2$jsx$$)("input",{id:"hue-value",ref:$APP.$cljs$cst$1884$h$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),type:"number",min:0,max:360,defaultValue:$hue$jscomp$2$$,onChange:$on_change_property$$($APP.$cljs$cst$1884$h$$,360),onKeyDown:$on_key_down_property$$($APP.$cljs$cst$1884$h$$,360)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"saturation-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",
children:"S"}),(0,$APP.$rumext$v2$jsx$$)("input",{min:0,onChange:$on_change_property$$($APP.$cljs$cst$4052$s$$,100),max:100,id:"saturation-value",type:"number",ref:$APP.$cljs$cst$4052$s$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),defaultValue:$saturation$$,onKeyDown:$on_key_down_property$$($APP.$cljs$cst$4052$s$$,100),step:1})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"value-value",
className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"V"}),(0,$APP.$rumext$v2$jsx$$)("input",{id:"value-value",ref:$APP.$cljs$cst$2947$v$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),type:"number",min:0,max:100,defaultValue:$value$jscomp$758$$,onChange:$on_change_property$$($APP.$cljs$cst$2947$v$$,100),onKeyDown:$on_key_down_property$$($APP.$cljs$cst$2947$v$$,100)})]})]})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__hex-alpha-wrapper",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper main_ui_workspace_colorpicker_color_inputs__hex",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"hex-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"HEX"}),(0,$APP.$rumext$v2$jsx$$)("input",{id:"hex-value",ref:$APP.$cljs$cst$2955$hex$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),defaultValue:$hex$jscomp$9$$,onChange:function($e$jscomp$342_val$jscomp$198$$){$e$jscomp$342_val$jscomp$198$$=
$app$main$ui$workspace$colorpicker$color_inputs$parse_hex$$((0,$APP.$app$util$dom$get_target_val$$)($e$jscomp$342_val$jscomp$198$$));return $APP.$app$common$types$color$valid_hex_color_QMARK_$$($e$jscomp$342_val$jscomp$198$$)?$setup_hex_color$$($e$jscomp$342_val$jscomp$198$$):null},onBlur:function($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$){$e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$=(0,$APP.$app$util$dom$get_target_val$$)($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$);$e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$=
$APP.$app$common$types$color$color_string_QMARK_$$($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$)?$APP.$app$common$types$color$parse$$($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$):$APP.$app$common$types$color$valid_hex_color_QMARK_$$($app$main$ui$workspace$colorpicker$color_inputs$parse_hex$$($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$))?$app$main$ui$workspace$colorpicker$color_inputs$parse_hex$$($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$):null;return $e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$!=
null?$setup_hex_color$$($e$jscomp$343_val$jscomp$199_val__$1$jscomp$14$$):null}})]}),$APP.$cljs$core$not$$($disable_opacity$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_inputs__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"alpha-value",className:"main_ui_workspace_colorpicker_color_inputs__input-label",children:"A"}),(0,$APP.$rumext$v2$jsx$$)("input",{min:0,onChange:$on_change_property$$($APP.$cljs$cst$744$alpha$$,100),max:100,id:"alpha-value",
type:"number",ref:$APP.$cljs$cst$744$alpha$$.$cljs$core$IFn$_invoke$arity$1$($refs$$),defaultValue:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$11_map__74717__$1$$,$APP.$cljs$cst$1600$multiple$$)?"":$alpha$jscomp$11_map__74717__$1$$,onKeyDown:$on_key_down_property$$($APP.$cljs$cst$744$alpha$$,100),step:1})]}):null]})]})};
$app$main$ui$ds$controls$utilities$hint_message$hint_message_STAR_$$=function($props_74706_type__$1$jscomp$11$$){var $message$jscomp$113$$=void 0,$type$jscomp$582$$=void 0,$id$jscomp$876$$=void 0,$class$$jscomp$49$$=void 0;({id:$id$jscomp$876$$,className:$class$$jscomp$49$$,message:$message$jscomp$113$$,type:$type$jscomp$582$$}=$props_74706_type__$1$jscomp$11$$);$props_74706_type__$1$jscomp$11$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$582$$,$APP.$cljs$cst$273$hint$$);
return(0,$APP.$rumext$v2$jsx$$)("div",{className:""+($class$$jscomp$49$$??"")+" main_ui_ds_controls_utilities_hint_message__hint-message "+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_74706_type__$1$jscomp$11$$,"hint")?"main_ui_ds_controls_utilities_hint_message__type-hint":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_74706_type__$1$jscomp$11$$,"warning")?"main_ui_ds_controls_utilities_hint_message__type-warning":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_74706_type__$1$jscomp$11$$,
"error")?"main_ui_ds_controls_utilities_hint_message__type-error":"")),"aria-live":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_74706_type__$1$jscomp$11$$,"warning")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_74706_type__$1$jscomp$11$$,"error")?"polite":null,children:$message$jscomp$113$$!=null?(0,$APP.$rumext$v2$jsx$$)("span",{id:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$876$$),"-hint"].join(""),className:"main_ui_ds_controls_utilities_hint_message__hint-message-text",
children:$message$jscomp$113$$}):null})};
$app$main$ui$ds$controls$utilities$label$label_STAR_$$=function($children$jscomp$295_props_74814$$){var $for$$$,$class$$jscomp$51$$,$props$jscomp$291$$;({className:$class$$jscomp$51$$,htmlFor:$for$$$,isOptional:$is_optional_is_optional__$1_or__5025__auto__$jscomp$inline_8422$$,children:$children$jscomp$295_props_74814$$,...$props$jscomp$291$$}=$children$jscomp$295_props_74814$$);var $is_optional_is_optional__$1_or__5025__auto__$jscomp$inline_8422$$=$APP.$cljs$core$truth_$$($is_optional_is_optional__$1_or__5025__auto__$jscomp$inline_8422$$)?$is_optional_is_optional__$1_or__5025__auto__$jscomp$inline_8422$$:
!1;return(0,$APP.$rumext$v2$create_element$$)("label",{...$props$jscomp$291$$,className:""+($class$$jscomp$51$$??"")+" main_ui_ds_controls_utilities_label__label",htmlFor:$for$$$},(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$children$jscomp$295_props_74814$$!=null?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_controls_utilities_label__label-text",children:$children$jscomp$295_props_74814$$}):null,$APP.$cljs$core$truth_$$($is_optional_is_optional__$1_or__5025__auto__$jscomp$inline_8422$$)?
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_controls_utilities_label__label-optional",children:"(Optional)"}):null]}))};$app$main$ui$workspace$colorpicker$color_tokens$token_empty_state_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__color-token-empty-state",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("color-token.empty-state")})};
$app$main$ui$workspace$colorpicker$color_tokens$list_item_STAR_$$=function($on_click$jscomp$33_props_74884$$){var $selected$jscomp$132$$=void 0,$on_token_pill_click$$=void 0,$token$jscomp$110$$=void 0;({token:$token$jscomp$110$$,onTokenPillClick:$on_token_pill_click$$,selected:$selected$jscomp$132$$}=$on_click$jscomp$33_props_74884$$);$on_click$jscomp$33_props_74884$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$110$$),$APP.$rumext$v2$adapt$$($on_token_pill_click$$)],
function($event$jscomp$270$$){return $on_token_pill_click$$.$cljs$core$IFn$_invoke$arity$2$?$on_token_pill_click$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$270$$,$token$jscomp$110$$):$on_token_pill_click$$($event$jscomp$270$$,$token$jscomp$110$$)});var $id_tooltip$$=(0,$APP.$rumext$v2$use_id$$)(),$resolved$jscomp$2$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$110$$),$color_value$jscomp$3$$=$APP.$app$main$data$workspace$tokens$application$value__GT_color$$($resolved$jscomp$2$$),
$item_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$tooltip$tooltip$tooltip_STAR_$$,{id:$id_tooltip$$,style:{width:"100%"},triggerRef:$item_ref$$,content:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$110$$),children:(0,$APP.$rumext$v2$jsxs$$)("button",{ref:$item_ref$$,"aria-labelledby":$id_tooltip$$,onClick:$on_click$jscomp$33_props_74884$$,className:"main_ui_workspace_colorpicker_color_tokens__color-token-item "+($APP.$cljs$core$truth_$$($selected$jscomp$132$$)?
"main_ui_workspace_colorpicker_color_tokens__color-token-selected":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$color_value$jscomp$3$$,tooltipContent:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$resolved$jscomp$2$$])),size:"small"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__token-name",
children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$110$$)}),$APP.$cljs$core$truth_$$($selected$jscomp$132$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_colorpicker_color_tokens__token-selected-icon"}):null]})})};
$app$main$ui$workspace$colorpicker$color_tokens$grid_item_STAR_$$=function($on_click$jscomp$34_props_74889$$){var $selected$jscomp$133$$=void 0,$on_token_pill_click$jscomp$1$$=void 0,$token$jscomp$111$$=void 0;({token:$token$jscomp$111$$,onTokenPillClick:$on_token_pill_click$jscomp$1$$,selected:$selected$jscomp$133$$}=$on_click$jscomp$34_props_74889$$);$on_click$jscomp$34_props_74889$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$111$$),$APP.$rumext$v2$adapt$$($on_token_pill_click$jscomp$1$$)],
function($event$jscomp$271$$){return $on_token_pill_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_token_pill_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$271$$,$token$jscomp$111$$):$on_token_pill_click$jscomp$1$$($event$jscomp$271$$,$token$jscomp$111$$)});var $resolved$jscomp$3$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$111$$),$token_name$jscomp$13$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$111$$),$color_value$jscomp$4$$=
$APP.$app$main$data$workspace$tokens$application$value__GT_color$$($resolved$jscomp$3$$);return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__color-token-item-grid "+($APP.$cljs$core$truth_$$($selected$jscomp$133$$)?"main_ui_workspace_colorpicker_color_tokens__color-token-selected-grid":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$color_value$jscomp$4$$,tooltipContent:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:""+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name")??"")+": "}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_colorpicker_color_tokens__token-name",children:$token_name$jscomp$13$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$resolved$jscomp$3$$]))})]}),
onClick:$on_click$jscomp$34_props_74889$$,size:"medium"})})};
$app$main$ui$workspace$colorpicker$color_tokens$group__GT_paths$$=function($m$jscomp$234$$){var $parts$jscomp$22$$=function(){var $temp__5825__auto__$jscomp$330$$=$APP.$cljs$cst$1592$group$$.$cljs$core$IFn$_invoke$arity$1$($m$jscomp$234$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$330$$)?$APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($temp__5825__auto__$jscomp$330$$,/\//):null}();return $APP.$cljs$core$seq$$($parts$jscomp$22$$)?$APP.$cljs$core$set$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($i$jscomp$524$$){return $APP.$cljs$core$vec$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($i$jscomp$524$$,
$parts$jscomp$22$$))},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$(1,$APP.$cljs$core$count$$($parts$jscomp$22$$)+1))):$APP.$cljs$core$PersistentHashSet$EMPTY$$};
$app$main$ui$workspace$colorpicker$color_tokens$set_section_STAR_$$=function($props_74891_toggle_list_style$$){var $on_token_change$$=void 0,$collapsed$jscomp$2$$=void 0,$name$jscomp$413$$=void 0,$applied_token$$=void 0,$toggle_sets_open$$=void 0,$group_or_set$$=void 0,$color_origin$$=void 0;({collapsed:$collapsed$jscomp$2$$,toggleSetsOpen:$toggle_sets_open$$,groupOrSet:$group_or_set$$,name:$name$jscomp$413$$,colorOrigin:$color_origin$$,onTokenChange:$on_token_change$$,appliedToken:$applied_token$$}=
$props_74891_toggle_list_style$$);var $list_style_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$201$list$$),$list_style$$=$APP.$cljs$core$_deref$$($list_style_STAR_$$);$props_74891_toggle_list_style$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($list_style$$)],function(){var $new_style$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$201$list$$,$list_style$$)?$APP.$cljs$cst$1643$grid$$:$APP.$cljs$cst$201$list$$;
return $APP.$cljs$core$reset_BANG_$$($list_style_STAR_$$,$new_style$$)});var $toggle_set$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($name$jscomp$413$$),$APP.$rumext$v2$adapt$$($toggle_sets_open$$)],function(){return $toggle_sets_open$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_sets_open$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$413$$):$toggle_sets_open$$($name$jscomp$413$$)}),$objects$jscomp$738$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),
$selected$jscomp$134$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$),$selected_shapes$jscomp$11$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$134$$),$APP.$rumext$v2$adapt$$($objects$jscomp$738$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$738$$)),$selected$jscomp$134$$)}),
$applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$=$APP.$cljs$core$first$$($selected_shapes$jscomp$11$$);$applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$=$APP.$cljs$cst$1857$applied_tokens$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$);var $has_color_tokens_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$,$APP.$cljs$cst$1392$fill$$),
$has_stroke_tokens_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$,$APP.$cljs$cst$1723$stroke_color$$),$on_token_pill_click$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_shapes$jscomp$11$$)],function($event$jscomp$272$$,$token$jscomp$112$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$272$$);return $APP.$cljs$core$seq$$($selected_shapes$jscomp$11$$)?
$on_token_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_token_change$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$272$$,$token$jscomp$112$$):$on_token_change$$($event$jscomp$272$$,$token$jscomp$112$$):null});$applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($group_or_set$$)],function(){var $JSCompiler_temp_const$jscomp$1692_path_set$$=$app$main$ui$workspace$colorpicker$color_tokens$group__GT_paths$$($group_or_set$$),
$JSCompiler_temp_const$jscomp$1691_id$jscomp$879$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($APP.$cljs$cst$2090$sets$$.$cljs$core$IFn$_invoke$arity$1$($group_or_set$$))),$JSCompiler_temp_const$jscomp$1694$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$,$JSCompiler_temp_const$jscomp$1693$$=$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$1599$layout$$,
$APP.$cljs$cst$2082$tokens$$]));$JSCompiler_temp_const$jscomp$1692_path_set$$=$APP.$cljs$core$truth_$$($JSCompiler_temp_const$jscomp$1692_path_set$$)?$APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5318$expand_token_sets$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5319$paths$$,$JSCompiler_temp_const$jscomp$1692_path_set$$],null)):null;$JSCompiler_temp_const$jscomp$1691_id$jscomp$879$$=$APP.$app$main$data$workspace$tokens$library_edit$set_selected_token_set_id$$($JSCompiler_temp_const$jscomp$1691_id$jscomp$879$$);
var $JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$tokens$application$token_properties$$,$APP.$cljs$cst$1284$color$$);var $map__74892__$1$jscomp$inline_8425_title$jscomp$inline_8427$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$);$JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74892__$1$jscomp$inline_8425_title$jscomp$inline_8427$$,$APP.$cljs$cst$4386$modal$$);$map__74892__$1$jscomp$inline_8425_title$jscomp$inline_8427$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74892__$1$jscomp$inline_8425_title$jscomp$inline_8427$$,$APP.$cljs$cst$937$title$$);var $window_size$jscomp$inline_8428_y$jscomp$inline_8431$$=$APP.$app$util$dom$get_window_size$$(),$left_sidebar$jscomp$inline_8429_x$jscomp$inline_8430$$=
$APP.$goog$dom$getElement$$("left-sidebar-aside");$left_sidebar$jscomp$inline_8429_x$jscomp$inline_8430$$=($APP.$app$util$dom$get_data$$($left_sidebar$jscomp$inline_8429_x$jscomp$inline_8430$$,"width")|0)-30;$window_size$jscomp$inline_8428_y$jscomp$inline_8431$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($window_size$jscomp$inline_8428_y$jscomp$inline_8431$$)/2-196;$JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$=$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1499$x$$,$left_sidebar$jscomp$inline_8429_x$jscomp$inline_8430$$,$APP.$cljs$cst$1500$y$$,$window_size$jscomp$inline_8428_y$jscomp$inline_8431$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$258$right$$,$APP.$cljs$cst$4494$fields$$,$APP.$cljs$cst$4494$fields$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$),$APP.$cljs$cst$937$title$$,$map__74892__$1$jscomp$inline_8425_title$jscomp$inline_8427$$,
$APP.$cljs$cst$2627$action$$,"create",$cljs$cst$5320$token_type$$,$APP.$cljs$cst$1284$color$$],null));return $JSCompiler_temp_const$jscomp$1694$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_temp_const$jscomp$1693$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$JSCompiler_temp_const$jscomp$1692_path_set$$,$JSCompiler_temp_const$jscomp$1691_id$jscomp$879$$,$JSCompiler_inline_result$jscomp$1696_map__74892$jscomp$inline_8424_modal$jscomp$inline_8426$$]))});var $icon_id$jscomp$4$$=
$APP.$cljs$core$truth_$$($collapsed$jscomp$2$$)?"arrow-right":"arrow-down";return(0,$APP.$rumext$v2$jsxs$$)("article",{className:"main_ui_workspace_colorpicker_color_tokens__color-token-set",children:[(0,$APP.$rumext$v2$jsxs$$)("header",{className:"main_ui_workspace_colorpicker_color_tokens__set-title-bar",children:[(0,$APP.$rumext$v2$jsxs$$)("button",{"aria-controls":["set-panel-",$APP.$app$common$data$name$$($name$jscomp$413$$)].join(""),"aria-expanded":$APP.$cljs$core$not$$($collapsed$jscomp$2$$),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("inspect.tabs.styles.toggle-style",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$name$jscomp$413$$])),onClick:$toggle_set$$,className:"main_ui_workspace_colorpicker_color_tokens__set-title-btn",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$icon_id$jscomp$4$$,size:"s",className:"main_ui_workspace_colorpicker_color_tokens__set-title-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_colorpicker_color_tokens__set-title",children:$name$jscomp$413$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__set-title-actions "+($APP.$cljs$core$truth_$$($collapsed$jscomp$2$$)?"main_ui_workspace_colorpicker_color_tokens__set-title-action-hidden":""),children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$props_74891_toggle_list_style$$,variant:"action","aria-label":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$201$list$$,
$list_style$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.grid-view"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.list-view"),icon:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$201$list$$,$list_style$$)?"flex-grid":"view-as-list"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$applied_tokens$jscomp$5_create_token_on_set_first_shape$jscomp$11$$,variant:"action",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.add-token",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["color"])),icon:"add"})]})]}),$APP.$cljs$core$not$$($collapsed$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("div",{id:["set-panel-",$APP.$app$common$data$name$$($name$jscomp$413$$)].join(""),className:"main_ui_workspace_colorpicker_color_tokens__color-token-list "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($list_style$$,$APP.$cljs$cst$201$list$$)?
"main_ui_workspace_colorpicker_color_tokens__list-view":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($list_style$$,$APP.$cljs$cst$1643$grid$$)?"main_ui_workspace_colorpicker_color_tokens__grid-view":""),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$112$$,$token$jscomp$113$$){$out_arr__44057__auto__$jscomp$112$$.push(function(){var $selected_QMARK_$jscomp$3$$=function(){var $G__74893$$=$color_origin$$;switch($G__74893$$ instanceof
$APP.$cljs$core$Keyword$$?$G__74893$$.$fqn$:null){case "fill":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($has_color_tokens_QMARK_$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$113$$));case "stroke-color":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($has_stroke_tokens_QMARK_$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$113$$));case "color-selection":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_token$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$113$$));default:return!1}}();return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1643$grid$$,$list_style$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$grid_item_STAR_$$,{onTokenPillClick:$on_token_pill_click$jscomp$2$$,selected:$selected_QMARK_$jscomp$3$$,token:$token$jscomp$113$$},["token-grid-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$113$$))].join("")):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$list_item_STAR_$$,{onTokenPillClick:$on_token_pill_click$jscomp$2$$,selected:$selected_QMARK_$jscomp$3$$,token:$token$jscomp$113$$},["token-list-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$113$$))].join(""))}());return $out_arr__44057__auto__$jscomp$112$$},[],$APP.$cljs$cst$2082$tokens$$.$cljs$core$IFn$_invoke$arity$1$($group_or_set$$))}):null]})};
$app$main$ui$workspace$colorpicker$color_tokens$label_group_or_set$$=function($group$jscomp$44_p__74894$$){var $map__74895__$1_sets$jscomp$14$$=$APP.$cljs$core$__destructure_map$$($group$jscomp$44_p__74894$$);$group$jscomp$44_p__74894$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74895__$1_sets$jscomp$14$$,$APP.$cljs$cst$1592$group$$);$map__74895__$1_sets$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74895__$1_sets$jscomp$14$$,$APP.$cljs$cst$2090$sets$$);
return $APP.$cljs$core$truth_$$($group$jscomp$44_p__74894$$)?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($group$jscomp$44_p__74894$$)," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$map__74895__$1_sets$jscomp$14$$))),")"].join(""):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($map__74895__$1_sets$jscomp$14$$))};
$app$main$ui$workspace$colorpicker$color_tokens$filter_combined_tokens$$=function($combined_tokens$$,$term$jscomp$6$$){var $term__$1$$=$APP.$cuerdas$core$lower$$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($term$jscomp$6$$));return $APP.$cuerdas$core$blank_QMARK_$$($term__$1$$)?$combined_tokens$$:$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$nil_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($map__74898__$1_p__74897$$){$map__74898__$1_p__74897$$=
$APP.$cljs$core$__destructure_map$$($map__74898__$1_p__74897$$);var $filtered$jscomp$1_tokens$jscomp$35$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__74898__$1_p__74897$$,$APP.$cljs$cst$2082$tokens$$);$filtered$jscomp$1_tokens$jscomp$35$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__74896_SHARP_$$){return $APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__74896_SHARP_$$)),$term__$1$$)},
$filtered$jscomp$1_tokens$jscomp$35$$);return $APP.$cljs$core$seq$$($filtered$jscomp$1_tokens$jscomp$35$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__74898__$1_p__74897$$,$APP.$cljs$cst$2082$tokens$$,$filtered$jscomp$1_tokens$jscomp$35$$):null},$combined_tokens$$))};
$app$main$ui$workspace$colorpicker$color_tokens$sort_combined_tokens$$=function($combined_tokens$jscomp$1$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($entry$jscomp$69$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($entry$jscomp$69$$,$APP.$cljs$cst$2082$tokens$$,function($p1__74899_SHARP_$$){return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$p1__74899_SHARP_$$)})},$combined_tokens$jscomp$1$$)};
$app$main$ui$workspace$colorpicker$color_tokens$token_section_STAR_$$=function($filter_term_props_74900$$){var $on_token_change$jscomp$1$$=void 0,$combined_tokens$jscomp$2$$=void 0,$applied_token$jscomp$1$$=void 0,$color_origin$jscomp$1$$=void 0;({combinedTokens:$combined_tokens$jscomp$2$$,colorOrigin:$color_origin$jscomp$1$$,onTokenChange:$on_token_change$jscomp$1$$,appliedToken:$applied_token$jscomp$1$$}=$filter_term_props_74900$$);var $sets$jscomp$15$$=$APP.$cljs$core$set$$($APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$colorpicker$color_tokens$label_group_or_set$$,
$combined_tokens$jscomp$2$$)),$filter_term_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$("");$filter_term_props_74900$$=$APP.$cljs$core$_deref$$($filter_term_STAR_$$);var $open_sets_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($sets$jscomp$15$$),$open_sets$$=$APP.$cljs$core$_deref$$($open_sets_STAR_$$),$toggle_sets_open$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_sets$$)],function($name$jscomp$414$$){return $APP.$cljs$core$contains_QMARK_$$($open_sets$$,
$name$jscomp$414$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($open_sets_STAR_$$,$APP.$cljs$core$disj$$,$name$jscomp$414$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($open_sets_STAR_$$,$APP.$cljs$core$conj$$,$name$jscomp$414$$)}),$on_filter_tokens$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($filter_term_props_74900$$)],function($event$jscomp$273$$){$APP.$cljs$core$reset_BANG_$$($filter_term_STAR_$$,$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$273$$)));
return $APP.$cljs$core$reset_BANG_$$($open_sets_STAR_$$,$sets$jscomp$15$$)}),$filtered_combined_sorted_tokens$$=$app$main$ui$workspace$colorpicker$color_tokens$filter_combined_tokens$$($combined_tokens$jscomp$2$$,$filter_term_props_74900$$);$filtered_combined_sorted_tokens$$=$app$main$ui$workspace$colorpicker$color_tokens$sort_combined_tokens$$($filtered_combined_sorted_tokens$$);return $APP.$cljs$core$seq$$($combined_tokens$jscomp$2$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__color-tokens-section",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$input$input_STAR_$$,{placeholder:"Search by token name",icon:"search",maxLength:255,variant:"comfortable",className:"main_ui_workspace_colorpicker_color_tokens__search-input",defaultValue:$filter_term_props_74900$$,onChange:$on_filter_tokens$$}),$APP.$cljs$core$seq$$($filtered_combined_sorted_tokens$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_color_tokens__color-tokens-inputs",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$113$$,
$JSCompiler_inline_result$jscomp$1699_combined_sets$$){var $JSCompiler_temp_const$jscomp$1697$$=$out_arr__44057__auto__$jscomp$113$$.push,$name$jscomp$inline_8433$$=$app$main$ui$workspace$colorpicker$color_tokens$label_group_or_set$$($JSCompiler_inline_result$jscomp$1699_combined_sets$$);$JSCompiler_inline_result$jscomp$1699_combined_sets$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$set_section_STAR_$$,{collapsed:!$APP.$cljs$core$contains_QMARK_$$($open_sets$$,$name$jscomp$inline_8433$$),
toggleSetsOpen:$toggle_sets_open$jscomp$1$$,colorOrigin:$color_origin$jscomp$1$$,onTokenChange:$on_token_change$jscomp$1$$,name:$name$jscomp$inline_8433$$,appliedToken:$applied_token$jscomp$1$$,groupOrSet:$JSCompiler_inline_result$jscomp$1699_combined_sets$$},["set-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$inline_8433$$)].join(""));$JSCompiler_temp_const$jscomp$1697$$.call($out_arr__44057__auto__$jscomp$113$$,$JSCompiler_inline_result$jscomp$1699_combined_sets$$);return $out_arr__44057__auto__$jscomp$113$$},
[],$filtered_combined_sorted_tokens$$)}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$token_empty_state_STAR_$$,{})]}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$token_empty_state_STAR_$$,{})};
$app$main$ui$components$reorder_handler$reorder_handler_STAR_$$=function($props_74890$$){return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{ref:$props_74890$$.ref,className:"main_ui_components_reorder_handler__reorder",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"reorder",className:"main_ui_components_reorder_handler__reorder-icon","aria-hidden":!0})}),(0,$APP.$rumext$v2$jsx$$)("hr",{className:"main_ui_components_reorder_handler__reorder-separator-top"}),
(0,$APP.$rumext$v2$jsx$$)("hr",{className:"main_ui_components_reorder_handler__reorder-separator-bottom"})]})};
$app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$=function($JSCompiler_temp_const$jscomp$1700_props_76155$$){var $children$jscomp$296$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.children,$JSCompiler_temp$jscomp$1701_select_on_focus$jscomp$1$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.selectOnFocus,$JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.color,$on_focus$jscomp$6$$=
$JSCompiler_temp_const$jscomp$1700_props_76155$$.onFocus,$on_blur$jscomp$8$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.onBlur,$on_opacity_change$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.onOpacityChange,$JSCompiler_temp_const$jscomp$1702_opacity$jscomp$43$$=$JSCompiler_temp_const$jscomp$1700_props_76155$$.opacity;$JSCompiler_temp_const$jscomp$1700_props_76155$$=(0,$APP.$rumext$v2$jsxs$$)("div",{className:$JSCompiler_temp_const$jscomp$1700_props_76155$$.className,children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_rows_color_row__color-bullet-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$,onClick:$JSCompiler_temp_const$jscomp$1700_props_76155$$.handleClickColor,size:"small"})}),$children$jscomp$296$$]});$APP.$cljs$core$truth_$$($JSCompiler_temp_const$jscomp$1702_opacity$jscomp$43$$)?($JSCompiler_temp_const$jscomp$1702_opacity$jscomp$43$$=
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_color_row__icon-text",children:"%"}),$JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$=$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$),$JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$,
$APP.$cljs$cst$1600$multiple$$)?"":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$data$coalesce$$($JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$)*100)),$JSCompiler_temp$jscomp$1701_select_on_focus$jscomp$1$$=(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__opacity-element-wrapper",children:[$JSCompiler_temp_const$jscomp$1702_opacity$jscomp$43$$,
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_opacity_change$$,className:"main_ui_workspace_sidebar_options_rows_color_row__opacity-input",placeholder:"--",selectOnFocus:$JSCompiler_temp$jscomp$1701_select_on_focus$jscomp$1$$,max:100,"data-testid":"opacity-input",value:$JSCompiler_inline_result$jscomp$1703_color$jscomp$139_opacity$jscomp$inline_8435$$,onFocus:$on_focus$jscomp$6$$,onBlur:$on_blur$jscomp$8$$,"default":100})]})):$JSCompiler_temp$jscomp$1701_select_on_focus$jscomp$1$$=
null;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-info",children:[$JSCompiler_temp_const$jscomp$1700_props_76155$$,$JSCompiler_temp$jscomp$1701_select_on_focus$jscomp$1$$]})};
$app$main$ui$workspace$sidebar$options$rows$color_row$color_token_row_STAR_$$=function($active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$){var $detach_token$$=$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.detachToken,$color$jscomp$140$$=$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.color,$applied_token_name$$=$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.appliedTokenName,$on_swatch_click_token$$=
$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.onSwatchClickToken,$open_modal_from_token$$=$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.openModalFromToken;$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$=$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$.activeTokens;var $active_tokens__$1_not_active$$=$APP.$cljs$core$delay_QMARK_$$($active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$)?
$APP.$cljs$core$_deref$$($active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$):$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$;$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($active_tokens__$1_not_active$$);var $token$jscomp$114$$=$APP.$cljs$core$some$$(function($p1__76156_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76156_SHARP_$$),
$applied_token_name$$)?$p1__76156_SHARP_$$:null},$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$);$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($detach_token$$),$APP.$rumext$v2$adapt$$($token$jscomp$114$$),$APP.$rumext$v2$adapt$$($applied_token_name$$)],function(){var $or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$114$$);
$or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$)?$or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$:$applied_token_name$$;return $detach_token$$.$cljs$core$IFn$_invoke$arity$1$?$detach_token$$.$cljs$core$IFn$_invoke$arity$1$($or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$):$detach_token$$($or__5025__auto__$jscomp$inline_8437_token_name$jscomp$15$$)});var $has_errors$jscomp$1$$=$APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$114$$)!=
null,$token_name$jscomp$14$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$114$$),$resolved$jscomp$4_swatch_tooltip_content$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$114$$);$active_tokens__$1_not_active$$=$APP.$cljs$core$empty_QMARK_$$($active_tokens__$1_not_active$$)||$token$jscomp$114$$==null;var $id$jscomp$880$$=""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$114$$)??"")+"-name",$token_name_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);
$resolved$jscomp$4_swatch_tooltip_content$$=$active_tokens__$1_not_active$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.token-field.no-active-token-option"):$has_errors$jscomp$1$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("color-row.token-color-row.deleted-token"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$resolved$jscomp$4_swatch_tooltip_content$$]));
var $name_tooltip_content$$=$active_tokens__$1_not_active$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.token-field.no-active-token-option"):$has_errors$jscomp$1$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("color-row.token-color-row.deleted-token"):function(){return(0,$APP.$rumext$v2$jsxs$$)("div",{children:[(0,$APP.$rumext$v2$jsx$$)("span",{children:""+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name")??"")+": "}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_sidebar_options_rows_color_row__token-name-tooltip",children:$applied_token_name$$})]})};return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-info",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__token-color-wrapper "+($has_errors$jscomp$1$$?"main_ui_workspace_sidebar_options_rows_color_row__token-color-with-errors":"")+" "+($active_tokens__$1_not_active$$?"main_ui_workspace_sidebar_options_rows_color_row__token-color-not-active":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-bullet-wrapper",children:[$has_errors$jscomp$1$$||$active_tokens__$1_not_active$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__error-dot"}):null,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$color$jscomp$140$$,tooltipContent:$resolved$jscomp$4_swatch_tooltip_content$$,onClick:$on_swatch_click_token$$,
hasErrors:$has_errors$jscomp$1$$||$active_tokens__$1_not_active$$,size:"small"})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$tooltip$tooltip$tooltip_STAR_$$,{content:$name_tooltip_content$$,id:$id$jscomp$880$$,"aria-label":[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name")),": ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($applied_token_name$$)].join(""),triggerRef:$token_name_ref$$,className:"main_ui_workspace_sidebar_options_rows_color_row__token-tooltip",
children:(0,$APP.$rumext$v2$jsx$$)("div",{ref:$token_name_ref$$,"aria-labelledby":$id$jscomp$880$$,className:"main_ui_workspace_sidebar_options_rows_color_row__token-name",children:$APP.$cljs$core$truth_$$($token_name$jscomp$14$$)?$token_name$jscomp$14$$:$applied_token_name$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__token-actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"action",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.token-field.detach-token"),onClick:$active_color_tokens_active_tokens$jscomp$1_on_detach_token_props_76157$$,icon:"detach"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"action","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.numeric-input.open-token-list-dropdown"),onClick:$open_modal_from_token$$,icon:"tokens"})]})]})})};
$app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$=function($props_76161_token_color$$){var $on_change$jscomp$32$$=$props_76161_token_color$$.onChange,$on_remove$$=$props_76161_token_color$$.onRemove,$on_open$$=$props_76161_token_color$$.onOpen,$on_detach_token$jscomp$1$$=$props_76161_token_color$$.onDetachToken,$disable_picker$$=$props_76161_token_color$$.disablePicker,$disable_gradient$$=$props_76161_token_color$$.disableGradient,$disable_opacity$jscomp$1$$=$props_76161_token_color$$.disableOpacity,
$on_token_change$jscomp$2$$=$props_76161_token_color$$.onTokenChange,$select_on_focus$jscomp$2$$=$props_76161_token_color$$.selectOnFocus,$select_only$$=$props_76161_token_color$$.selectOnly,$index$jscomp$455$$=$props_76161_token_color$$.index,$color$jscomp$141$$=$props_76161_token_color$$.color,$disable_image$$=$props_76161_token_color$$.disableImage,$on_close$jscomp$15$$=$props_76161_token_color$$.onClose,$disable_drag$jscomp$1_dprops$jscomp$1$$=$props_76161_token_color$$.disableDrag,$on_focus$jscomp$7$$=
$props_76161_token_color$$.onFocus,$on_blur$jscomp$9$$=$props_76161_token_color$$.onBlur,$applied_token$jscomp$2$$=$props_76161_token_color$$.appliedToken,$on_reorder$$=$props_76161_token_color$$.onReorder,$class$$jscomp$55$$=$props_76161_token_color$$.className,$hidden$jscomp$10_row_class$$=$props_76161_token_color$$.hidden,$on_detach$$=$props_76161_token_color$$.onDetach,$origin$jscomp$61$$=$props_76161_token_color$$.origin;$props_76161_token_color$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$1207$token_color$$);var $gradient_color_QMARK__libraries$jscomp$130_src_colors$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$color_without_hash$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$141$$)],function(){return $app$common$types$color$remove_hash$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$))}),$file_id$jscomp$332_image_color_QMARK_$$=function(){var $or__5025__auto__$jscomp$1008$$=
$APP.$cljs$cst$1720$ref_file$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1008$$)?$or__5025__auto__$jscomp$1008$$:$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$)}(),$color_id$jscomp$6_library_color_QMARK_$$=function(){var $or__5025__auto__$jscomp$1009$$=$APP.$cljs$cst$1719$ref_id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1009$$)?
$or__5025__auto__$jscomp$1009$$:$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$)}();$gradient_color_QMARK__libraries$jscomp$130_src_colors$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_color_QMARK__libraries$jscomp$130_src_colors$$,$file_id$jscomp$332_image_color_QMARK_$$),$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2174$colors$$);var $color_name$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_color_QMARK__libraries$jscomp$130_src_colors$$,$color_id$jscomp$6_library_color_QMARK_$$),$APP.$cljs$cst$723$name$$),$has_multiple_colors$$=$APP.$app$util$color$multiple_QMARK_$$($color$jscomp$141$$);$color_id$jscomp$6_library_color_QMARK_$$=function(){var $and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$);
$and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$)?$and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$:$APP.$cljs$cst$1719$ref_id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$)?$APP.$cljs$core$truth_$$($color_name$$)?!$has_multiple_colors$$:$color_name$$:$and__5023__auto__$jscomp$681_or__5025__auto__$jscomp$inline_8439$$}();
$gradient_color_QMARK__libraries$jscomp$130_src_colors$$=function(){var $and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$=!$has_multiple_colors$$;return $and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$?($and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$=$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$141$$,
$APP.$cljs$cst$1708$gradient$$),$APP.$cljs$cst$139$type$$):$and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$):$and__5023__auto__$jscomp$682_and__5023__auto____$1$jscomp$118$$}();$file_id$jscomp$332_image_color_QMARK_$$=function(){var $and__5023__auto__$jscomp$683$$=!$has_multiple_colors$$;return $and__5023__auto__$jscomp$683$$?$APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$):$and__5023__auto__$jscomp$683$$}();var $editing_text_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$is_editing_text$$=$APP.$cljs$core$_deref$$($editing_text_STAR_$$),$active_tokens_STAR_$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$active_tokens_by_type$$),$tokens$jscomp$36$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_tokens_STAR_$$),$APP.$rumext$v2$adapt$$($origin$jscomp$61$$)],function(){var $origin__$1$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5321$color_selection$$,$origin$jscomp$61$$)?$APP.$cljs$cst$1392$fill$$:
$origin$jscomp$61$$;return new $APP.$cljs$core$Delay$$(function(){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$select_keys$$($APP.$cljs$core$_deref$$($active_tokens_STAR_$$),$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$token$tokens_by_input$$,$origin__$1$jscomp$1$$)))})}),$on_focus_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$7$$)],function(){$APP.$cljs$core$reset_BANG_$$($editing_text_STAR_$$,
!0);return $APP.$cljs$core$truth_$$($on_focus$jscomp$7$$)?$on_focus$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$?$on_focus$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$():$on_focus$jscomp$7$$():null}),$on_blur_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_blur$jscomp$9$$)],function(){$APP.$cljs$core$reset_BANG_$$($editing_text_STAR_$$,!1);return $APP.$cljs$core$truth_$$($on_blur$jscomp$9$$)?$on_blur$jscomp$9$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$9$$.$cljs$core$IFn$_invoke$arity$0$():
$on_blur$jscomp$9$$():null}),$parse_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($color__$1$jscomp$19$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($color__$1$jscomp$19$$,$APP.$cljs$cst$1284$color$$,function($p1__76158_SHARP_$$){return $APP.$cljs$core$truth_$$($p1__76158_SHARP_$$)?$p1__76158_SHARP_$$:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$19$$)})}),$detach_value$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach$$),
$APP.$rumext$v2$adapt$$($index$jscomp$455$$),$APP.$rumext$v2$adapt$$($color$jscomp$141$$)],function(){return $APP.$cljs$core$truth_$$($on_detach$$)?$on_detach$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$455$$,$color$jscomp$141$$):$on_detach$$($index$jscomp$455$$,$color$jscomp$141$$):null}),$handle_select$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($select_only$$),$APP.$rumext$v2$adapt$$($color$jscomp$141$$),
$APP.$rumext$v2$adapt$$($applied_token$jscomp$2$$)],function(){var $color__$1$jscomp$20$$=$APP.$cljs$core$truth_$$($applied_token$jscomp$2$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$141$$,$APP.$cljs$cst$4069$has_token_applied$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4070$token_name$$,$applied_token$jscomp$2$$])):$color$jscomp$141$$;return $select_only$$.$cljs$core$IFn$_invoke$arity$1$?$select_only$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$20$$):
$select_only$$($color__$1$jscomp$20$$)}),$on_color_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$141$$),$APP.$rumext$v2$adapt$$($index$jscomp$455$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$32$$)],function($color__$1$jscomp$21_value$jscomp$761$$){$color__$1$jscomp$21_value$jscomp$761$$=$APP.$cljs$core$select_keys$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$141$$,
$APP.$cljs$cst$1284$color$$,$color__$1$jscomp$21_value$jscomp$761$$),$APP.$cljs$cst$1708$gradient$$),$APP.$app$common$types$color$color_attrs$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$add_recent_color$$($color__$1$jscomp$21_value$jscomp$761$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$?$on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$($color__$1$jscomp$21_value$jscomp$761$$,
$index$jscomp$455$$):$on_change$jscomp$32$$($color__$1$jscomp$21_value$jscomp$761$$,$index$jscomp$455$$)]))}),$on_opacity_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$141$$),$APP.$rumext$v2$adapt$$($index$jscomp$455$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$32$$)],function($color__$1$jscomp$22_value$jscomp$762$$){$color__$1$jscomp$22_value$jscomp$762$$=$APP.$cljs$core$select_keys$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$141$$,
$APP.$cljs$cst$1718$opacity$$,$color__$1$jscomp$22_value$jscomp$762$$/100),$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$])),$APP.$app$common$types$color$color_attrs$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$add_recent_color$$($color__$1$jscomp$22_value$jscomp$762$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$($color__$1$jscomp$22_value$jscomp$762$$,$index$jscomp$455$$):$on_change$jscomp$32$$($color__$1$jscomp$22_value$jscomp$762$$,$index$jscomp$455$$)]))}),$open_modal$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disable_gradient$$),$APP.$rumext$v2$adapt$$($disable_opacity$jscomp$1$$),$APP.$rumext$v2$adapt$$($disable_image$$),$APP.$rumext$v2$adapt$$($disable_picker$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$32$$),
$APP.$rumext$v2$adapt$$($on_close$jscomp$15$$),$APP.$rumext$v2$adapt$$($on_open$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$36$$),$APP.$rumext$v2$adapt$$($index$jscomp$455$$),$APP.$rumext$v2$adapt$$($applied_token$jscomp$2$$)],function($color__$1$jscomp$23_color__$2$jscomp$1$$,$pos$jscomp$131_props$jscomp$298$$,$tab$jscomp$6$$){$color__$1$jscomp$23_color__$2$jscomp$1$$=$has_multiple_colors$$?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,"#B1B2B5",$APP.$cljs$cst$1718$opacity$$,
1],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$23_color__$2$jscomp$1$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color__$1$jscomp$23_color__$2$jscomp$1$$,$APP.$cljs$cst$1718$opacity$$,1):$color__$1$jscomp$23_color__$2$jscomp$1$$;$pos$jscomp$131_props$jscomp$298$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$4040$disable_gradient$$,
$cljs$cst$5322$on_token_change$$,$APP.$cljs$cst$4039$disable_opacity$$,$cljs$cst$5323$disable_image$$,$APP.$cljs$cst$4799$on_close$$,$cljs$cst$5324$applied_token$$,$cljs$cst$5325$active_tokens$$,$cljs$cst$5326$color_origin$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$4041$on_change$$,$APP.$cljs$cst$5092$tab$$,$APP.$cljs$cst$142$data$$],[$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$131_props$jscomp$298$$),$disable_gradient$$,$on_token_change$jscomp$2$$,
$disable_opacity$jscomp$1$$,$disable_image$$,function($value$jscomp$763$$,$opacity$jscomp$44$$,$id$jscomp$881$$,$file_id__$1$jscomp$8$$){return $APP.$cljs$core$truth_$$($on_close$jscomp$15$$)?$on_close$jscomp$15$$.$cljs$core$IFn$_invoke$arity$4$?$on_close$jscomp$15$$.$cljs$core$IFn$_invoke$arity$4$($value$jscomp$763$$,$opacity$jscomp$44$$,$id$jscomp$881$$,$file_id__$1$jscomp$8$$):$on_close$jscomp$15$$($value$jscomp$763$$,$opacity$jscomp$44$$,$id$jscomp$881$$,$file_id__$1$jscomp$8$$):null},$applied_token$jscomp$2$$,
$tokens$jscomp$36$$,$origin$jscomp$61$$,$cljs$cst$5327$sidebar$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$131_props$jscomp$298$$),function($p1__76159_SHARP_$$){return $on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$?$on_change$jscomp$32$$.$cljs$core$IFn$_invoke$arity$2$($p1__76159_SHARP_$$,$index$jscomp$455$$):$on_change$jscomp$32$$($p1__76159_SHARP_$$,$index$jscomp$455$$)},$tab$jscomp$6$$,$color__$1$jscomp$23_color__$2$jscomp$1$$]);$APP.$cljs$core$fn_QMARK_$$($on_open$$)&&
($on_open$$.$cljs$core$IFn$_invoke$arity$1$?$on_open$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$23_color__$2$jscomp$1$$):$on_open$$($color__$1$jscomp$23_color__$2$jscomp$1$$));return $APP.$cljs$core$truth_$$($disable_picker$$)?null:$APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2199$colorpicker$$,$pos$jscomp$131_props$jscomp$298$$)}),$handle_click_color$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_modal$$)],
function($color__$1$jscomp$24$$,$cpos$jscomp$1_event$jscomp$278$$){$cpos$jscomp$1_event$jscomp$278$$=$APP.$app$util$dom$get_client_position$$($cpos$jscomp$1_event$jscomp$278$$);return $open_modal$$.$cljs$core$IFn$_invoke$arity$3$?$open_modal$$.$cljs$core$IFn$_invoke$arity$3$($color__$1$jscomp$24$$,$cpos$jscomp$1_event$jscomp$278$$,null):$open_modal$$($color__$1$jscomp$24$$,$cpos$jscomp$1_event$jscomp$278$$,null)}),$open_modal_from_token$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_modal$$),
$APP.$rumext$v2$adapt$$($color$jscomp$141$$)],function($event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$){var $cpos$jscomp$2_y$jscomp$459$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$);$event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cpos$jscomp$2_y$jscomp$459$$);$cpos$jscomp$2_y$jscomp$459$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cpos$jscomp$2_y$jscomp$459$$);$event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,$event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$-215,$APP.$cljs$cst$1500$y$$,$cpos$jscomp$2_y$jscomp$459$$],null);return $open_modal$$.$cljs$core$IFn$_invoke$arity$3$?$open_modal$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$141$$,$event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$,$APP.$cljs$cst$1207$token_color$$):$open_modal$$($color$jscomp$141$$,$event$jscomp$279_pos$jscomp$132_x$jscomp$1236$$,$APP.$cljs$cst$1207$token_color$$)}),
$on_swatch_click_token$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_modal$$)],function($color__$1$jscomp$25$$,$cpos$jscomp$3_event$jscomp$280$$){$cpos$jscomp$3_event$jscomp$280$$=$APP.$app$util$dom$get_client_position$$($cpos$jscomp$3_event$jscomp$280$$);return $open_modal$$.$cljs$core$IFn$_invoke$arity$3$?$open_modal$$.$cljs$core$IFn$_invoke$arity$3$($color__$1$jscomp$25$$,$cpos$jscomp$3_event$jscomp$280$$,$APP.$cljs$cst$1207$token_color$$):
$open_modal$$($color__$1$jscomp$25$$,$cpos$jscomp$3_event$jscomp$280$$,$APP.$cljs$cst$1207$token_color$$)}),$detach_token$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$1$$)],function($token$jscomp$115$$){return $APP.$cljs$core$truth_$$($on_detach_token$jscomp$1$$)?$on_detach_token$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_detach_token$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$115$$):$on_detach_token$jscomp$1$$($token$jscomp$115$$):
null}),$on_remove_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$455$$),$APP.$rumext$v2$adapt$$($on_remove$$)],function(){return $APP.$cljs$core$truth_$$($on_remove$$)?$on_remove$$.$cljs$core$IFn$_invoke$arity$1$?$on_remove$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$455$$):$on_remove$$($index$jscomp$455$$):null}),$prev_color$jscomp$2$$=$APP.$app$main$ui$hooks$use_previous$$($color$jscomp$141$$),$dref$jscomp$1_on_drop$jscomp$3_vec__76162$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_reorder$$),$APP.$rumext$v2$adapt$$($index$jscomp$455$$)],function($relative_pos_to_space_between_pos$jscomp$10$$,$data$jscomp$455_from_pos$jscomp$10$$){$data$jscomp$455_from_pos$jscomp$10$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$455_from_pos$jscomp$10$$);$relative_pos_to_space_between_pos$jscomp$10$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($relative_pos_to_space_between_pos$jscomp$10$$,
$APP.$cljs$cst$2636$bot$$)?$index$jscomp$455$$+1:$index$jscomp$455$$;return $on_reorder$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$455_from_pos$jscomp$10$$,$relative_pos_to_space_between_pos$jscomp$10$$):$on_reorder$$($data$jscomp$455_from_pos$jscomp$10$$,$relative_pos_to_space_between_pos$jscomp$10$$)});$dref$jscomp$1_on_drop$jscomp$3_vec__76162$$=$on_reorder$$!=null?$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,
"penpot/color-row",$APP.$cljs$cst$2639$on_drop$$,$dref$jscomp$1_on_drop$jscomp$3_vec__76162$$,$APP.$cljs$cst$2632$disabled$$,$disable_drag$jscomp$1_dprops$jscomp$1$$,$APP.$cljs$cst$2642$detect_center_QMARK_$$,!1,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1779$index$$,$index$jscomp$455$$],null)])):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[null,null],null);$disable_drag$jscomp$1_dprops$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$1_on_drop$jscomp$3_vec__76162$$,
0,null);$dref$jscomp$1_on_drop$jscomp$3_vec__76162$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$1_on_drop$jscomp$3_vec__76162$$,1,null);$hidden$jscomp$10_row_class$$="main_ui_workspace_sidebar_options_rows_color_row__color-data "+($APP.$cljs$core$truth_$$($hidden$jscomp$10_row_class$$)?"main_ui_workspace_sidebar_options_rows_color_row__hidden":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($disable_drag$jscomp$1_dprops$jscomp$1$$),
$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_options_rows_color_row__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($disable_drag$jscomp$1_dprops$jscomp$1$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_options_rows_color_row__dnd-over-bot":"");$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$141$$),$APP.$rumext$v2$adapt$$($prev_color$jscomp$2$$),
$APP.$rumext$v2$adapt$$($disable_picker$$)],function(){if($APP.$cljs$core$not$$($disable_picker$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prev_color$jscomp$2$$,$color$jscomp$141$$)){var $JSCompiler_temp$jscomp$1545_props$jscomp$inline_8442$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$142$data$$,$parse_color$$.$cljs$core$IFn$_invoke$arity$1$?$parse_color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$141$$):$parse_color$$($color$jscomp$141$$)],null);$JSCompiler_temp$jscomp$1545_props$jscomp$inline_8442$$=
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$modal$update_props$$($JSCompiler_temp$jscomp$1545_props$jscomp$inline_8442$$))}else $JSCompiler_temp$jscomp$1545_props$jscomp$inline_8442$$=null;return $JSCompiler_temp$jscomp$1545_props$jscomp$inline_8442$$});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:($class$$jscomp$55$$??"")+" "+($hidden$jscomp$10_row_class$$??""),children:[$on_reorder$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,
{ref:$dref$jscomp$1_on_drop$jscomp$3_vec__76162$$}):null,$APP.$cljs$core$truth_$$($props_76161_token_color$$?$applied_token$jscomp$2$$:$props_76161_token_color$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_token_row_STAR_$$,{activeTokens:$tokens$jscomp$36$$,appliedTokenName:$applied_token$jscomp$2$$,color:$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$141$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$])),
onSwatchClickToken:$on_swatch_click_token$jscomp$1$$,detachToken:$detach_token$jscomp$1$$,openModalFromToken:$open_modal_from_token$jscomp$1$$}):$APP.$cljs$core$truth_$$($color_id$jscomp$6_library_color_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$,{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name-wrapper main_ui_workspace_sidebar_options_rows_color_row__library-name-wrapper",handleClickColor:$handle_click_color$jscomp$1$$,
opacity:!1,color:$color$jscomp$141$$,children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($color_name$$),className:"main_ui_workspace_sidebar_options_rows_color_row__color-name",children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($color_name$$)}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",className:"main_ui_workspace_sidebar_options_rows_color_row__detach-btn",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.detach"),onClick:$detach_value$$,icon:"detach"})]})}):$APP.$cljs$core$truth_$$($gradient_color_QMARK__libraries$jscomp$130_src_colors$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$,{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name-wrapper "+($disable_opacity$jscomp$1$$?"main_ui_workspace_sidebar_options_rows_color_row__no-opacity":"")+
" main_ui_workspace_sidebar_options_rows_color_row__gradient-name-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name",children:$APP.$app$util$color$gradient_type__GT_string$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$141$$,$APP.$cljs$cst$1708$gradient$$),$APP.$cljs$cst$139$type$$))}),selectOnFocus:$select_on_focus$jscomp$2$$,onFocus:$on_focus_SINGLEQUOTE_$$,
onOpacityChange:$on_opacity_change$jscomp$1$$,onBlur:$on_blur_SINGLEQUOTE_$$,handleClickColor:$handle_click_color$jscomp$1$$,color:$color$jscomp$141$$,opacity:!$disable_opacity$jscomp$1$$}):$APP.$cljs$core$truth_$$($file_id$jscomp$332_image_color_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$,{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name-wrapper "+($disable_opacity$jscomp$1$$?"main_ui_workspace_sidebar_options_rows_color_row__no-opacity":
""),children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.image")}),selectOnFocus:$select_on_focus$jscomp$2$$,onFocus:$on_focus_SINGLEQUOTE_$$,onOpacityChange:$on_opacity_change$jscomp$1$$,onBlur:$on_blur_SINGLEQUOTE_$$,handleClickColor:$handle_click_color$jscomp$1$$,color:$color$jscomp$141$$,opacity:!$disable_opacity$jscomp$1$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_info_wrapper_STAR_$$,
{className:"main_ui_workspace_sidebar_options_rows_color_row__color-name-wrapper "+($disable_opacity$jscomp$1$$||$has_multiple_colors$$?"main_ui_workspace_sidebar_options_rows_color_row__no-opacity":"")+" "+($APP.$cljs$core$truth_$$($is_editing_text$$)?"main_ui_workspace_sidebar_options_rows_color_row__editing":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_color_row__color-input-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$color_input$color_input_STAR_$$,
{value:$has_multiple_colors$$?"":$color_without_hash$$,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),"data-index":$index$jscomp$455$$,className:"main_ui_workspace_sidebar_options_rows_color_row__color-input",onFocus:$on_focus_SINGLEQUOTE_$$,onBlur:$on_blur_SINGLEQUOTE_$$,onChange:$on_color_change$$})}),selectOnFocus:$select_on_focus$jscomp$2$$,onFocus:$on_focus_SINGLEQUOTE_$$,onOpacityChange:$on_opacity_change$jscomp$1$$,onBlur:$on_blur_SINGLEQUOTE_$$,handleClickColor:$handle_click_color$jscomp$1$$,
color:$color$jscomp$141$$,opacity:!($disable_opacity$jscomp$1$$||$has_multiple_colors$$)}),$on_remove$$!=null?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.remove-color"),onClick:$on_remove_SINGLEQUOTE_$$,icon:"remove"}):null,$APP.$cljs$core$truth_$$($select_only$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.select-this-color"),onClick:$handle_select$jscomp$1$$,icon:"move"}):null]})};
$app$main$ui$workspace$colorpicker$gradients$format_rgb$$=function($p__76172_r$jscomp$136$$){var $map__76173__$1_offset$jscomp$191$$=$APP.$cljs$core$__destructure_map$$($p__76172_r$jscomp$136$$);$p__76172_r$jscomp$136$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76173__$1_offset$jscomp$191$$,$APP.$cljs$cst$1727$r$$);var $g$jscomp$159$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76173__$1_offset$jscomp$191$$,$APP.$cljs$cst$1728$g$$),$b$jscomp$353$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76173__$1_offset$jscomp$191$$,
$APP.$cljs$cst$1509$b$$);$map__76173__$1_offset$jscomp$191$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76173__$1_offset$jscomp$191$$,$APP.$cljs$cst$195$offset$$);return"rgb("+($p__76172_r$jscomp$136$$??"")+", "+($g$jscomp$159$$??"")+", "+($b$jscomp$353$$??"")+") "+$map__76173__$1_offset$jscomp$191$$*100+"%"};
$app$main$ui$workspace$colorpicker$gradients$gradient__GT_string$$=function($stops$jscomp$15$$){return"linear-gradient(90deg, "+($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$colorpicker$gradients$format_rgb$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($opacity$jscomp$46_p__76175$$){var $map__76176__$1_offset$jscomp$192$$=$APP.$cljs$core$__destructure_map$$($opacity$jscomp$46_p__76175$$),
$color$jscomp$142_r$jscomp$137$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76176__$1_offset$jscomp$192$$,$APP.$cljs$cst$1284$color$$);$opacity$jscomp$46_p__76175$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76176__$1_offset$jscomp$192$$,$APP.$cljs$cst$1718$opacity$$);$map__76176__$1_offset$jscomp$192$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76176__$1_offset$jscomp$192$$,$APP.$cljs$cst$195$offset$$);var $b$jscomp$354_vec__76178$$=$APP.$app$common$types$color$hex__GT_rgb$$($color$jscomp$142_r$jscomp$137$$);
$color$jscomp$142_r$jscomp$137$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$354_vec__76178$$,0,null);var $g$jscomp$160$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$354_vec__76178$$,1,null);$b$jscomp$354_vec__76178$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$354_vec__76178$$,2,null);return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1727$r$$,$color$jscomp$142_r$jscomp$137$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$160$$,
$APP.$cljs$cst$1509$b$$,$b$jscomp$354_vec__76178$$,$APP.$cljs$cst$744$alpha$$,$opacity$jscomp$46_p__76175$$,$APP.$cljs$cst$195$offset$$,$map__76176__$1_offset$jscomp$192$$],null)},$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$stops$jscomp$15$$))))??"")+")"};
$app$main$ui$workspace$colorpicker$gradients$stop_input_row_STAR_$$=function($offset$jscomp$193_props_76181$$){var $on_blur_stop_offset$$=$offset$jscomp$193_props_76181$$.onBlurStopOffset,$on_select_stop$$=$offset$jscomp$193_props_76181$$.onSelectStop,$on_remove_stop$$=$offset$jscomp$193_props_76181$$.onRemoveStop,$index$jscomp$456$$=$offset$jscomp$193_props_76181$$.index,$on_blur_stop_color$$=$offset$jscomp$193_props_76181$$.onBlurStopColor,$on_reorder_stops$$=$offset$jscomp$193_props_76181$$.onReorderStops,
$is_selected$jscomp$2$$=$offset$jscomp$193_props_76181$$.isSelected,$on_focus_stop_color$$=$offset$jscomp$193_props_76181$$.onFocusStopColor,$on_focus_stop_offset$$=$offset$jscomp$193_props_76181$$.onFocusStopOffset,$stop$jscomp$8$$=$offset$jscomp$193_props_76181$$.stop,$on_change_stop$$=$offset$jscomp$193_props_76181$$.onChangeStop;$offset$jscomp$193_props_76181$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stop$jscomp$8$$,$APP.$cljs$cst$195$offset$$);var $handle_change_stop_color$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_stop$$),
$APP.$rumext$v2$adapt$$($stop$jscomp$8$$)],function($G__76186_value$jscomp$764$$){$G__76186_value$jscomp$764$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$stop$jscomp$8$$,$G__76186_value$jscomp$764$$]));return $on_change_stop$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_stop$$.$cljs$core$IFn$_invoke$arity$2$($stop$jscomp$8$$,$G__76186_value$jscomp$764$$):$on_change_stop$$($stop$jscomp$8$$,$G__76186_value$jscomp$764$$)}),
$handle_change_offset$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_stop$$),$APP.$rumext$v2$adapt$$($stop$jscomp$8$$)],function($G__76189_value$jscomp$765$$){$G__76189_value$jscomp$765$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($stop$jscomp$8$$,$APP.$cljs$cst$195$offset$$,$APP.$app$common$math$precision$$($G__76189_value$jscomp$765$$/100,2));return $on_change_stop$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_stop$$.$cljs$core$IFn$_invoke$arity$2$($stop$jscomp$8$$,
$G__76189_value$jscomp$765$$):$on_change_stop$$($stop$jscomp$8$$,$G__76189_value$jscomp$765$$)}),$handle_remove_stop$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_remove_stop$$),$APP.$rumext$v2$adapt$$($index$jscomp$456$$)],function(){return $APP.$cljs$core$truth_$$($on_remove_stop$$)?$on_remove_stop$$.$cljs$core$IFn$_invoke$arity$1$?$on_remove_stop$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$456$$):$on_remove_stop$$($index$jscomp$456$$):null}),
$handle_focus_stop_offset$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_stop$$),$APP.$rumext$v2$adapt$$($on_focus_stop_offset$$),$APP.$rumext$v2$adapt$$($index$jscomp$456$$)],function(){$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$456$$):$on_select_stop$$($index$jscomp$456$$);return $APP.$cljs$core$truth_$$($on_focus_stop_offset$$)?$on_focus_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$?
$on_focus_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$():$on_focus_stop_offset$$():null}),$handle_blur_stop_offset$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_stop$$),$APP.$rumext$v2$adapt$$($on_blur_stop_offset$$),$APP.$rumext$v2$adapt$$($index$jscomp$456$$)],function(){$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$456$$):$on_select_stop$$($index$jscomp$456$$);return $APP.$cljs$core$truth_$$($on_blur_stop_offset$$)?
$on_blur_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur_stop_offset$$():null}),$handle_focus_stop_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_stop$$),$APP.$rumext$v2$adapt$$($on_focus_stop_offset$$),$APP.$rumext$v2$adapt$$($index$jscomp$456$$)],function(){$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$456$$):
$on_select_stop$$($index$jscomp$456$$);return $APP.$cljs$core$truth_$$($on_focus_stop_color$$)?$on_focus_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$?$on_focus_stop_offset$$.$cljs$core$IFn$_invoke$arity$0$():$on_focus_stop_offset$$():null}),$handle_blur_stop_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_stop$$),$APP.$rumext$v2$adapt$$($on_blur_stop_color$$),$APP.$rumext$v2$adapt$$($index$jscomp$456$$)],function(){$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$?
$on_select_stop$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$456$$):$on_select_stop$$($index$jscomp$456$$);return $APP.$cljs$core$truth_$$($on_blur_stop_color$$)?$on_blur_stop_color$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur_stop_color$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur_stop_color$$():null}),$dprops$jscomp$2_on_drop$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$456$$),$APP.$rumext$v2$adapt$$($on_reorder_stops$$)],function($position$jscomp$183_to_index$jscomp$17$$,
$data$jscomp$456_from_index$jscomp$10$$){$data$jscomp$456_from_index$jscomp$10$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$456_from_index$jscomp$10$$);$position$jscomp$183_to_index$jscomp$17$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$183_to_index$jscomp$17$$,$APP.$cljs$cst$2636$bot$$)?$index$jscomp$456$$+1:$index$jscomp$456$$;return $APP.$cljs$core$truth_$$($on_reorder_stops$$)?$on_reorder_stops$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder_stops$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$456_from_index$jscomp$10$$,
$position$jscomp$183_to_index$jscomp$17$$):$on_reorder_stops$$($data$jscomp$456_from_index$jscomp$10$$,$position$jscomp$183_to_index$jscomp$17$$):null}),$dref$jscomp$2_vec__76182$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/stops",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$2_on_drop$jscomp$4$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1779$index$$,$index$jscomp$456$$],null),$APP.$cljs$cst$2643$draggable_QMARK_$$,!0]));$dprops$jscomp$2_on_drop$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$2_vec__76182$$,0,null);$dref$jscomp$2_vec__76182$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$2_vec__76182$$,1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-stops-entry "+($APP.$cljs$core$truth_$$($is_selected$jscomp$2$$)?
"main_ui_workspace_colorpicker_gradients__is-selected":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$2_on_drop$jscomp$4$$),$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_colorpicker_gradients__dnd-over":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$2_on_drop$jscomp$4$$),$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_colorpicker_gradients__dnd-over-top":
"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$2_on_drop$jscomp$4$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_colorpicker_gradients__dnd-over-bot":""),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,{ref:$dref$jscomp$2_vec__76182$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__offset-input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_colorpicker_gradients__icon-text",children:"%"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{value:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$data$coalesce$$($offset$jscomp$193_props_76181$$)*100)),onChange:$handle_change_offset$$,"default":100,min:0,max:100,onFocus:$handle_focus_stop_offset$$,onBlur:$handle_blur_stop_offset$$})]}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{onRemove:$handle_remove_stop$$,origin:$APP.$cljs$cst$1708$gradient$$,index:$index$jscomp$456$$,onChange:$handle_change_stop_color$$,onFocus:$handle_focus_stop_color$$,disableGradient:!0,onBlur:$handle_blur_stop_color$$,color:$APP.$cljs$core$select_keys$$($stop$jscomp$8$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1718$opacity$$],
null)),disablePicker:!0})]})};
$app$main$ui$workspace$colorpicker$gradients$gradients_STAR_$$=function($handle_change_type_props_76192$$){var $on_reverse_stops$$=$handle_change_type_props_76192$$.onReverseStops,$on_change_type$$=$handle_change_type_props_76192$$.onChangeType,$on_stop_edit_start$$=$handle_change_type_props_76192$$.onStopEditStart,$on_select_stop$jscomp$1$$=$handle_change_type_props_76192$$.onSelectStop,$on_rotate_stops$$=$handle_change_type_props_76192$$.onRotateStops,$on_add_stop_preview$$=$handle_change_type_props_76192$$.onAddStopPreview,
$stops$jscomp$16$$=$handle_change_type_props_76192$$.stops,$on_remove_stop$jscomp$1$$=$handle_change_type_props_76192$$.onRemoveStop,$on_add_stop_auto$$=$handle_change_type_props_76192$$.onAddStopAuto,$on_stop_edit_finish$$=$handle_change_type_props_76192$$.onStopEditFinish,$on_reorder_stops$jscomp$1$$=$handle_change_type_props_76192$$.onReorderStops,$type$jscomp$585$$=$handle_change_type_props_76192$$.type,$on_change_stop$jscomp$1$$=$handle_change_type_props_76192$$.onChangeStop,$editing_stop$jscomp$3$$=
$handle_change_type_props_76192$$.editingStop,$preview_state$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5328$hover_QMARK_$$,!1,$APP.$cljs$cst$195$offset$$,.5],null)}),$dragging_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$start_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$start_offset$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$background_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$handle_select_stop$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_stop$jscomp$1$$)],function($event$jscomp$282_index$jscomp$457$$){return $APP.$cljs$core$truth_$$($on_select_stop$jscomp$1$$)?($event$jscomp$282_index$jscomp$457$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$282_index$jscomp$457$$),"index")),$on_select_stop$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_stop$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$282_index$jscomp$457$$):
$on_select_stop$jscomp$1$$($event$jscomp$282_index$jscomp$457$$)):null});$handle_change_type_props_76192$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_type$$)],function($event$jscomp$283$$){return $APP.$cljs$core$truth_$$($on_change_type$$)?$on_change_type$$.$cljs$core$IFn$_invoke$arity$1$?$on_change_type$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$283$$):$on_change_type$$($event$jscomp$283$$):null});var $handle_add_stop$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_add_stop_auto$$)],
function(){return $APP.$cljs$core$truth_$$($on_add_stop_auto$$)?$on_add_stop_auto$$.$cljs$core$IFn$_invoke$arity$0$?$on_add_stop_auto$$.$cljs$core$IFn$_invoke$arity$0$():$on_add_stop_auto$$():null}),$handle_preview_enter$$=$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$($preview_state$$,$APP.$cljs$core$assoc$$,$cljs$cst$5328$hover_QMARK_$$,!0)}),$handle_preview_leave$$=$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$($preview_state$$,
$APP.$cljs$core$assoc$$,$cljs$cst$5328$hover_QMARK_$$,!1)}),$handle_preview_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$346_offset$jscomp$194$$){$e$jscomp$346_offset$jscomp$194$$=$APP.$app$common$math$precision$$($e$jscomp$346_offset$jscomp$194$$.nativeEvent.offsetX/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_current_target$$($e$jscomp$346_offset$jscomp$194$$))),2);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($preview_state$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$195$offset$$,$e$jscomp$346_offset$jscomp$194$$)}),$handle_preview_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_add_stop_preview$$)],function($e$jscomp$347_offset$jscomp$195$$){$e$jscomp$347_offset$jscomp$195$$=$APP.$app$common$math$precision$$($e$jscomp$347_offset$jscomp$195$$.nativeEvent.offsetX/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_current_target$$($e$jscomp$347_offset$jscomp$195$$))),
2);return $APP.$cljs$core$truth_$$($on_add_stop_preview$$)?$on_add_stop_preview$$.$cljs$core$IFn$_invoke$arity$1$?$on_add_stop_preview$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$347_offset$jscomp$195$$):$on_add_stop_preview$$($e$jscomp$347_offset$jscomp$195$$):null}),$handle_stop_marker_pointer_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_stop_edit_start$$),$APP.$rumext$v2$adapt$$($handle_select_stop$$),$APP.$rumext$v2$adapt$$($stops$jscomp$16$$)],
function($event$jscomp$284$$){var $index$jscomp$458_stop$jscomp$9$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$284$$),"index"));$index$jscomp$458_stop$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$16$$,$index$jscomp$458_stop$jscomp$9$$);$APP.$app$util$dom$capture_pointer$$($event$jscomp$284$$);$handle_select_stop$$.$cljs$core$IFn$_invoke$arity$1$?$handle_select_stop$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$284$$):
$handle_select_stop$$($event$jscomp$284$$);$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$2$$,!0);$APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$2$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$284$$));$APP.$rumext$v2$set_ref_val_BANG_$$($start_offset$jscomp$1$$,$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$458_stop$jscomp$9$$));return $on_stop_edit_start$$.$cljs$core$IFn$_invoke$arity$0$?$on_stop_edit_start$$.$cljs$core$IFn$_invoke$arity$0$():
$on_stop_edit_start$$()}),$handle_stop_marker_pointer_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_stop$jscomp$1$$),$APP.$rumext$v2$adapt$$($stops$jscomp$16$$)],function($background_width_current_pt$jscomp$1_event$jscomp$285$$){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dragging_ref$jscomp$2$$))){var $delta_offset_delta_x$jscomp$2_start_pt$jscomp$1$$=$APP.$rumext$v2$ref_val$$($start_ref$jscomp$2$$),$G__76194_new_offset$jscomp$2_start_offset__$1$$=
$APP.$rumext$v2$ref_val$$($start_offset$jscomp$1$$),$index$jscomp$459_stop$jscomp$10$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_target$$($background_width_current_pt$jscomp$1_event$jscomp$285$$),"index"));$background_width_current_pt$jscomp$1_event$jscomp$285$$=$APP.$app$util$dom$get_client_position$$($background_width_current_pt$jscomp$1_event$jscomp$285$$);$delta_offset_delta_x$jscomp$2_start_pt$jscomp$1$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($background_width_current_pt$jscomp$1_event$jscomp$285$$)-
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($delta_offset_delta_x$jscomp$2_start_pt$jscomp$1$$);$background_width_current_pt$jscomp$1_event$jscomp$285$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$rumext$v2$ref_val$$($background_ref$$)));$delta_offset_delta_x$jscomp$2_start_pt$jscomp$1$$/=$background_width_current_pt$jscomp$1_event$jscomp$285$$;$index$jscomp$459_stop$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$16$$,
$index$jscomp$459_stop$jscomp$10$$);$G__76194_new_offset$jscomp$2_start_offset__$1$$=$APP.$app$common$math$precision$$($APP.$app$common$math$clamp$$($G__76194_new_offset$jscomp$2_start_offset__$1$$+$delta_offset_delta_x$jscomp$2_start_pt$jscomp$1$$,0,1),2);$G__76194_new_offset$jscomp$2_start_offset__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$459_stop$jscomp$10$$,$APP.$cljs$cst$195$offset$$,$G__76194_new_offset$jscomp$2_start_offset__$1$$);return $on_change_stop$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change_stop$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$459_stop$jscomp$10$$,$G__76194_new_offset$jscomp$2_start_offset__$1$$):$on_change_stop$jscomp$1$$($index$jscomp$459_stop$jscomp$10$$,$G__76194_new_offset$jscomp$2_start_offset__$1$$)}return null}),$handle_stop_marker_lost_pointer_capture$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_stop_edit_finish$$)],function($event$jscomp$286$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$286$$);
$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$2$$,!1);$APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$2$$,null);return $on_stop_edit_finish$$.$cljs$core$IFn$_invoke$arity$0$?$on_stop_edit_finish$$.$cljs$core$IFn$_invoke$arity$0$():$on_stop_edit_finish$$()}),$handle_rotate_gradient$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_rotate_stops$$)],function(){return $APP.$cljs$core$truth_$$($on_rotate_stops$$)?$on_rotate_stops$$.$cljs$core$IFn$_invoke$arity$0$?
$on_rotate_stops$$.$cljs$core$IFn$_invoke$arity$0$():$on_rotate_stops$$():null}),$handle_reverse_gradient$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_reverse_stops$$)],function(){return $APP.$cljs$core$truth_$$($on_reverse_stops$$)?$on_reverse_stops$$.$cljs$core$IFn$_invoke$arity$0$?$on_reverse_stops$$.$cljs$core$IFn$_invoke$arity$0$():$on_reverse_stops$$():null}),$add_stop_disabled_QMARK_$$=$app$main$features$use_feature$$("render-wasm/v1")?$APP.$cljs$core$count$$($stops$jscomp$16$$)>=
16:null;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-panel",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-preview",children:[(0,$APP.$rumext$v2$jsx$$)("div",{ref:$background_ref$$,style:{background:$app$main$ui$workspace$colorpicker$gradients$gradient__GT_string$$($stops$jscomp$16$$)},onPointerEnter:$handle_preview_enter$$,onPointerLeave:$handle_preview_leave$$,onPointerMove:$handle_preview_move$$,
onPointerDown:$handle_preview_down$$,className:"main_ui_workspace_colorpicker_gradients__gradient-background",children:$APP.$cljs$core$not$$($add_stop_disabled_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("div",{style:{display:$APP.$cljs$core$truth_$$($cljs$cst$5328$hover_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($preview_state$$)))?"block":"none","--preview-position":""+100*$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($preview_state$$))+"%"},
className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop-preview"}):null}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop-wrapper",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$114$$,$color$jscomp$143_map__76199_p__76195$$){var $index$jscomp$460$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($color$jscomp$143_map__76199_p__76195$$,0,null);$color$jscomp$143_map__76199_p__76195$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($color$jscomp$143_map__76199_p__76195$$,1,null);var $alpha$jscomp$12_map__76199__$1$$=$APP.$cljs$core$__destructure_map$$($color$jscomp$143_map__76199_p__76195$$);$color$jscomp$143_map__76199_p__76195$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,$APP.$cljs$cst$1284$color$$);var $offset$jscomp$196$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,$APP.$cljs$cst$195$offset$$),
$r$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,$APP.$cljs$cst$1727$r$$),$g$jscomp$161$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,$APP.$cljs$cst$1728$g$$),$b$jscomp$355$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,$APP.$cljs$cst$1509$b$$);$alpha$jscomp$12_map__76199__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$12_map__76199__$1$$,
$APP.$cljs$cst$744$alpha$$);$out_arr__44057__auto__$jscomp$114$$.push((0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--color-solid":$color$jscomp$143_map__76199_p__76195$$,"--color-alpha":"rgba("+($r$jscomp$138$$??"")+", "+($g$jscomp$161$$??"")+", "+($b$jscomp$355$$??"")+", "+($alpha$jscomp$12_map__76199__$1$$??"")+")","--position":""+$offset$jscomp$196$$*100+"%"},"data-index":$index$jscomp$460$$,onPointerDown:$handle_stop_marker_pointer_down$$,
onPointerMove:$handle_stop_marker_pointer_move$$,onLostPointerCapture:$handle_stop_marker_lost_pointer_capture$$,className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editing_stop$jscomp$3$$,$index$jscomp$460$$)?"main_ui_workspace_colorpicker_gradients__is-selected":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{pointerEvents:"none"},className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop-color"}),
(0,$APP.$rumext$v2$jsx$$)("div",{style:{pointerEvents:"none"},className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop-alpha"})]}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{"--position":""+$offset$jscomp$196$$*100+"%"},className:"main_ui_workspace_colorpicker_gradients__gradient-preview-stop-decoration"})]},"preview-stop-"+($index$jscomp$460$$??"")));return $out_arr__44057__auto__$jscomp$114$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($stops$jscomp$16$$))})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$type$jscomp$585$$,options:new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$4047$linear_gradient$$,$APP.$cljs$cst$2245$label$$,"Linear"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$4049$radial_gradient$$,$APP.$cljs$cst$2245$label$$,"Radial"],null)],null),"on-change":$handle_change_type_props_76192$$,"class":"main_ui_workspace_colorpicker_gradients__gradient-options-select"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_gradients__gradient-options-buttons",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":"Rotate gradient",onClick:$handle_rotate_gradient$$,
iconClass:"main_ui_workspace_colorpicker_gradients__rotate-icon",icon:"reload"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":"Reverse gradient",onClick:$handle_reverse_gradient$$,icon:"switch"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":"Add stop",disabled:$add_stop_disabled_QMARK_$$,onClick:$handle_add_stop$$,icon:"add"})]})]}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_colorpicker_gradients__gradient-stops-list",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$115$$,$p__76201_stop$jscomp$11$$){var $index$jscomp$461$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76201_stop$jscomp$11$$,0,null);$p__76201_stop$jscomp$11$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76201_stop$jscomp$11$$,
1,null);$out_arr__44057__auto__$jscomp$115$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$gradients$stop_input_row_STAR_$$,{stop:$p__76201_stop$jscomp$11$$,onSelectStop:$on_select_stop$jscomp$1$$,index:$index$jscomp$461$$,onFocusStopOffset:$on_stop_edit_start$$,onBlurStopColor:$on_stop_edit_finish$$,onChangeStop:$on_change_stop$jscomp$1$$,onFocusStopColor:$on_stop_edit_start$$,onBlurStopOffset:$on_stop_edit_finish$$,onReorderStops:$on_reorder_stops$jscomp$1$$,isSelected:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editing_stop$jscomp$3$$,
$index$jscomp$461$$),onRemoveStop:$on_remove_stop$jscomp$1$$},$index$jscomp$461$$));return $out_arr__44057__auto__$jscomp$115$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($stops$jscomp$16$$))})}),(0,$APP.$rumext$v2$jsx$$)("hr",{className:"main_ui_workspace_colorpicker_gradients__gradient-separator"})]})};
$app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$=function($map__75417_props_75414_type$jscomp$586$$){function $calculate_pos$$($ev$jscomp$7_map__75419_x$jscomp$1237$$){if($APP.$cljs$core$truth_$$($on_change$jscomp$33$$)){var $left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($ev$jscomp$7_map__75419_x$jscomp$1237$$)),$bottom$jscomp$5_map__75418__$1$$=$APP.$cljs$core$__destructure_map$$($left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$);
$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$5_map__75418__$1$$,$APP.$cljs$cst$257$left$$);var $right$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$5_map__75418__$1$$,$APP.$cljs$cst$258$right$$),$top$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$5_map__75418__$1$$,$APP.$cljs$cst$1546$top$$);$bottom$jscomp$5_map__75418__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$5_map__75418__$1$$,
$APP.$cljs$cst$1547$bottom$$);$ev$jscomp$7_map__75419_x$jscomp$1237$$=$APP.$app$util$dom$get_client_position$$($ev$jscomp$7_map__75419_x$jscomp$1237$$);var $map__75419__$1_y$jscomp$460$$=$APP.$cljs$core$__destructure_map$$($ev$jscomp$7_map__75419_x$jscomp$1237$$);$ev$jscomp$7_map__75419_x$jscomp$1237$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75419__$1_y$jscomp$460$$,$APP.$cljs$cst$1499$x$$);$map__75419__$1_y$jscomp$460$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75419__$1_y$jscomp$460$$,
$APP.$cljs$cst$1500$y$$);$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$=$APP.$cljs$core$truth_$$($vertical_QMARK_$$)?$APP.$app$common$math$clamp$$(($bottom$jscomp$5_map__75418__$1$$-$map__75419__$1_y$jscomp$460$$)/($bottom$jscomp$5_map__75418__$1$$-$top$jscomp$11$$),0,1):$APP.$app$common$math$clamp$$(($ev$jscomp$7_map__75419_x$jscomp$1237$$-$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$)/($right$jscomp$22$$-$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$),0,1);
$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$=$min_value__$1$jscomp$1$$+($APP.$cljs$core$truth_$$($reverse_QMARK_$jscomp$9$$)?$APP.$app$common$math$abs$$($left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$-1):$left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$)*($max_value__$1$jscomp$1$$-$min_value__$1$jscomp$1$$);return $on_change$jscomp$33$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$33$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$):
$on_change$jscomp$33$$($left$jscomp$25_map__75418_unit_value_value__$1$jscomp$37$$)}return null}$map__75417_props_75414_type$jscomp$586$$=$APP.$rumext$v2$util$wrap_props$$($map__75417_props_75414_type$jscomp$586$$);var $handle_start_drag_map__75417__$1$$=$APP.$cljs$core$__destructure_map$$($map__75417_props_75414_type$jscomp$586$$),$on_change$jscomp$33$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$APP.$cljs$cst$4041$on_change$$),$reverse_QMARK_$jscomp$9$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$APP.$cljs$cst$3668$reverse_QMARK_$$),$on_start_drag$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$cljs$cst$5329$on_start_drag$$),$value$jscomp$766$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$APP.$cljs$cst$260$value$$);$map__75417_props_75414_type$jscomp$586$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,
$APP.$cljs$cst$139$type$$);var $handle_stop_drag_min_value$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$cljs$cst$5330$min_value$$),$max_value$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$cljs$cst$5331$max_value$$),$class$$jscomp$56$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$APP.$cljs$cst$1277$class$$),$vertical_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,
$cljs$cst$5332$vertical_QMARK_$$),$on_finish_drag$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag_map__75417__$1$$,$cljs$cst$5333$on_finish_drag$$),$min_value__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($handle_stop_drag_min_value$jscomp$2$$)?$handle_stop_drag_min_value$jscomp$2$$:0,$max_value__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($max_value$jscomp$4$$)?$max_value$jscomp$4$$:1,$dragging_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$handle_start_drag_map__75417__$1$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_start_drag$$)],function($event$jscomp$287$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$287$$);$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$$,!0);return $APP.$cljs$core$truth_$$($on_start_drag$$)?$on_start_drag$$.$cljs$core$IFn$_invoke$arity$0$?$on_start_drag$$.$cljs$core$IFn$_invoke$arity$0$():$on_start_drag$$():null});$handle_stop_drag_min_value$jscomp$2$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_finish_drag$$)],
function($event$jscomp$288$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$288$$);$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$$,!1);return $APP.$cljs$core$truth_$$($on_finish_drag$$)?$on_finish_drag$$.$cljs$core$IFn$_invoke$arity$0$?$on_finish_drag$$.$cljs$core$IFn$_invoke$arity$0$():$on_finish_drag$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__75417_props_75414_type$jscomp$586$$,$APP.$cljs$cst$1718$opacity$$)?
"slider-opacity":null,onPointerDown:$handle_start_drag_map__75417__$1$$,onPointerUp:$handle_stop_drag_min_value$jscomp$2$$,onLostPointerCapture:$handle_stop_drag_min_value$jscomp$2$$,onClick:$calculate_pos$$,onPointerMove:function($p1__75412_SHARP_$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($dragging_QMARK_$$))?$calculate_pos$$($p1__75412_SHARP_$$):null},className:""+($class$$jscomp$56$$??"")+(($APP.$cljs$core$truth_$$($vertical_QMARK_$$)?"main_ui_workspace_colorpicker_slider_selector__vertical":
"")+" main_ui_workspace_colorpicker_slider_selector__slider-selector "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__75417_props_75414_type$jscomp$586$$,$APP.$cljs$cst$2003$hue$$)?"main_ui_workspace_colorpicker_slider_selector__hue":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__75417_props_75414_type$jscomp$586$$,$APP.$cljs$cst$1718$opacity$$)?"main_ui_workspace_colorpicker_slider_selector__opacity":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__75417_props_75414_type$jscomp$586$$,
$APP.$cljs$cst$260$value$$)?"main_ui_workspace_colorpicker_slider_selector__value":"")),children:function(){var $style_horizontal_value_percent$$=($value$jscomp$766$$-$min_value__$1$jscomp$1$$)/($max_value__$1$jscomp$1$$-$min_value__$1$jscomp$1$$)*100,$style_vertical_value_percent_str$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$truth_$$($reverse_QMARK_$jscomp$9$$)?$APP.$app$common$math$abs$$($style_horizontal_value_percent$$-100):$style_horizontal_value_percent$$),"%"].join(""),
$style_common$$={pointerEvents:"none"};$style_horizontal_value_percent$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({left:$style_vertical_value_percent_str$$},$style_common$$);$style_vertical_value_percent_str$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({bottom:$style_vertical_value_percent_str$$},$style_common$$);return(0,$APP.$rumext$v2$jsx$$)("div",{style:$APP.$cljs$core$truth_$$($vertical_QMARK_$$)?$style_vertical_value_percent_str$$:$style_horizontal_value_percent$$,
className:"main_ui_workspace_colorpicker_slider_selector__handler"})}()})};$app$main$ui$workspace$colorpicker$harmony$color__GT_point$$=function($hue$jscomp$3_hue_rad$$,$saturation$jscomp$1$$){$hue$jscomp$3_hue_rad$$=$APP.$goog$math$toRadians$$(-$hue$jscomp$3_hue_rad$$);return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(96+$saturation$jscomp$1$$*Math.cos($hue$jscomp$3_hue_rad$$)*96,96+$saturation$jscomp$1$$*Math.sin($hue$jscomp$3_hue_rad$$)*96)};
$app$main$ui$workspace$colorpicker$harmony$harmony_selector$$=function($disable_opacity$jscomp$2_map__75445_props_75444$$){function $on_change_opacity$$($G__75467_new_alpha$$){$G__75467_new_alpha$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$744$alpha$$,$G__75467_new_alpha$$],null);return $on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$($G__75467_new_alpha$$):$on_change$jscomp$34$$($G__75467_new_alpha$$)}function $calculate_pos$jscomp$1$$($ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$){var $G__75458_map__75453_new_hue_top$jscomp$12$$=
$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$)),$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$=$APP.$cljs$core$__destructure_map$$($G__75458_map__75453_new_hue_top$jscomp$12$$),$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,
$APP.$cljs$cst$257$left$$),$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,$APP.$cljs$cst$258$right$$);$G__75458_map__75453_new_hue_top$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,$APP.$cljs$cst$1546$top$$);
$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,$APP.$cljs$cst$1547$bottom$$);$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$=$APP.$app$util$dom$get_client_position$$($ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$);var $b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$=
$APP.$cljs$core$__destructure_map$$($ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$);$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,$APP.$cljs$cst$1499$x$$);$b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,$APP.$cljs$cst$1500$y$$);
$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$=2*$APP.$app$common$math$clamp$$(($ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$-$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$)/($hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$-$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$),0,1)-
1;$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$=2*$APP.$app$common$math$clamp$$(($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$-$G__75458_map__75453_new_hue_top$jscomp$12$$)/($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$-$G__75458_map__75453_new_hue_top$jscomp$12$$),0,1)-1;$G__75458_map__75453_new_hue_top$jscomp$12$$=$APP.$cljs$core$mod$$(Math.atan2($JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$,
$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$)*180/Math.PI-90,360);$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$,$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$],null);$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$=
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[0,0],null);$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,0,null);$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,
1,null);$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$,0,null);$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$,1,null);$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$=
$APP.$app$common$math$precision$$($APP.$app$common$math$hypot$$($JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$-$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$,$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$-$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$),2);$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$=
$APP.$app$common$math$clamp$$($JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$,0,1);$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$=$app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__75458_map__75453_new_hue_top$jscomp$12$$,$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$,
$value$jscomp$767$$],null));$b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$=$APP.$app$common$types$color$hex__GT_rgb$$($hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$);$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,0,null);$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,1,null);$b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,2,null);$G__75458_map__75453_new_hue_top$jscomp$12$$=new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$2955$hex$$,$hex$jscomp$10_p__24235$jscomp$inline_8445_py__$1_right$jscomp$23_y2$jscomp$inline_8449$$,
$APP.$cljs$cst$1727$r$$,$bottom$jscomp$6_map__75453__$1_p__24234$jscomp$inline_8444_r$jscomp$139_y1$jscomp$inline_8447$$,$APP.$cljs$cst$1728$g$$,$ev$jscomp$8_g$jscomp$162_map__75454_x$jscomp$1239_x2$jscomp$inline_8448$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$356_map__75454__$1_vec__75455_y$jscomp$462$$,$APP.$cljs$cst$1884$h$$,$G__75458_map__75453_new_hue_top$jscomp$12$$,$APP.$cljs$cst$4052$s$$,$JSCompiler_inline_result$jscomp$1478_left$jscomp$26_new_saturation_px__$1_x1$jscomp$inline_8446$$],null);return $on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$($G__75458_map__75453_new_hue_top$jscomp$12$$):$on_change$jscomp$34$$($G__75458_map__75453_new_hue_top$jscomp$12$$)}$disable_opacity$jscomp$2_map__75445_props_75444$$=$APP.$rumext$v2$util$wrap_props$$($disable_opacity$jscomp$2_map__75445_props_75444$$);var $alpha$jscomp$13_map__75445__$1_map__75446__$1$$=$APP.$cljs$core$__destructure_map$$($disable_opacity$jscomp$2_map__75445_props_75444$$),$color$jscomp$144_pos_current$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,
$APP.$cljs$cst$1284$color$$);$disable_opacity$jscomp$2_map__75445_props_75444$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$4039$disable_opacity$$);var $on_change$jscomp$34$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$4041$on_change$$),$on_start_drag$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,
$cljs$cst$5329$on_start_drag$$),$on_finish_drag$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$cljs$cst$5333$on_finish_drag$$),$canvas_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);$alpha$jscomp$13_map__75445__$1_map__75446__$1$$=$APP.$cljs$core$__destructure_map$$($color$jscomp$144_pos_current$$);var $hue$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$1884$h$$),
$saturation$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$4052$s$$),$value$jscomp$767$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$2947$v$$);$alpha$jscomp$13_map__75445__$1_map__75446__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$13_map__75445__$1_map__75446__$1$$,$APP.$cljs$cst$744$alpha$$);$color$jscomp$144_pos_current$$=
$app$main$ui$workspace$colorpicker$harmony$color__GT_point$$($hue$jscomp$4$$,$saturation$jscomp$2$$);var $pos_complement$$=$app$main$ui$workspace$colorpicker$harmony$color__GT_point$$($APP.$cljs$core$mod$$($hue$jscomp$4$$+180,360),$saturation$jscomp$2$$),$dragging_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$handle_start_drag$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_start_drag$jscomp$1$$)],function($event$jscomp$289$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$289$$);
$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$1$$,!0);return $APP.$cljs$core$truth_$$($on_start_drag$jscomp$1$$)?$on_start_drag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$on_start_drag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_start_drag$jscomp$1$$():null}),$handle_stop_drag$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_finish_drag$jscomp$1$$)],function($event$jscomp$290$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$290$$);
$APP.$cljs$core$reset_BANG_$$($dragging_QMARK_$jscomp$1$$,!1);return $APP.$cljs$core$truth_$$($on_finish_drag$jscomp$1$$)?$on_finish_drag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$on_finish_drag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_finish_drag$jscomp$1$$():null}),$l1$jscomp$3_vec__75447$$=$APP.$app$common$types$color$hex__GT_hsl$$($app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$hue$jscomp$4$$,$saturation$jscomp$2$$,
0],null))),$h1$jscomp$30$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l1$jscomp$3_vec__75447$$,0,null),$s1$jscomp$20$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l1$jscomp$3_vec__75447$$,1,null);$l1$jscomp$3_vec__75447$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l1$jscomp$3_vec__75447$$,2,null);var $l2$jscomp$2_vec__75450$$=$APP.$app$common$types$color$hex__GT_hsl$$($app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$hue$jscomp$4$$,$saturation$jscomp$2$$,255],null))),$h2$jscomp$24$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l2$jscomp$2_vec__75450$$,0,null),$s2$jscomp$17$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l2$jscomp$2_vec__75450$$,1,null);$l2$jscomp$2_vec__75450$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($l2$jscomp$2_vec__75450$$,2,null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($canvas_ref$$)],
function(){if($APP.$cljs$core$truth_$$($canvas_ref$$)){var $G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=$APP.$rumext$v2$ref_val$$($canvas_ref$$);var $JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$=$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$.getContext("2d");
var $G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$,"width"),$radius$jscomp$inline_8454$$=$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$/
2,$cx$jscomp$inline_8455$$=$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$/2,$cy$jscomp$inline_8456$$=$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$/2;$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.clearRect(0,0,$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$,
$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$,"height"));$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=$APP.$cljs$core$seq$$($APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$03$$(0,
360,.2));$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$=null;for(var $G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$=0,$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$=0;;)if($degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$<$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$){var $degrees_75472$jscomp$inline_8461$$=
$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$.$cljs$core$IIndexed$_nth$arity$2$(null,$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$),$degrees_rad_75473$jscomp$inline_8462_y_75475$jscomp$inline_8464$$=$APP.$goog$math$toRadians$$($degrees_75472$jscomp$inline_8461$$),$x_75474$jscomp$inline_8463$$=$radius$jscomp$inline_8454$$*Math.cos(-$degrees_rad_75473$jscomp$inline_8462_y_75475$jscomp$inline_8464$$);
$degrees_rad_75473$jscomp$inline_8462_y_75475$jscomp$inline_8464$$=$radius$jscomp$inline_8454$$*Math.sin(-$degrees_rad_75473$jscomp$inline_8462_y_75475$jscomp$inline_8464$$);$APP.$app$util$object$set_BANG_$$($JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$,"strokeStyle",$APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$variadic$("hsl(%s, 100%, 50%)",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$degrees_75472$jscomp$inline_8461$$])));$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.beginPath();
$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.moveTo($cx$jscomp$inline_8455$$,$cy$jscomp$inline_8456$$);$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.lineTo($cx$jscomp$inline_8455$$+$x_75474$jscomp$inline_8463$$,$cy$jscomp$inline_8456$$+$degrees_rad_75473$jscomp$inline_8462_y_75475$jscomp$inline_8464$$);$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.stroke();$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$+=1}else if($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=
$APP.$cljs$core$seq$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$))$APP.$cljs$core$chunked_seq_QMARK_$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$)?($G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$=
$APP.$cljs$core$_chunked_first$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$),$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=$APP.$cljs$core$_chunked_rest$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$),
$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$=$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$,$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$=$APP.$cljs$core$count$$($G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$)):
($G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$=$APP.$cljs$core$first$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$),$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$=$APP.$goog$math$toRadians$$($G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$),
$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$=$radius$jscomp$inline_8454$$*Math.cos(-$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$),$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$=$radius$jscomp$inline_8454$$*Math.sin(-$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$),
$APP.$app$util$object$set_BANG_$$($JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$,"strokeStyle",$APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$variadic$("hsl(%s, 100%, 50%)",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$]))),$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.beginPath(),$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.moveTo($cx$jscomp$inline_8455$$,
$cy$jscomp$inline_8456$$),$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.lineTo($cx$jscomp$inline_8455$$+$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$,$cy$jscomp$inline_8456$$+$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$),$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.stroke(),$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=
$APP.$cljs$core$next$$($G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$),$G__75484$jscomp$inline_8469_chunk__75432_75469$jscomp$inline_8458_degrees_75487$jscomp$inline_8471_width$jscomp$inline_8453$$=null,$G__75485$jscomp$inline_8470_c__5548__auto___75482$jscomp$inline_8467_count__75433_75470$jscomp$inline_8459_x_75489$jscomp$inline_8473$$=0),
$degrees_rad_75488$jscomp$inline_8472_i__75434_75471$jscomp$inline_8460_y_75490$jscomp$inline_8474$$=0;else break;$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$=$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.createRadialGradient($cx$jscomp$inline_8455$$,$cy$jscomp$inline_8456$$,0,$cx$jscomp$inline_8455$$,$cx$jscomp$inline_8455$$,$radius$jscomp$inline_8454$$);
$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$.addColorStop(0,"rgba(255, 255, 255, 1)");$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$.addColorStop(1,"rgba(255, 255, 255, 0)");$APP.$app$util$object$set_BANG_$$($JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$,
"fillStyle",$G__75483$jscomp$inline_8468_canvas_node$jscomp$inline_8451_grd$jscomp$inline_8475_seq__75431_75468$jscomp$inline_8457_seq__75431_75481__$1$jscomp$inline_8466_temp__5825__auto___75480$jscomp$inline_8465$$);$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.beginPath();$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.arc($cx$jscomp$inline_8455$$,$cy$jscomp$inline_8456$$,$radius$jscomp$inline_8454$$,0,2*$APP.$app$common$math$PI$$,!0);$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.closePath();
$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$=$JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$.fill()}else $JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$=null;return $JSCompiler_temp$jscomp$1704_ctx$jscomp$inline_8452$$});return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--hue-from":"hsl("+($h1$jscomp$30$$??"")+", "+$s1$jscomp$20$$*100+"%, "+$l1$jscomp$3_vec__75447$$*100+"%)","--hue-to":"hsl("+($h2$jscomp$24$$??"")+", "+$s2$jscomp$17$$*100+"%, "+$l2$jscomp$2_vec__75450$$*100+"%)"},
className:"main_ui_workspace_colorpicker_harmony__harmony-selector",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_harmony__handlers-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{"reverse?":!1,"on-start-drag":$on_start_drag$jscomp$1$$,value:$value$jscomp$767$$,vertical:!0,type:$APP.$cljs$cst$260$value$$,"max-value":255,"vertical?":!0,"on-finish-drag":$on_finish_drag$jscomp$1$$,"on-change":function($G__75462_new_value$jscomp$17$$){var $hex$jscomp$11$$=
$app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$hue$jscomp$4$$,$saturation$jscomp$2$$,$G__75462_new_value$jscomp$17$$],null)),$b$jscomp$357_vec__75459$$=$APP.$app$common$types$color$hex__GT_rgb$$($hex$jscomp$11$$),$r$jscomp$140$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$357_vec__75459$$,0,null),$g$jscomp$163$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$357_vec__75459$$,
1,null);$b$jscomp$357_vec__75459$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$357_vec__75459$$,2,null);$G__75462_new_value$jscomp$17$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2955$hex$$,$hex$jscomp$11$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$140$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$163$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$357_vec__75459$$,$APP.$cljs$cst$2947$v$$,$G__75462_new_value$jscomp$17$$],null);return $on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$($G__75462_new_value$jscomp$17$$):$on_change$jscomp$34$$($G__75462_new_value$jscomp$17$$)}}),$APP.$cljs$core$not$$($disable_opacity$jscomp$2_map__75445_props_75444$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{type:$APP.$cljs$cst$1718$opacity$$,"vertical?":!0,value:$alpha$jscomp$13_map__75445__$1_map__75446__$1$$,
"max-value":1,vertical:!0,"on-change":$on_change_opacity$$,"on-start-drag":$on_start_drag$jscomp$1$$,"on-finish-drag":$on_finish_drag$jscomp$1$$})],null):null]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_harmony__hue-wheel-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("canvas",{width:192,height:192,className:"main_ui_workspace_colorpicker_harmony__hue-wheel",onPointerUp:$handle_stop_drag$jscomp$1$$,onLostPointerCapture:$handle_stop_drag$jscomp$1$$,onClick:$calculate_pos$jscomp$1$$,
onPointerMove:function($p1__75443_SHARP_$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($dragging_QMARK_$jscomp$1$$))?$calculate_pos$jscomp$1$$($p1__75443_SHARP_$$):null},ref:$canvas_ref$$,onPointerDown:$handle_start_drag$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{pointerEvents:"none",left:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$144_pos_current$$),top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$144_pos_current$$)},className:"main_ui_workspace_colorpicker_harmony__handler"}),
(0,$APP.$rumext$v2$jsx$$)("div",{style:{left:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($pos_complement$$),top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($pos_complement$$),cursor:"pointer"},onClick:function(){var $G__75466_new_hue$jscomp$1$$=$APP.$cljs$core$mod$$($hue$jscomp$4$$+180,360),$hex$jscomp$12$$=$app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__75466_new_hue$jscomp$1$$,$saturation$jscomp$2$$,
$value$jscomp$767$$],null)),$b$jscomp$358_vec__75463$$=$APP.$app$common$types$color$hex__GT_rgb$$($hex$jscomp$12$$),$r$jscomp$141$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$358_vec__75463$$,0,null),$g$jscomp$164$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$358_vec__75463$$,1,null);$b$jscomp$358_vec__75463$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$358_vec__75463$$,2,null);$G__75466_new_hue$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
6,[$APP.$cljs$cst$2955$hex$$,$hex$jscomp$12$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$141$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$164$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$358_vec__75463$$,$APP.$cljs$cst$1884$h$$,$G__75466_new_hue$jscomp$1$$,$APP.$cljs$cst$4052$s$$,$saturation$jscomp$2$$],null);return $on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$34$$.$cljs$core$IFn$_invoke$arity$1$($G__75466_new_hue$jscomp$1$$):$on_change$jscomp$34$$($G__75466_new_hue$jscomp$1$$)},className:"main_ui_workspace_colorpicker_harmony__handler main_ui_workspace_colorpicker_harmony__complement"})]})]})};
$app$main$ui$workspace$colorpicker$hsva$hsva_selector$$=function($disable_opacity$jscomp$3_map__75423_props_75420$$){function $on_change_opacity$jscomp$1$$($G__75441_new_alpha$jscomp$1$$){$G__75441_new_alpha$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$744$alpha$$,$G__75441_new_alpha$jscomp$1$$],null);return $on_change$jscomp$35$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$35$$.$cljs$core$IFn$_invoke$arity$1$($G__75441_new_alpha$jscomp$1$$):$on_change$jscomp$35$$($G__75441_new_alpha$jscomp$1$$)}
function $handle_change_slider$$($key$jscomp$407$$){return function($G__75440_change$jscomp$32_new_value$jscomp$18$$){$G__75440_change$jscomp$32_new_value$jscomp$18$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$key$jscomp$407$$],[$G__75440_change$jscomp$32_new_value$jscomp$18$$]);var $h$jscomp$176_hex$jscomp$13_map__75427$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$color$jscomp$145$$,$G__75440_change$jscomp$32_new_value$jscomp$18$$])),
$g$jscomp$165_map__75427__$1_v$jscomp$653$$=$APP.$cljs$core$__destructure_map$$($h$jscomp$176_hex$jscomp$13_map__75427$$);$h$jscomp$176_hex$jscomp$13_map__75427$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($g$jscomp$165_map__75427__$1_v$jscomp$653$$,$APP.$cljs$cst$1884$h$$);var $r$jscomp$142_s$jscomp$563$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($g$jscomp$165_map__75427__$1_v$jscomp$653$$,$APP.$cljs$cst$4052$s$$);$g$jscomp$165_map__75427__$1_v$jscomp$653$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($g$jscomp$165_map__75427__$1_v$jscomp$653$$,
$APP.$cljs$cst$2947$v$$);$h$jscomp$176_hex$jscomp$13_map__75427$$=$app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$h$jscomp$176_hex$jscomp$13_map__75427$$,$r$jscomp$142_s$jscomp$563$$,$g$jscomp$165_map__75427__$1_v$jscomp$653$$],null));var $b$jscomp$359_vec__75428$$=$APP.$app$common$types$color$hex__GT_rgb$$($h$jscomp$176_hex$jscomp$13_map__75427$$);$r$jscomp$142_s$jscomp$563$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$359_vec__75428$$,
0,null);$g$jscomp$165_map__75427__$1_v$jscomp$653$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$359_vec__75428$$,1,null);$b$jscomp$359_vec__75428$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$359_vec__75428$$,2,null);$G__75440_change$jscomp$32_new_value$jscomp$18$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__75440_change$jscomp$32_new_value$jscomp$18$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$2955$hex$$,$h$jscomp$176_hex$jscomp$13_map__75427$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$142_s$jscomp$563$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$165_map__75427__$1_v$jscomp$653$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$359_vec__75428$$],null)]));return $on_change$jscomp$35$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$35$$.$cljs$core$IFn$_invoke$arity$1$($G__75440_change$jscomp$32_new_value$jscomp$18$$):$on_change$jscomp$35$$($G__75440_change$jscomp$32_new_value$jscomp$18$$)}}$disable_opacity$jscomp$3_map__75423_props_75420$$=
$APP.$rumext$v2$util$wrap_props$$($disable_opacity$jscomp$3_map__75423_props_75420$$);var $map__75423__$1_on_finish_drag$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($disable_opacity$jscomp$3_map__75423_props_75420$$),$color$jscomp$145$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75423__$1_on_finish_drag$jscomp$2$$,$APP.$cljs$cst$1284$color$$);$disable_opacity$jscomp$3_map__75423_props_75420$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75423__$1_on_finish_drag$jscomp$2$$,
$APP.$cljs$cst$4039$disable_opacity$$);var $on_change$jscomp$35$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75423__$1_on_finish_drag$jscomp$2$$,$APP.$cljs$cst$4041$on_change$$),$on_start_drag$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75423__$1_on_finish_drag$jscomp$2$$,$cljs$cst$5329$on_start_drag$$);$map__75423__$1_on_finish_drag$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75423__$1_on_finish_drag$jscomp$2$$,$cljs$cst$5333$on_finish_drag$$);
var $alpha$jscomp$14_map__75424__$1$$=$APP.$cljs$core$__destructure_map$$($color$jscomp$145$$),$hue$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$14_map__75424__$1$$,$APP.$cljs$cst$1884$h$$),$saturation$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$14_map__75424__$1$$,$APP.$cljs$cst$4052$s$$),$value$jscomp$768$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$14_map__75424__$1$$,$APP.$cljs$cst$2947$v$$);$alpha$jscomp$14_map__75424__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alpha$jscomp$14_map__75424__$1$$,$APP.$cljs$cst$744$alpha$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_hsva__hsva-selector",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_hsva__hsva-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_colorpicker_hsva__hsva-selector-label",children:"H"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,
{"class":"main_ui_workspace_colorpicker_hsva__hsva-bar",type:$APP.$cljs$cst$2003$hue$$,"max-value":360,value:$hue$jscomp$5$$,"on-change":$handle_change_slider$$($APP.$cljs$cst$1884$h$$),"on-start-drag":$on_start_drag$jscomp$2$$,"on-finish-drag":$map__75423__$1_on_finish_drag$jscomp$2$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_hsva__hsva-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_colorpicker_hsva__hsva-selector-label",children:"S"}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{"class":"main_ui_workspace_colorpicker_hsva__hsva-bar",type:$APP.$cljs$cst$2006$saturation$$,"max-value":1,value:$saturation$jscomp$3$$,"on-change":$handle_change_slider$$($APP.$cljs$cst$4052$s$$),"on-start-drag":$on_start_drag$jscomp$2$$,"on-finish-drag":$map__75423__$1_on_finish_drag$jscomp$2$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_hsva__hsva-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_colorpicker_hsva__hsva-selector-label",children:"V"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{"class":"main_ui_workspace_colorpicker_hsva__hsva-bar",type:$APP.$cljs$cst$260$value$$,"reverse?":!1,"max-value":255,value:$value$jscomp$768$$,"on-change":$handle_change_slider$$($APP.$cljs$cst$2947$v$$),"on-start-drag":$on_start_drag$jscomp$2$$,"on-finish-drag":$map__75423__$1_on_finish_drag$jscomp$2$$})]}),$APP.$cljs$core$not$$($disable_opacity$jscomp$3_map__75423_props_75420$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_hsva__hsva-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_colorpicker_hsva__hsva-selector-label",children:"A"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{"class":"main_ui_workspace_colorpicker_hsva__hsva-bar",type:$APP.$cljs$cst$1718$opacity$$,"max-value":1,value:$alpha$jscomp$14_map__75424__$1$$,"on-change":$on_change_opacity$jscomp$1$$,"on-start-drag":$on_start_drag$jscomp$2$$,
"on-finish-drag":$map__75423__$1_on_finish_drag$jscomp$2$$})]}):null]})};
$app$main$ui$workspace$colorpicker$libraries$libraries$$=function($map__75416_on_add_library_color_props_75415$$){$map__75416_on_add_library_color_props_75415$$=$APP.$rumext$v2$util$wrap_props$$($map__75416_on_add_library_color_props_75415$$);var $current_colors_map__75416__$1$$=$APP.$cljs$core$__destructure_map$$($map__75416_on_add_library_color_props_75415$$),$state$jscomp$1063$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,$APP.$cljs$cst$767$state$$),$on_select_color$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,$cljs$cst$5334$on_select_color$$);$map__75416_on_add_library_color_props_75415$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,$cljs$cst$5335$on_add_library_color$$);var $disable_gradient$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,$APP.$cljs$cst$4040$disable_gradient$$),$disable_opacity$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,
$APP.$cljs$cst$4039$disable_opacity$$),$disable_image$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_colors_map__75416__$1$$,$cljs$cst$5323$disable_image$$),$selected_STAR_$jscomp$1$$=$app$main$ui$hooks$use_shared_state$$($APP.$cljs$cst$4010$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_colorpicker_selected$$),$selected$jscomp$135$$=$APP.$cljs$core$_deref$$($selected_STAR_$jscomp$1$$),$file_id$jscomp$333$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),
$current_colors_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$);$current_colors_map__75416__$1$$=$APP.$cljs$core$_deref$$($current_colors_STAR_$$);var $libraries__$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$libraries$$),$recent_colors$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$recent_colors$$),$recent_colors__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($recent_colors$jscomp$1$$)],
function(){return $APP.$cljs$core$filterv$$($APP.$app$common$types$color$valid_color_QMARK_$$,$recent_colors$jscomp$1$$)}),$library_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"recent",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.recent-colors")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"file",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.file-library")],null)],null)}),$options$jscomp$602$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($library_options$$),$APP.$rumext$v2$adapt$$($libraries__$1$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$333$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($library_options$$,
$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$val$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($lib$jscomp$12$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$app$common$data$name$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($lib$jscomp$12$$)),$APP.$cljs$cst$2245$label$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($lib$jscomp$12$$)],
null)})),$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($libraries__$1$$,$file_id$jscomp$333$$))}),$on_library_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$291$$){return $APP.$cljs$core$reset_BANG_$$($selected_STAR_$jscomp$1$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$291$$,"recent")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$291$$,"file")?$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$291$$):
$APP.$app$common$uuid$parse$$($event$jscomp$291$$))}),$valid_color_QMARK_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disable_gradient$jscomp$1$$),$APP.$rumext$v2$adapt$$($disable_opacity$jscomp$4$$),$APP.$rumext$v2$adapt$$($disable_image$jscomp$1$$)],function($color$jscomp$146$$){return($APP.$cljs$core$not$$($disable_gradient$jscomp$1$$)||$APP.$cljs$core$not$$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$146$$)))&&($APP.$cljs$core$not$$($disable_opacity$jscomp$4$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$146$$)))&&($APP.$cljs$core$not$$($disable_image$jscomp$1$$)||$APP.$cljs$core$not$$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$146$$)))}),$toggle_palette$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$135$$)],function(){$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1547$bottom$$;
$APP.$app$util$dom$add_class_BANG_$$($APP.$goog$dom$getElementByClass$$("color-palette"),"fade-out-down");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3610$textpalette$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$data$workspace$colors$show_palette$$($selected$jscomp$135$$),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"workspace-colorpicker")]))}),$on_color_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1063$$),$APP.$rumext$v2$adapt$$($selected$jscomp$135$$),$APP.$rumext$v2$adapt$$($on_select_color$$)],function($event$jscomp$292$$){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5336$recent$$,$selected$jscomp$135$$)||$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$$,"use-library-color",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"colorpicker",$APP.$cljs$cst$3773$external_library$$,$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$208$file$$,$selected$jscomp$135$$)],null)));return $on_select_color$$.$cljs$core$IFn$_invoke$arity$2$?$on_select_color$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1063$$,
$event$jscomp$292$$):$on_select_color$$($state$jscomp$1063$$,$event$jscomp$292$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$135$$),$APP.$rumext$v2$adapt$$($recent_colors__$1$$),$APP.$rumext$v2$adapt$$($libraries__$1$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$333$$),$APP.$rumext$v2$adapt$$($valid_color_QMARK_$$)],function(){var $file_id__$1$jscomp$9$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$135$$,$APP.$cljs$cst$208$file$$)?
$file_id$jscomp$333$$:$selected$jscomp$135$$,$colors$jscomp$9$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$135$$,$cljs$cst$5336$recent$$)?$APP.$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$02$$($app$common$types$color$sort_colors$$,$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$462$$,$color$jscomp$147_color__$1$jscomp$26$$){$color$jscomp$147_color__$1$jscomp$26$$=$APP.$cljs$core$map_QMARK_$$($color$jscomp$147_color__$1$jscomp$26$$)?
$color$jscomp$147_color__$1$jscomp$26$$:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1284$color$$,$color$jscomp$147_color__$1$jscomp$26$$],null);return $APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$($color$jscomp$147_color__$1$jscomp$26$$,$cljs$cst$5337$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_DOT_libraries_SLASH_id$$,""+($index$jscomp$462$$??""))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($valid_color_QMARK_$$,$APP.$cljs$core$reverse$$($recent_colors__$1$$)))):
$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$463$$,$color$jscomp$148$$){return $APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$($color$jscomp$148$$,$cljs$cst$5337$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_DOT_libraries_SLASH_id$$,""+($index$jscomp$463$$??""))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75413_SHARP_$$){return $app$common$types$color$library_color__GT_color$$($p1__75413_SHARP_$$,$file_id__$1$jscomp$9$$)},
$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($valid_color_QMARK_$$,$APP.$cljs$core$vals$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries__$1$$,$file_id__$1$jscomp$9$$),$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2174$colors$$))))));return $APP.$cljs$core$reset_BANG_$$($current_colors_STAR_$$,
$colors$jscomp$9$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_libraries__libraries",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker_libraries__select-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_colorpicker_libraries__shadow-type-select","data-direction":"up","default-value":function(){var $or__5025__auto__$jscomp$1014$$=$APP.$app$common$data$name$$($selected$jscomp$135$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1014$$)?$or__5025__auto__$jscomp$1014$$:"recent"}(),options:$options$jscomp$602$$,"on-change":$on_library_change$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_libraries__selected-colors",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$135$$,$APP.$cljs$cst$208$file$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$map__75416_on_add_library_color_props_75415$$,className:"main_ui_workspace_colorpicker_libraries__add-color-btn",
children:$APP.$app$main$ui$icons$add$$}):null,(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle_palette$$,className:"main_ui_workspace_colorpicker_libraries__palette-btn",children:$APP.$app$main$ui$icons$swatches$$}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$116$$,$color$jscomp$149$$){$out_arr__44057__auto__$jscomp$116$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{color:$color$jscomp$149$$,"on-click":$on_color_click$$},
$cljs$cst$5337$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_DOT_libraries_SLASH_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($color$jscomp$149$$))));return $out_arr__44057__auto__$jscomp$116$$},[],$current_colors_map__75416__$1$$)]})]})};
$app$main$ui$workspace$colorpicker$ramp$value_saturation_selector$$=function($map__75422_props_75421_saturation$jscomp$4$$){function $calculate_pos$jscomp$2$$($ev$jscomp$9_map__75426_x$jscomp$1240$$){var $map__75425_py$jscomp$11_top$jscomp$13$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($ev$jscomp$9_map__75426_x$jscomp$1240$$)),$bottom$jscomp$7_map__75425__$1$$=$APP.$cljs$core$__destructure_map$$($map__75425_py$jscomp$11_top$jscomp$13$$),$left$jscomp$27_px$jscomp$12$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$7_map__75425__$1$$,$APP.$cljs$cst$257$left$$),$right$jscomp$24$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$7_map__75425__$1$$,$APP.$cljs$cst$258$right$$);$map__75425_py$jscomp$11_top$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$7_map__75425__$1$$,$APP.$cljs$cst$1546$top$$);$bottom$jscomp$7_map__75425__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom$jscomp$7_map__75425__$1$$,
$APP.$cljs$cst$1547$bottom$$);$ev$jscomp$9_map__75426_x$jscomp$1240$$=$APP.$app$util$dom$get_client_position$$($ev$jscomp$9_map__75426_x$jscomp$1240$$);var $map__75426__$1_y$jscomp$463$$=$APP.$cljs$core$__destructure_map$$($ev$jscomp$9_map__75426_x$jscomp$1240$$);$ev$jscomp$9_map__75426_x$jscomp$1240$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75426__$1_y$jscomp$463$$,$APP.$cljs$cst$1499$x$$);$map__75426__$1_y$jscomp$463$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75426__$1_y$jscomp$463$$,
$APP.$cljs$cst$1500$y$$);$left$jscomp$27_px$jscomp$12$$=$APP.$app$common$math$clamp$$(($ev$jscomp$9_map__75426_x$jscomp$1240$$-$left$jscomp$27_px$jscomp$12$$)/($right$jscomp$24$$-$left$jscomp$27_px$jscomp$12$$),0,1);$map__75425_py$jscomp$11_top$jscomp$13$$=255*(1-$APP.$app$common$math$clamp$$(($map__75426__$1_y$jscomp$463$$-$map__75425_py$jscomp$11_top$jscomp$13$$)/($bottom$jscomp$7_map__75425__$1$$-$map__75425_py$jscomp$11_top$jscomp$13$$),0,1));return $on_change$jscomp$36$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change$jscomp$36$$.$cljs$core$IFn$_invoke$arity$2$($left$jscomp$27_px$jscomp$12$$,$map__75425_py$jscomp$11_top$jscomp$13$$):$on_change$jscomp$36$$($left$jscomp$27_px$jscomp$12$$,$map__75425_py$jscomp$11_top$jscomp$13$$)}$map__75422_props_75421_saturation$jscomp$4$$=$APP.$rumext$v2$util$wrap_props$$($map__75422_props_75421_saturation$jscomp$4$$);var $handle_start_drag$jscomp$2_map__75422__$1$$=$APP.$cljs$core$__destructure_map$$($map__75422_props_75421_saturation$jscomp$4$$);$map__75422_props_75421_saturation$jscomp$4$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag$jscomp$2_map__75422__$1$$,$APP.$cljs$cst$2006$saturation$$);var $value$jscomp$769$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag$jscomp$2_map__75422__$1$$,$APP.$cljs$cst$260$value$$),$on_change$jscomp$36$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag$jscomp$2_map__75422__$1$$,$APP.$cljs$cst$4041$on_change$$),$on_start_drag$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag$jscomp$2_map__75422__$1$$,
$cljs$cst$5329$on_start_drag$$),$on_finish_drag$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_start_drag$jscomp$2_map__75422__$1$$,$cljs$cst$5333$on_finish_drag$$),$dragging_QMARK__STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$dragging_QMARK_$jscomp$2$$=$APP.$cljs$core$_deref$$($dragging_QMARK__STAR_$$);$handle_start_drag$jscomp$2_map__75422__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_start_drag$jscomp$3$$)],
function($event$jscomp$293$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$293$$);$APP.$cljs$core$reset_BANG_$$($dragging_QMARK__STAR_$$,!0);return $on_start_drag$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_start_drag$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_start_drag$jscomp$3$$()});var $handle_stop_drag$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_finish_drag$jscomp$3$$)],function($event$jscomp$294$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$294$$);
$APP.$cljs$core$reset_BANG_$$($dragging_QMARK__STAR_$$,!1);return $on_finish_drag$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_finish_drag$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_finish_drag$jscomp$3$$()}),$handle_change_pointer_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calculate_pos$jscomp$2$$),$APP.$rumext$v2$adapt$$($dragging_QMARK_$jscomp$2$$)],function($event$jscomp$295$$){return $APP.$cljs$core$truth_$$($dragging_QMARK_$jscomp$2$$)?
$calculate_pos$jscomp$2$$($event$jscomp$295$$):null});return(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"value-saturation-selector",onPointerDown:$handle_start_drag$jscomp$2_map__75422__$1$$,onPointerUp:$handle_stop_drag$jscomp$2$$,onClick:$calculate_pos$jscomp$2$$,onPointerMove:$handle_change_pointer_move$$,className:"main_ui_workspace_colorpicker_ramp__value-saturation-selector",children:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"ramp-handler",style:{pointerEvents:"none",left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(100*
$map__75422_props_75421_saturation$jscomp$4$$),"%"].join(""),top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(100*(1-$value$jscomp$769$$/255)),"%"].join("")},className:"main_ui_workspace_colorpicker_ramp__handler"})})};
$app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$=function($map__75436__$1_p__75435$$){$map__75436__$1_p__75435$$=$APP.$cljs$core$__destructure_map$$($map__75436__$1_p__75435$$);var $h$jscomp$177_h__$1$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75436__$1_p__75435$$,$APP.$cljs$cst$1884$h$$),$s$jscomp$564_s__$1$jscomp$49$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75436__$1_p__75435$$,$APP.$cljs$cst$4052$s$$),$v$jscomp$654_v__$1$jscomp$32$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75436__$1_p__75435$$,
$APP.$cljs$cst$2947$v$$);$h$jscomp$177_h__$1$jscomp$2$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($h$jscomp$177_h__$1$jscomp$2$$,0);$s$jscomp$564_s__$1$jscomp$49$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($s$jscomp$564_s__$1$jscomp$49$$,0);$v$jscomp$654_v__$1$jscomp$32$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($v$jscomp$654_v__$1$jscomp$32$$,0);var $hsv$jscomp$4$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$h$jscomp$177_h__$1$jscomp$2$$,$s$jscomp$564_s__$1$jscomp$49$$,$v$jscomp$654_v__$1$jscomp$32$$],null),$b$jscomp$360_vec__75437$$=$app$common$types$color$hsv__GT_rgb$$($hsv$jscomp$4$$),$r$jscomp$143$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$360_vec__75437$$,0,null),$g$jscomp$166$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$360_vec__75437$$,1,null);$b$jscomp$360_vec__75437$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$360_vec__75437$$,
2,null);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__75436__$1_p__75435$$,$APP.$cljs$cst$2955$hex$$,$app$common$types$color$hsv__GT_hex$$($hsv$jscomp$4$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1884$h$$,$h$jscomp$177_h__$1$jscomp$2$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$564_s__$1$jscomp$49$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$654_v__$1$jscomp$32$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$143$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$166$$,$APP.$cljs$cst$1509$b$$,
$b$jscomp$360_vec__75437$$]))};
$app$main$ui$workspace$colorpicker$ramp$ramp_selector_STAR_$$=function($on_finish_drag$jscomp$4_props_75442$$){var $on_change$jscomp$37$$=$on_finish_drag$jscomp$4_props_75442$$.onChange,$disable_opacity$jscomp$5$$=$on_finish_drag$jscomp$4_props_75442$$.disableOpacity,$color$jscomp$151$$=$on_finish_drag$jscomp$4_props_75442$$.color,$on_start_drag$jscomp$4$$=$on_finish_drag$jscomp$4_props_75442$$.onStartDrag;$on_finish_drag$jscomp$4_props_75442$$=$on_finish_drag$jscomp$4_props_75442$$.onFinishDrag;var $internal_color_STAR_$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$($color$jscomp$151$$)}),$internal_color$$=$APP.$cljs$core$_deref$$($internal_color_STAR_$$),$h$jscomp$178$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($internal_color$$,$APP.$cljs$cst$1884$h$$),$s$jscomp$565$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($internal_color$$,$APP.$cljs$cst$4052$s$$),$v$jscomp$655$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($internal_color$$,
$APP.$cljs$cst$2947$v$$),$hex$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($internal_color$$,$APP.$cljs$cst$2955$hex$$),$alpha$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($internal_color$$,$APP.$cljs$cst$744$alpha$$),$bullet_color$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($hex$jscomp$14$$),$APP.$rumext$v2$adapt$$($alpha$jscomp$15$$)],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,
$hex$jscomp$14$$,$APP.$cljs$cst$1718$opacity$$,$alpha$jscomp$15$$],null)}),$on_change_value_saturation$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($internal_color$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$37$$)],function($color__$1$jscomp$27_saturation$jscomp$5$$,$value$jscomp$770$$){$color__$1$jscomp$27_saturation$jscomp$5$$=$app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($internal_color$$,
$APP.$cljs$cst$4052$s$$,$color__$1$jscomp$27_saturation$jscomp$5$$),$APP.$cljs$cst$2947$v$$,$value$jscomp$770$$));$APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$$,$color__$1$jscomp$27_saturation$jscomp$5$$);return $on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$27_saturation$jscomp$5$$):$on_change$jscomp$37$$($color__$1$jscomp$27_saturation$jscomp$5$$)}),$on_change_hue$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($internal_color$$),
$APP.$rumext$v2$adapt$$($on_change$jscomp$37$$)],function($color__$1$jscomp$28_hue$jscomp$6$$){$color__$1$jscomp$28_hue$jscomp$6$$=$app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($internal_color$$,$APP.$cljs$cst$1884$h$$,$color__$1$jscomp$28_hue$jscomp$6$$));$APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$$,$color__$1$jscomp$28_hue$jscomp$6$$);return $on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$28_hue$jscomp$6$$):
$on_change$jscomp$37$$($color__$1$jscomp$28_hue$jscomp$6$$)}),$on_change_opacity$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($internal_color$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$37$$)],function($color__$1$jscomp$29_opacity$jscomp$47$$){$color__$1$jscomp$29_opacity$jscomp$47$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($internal_color$$,$APP.$cljs$cst$744$alpha$$,$color__$1$jscomp$29_opacity$jscomp$47$$);$APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$$,
$color__$1$jscomp$29_opacity$jscomp$47$$);return $on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$29_opacity$jscomp$47$$):$on_change$jscomp$37$$($color__$1$jscomp$29_opacity$jscomp$47$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$151$$)],function(){return $APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$$,$app$main$ui$workspace$colorpicker$ramp$enrich_color_map$$($color$jscomp$151$$))});
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$ramp$value_saturation_selector$$,{hue:$h$jscomp$178$$,saturation:$s$jscomp$565$$,value:$v$jscomp$655$$,"on-change":$on_change_value_saturation$$,"on-start-drag":$on_start_drag$jscomp$4$$,"on-finish-drag":$on_finish_drag$jscomp$4_props_75442$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--bullet-size":"52px"},className:"main_ui_workspace_colorpicker_ramp__shade-selector",
children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{color:$bullet_color$$,area:!0}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker_ramp__sliders-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{type:$APP.$cljs$cst$2003$hue$$,"max-value":360,value:$h$jscomp$178$$,"on-change":$on_change_hue$$,"on-start-drag":$on_start_drag$jscomp$4$$,"on-finish-drag":$on_finish_drag$jscomp$4_props_75442$$}),
$APP.$cljs$core$not$$($disable_opacity$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$slider_selector$slider_selector$$,{type:$APP.$cljs$cst$1718$opacity$$,"max-value":1,value:$alpha$jscomp$15$$,"on-change":$on_change_opacity$jscomp$2$$,"on-start-drag":$on_start_drag$jscomp$4$$,"on-finish-drag":$on_finish_drag$jscomp$4_props_75442$$}):null]})]})]})};
$app$main$ui$workspace$colorpicker$opacity__GT_string$$=function($opacity$jscomp$48$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($opacity$jscomp$48$$,$APP.$cljs$cst$1600$multiple$$)?""+$APP.$app$common$data$coalesce$$($opacity$jscomp$48$$)*100:$APP.$cljs$cst$1600$multiple$$};
$app$main$ui$workspace$colorpicker$use_color_picker_css_variables_BANG_$$=function($node_ref$jscomp$3$$,$current_color$jscomp$2$$){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_color$jscomp$2$$)],function(){function $format_hsl$$($G__76214_l$jscomp$112_p__76207$$){var $h__$1$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__76214_l$jscomp$112_p__76207$$,0,null),$G__76213_s$jscomp$566$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__76214_l$jscomp$112_p__76207$$,
1,null);$G__76214_l$jscomp$112_p__76207$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__76214_l$jscomp$112_p__76207$$,2,null);$G__76213_s$jscomp$566$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76213_s$jscomp$566$$*100),"%"].join("");$G__76214_l$jscomp$112_p__76207$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76214_l$jscomp$112_p__76207$$*100),"%"].join("");return $APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$4$("hsl(%s, %s, %s)",
$h__$1$jscomp$3$$,$G__76213_s$jscomp$566$$,$G__76214_l$jscomp$112_p__76207$$):$APP.$cuerdas$core$format$$("hsl(%s, %s, %s)",$h__$1$jscomp$3$$,$G__76213_s$jscomp$566$$,$G__76214_l$jscomp$112_p__76207$$)}var $node$jscomp$396$$=$APP.$rumext$v2$ref_val$$($node_ref$jscomp$3$$),$map__76206__$1_v$jscomp$656$$=$APP.$cljs$core$__destructure_map$$($current_color$jscomp$2$$),$r$jscomp$144_rgb$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76206__$1_v$jscomp$656$$,$APP.$cljs$cst$1727$r$$),
$g$jscomp$167_hue_rgb$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76206__$1_v$jscomp$656$$,$APP.$cljs$cst$1728$g$$),$b$jscomp$361_hsl_from$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76206__$1_v$jscomp$656$$,$APP.$cljs$cst$1509$b$$),$h$jscomp$179_hsl_to$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76206__$1_v$jscomp$656$$,$APP.$cljs$cst$1884$h$$);$map__76206__$1_v$jscomp$656$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76206__$1_v$jscomp$656$$,
$APP.$cljs$cst$2947$v$$);$r$jscomp$144_rgb$jscomp$6$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$r$jscomp$144_rgb$jscomp$6$$,$g$jscomp$167_hue_rgb$$,$b$jscomp$361_hsl_from$$],null);$g$jscomp$167_hue_rgb$$=$app$common$types$color$hsv__GT_rgb$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$h$jscomp$179_hsl_to$$,1,255],null));$b$jscomp$361_hsl_from$$=$APP.$app$common$types$color$hex__GT_hsl$$($app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$h$jscomp$179_hsl_to$$,0,$map__76206__$1_v$jscomp$656$$],null)));$h$jscomp$179_hsl_to$$=$APP.$app$common$types$color$hex__GT_hsl$$($app$common$types$color$hsv__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$h$jscomp$179_hsl_to$$,1,$map__76206__$1_v$jscomp$656$$],null)));$APP.$app$util$dom$set_css_property_BANG_$$($node$jscomp$396$$,"--color",$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",
$r$jscomp$144_rgb$jscomp$6$$));$APP.$app$util$dom$set_css_property_BANG_$$($node$jscomp$396$$,"--hue-rgb",$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$g$jscomp$167_hue_rgb$$));$APP.$app$util$dom$set_css_property_BANG_$$($node$jscomp$396$$,"--saturation-grad-from",$format_hsl$$($b$jscomp$361_hsl_from$$));return $APP.$app$util$dom$set_css_property_BANG_$$($node$jscomp$396$$,"--saturation-grad-to",$format_hsl$$($h$jscomp$179_hsl_to$$))})};
$app$main$ui$workspace$colorpicker$colorpicker$$=function($map__76227_on_token_change$jscomp$3_props_76222$$){$map__76227_on_token_change$jscomp$3_props_76222$$=$APP.$rumext$v2$util$wrap_props$$($map__76227_on_token_change$jscomp$3_props_76222$$);var $map__76227__$1_origin$jscomp$62$$=$APP.$cljs$core$__destructure_map$$($map__76227_on_token_change$jscomp$3_props_76222$$),$tab$jscomp$7_toggle_token_color$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$APP.$cljs$cst$5092$tab$$),
$on_change$jscomp$38$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$APP.$cljs$cst$4041$on_change$$),$data$jscomp$457$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$APP.$cljs$cst$142$data$$),$disable_gradient$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$APP.$cljs$cst$4040$disable_gradient$$),$disable_opacity$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,
$APP.$cljs$cst$4039$disable_opacity$$);$map__76227_on_token_change$jscomp$3_props_76222$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5322$on_token_change$$);var $combined_tokens$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5339$combined_tokens$$),$disable_image$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5323$disable_image$$),
$applied_token$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5324$applied_token$$),$on_accept$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$APP.$cljs$cst$2436$on_accept$$),$color_origin$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5326$color_origin$$);$map__76227__$1_origin$jscomp$62$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,
$APP.$cljs$cst$1770$origin$$);var $state$jscomp$1064$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$colorpicker$$),$node_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(),$should_update_QMARK_$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$token_color$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1207$token_color$$),$color_style_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($tab$jscomp$7_toggle_token_color$$,
$cljs$cst$5340$direct_color$$)),$color_style$jscomp$1$$=$APP.$cljs$core$_deref$$($color_style_STAR_$$);$tab$jscomp$7_toggle_token_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color_style$jscomp$1$$)],function(){var $new_style$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5340$direct_color$$,$color_style$jscomp$1$$)?$APP.$cljs$cst$1207$token_color$$:$cljs$cst$5340$direct_color$$;return $APP.$cljs$core$reset_BANG_$$($color_style_STAR_$$,
$new_style$jscomp$1$$)});var $picking_color_QMARK_$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$colorpicker$picking_color_QMARK_$$),$picked_color$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$colorpicker$picked_color$$),$picked_color_select$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$colorpicker$picked_color_select$$),$current_color$jscomp$3$$=$APP.$cljs$cst$4048$current_color$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$),$active_fill_tab$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$457$$))?
$APP.$cljs$cst$1596$image$$:function(){var $G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$=$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$457$$);if($APP.$cljs$core$truth_$$($G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$))switch($G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$),$G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$=$G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$.$fqn$:null,$G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$){case "linear":return $APP.$cljs$cst$4047$linear_gradient$$;case "radial":return $APP.$cljs$cst$4049$radial_gradient$$;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76228_G__76228__$1_temp__5823__auto__$jscomp$220$$)].join(""));}else return $APP.$cljs$cst$1284$color$$}(),$active_color_tab_STAR_$$=
$app$main$ui$hooks$use_persisted_state$$($cljs$cst$5341$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_SLASH_color_tab$$,"ramp"),$active_color_tab$$=$APP.$cljs$core$_deref$$($active_color_tab_STAR_$$),$drag_QMARK__STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$drag_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($drag_QMARK__STAR_$$),$type$jscomp$587$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_color_tab$$,"hsva")?$cljs$cst$5342$hsv$$:$cljs$cst$5310$rgb$$,
$fill_image_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$color_type$jscomp$2_selected_mode$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1064$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1284$color$$);switch($color_type$jscomp$2_selected_mode$$ instanceof $APP.$cljs$core$Keyword$$?$color_type$jscomp$2_selected_mode$$.$fqn$:null){case "linear-gradient":case "radial-gradient":$color_type$jscomp$2_selected_mode$$=$APP.$cljs$cst$1708$gradient$$}var $disabled_color_accept_QMARK_$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_type$jscomp$2_selected_mode$$,$APP.$cljs$cst$1596$image$$)&&$APP.$cljs$core$not$$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$)),$on_fill_image_success$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($image$jscomp$36$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_color$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1596$image$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$select_keys$$($image$jscomp$36$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1710$mtype$$,$APP.$cljs$cst$723$name$$],null)),$APP.$cljs$cst$1711$keep_aspect_ratio$$,!0)],null),$APP.$cljs$core$not$$($drag_QMARK_$jscomp$1$$)))}),$on_fill_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$$($fill_image_ref$$))}),
$on_fill_image_selected$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($file$jscomp$151$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$media$upload_fill_image$$($file$jscomp$151$$,$on_fill_image_success$$))}),$handle_change_keep_aspect_ratio$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_color$jscomp$3$$)],function(){var $keep_aspect_ratio_QMARK_$$=$APP.$cljs$core$not$$($APP.$cljs$cst$1711$keep_aspect_ratio$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$))),
$image$jscomp$37$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$),$APP.$cljs$cst$1711$keep_aspect_ratio$$,$keep_aspect_ratio_QMARK_$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$update_colorpicker_color$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1596$image$$,$image$jscomp$37$$],null),!0),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$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$$,"toggle-image-aspect-ratio",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:colorpicker",$cljs$cst$5343$checked$$,$keep_aspect_ratio_QMARK_$$],null))]))}),$on_change_tab$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76216_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($active_color_tab_STAR_$$,$p1__76216_SHARP_$$)}),$handle_change_mode$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($value$jscomp$771$$){switch($value$jscomp$771$$ instanceof $APP.$cljs$core$Keyword$$?$value$jscomp$771$$.$fqn$:null){case "color":return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$activate_colorpicker_color$$());case "gradient":return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$activate_colorpicker_gradient$$($APP.$cljs$cst$4047$linear_gradient$$));
case "image":return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$activate_colorpicker_image$$());default:return null}}),$handle_change_color$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_color$jscomp$3$$),$APP.$rumext$v2$adapt$$($drag_QMARK_$jscomp$1$$)],function($color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$){$color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$current_color$jscomp$3$$,
$color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$]));$color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$=$app$main$data$workspace$colors$materialize_color_components$$($color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_color$$($color$jscomp$152_color__$1$jscomp$30_color__$2$jscomp$2$$,$APP.$cljs$core$not$$($drag_QMARK_$jscomp$1$$)))}),$handle_click_picker$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($picking_color_QMARK_$$)],function(){if($APP.$cljs$core$truth_$$($picking_color_QMARK_$$))return $APP.$app$main$data$modal$disallow_click_outside_BANG_$$(),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$stop_picker$$());$app$main$data$modal$allow_click_outside_BANG_$$();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$start_picker$$())}),
$on_select_library_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$457$$),$APP.$rumext$v2$adapt$$($handle_change_color$jscomp$1$$)],function($G__76232__$jscomp$2835_color__$1$jscomp$31$$,$color$jscomp$153$$){if($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$153$$)!=null&&$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$457$$)!=null)return $G__76232__$jscomp$2835_color__$1$jscomp$31$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2955$hex$$,$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$153$$),$APP.$cljs$cst$744$alpha$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$153$$)],null),$handle_change_color$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$handle_change_color$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__76232__$jscomp$2835_color__$1$jscomp$31$$):$handle_change_color$jscomp$1$$($G__76232__$jscomp$2835_color__$1$jscomp$31$$);$G__76232__$jscomp$2835_color__$1$jscomp$31$$=
$APP.$app$common$data$without_qualified$cljs$0core$0IFn$0_invoke$0arity$01$$($color$jscomp$153$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$add_recent_color$$($G__76232__$jscomp$2835_color__$1$jscomp$31$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$apply_color_from_colorpicker$$($G__76232__$jscomp$2835_color__$1$jscomp$31$$)]));return $on_change$jscomp$38$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$38$$.$cljs$core$IFn$_invoke$arity$1$($G__76232__$jscomp$2835_color__$1$jscomp$31$$):$on_change$jscomp$38$$($G__76232__$jscomp$2835_color__$1$jscomp$31$$)}),$on_add_library_color$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1064$$)],function(){var $JSCompiler_temp_const$jscomp$1624$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$1626_color$jscomp$inline_8478$$=
$app$main$data$workspace$colors$get_color_from_colorpicker_state$$($state$jscomp$1064$$);$JSCompiler_inline_result$jscomp$1626_color$jscomp$inline_8478$$=$APP.$app$main$data$workspace$libraries$add_color$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_inline_result$jscomp$1626_color$jscomp$inline_8478$$,null);return $JSCompiler_temp_const$jscomp$1624$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1626_color$jscomp$inline_8478$$)}),$on_start_drag$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($drag_QMARK__STAR_$$),
$APP.$rumext$v2$adapt$$($node_ref$jscomp$4$$)],function(){$APP.$cljs$core$reset_BANG_$$($should_update_QMARK_$$,!1);$APP.$cljs$core$reset_BANG_$$($drag_QMARK__STAR_$$,!0);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($APP.$rumext$v2$ref_val$$($node_ref$jscomp$4$$)))}),$on_finish_drag$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($drag_QMARK__STAR_$$),$APP.$rumext$v2$adapt$$($node_ref$jscomp$4$$)],
function(){$APP.$cljs$core$reset_BANG_$$($should_update_QMARK_$$,!0);$APP.$cljs$core$reset_BANG_$$($drag_QMARK__STAR_$$,!1);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($APP.$rumext$v2$ref_val$$($node_ref$jscomp$4$$)))}),$on_color_accept$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1064$$)],function(){var $G__76233_76295$$=$app$main$data$workspace$colors$get_color_from_colorpicker_state$$($state$jscomp$1064$$);
$on_accept$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$?$on_accept$jscomp$7$$.$cljs$core$IFn$_invoke$arity$1$($G__76233_76295$$):$on_accept$jscomp$7$$($G__76233_76295$$);return $APP.$app$main$data$modal$hide_BANG_$$()}),$options$jscomp$603$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color_type$jscomp$2_selected_mode$$),$APP.$rumext$v2$adapt$$($disable_gradient$jscomp$2$$),$APP.$rumext$v2$adapt$$($disable_image$jscomp$2$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.solid")],null)],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$not$$($disable_gradient$jscomp$2$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1708$gradient$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.gradient")],null)],null):null,$APP.$cljs$core$not$$($disable_image$jscomp$2$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1596$image$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.image")],
null)],null):null]))}),$handle_change_gradient_selected_stop$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$464$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$select_colorpicker_gradient_stop$$($index$jscomp$464$$))}),$handle_change_gradient_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($type__$1$jscomp$14$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$activate_colorpicker_gradient$$($type__$1$jscomp$14$$))}),
$handle_gradient_change_stop$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1064$$)],function($prev_stop$$,$new_stop$jscomp$2$$){var $stops$jscomp$17$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76217_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__76217_SHARP_$$,$prev_stop$$)?$new_stop$jscomp$2$$:$p1__76217_SHARP_$$},$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($stops$jscomp$17$$))}),$handle_gradient_add_stop_auto$$=$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$workspace$colors$update_colorpicker_add_auto$$())}),$handle_gradient_add_stop_preview$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($offset$jscomp$197$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_add_stop$$($offset$jscomp$197$$))}),
$handle_gradient_remove_stop$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$465$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$remove_gradient_stop$cljs$0core$0IFn$0_invoke$0arity$01$$($index$jscomp$465$$))}),$handle_stop_edit_start$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($should_update_QMARK_$$,!1)}),$handle_stop_edit_finish$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($should_update_QMARK_$$,
!0);return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$sort_colorpicker_stops$$())})}),$handle_rotate_stops$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1064$$)],function(){var $end_p$jscomp$2_gradient$jscomp$27$$=$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$),$mtx$jscomp$8$$=
$APP.$app$common$geom$matrix$rotate_matrix$$.$cljs$core$IFn$_invoke$arity$2$(90,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(.5,.5)),$start_p$jscomp$9$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1713$start_x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$),$APP.$cljs$cst$1714$start_y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$)),$mtx$jscomp$8$$);
$end_p$jscomp$2_gradient$jscomp$27$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1715$end_x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$),$APP.$cljs$cst$1716$end_y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$)),$mtx$jscomp$8$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_gradient$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1713$start_x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$9$$),$APP.$cljs$cst$1714$start_y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$9$$),$APP.$cljs$cst$1715$end_x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$),$APP.$cljs$cst$1716$end_y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$2_gradient$jscomp$27$$)],null)))}),$handle_reverse_stops$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$))],
function(){var $stops$jscomp$18$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($it$jscomp$251$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($it$jscomp$251$$,$APP.$cljs$cst$195$offset$$,function($p1__76218_SHARP_$$){return 1+-1*$p1__76218_SHARP_$$})},$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$))));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($stops$jscomp$18$$))}),$handle_reorder_stops$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$))],function($from_index$jscomp$11_new_stops$jscomp$1$$,$to_index$jscomp$18$$){var $stops$jscomp$19_stops__$1$jscomp$7$$=$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$);
$from_index$jscomp$11_new_stops$jscomp$1$$=$APP.$app$common$data$insert_at_index$$($stops$jscomp$19_stops__$1$jscomp$7$$,$to_index$jscomp$18$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$19_stops__$1$jscomp$7$$,$from_index$jscomp$11_new_stops$jscomp$1$$)],null));$stops$jscomp$19_stops__$1$jscomp$7$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$3$(function($p1__76220_SHARP_$$,
$p2__76219_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p2__76219_SHARP_$$,$APP.$cljs$cst$195$offset$$,$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($p1__76220_SHARP_$$))},$stops$jscomp$19_stops__$1$jscomp$7$$,$from_index$jscomp$11_new_stops$jscomp$1$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($stops$jscomp$19_stops__$1$jscomp$7$$))}),$handle_change_gradient_opacity$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($value$jscomp$772$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_gradient_opacity$$($value$jscomp$772$$/100))}),$render_wasm_QMARK_$jscomp$1$$=$app$main$features$use_feature$$("render-wasm/v1"),$tabs$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4400$aria_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.rgba"),$APP.$cljs$cst$1705$icon$$,"rgba",$APP.$cljs$cst$266$id$$,"ramp"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4400$aria_label$$,"Harmony",$APP.$cljs$cst$1705$icon$$,"rgba-complementary",$APP.$cljs$cst$266$id$$,"harmony"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4400$aria_label$$,
"HSVA",$APP.$cljs$cst$1705$icon$$,"hsva",$APP.$cljs$cst$266$id$$,"hsva"],null)],null)}),$show_tokens_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5321$color_selection$$,null,$APP.$cljs$cst$1723$stroke_color$$,null,$APP.$cljs$cst$1392$fill$$,null],null),null),$color_origin$jscomp$2$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$initialize_colorpicker$$($on_change$jscomp$38$$,
$active_fill_tab$$));return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$store$emit_BANG_$$,$app$main$data$workspace$colors$finalize_colorpicker$$())});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$457$$)],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($should_update_QMARK_$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker$$($data$jscomp$457$$)):
null});$app$main$ui$workspace$colorpicker$use_color_picker_css_variables_BANG_$$($node_ref$jscomp$4$$,$current_color$jscomp$3$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($picking_color_QMARK_$$),$APP.$rumext$v2$adapt$$($picked_color$$),$APP.$rumext$v2$adapt$$($picked_color_select$$)],function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($picking_color_QMARK_$$)?$APP.$cljs$core$truth_$$($picked_color$$)?$picked_color_select$$:$picked_color$$:
$picking_color_QMARK_$$)){var $G__76247_r$jscomp$145$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($picked_color$$,0,null),$g$jscomp$168$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($picked_color$$,1,null),$b$jscomp$362$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($picked_color$$,2,null),$alpha$jscomp$16$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($picked_color$$,3,null),$hex$jscomp$15$$=$APP.$app$common$types$color$rgb__GT_hex$$(new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__76247_r$jscomp$145$$,$g$jscomp$168$$,$b$jscomp$362$$],null)),$v$jscomp$657_vec__76244$$=$app$common$types$color$hex__GT_hsv$$($hex$jscomp$15$$),$h$jscomp$180$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$657_vec__76244$$,0,null),$s$jscomp$567$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$657_vec__76244$$,1,null);$v$jscomp$657_vec__76244$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$657_vec__76244$$,
2,null);$G__76247_r$jscomp$145$$=new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$2955$hex$$,$hex$jscomp$15$$,$APP.$cljs$cst$1727$r$$,$G__76247_r$jscomp$145$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$168$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$362$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$180$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$567$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$657_vec__76244$$,$APP.$cljs$cst$744$alpha$$,$alpha$jscomp$16$$/255],null);return $handle_change_color$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$handle_change_color$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__76247_r$jscomp$145$$):$handle_change_color$jscomp$1$$($G__76247_r$jscomp$145$$)}return null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$node_ref$jscomp$4$$,style:{touchAction:"none"},className:"main_ui_workspace_colorpicker__colorpicker",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker__top-actions",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_colorpicker__top-actions-right",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_style$jscomp$1$$,$cljs$cst$5340$direct_color$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1708$gradient$$,$color_type$jscomp$2_selected_mode$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker__opacity-input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_colorpicker__icon-text",
children:"%"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{value:$app$main$ui$workspace$colorpicker$opacity__GT_string$$($APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$457$$)),onChange:$handle_change_gradient_opacity$$,"default":100,"data-testid":"opacity-global-input",min:0,max:100})]}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_style$jscomp$1$$,$cljs$cst$5340$direct_color$$)&&($APP.$cljs$core$not$$($disable_gradient$jscomp$2$$)||
$APP.$cljs$core$not$$($disable_image$jscomp$2$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$color_type$jscomp$2_selected_mode$$,options:$options$jscomp$603$$,"on-change":$handle_change_mode$$})}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__76227__$1_origin$jscomp$62$$,$cljs$cst$5327$sidebar$$)&&$show_tokens_QMARK_$$&&$token_color$jscomp$1$$?$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,
{selected:$color_style$jscomp$1$$,"on-change":$tab$jscomp$7_toggle_token_color$$,name:"color-style",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"swatches",value:$cljs$cst$5340$direct_color$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.color"),id:"opt-color"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"tokens",value:$APP.$cljs$cst$1207$token_color$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.colorpicker.color-tokens"),
id:"opt-token-color"})]}):null]}),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_type$jscomp$2_selected_mode$$,$APP.$cljs$cst$1596$image$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_style$jscomp$1$$,$cljs$cst$5340$direct_color$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_click_picker$$,className:"main_ui_workspace_colorpicker__picker-btn "+($APP.$cljs$core$truth_$$($picking_color_QMARK_$$)?"main_ui_workspace_colorpicker__selected":""),children:$APP.$app$main$ui$icons$picker$$}):
null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_style$jscomp$1$$,$APP.$cljs$cst$1207$token_color$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__token-color-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.colorpicker.color-tokens")}):null]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_style$jscomp$1$$,$cljs$cst$5340$direct_color$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_type$jscomp$2_selected_mode$$,
$APP.$cljs$cst$1708$gradient$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$gradients$gradients_STAR_$$,{stops:$render_wasm_QMARK_$jscomp$1$$?$APP.$cljs$core$vec$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(16,$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$))):$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$),onSelectStop:$handle_change_gradient_selected_stop$$,onStopEditStart:$handle_stop_edit_start$$,onReverseStops:$handle_reverse_stops$$,
onAddStopPreview:$handle_gradient_add_stop_preview$$,onChangeStop:$handle_gradient_change_stop$$,onStopEditFinish:$handle_stop_edit_finish$$,editingStop:$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$),onChangeType:$handle_change_gradient_type$$,onReorderStops:$handle_reorder_stops$$,type:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1064$$),onRemoveStop:$handle_gradient_remove_stop$$,onAddStopAuto:$handle_gradient_add_stop_auto$$,
onRotateStops:$handle_rotate_stops$$}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_type$jscomp$2_selected_mode$$,$APP.$cljs$cst$1596$image$$)?function(){var $uri$jscomp$109$$=$APP.$app$config$resolve_file_media$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$)),$keep_aspect_ratio_QMARK_$jscomp$1$$=$APP.$cljs$cst$1711$keep_aspect_ratio$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$));
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker__select-image",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__content",children:$APP.$cljs$core$truth_$$($APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$))?(0,$APP.$rumext$v2$jsx$$)("img",{src:$uri$jscomp$109$$}):null}),$APP.$cljs$cst$1596$image$$.$cljs$core$IFn$_invoke$arity$1$($current_color$jscomp$3$$)!=null?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_colorpicker__checkbox-option",children:(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:"keep-aspect-ratio",className:$APP.$cljs$core$truth_$$($keep_aspect_ratio_QMARK_$jscomp$1$$)?"checked":"",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:$APP.$cljs$core$truth_$$($keep_aspect_ratio_QMARK_$jscomp$1$$)?"checked":"",children:$APP.$cljs$core$truth_$$($keep_aspect_ratio_QMARK_$jscomp$1$$)?$APP.$app$main$ui$icons$status_tick$$:null}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.keep-aspect-ratio"),
(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"keep-aspect-ratio",checked:$keep_aspect_ratio_QMARK_$jscomp$1$$,onChange:$handle_change_keep_aspect_ratio$$})]})}):null,(0,$APP.$rumext$v2$jsxs$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.choose-image"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.choose-image"),onClick:$on_fill_image_click$$,className:"main_ui_workspace_colorpicker__choose-image",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("media.choose-image"),
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,{"input-id":"fill-image-upload",accept:"image/jpeg,image/png",multi:!1,ref:$fill_image_ref$$,"on-selected":$on_fill_image_selected$$})]})]})}():(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__colorpicker-tabs",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,{tabs:$tabs$jscomp$3$$,
selected:$active_color_tab$$,onChange:$on_change_tab$$,children:$APP.$cljs$core$truth_$$($picking_color_QMARK_$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_colorpicker__picker-detail-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__center-circle"}),(0,$APP.$rumext$v2$jsx$$)("canvas",{id:"picker-detail",width:256,height:140,className:"main_ui_workspace_colorpicker__picker-detail"})]}):function(){switch($active_color_tab$$){case "ramp":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$ramp$ramp_selector_STAR_$$,
{color:$current_color$jscomp$3$$,disableOpacity:$disable_opacity$jscomp$6$$,onChange:$handle_change_color$jscomp$1$$,onStartDrag:$on_start_drag$jscomp$5$$,onFinishDrag:$on_finish_drag$jscomp$5$$});case "harmony":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$harmony$harmony_selector$$,{color:$current_color$jscomp$3$$,"disable-opacity":$disable_opacity$jscomp$6$$,"on-change":$handle_change_color$jscomp$1$$,"on-start-drag":$on_start_drag$jscomp$5$$});case "hsva":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$hsva$hsva_selector$$,
{color:$current_color$jscomp$3$$,"disable-opacity":$disable_opacity$jscomp$6$$,"on-change":$handle_change_color$jscomp$1$$,"on-start-drag":$on_start_drag$jscomp$5$$,"on-finish-drag":$on_finish_drag$jscomp$5$$});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($active_color_tab$$)].join(""));}}()})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_inputs$color_inputs$$,{type:$type$jscomp$587$$,"disable-opacity":$disable_opacity$jscomp$6$$,
color:$current_color$jscomp$3$$,"on-change":$handle_change_color$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$libraries$libraries$$,{state:$state$jscomp$1064$$,"current-color":$current_color$jscomp$3$$,"disable-gradient":$disable_gradient$jscomp$2$$,"disable-opacity":$disable_opacity$jscomp$6$$,"disable-image":$disable_image$jscomp$2$$,"on-select-color":$on_select_library_color$$,"on-add-library-color":$on_add_library_color$jscomp$1$$})]})]}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$color_tokens$token_section_STAR_$$,
{combinedTokens:$combined_tokens$jscomp$3$$,onTokenChange:$map__76227_on_token_change$jscomp$3_props_76222$$,appliedToken:$applied_token$jscomp$3$$,colorOrigin:$color_origin$jscomp$2$$})]}),$APP.$cljs$core$fn_QMARK_$$($on_accept$jscomp$7$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_colorpicker__actions",children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_color_accept$$,disabled:$disabled_color_accept_QMARK_$$,className:"main_ui_workspace_colorpicker__accept-color "+($disabled_color_accept_QMARK_$$?
"main_ui_workspace_colorpicker__btn-disabled":""),children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.save-color")})}):null]})};
$app$main$ui$workspace$colorpicker$calculate_position$$=function($left_offset_map__76257__$1_p__76256_rulers_QMARK_$$,$position$jscomp$184$$,$x$jscomp$1241$$,$y$jscomp$464$$,$gradient_QMARK_$jscomp$1_max_y$jscomp$2$$){$left_offset_map__76257__$1_p__76256_rulers_QMARK_$$=$APP.$cljs$core$__destructure_map$$($left_offset_map__76257__$1_p__76256_rulers_QMARK_$$);$gradient_QMARK_$jscomp$1_max_y$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($left_offset_map__76257__$1_p__76256_rulers_QMARK_$$,
$APP.$cljs$cst$1511$height$$)-($APP.$cljs$core$truth_$$($gradient_QMARK_$jscomp$1_max_y$jscomp$2$$)?820:510);$left_offset_map__76257__$1_p__76256_rulers_QMARK_$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$rulers_QMARK_$$);$left_offset_map__76257__$1_p__76256_rulers_QMARK_$$=$APP.$cljs$core$truth_$$($left_offset_map__76257__$1_p__76256_rulers_QMARK_$$)?40:18;var $top_offset$$=""+($y$jscomp$464$$-70)+"px",$max_height_top$$=["calc(100vh - ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($top_offset$$)].join("");
return $x$jscomp$1241$$==null||$y$jscomp$464$$==null?{left:"auto",right:"16rem",top:"4rem",maxHeight:"calc(100vh - 4rem)"}:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$184$$,$APP.$cljs$cst$257$left$$)?$y$jscomp$464$$>$gradient_QMARK_$jscomp$1_max_y$jscomp$2$$?{left:""+($x$jscomp$1241$$-324)+"px",bottom:"1rem",maxHeight:"calc(100vh -1rem"}:{left:""+($x$jscomp$1241$$-324)+"px",top:$top_offset$$,maxHeight:$max_height_top$$}:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$184$$,
$APP.$cljs$cst$258$right$$)?$y$jscomp$464$$>$gradient_QMARK_$jscomp$1_max_y$jscomp$2$$?{left:""+($x$jscomp$1241$$+80??"")+"px",bottom:"1rem",maxHeight:"calc(100vh -1rem"}:{left:""+($x$jscomp$1241$$+80??"")+"px",top:$top_offset$$,maxHeight:$max_height_top$$}:$y$jscomp$464$$>$gradient_QMARK_$jscomp$1_max_y$jscomp$2$$?{left:""+($x$jscomp$1241$$+$left_offset_map__76257__$1_p__76256_rulers_QMARK_$$??"")+"px",bottom:"1rem",maxHeight:"calc(100vh -1rem"}:{left:""+($x$jscomp$1241$$+$left_offset_map__76257__$1_p__76256_rulers_QMARK_$$??
"")+"px",top:$top_offset$$,maxHeight:$max_height_top$$}};
$app$main$ui$workspace$colorpicker$group_sets$$=function($sets$jscomp$16$$){return $APP.$cljs$core$flatten$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($grouped_sets_p__76263$$){var $group$jscomp$45$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($grouped_sets_p__76263$$,0,null);$grouped_sets_p__76263$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($grouped_sets_p__76263$$,1,null);return $APP.$cljs$core$truth_$$($group$jscomp$45$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$1592$group$$,$group$jscomp$45$$,$APP.$cljs$cst$2090$sets$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$882_p__76267$$){var $map__76268__$1_set$jscomp$15$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$882_p__76267$$);$id$jscomp$882_p__76267$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76268__$1_set$jscomp$15$$,$APP.$cljs$cst$266$id$$);$map__76268__$1_set$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76268__$1_set$jscomp$15$$,
$APP.$cljs$cst$203$set$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,$id$jscomp$882_p__76267$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$core$last$$($APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($map__76268__$1_set$jscomp$15$$,/\//))],null)},$grouped_sets_p__76263$$),$APP.$cljs$cst$2082$tokens$$,$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$2082$tokens$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$grouped_sets_p__76263$$]))))],null):$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$883_p__76269$$){var $map__76270__$1_tokens$jscomp$37$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$883_p__76269$$);$id$jscomp$883_p__76269$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76270__$1_tokens$jscomp$37$$,$APP.$cljs$cst$266$id$$);var $set$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76270__$1_tokens$jscomp$37$$,
$APP.$cljs$cst$203$set$$);$map__76270__$1_tokens$jscomp$37$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76270__$1_tokens$jscomp$37$$,$APP.$cljs$cst$2082$tokens$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1592$group$$,null,$APP.$cljs$cst$2090$sets$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,$id$jscomp$883_p__76269$$,$APP.$cljs$cst$723$name$$,
$set$jscomp$16$$],null)],null),$APP.$cljs$cst$2082$tokens$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$map__76270__$1_tokens$jscomp$37$$)],null)},$grouped_sets_p__76263$$)},$APP.$cljs$core$group_by$$(function($map__76275__$1_p__76274_set$jscomp$17$$){$map__76275__$1_p__76274_set$jscomp$17$$=$APP.$cljs$core$__destructure_map$$($map__76275__$1_p__76274_set$jscomp$17$$);$map__76275__$1_p__76274_set$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76275__$1_p__76274_set$jscomp$17$$,
$APP.$cljs$cst$203$set$$);return $APP.$cljs$core$truth_$$($APP.$cuerdas$core$includes_QMARK_$$($map__76275__$1_p__76274_set$jscomp$17$$,"/"))?$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("/",$APP.$cljs$core$butlast$$($APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($map__76275__$1_p__76274_set$jscomp$17$$,/\//))):null},$sets$jscomp$16$$)))};
$app$main$ui$workspace$colorpicker$combine_groups_with_resolved$$=function($groups$jscomp$3$$,$resolved_tokens$jscomp$24$$){var $token_map$jscomp$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$identity$$),$resolved_tokens$jscomp$24$$));return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($group$jscomp$46_p__76278$$){var $map__76279__$1_tokens$jscomp$38$$=
$APP.$cljs$core$__destructure_map$$($group$jscomp$46_p__76278$$);$group$jscomp$46_p__76278$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76279__$1_tokens$jscomp$38$$,$APP.$cljs$cst$1592$group$$);var $sets$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76279__$1_tokens$jscomp$38$$,$APP.$cljs$cst$2090$sets$$);$map__76279__$1_tokens$jscomp$38$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76279__$1_tokens$jscomp$38$$,$APP.$cljs$cst$2082$tokens$$);
return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1592$group$$,$group$jscomp$46_p__76278$$,$APP.$cljs$cst$2090$sets$$,$sets$jscomp$17$$,$APP.$cljs$cst$2082$tokens$$,$APP.$cljs$core$vec$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76277_SHARP_$$){var $or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$=$p1__76277_SHARP_$$==null;if($or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$)return $or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$;
$or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$=$APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($p1__76277_SHARP_$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$)?$or__5025__auto__$jscomp$1015_or__5025__auto____$1$jscomp$107$$:$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($p1__76277_SHARP_$$)==null},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76276_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token_map$jscomp$1$$,
$p1__76276_SHARP_$$)},$map__76279__$1_tokens$jscomp$38$$)))],null)},$groups$jscomp$3$$)};
$app$main$ui$workspace$colorpicker$filter_non_empty_sets$$=function($sets$jscomp$18$$){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($map__76282__$1_p__76281_tokens$jscomp$39$$){$map__76282__$1_p__76281_tokens$jscomp$39$$=$APP.$cljs$core$__destructure_map$$($map__76282__$1_p__76281_tokens$jscomp$39$$);$map__76282__$1_p__76281_tokens$jscomp$39$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76282__$1_p__76281_tokens$jscomp$39$$,$APP.$cljs$cst$2082$tokens$$);
return $APP.$cljs$core$some$$(function($p1__76280_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76280_SHARP_$$),$APP.$cljs$cst$1284$color$$)},$map__76282__$1_p__76281_tokens$jscomp$39$$)},$sets$jscomp$18$$)};
$app$main$ui$workspace$colorpicker$add_tokens_to_sets$$=function($sets$jscomp$19$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($s$jscomp$568$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$203$set$$,$APP.$app$common$types$tokens_lib$get_name$$($s$jscomp$568$$),$APP.$cljs$cst$266$id$$,$APP.$app$common$types$tokens_lib$get_id$$($s$jscomp$568$$),$APP.$cljs$cst$2082$tokens$$,$APP.$cljs$core$vals$$($APP.$app$common$types$tokens_lib$get_tokens_$$($s$jscomp$568$$))],
null)},$sets$jscomp$19$$)};$app$main$ui$workspace$colorpicker$filter_active_sets$$=function($sets$jscomp$20$$,$active_set_names$jscomp$4$$){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76286_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($active_set_names$jscomp$4$$,$APP.$cljs$cst$203$set$$.$cljs$core$IFn$_invoke$arity$1$($p1__76286_SHARP_$$))},$sets$jscomp$20$$)};
$app$main$ui$workspace$colorpicker$colorpicker_modal$$=function($props_76288_vport$jscomp$8$$){var $style$jscomp$70_x$jscomp$1242$$=$props_76288_vport$jscomp$8$$.x,$tab$jscomp$8$$=$props_76288_vport$jscomp$8$$.tab,$on_change$jscomp$39$$=$props_76288_vport$jscomp$8$$["on-change"],$data$jscomp$458$$=$props_76288_vport$jscomp$8$$.data,$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$=$props_76288_vport$jscomp$8$$.y,$disable_gradient$jscomp$3$$=$props_76288_vport$jscomp$8$$["disable-gradient"],
$disable_opacity$jscomp$7$$=$props_76288_vport$jscomp$8$$["disable-opacity"],$on_token_change$jscomp$4$$=$props_76288_vport$jscomp$8$$["on-token-change"],$disable_image$jscomp$3$$=$props_76288_vport$jscomp$8$$["disable-image"],$on_close$jscomp$16$$=$props_76288_vport$jscomp$8$$["on-close"],$applied_token$jscomp$4$$=$props_76288_vport$jscomp$8$$["applied-token"],$active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$=$props_76288_vport$jscomp$8$$["active-tokens"],$on_accept$jscomp$8$$=$props_76288_vport$jscomp$8$$["on-accept"],
$color_origin$jscomp$3$$=$props_76288_vport$jscomp$8$$["color-origin"],$origin$jscomp$63$$=$props_76288_vport$jscomp$8$$.origin,$position$jscomp$185_position__$1$jscomp$8$$=$props_76288_vport$jscomp$8$$.position;$props_76288_vport$jscomp$8$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$colorpicker$viewport$$);var $dirty_QMARK_$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$last_change$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$position$jscomp$185_position__$1$jscomp$8$$=
$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$185_position__$1$jscomp$8$$,$APP.$cljs$cst$257$left$$);$style$jscomp$70_x$jscomp$1242$$=$app$main$ui$workspace$colorpicker$calculate_position$$($props_76288_vport$jscomp$8$$,$position$jscomp$185_position__$1$jscomp$8$$,$style$jscomp$70_x$jscomp$1242$$,$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$,$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$458$$)!=null);
$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$=$APP.$cljs$core$object_QMARK_$$($active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$)?$APP.$rumext$v2$util$bean$$($active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$):$active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$;$active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$39$$)],function($new_data$jscomp$3$$){$APP.$cljs$core$reset_BANG_$$($dirty_QMARK_$$,
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$458$$,$new_data$jscomp$3$$));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_data$jscomp$3$$,$APP.$cljs$core$_deref$$($last_change$$))?($APP.$cljs$core$reset_BANG_$$($last_change$$,$new_data$jscomp$3$$),$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$39$$)?$on_change$jscomp$39$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$39$$.$cljs$core$IFn$_invoke$arity$1$($new_data$jscomp$3$$):$on_change$jscomp$39$$($new_data$jscomp$3$$):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker$$($new_data$jscomp$3$$))):null});var $tokens_lib$jscomp$35$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$tokens_lib$$),$active_sets_names$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$35$$)],function(){return $tokens_lib$jscomp$35$$==null?null:$APP.$app$common$types$tokens_lib$get_active_themes_set_names$$($tokens_lib$jscomp$35$$)});
$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$=$APP.$cljs$core$delay_QMARK_$$($active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$)?$APP.$cljs$core$_deref$$($active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$):$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$;var $color_tokens$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$);
$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$35$$),$APP.$rumext$v2$adapt$$($active_sets_names$$),$APP.$rumext$v2$adapt$$($color_tokens$$)],function(){var $G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$=$tokens_lib$jscomp$35$$==null?null:$APP.$app$common$types$tokens_lib$get_sets$$($tokens_lib$jscomp$35$$);$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$=
$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$==null?null:$app$main$ui$workspace$colorpicker$add_tokens_to_sets$$($G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$);$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$=$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$==null?null:$app$main$ui$workspace$colorpicker$filter_active_sets$$($G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$,$active_sets_names$$);$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$=
$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$==null?null:$app$main$ui$workspace$colorpicker$filter_non_empty_sets$$($G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$);$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$=$G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$==null?null:$app$main$ui$workspace$colorpicker$group_sets$$($G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$);return $G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$==
null?null:$app$main$ui$workspace$colorpicker$combine_groups_with_resolved$$($G__76290__$1_G__76290__$2_G__76290__$3_G__76290__$4_G__76290__$5$$,$color_tokens$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$push_shortcuts$$($cljs$cst$5344$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_SLASH_colorpicker$$,
$app$main$ui$workspace$colorpicker$shortcuts$shortcuts$$)));return function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$pop_shortcuts$$($cljs$cst$5344$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_SLASH_colorpicker$$));var $G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$=$APP.$cljs$core$_deref$$($dirty_QMARK_$$);$APP.$cljs$core$truth_$$($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$)&&
($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$=$APP.$cljs$core$_deref$$($last_change$$),$G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$=$APP.$cljs$core$truth_$$($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$)?$on_close$jscomp$16$$:$G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$);
return $APP.$cljs$core$truth_$$($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$)?($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$=$APP.$cljs$core$_deref$$($last_change$$),$on_close$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$on_close$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$):
$on_close$jscomp$16$$($G__76291_JSCompiler_inline_result$jscomp$1705_and__5023__auto__$jscomp$inline_8480_and__5023__auto____$1$jscomp$inline_8481$$)):null}});return(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"colorpicker",style:$style$jscomp$70_x$jscomp$1242$$,className:"main_ui_workspace_colorpicker__colorpicker-tooltip",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$colorpicker$$,{"disable-gradient":$disable_gradient$jscomp$3$$,"on-token-change":$on_token_change$jscomp$4$$,
"disable-opacity":$disable_opacity$jscomp$7$$,"combined-tokens":$active_tokens__$1$jscomp$1_active_tokens__$2_grouped_tokens_by_set_y$jscomp$465$$,"disable-image":$disable_image$jscomp$3$$,"applied-token":$applied_token$jscomp$4$$,"on-accept":$on_accept$jscomp$8$$,"color-origin":$color_origin$jscomp$3$$,origin:$origin$jscomp$63$$,"on-change":$active_tokens$jscomp$2_on_change_SINGLEQUOTE_$jscomp$4$$,tab:$tab$jscomp$8$$,data:$data$jscomp$458$$})})};
$app$main$ui$workspace$sidebar$assets$common$apply_filters$$=function($G__75497__$1_G__75497__$2_coll$jscomp$1100$$,$map__75496__$1_p__75495$$){$map__75496__$1_p__75495$$=$APP.$cljs$core$__destructure_map$$($map__75496__$1_p__75495$$);var $ordering$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75496__$1_p__75495$$,$cljs$cst$5345$ordering$$),$term$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75496__$1_p__75495$$,$APP.$cljs$cst$2470$term$$),$reverse_QMARK_$jscomp$10$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2656$desc$$,$ordering$$);$G__75497__$1_G__75497__$2_coll$jscomp$1100$$=$APP.$cuerdas$core$empty_QMARK_$$($term$jscomp$7$$)?$G__75497__$1_G__75497__$2_coll$jscomp$1100$$:$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($item$jscomp$119$$){var $or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$=$app$util$strings$matches_search$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$119$$,
"!$!"),$term$jscomp$7$$);if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$))return $or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$;$or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$=$app$util$strings$matches_search$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$119$$,"!$!"),$term$jscomp$7$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$)?$or__5025__auto__$jscomp$1016_or__5025__auto____$1$jscomp$108$$:
$app$util$strings$matches_search$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$2$($item$jscomp$119$$,"!$!"),$term$jscomp$7$$)},$G__75497__$1_G__75497__$2_coll$jscomp$1100$$);$G__75497__$1_G__75497__$2_coll$jscomp$1100$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$3$(function($p__75498_path$jscomp$257_path__$1$jscomp$8$$){var $map__75499__$1_name$jscomp$416$$=$APP.$cljs$core$__destructure_map$$($p__75498_path$jscomp$257_path__$1$jscomp$8$$);$p__75498_path$jscomp$257_path__$1$jscomp$8$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75499__$1_name$jscomp$416$$,$APP.$cljs$cst$294$path$$);$map__75499__$1_name$jscomp$416$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75499__$1_name$jscomp$416$$,$APP.$cljs$cst$723$name$$);$p__75498_path$jscomp$257_path__$1$jscomp$8$$=$APP.$cuerdas$core$empty_QMARK_$$($p__75498_path$jscomp$257_path__$1$jscomp$8$$)?$reverse_QMARK_$jscomp$10$$?"z":"a":$p__75498_path$jscomp$257_path__$1$jscomp$8$$;return $APP.$cuerdas$core$lower$$($APP.$app$common$path_names$merge_path_item$$($p__75498_path$jscomp$257_path__$1$jscomp$8$$,
$map__75499__$1_name$jscomp$416$$))},$reverse_QMARK_$jscomp$10$$?$APP.$cljs$core$_GT_$$:$APP.$cljs$core$_LT_$$,$G__75497__$1_G__75497__$2_coll$jscomp$1100$$);return $APP.$cljs$core$vec$$($G__75497__$1_G__75497__$2_coll$jscomp$1100$$)};
$app$main$ui$workspace$sidebar$assets$common$add_group$$=function($asset$jscomp$4$$,$group_name$$){return $APP.$app$common$path_names$merge_path_item$$($APP.$app$common$path_names$merge_path_item$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$4$$),$group_name$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$4$$))};
$app$main$ui$workspace$sidebar$assets$common$rename_group$$=function($asset$jscomp$5$$,$path$jscomp$258$$,$last_path$$){return $APP.$app$common$path_names$merge_path_item$$([$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$path_names$join_path$$($APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$vec$$($APP.$cljs$core$butlast$$($APP.$app$common$path_names$split_path$$($APP.$cuerdas$core$slice$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$5$$),0,
$APP.$cljs$core$count$$($path$jscomp$258$$))))),$last_path$$))),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$slice$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$5$$),$APP.$cljs$core$count$$($path$jscomp$258$$)))].join(""),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$5$$))};
$app$main$ui$workspace$sidebar$assets$common$ungroup$$=function($asset$jscomp$6$$,$path$jscomp$259$$){return $APP.$app$common$path_names$merge_path_item$$([$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$path_names$join_path$$($APP.$cljs$core$butlast$$($APP.$app$common$path_names$split_path$$($APP.$cuerdas$core$slice$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$6$$),0,$APP.$cljs$core$count$$($path$jscomp$259$$)))))),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$slice$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$6$$),$APP.$cljs$core$count$$($path$jscomp$259$$)))].join(""),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$6$$))};
$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$=function($state$jscomp$1065$$,$left$jscomp$28_pos$jscomp$133$$){var $top$jscomp$14$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$28_pos$jscomp$133$$);$left$jscomp$28_pos$jscomp$133$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$28_pos$jscomp$133$$)+10;return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$1065$$,$cljs$cst$5346$open_QMARK_$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1546$top$$,
$top$jscomp$14$$,$APP.$cljs$cst$257$left$$,$left$jscomp$28_pos$jscomp$133$$]))};$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$=function($state$jscomp$1066$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1066$$,$cljs$cst$5346$open_QMARK_$$,!1)};
$app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$=function($props_75500_state$jscomp$1067$$){var $options$jscomp$604$$=$props_75500_state$jscomp$1067$$.options,$on_close$jscomp$17$$=$props_75500_state$jscomp$1067$$.onClose;$props_75500_state$jscomp$1067$$=$props_75500_state$jscomp$1067$$.state;return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,{show:$cljs$cst$5346$open_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($props_75500_state$jscomp$1067$$),
fixed:$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($props_75500_state$jscomp$1067$$),0)||$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($props_75500_state$jscomp$1067$$),0),onClose:$on_close$jscomp$17$$,top:$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($props_75500_state$jscomp$1067$$),left:$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($props_75500_state$jscomp$1067$$),
options:$options$jscomp$604$$})};$app$main$ui$workspace$sidebar$assets$common$section_icon$$=function($section$jscomp$25$$){switch($section$jscomp$25$$ instanceof $APP.$cljs$core$Keyword$$?$section$jscomp$25$$.$fqn$:null){case "colors":return"drop";case "components":return"component";case "typographies":return"text-palette";default:return"add"}};
$app$main$ui$workspace$sidebar$assets$common$should_display_asset_count_QMARK_$$=function($section$jscomp$26$$,$assets_count$$){return!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$26$$,$APP.$cljs$cst$2082$tokens$$)||0<$assets_count$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$26$$,$APP.$cljs$cst$2082$tokens$$)};
$app$main$ui$workspace$sidebar$assets$common$asset_section_STAR_$$=function($buttons_props_75504$$){var $is_open$jscomp$2$$=$buttons_props_75504$$.isOpen,$assets_count$jscomp$1$$=$buttons_props_75504$$.assetsCount,$file_id$jscomp$334$$=$buttons_props_75504$$.fileId,$section$jscomp$27$$=$buttons_props_75504$$.section,$icon$jscomp$18_title__$1$jscomp$1$$=$buttons_props_75504$$.icon,$title$jscomp$32$$=$buttons_props_75504$$.title,$on_click$jscomp$36$$=$buttons_props_75504$$.onClick,$children__$1$jscomp$36_content$jscomp$233$$=
$app$util$array$without_nils$$($app$util$array$normalize_to_array$$($buttons_props_75504$$.children));$buttons_props_75504$$=$app$util$array$filter$$(function($p1__75502_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5347$title_button$$,$p1__75502_SHARP_$$.props.role)},$children__$1$jscomp$36_content$jscomp$233$$);$children__$1$jscomp$36_content$jscomp$233$$=$app$util$array$filter$$(function($p1__75503_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1621$content$$,
$p1__75503_SHARP_$$.props.role)},$children__$1$jscomp$36_content$jscomp$233$$);var $on_collapsed$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$334$$),$APP.$rumext$v2$adapt$$($section$jscomp$27$$),$APP.$rumext$v2$adapt$$($is_open$jscomp$2$$),$APP.$rumext$v2$adapt$$($assets_count$jscomp$1$$)],function(){return 0<$assets_count$jscomp$1$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$334$$,
$section$jscomp$27$$,$APP.$cljs$core$not$$($is_open$jscomp$2$$))):null});$icon$jscomp$18_title__$1$jscomp$1$$=(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_sidebar_assets_common__title-name "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$27$$,$APP.$cljs$cst$2082$tokens$$)?"main_ui_workspace_sidebar_assets_common__title-tokens":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$27$$,$APP.$cljs$cst$2082$tokens$$)&&0<$assets_count$jscomp$1$$?
"main_ui_workspace_sidebar_assets_common__title-tokens-active":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_common__section-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$APP.$cljs$core$truth_$$($icon$jscomp$18_title__$1$jscomp$1$$)?$icon$jscomp$18_title__$1$jscomp$1$$:$app$main$ui$workspace$sidebar$assets$common$section_icon$$($section$jscomp$27$$),size:"s"})}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_sidebar_assets_common__section-name",children:$title$jscomp$32$$}),$app$main$ui$workspace$sidebar$assets$common$should_display_asset_count_QMARK_$$($section$jscomp$27$$,$assets_count$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_common__num-assets",children:$assets_count$jscomp$1$$}):null]});return(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_click$jscomp$36$$,className:"main_ui_workspace_sidebar_assets_common__asset-section "+
($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$687$$=0<$assets_count$jscomp$1$$;return $and__5023__auto__$jscomp$687$$?$is_open$jscomp$2$$:$and__5023__auto__$jscomp$687$$}())?"main_ui_workspace_sidebar_assets_common__opened":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:0<$assets_count$jscomp$1$$,collapsed:$APP.$cljs$core$not$$($is_open$jscomp$2$$),allClickable:!0,onCollapsed:$on_collapsed$jscomp$1$$,addIconGap:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,
$assets_count$jscomp$1$$),title:$icon$jscomp$18_title__$1$jscomp$1$$,children:$buttons_props_75504$$}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$688$$=0<$assets_count$jscomp$1$$;return $and__5023__auto__$jscomp$688$$?$is_open$jscomp$2$$:$and__5023__auto__$jscomp$688$$}())?(0,$APP.$rumext$v2$jsx$$)("div",{className:$APP.$cljs$core$truth_$$($is_open$jscomp$2$$)?"main_ui_workspace_sidebar_assets_common__title-spacing":"",children:$children__$1$jscomp$36_content$jscomp$233$$}):
null]})};$app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$=function($props_75505$$){return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$props_75505$$.children})};
$app$main$ui$workspace$sidebar$assets$common$create_assets_group$$=function($rename$jscomp$1$$,$components_to_group$$,$group_name$jscomp$1$$){var $undo_id$jscomp$83$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$83$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($G__75508_p1__75506_SHARP_$$){var $G__75507$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($G__75508_p1__75506_SHARP_$$);
$G__75508_p1__75506_SHARP_$$=$app$main$ui$workspace$sidebar$assets$common$add_group$$($G__75508_p1__75506_SHARP_$$,$group_name$jscomp$1$$);return $rename$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$rename$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($G__75507$$,$G__75508_p1__75506_SHARP_$$):$rename$jscomp$1$$($G__75507$$,$G__75508_p1__75506_SHARP_$$)},$components_to_group$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$83$$))};
$app$main$ui$workspace$sidebar$assets$common$on_drop_asset$$=function($components_to_group$jscomp$1_event$jscomp$296$$,$asset$jscomp$7$$,$dragging_STAR_$$,$selected$jscomp$136$$,$selected_full$$,$selected_paths$$,$create_typed_assets_group_rename$jscomp$2$$){$create_typed_assets_group_rename$jscomp$2$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$sidebar$assets$common$create_assets_group$$,$create_typed_assets_group_rename$jscomp$2$$);return $APP.$cljs$core$not$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($components_to_group$jscomp$1_event$jscomp$296$$))&&
($APP.$cljs$core$reset_BANG_$$($dragging_STAR_$$,!1),!$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$136$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$7$$))&&$APP.$cljs$core$every_QMARK_$$(function($p1__75509_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__75509_SHARP_$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$7$$))},$selected_paths$$))?($components_to_group$jscomp$1_event$jscomp$296$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($selected_full$$,
$asset$jscomp$7$$),$APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$922$accept$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($create_typed_assets_group_rename$jscomp$2$$,$components_to_group$jscomp$1_event$jscomp$296$$)],null))):null};
$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset$$=function($event$jscomp$297$$,$asset$jscomp$8$$,$dragging_STAR_$jscomp$1$$,$selected$jscomp$137$$,$selected_paths$jscomp$1$$){return $APP.$cljs$core$not$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($event$jscomp$297$$))&&$APP.$cljs$core$every_QMARK_$$(function($p1__75510_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__75510_SHARP_$$,$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$8$$))},
$selected_paths$jscomp$1$$)&&!$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$137$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$8$$))?$APP.$cljs$core$reset_BANG_$$($dragging_STAR_$jscomp$1$$,!0):null};
$app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$=function($event$jscomp$298$$,$dragging_STAR_$jscomp$2$$){return $APP.$cljs$core$not$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($event$jscomp$298$$))?$APP.$cljs$core$reset_BANG_$$($dragging_STAR_$jscomp$2$$,!1):null};
$app$main$ui$workspace$sidebar$assets$common$create_counter_element$$=function($asset_count$$){var $counter_el$$=$APP.$app$util$dom$create_element$cljs$0core$0IFn$0_invoke$0arity$01$$("div");$APP.$app$util$dom$set_property_BANG_$$($counter_el$$,"class","main_ui_workspace_sidebar_assets_common__drag-counter");$APP.$app$util$dom$set_text_BANG_$$($counter_el$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.assets.sidebar.components",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($asset_count$$)])));
return $counter_el$$};
$app$main$ui$workspace$sidebar$assets$common$set_drag_image$$=function($event$jscomp$299$$,$item_ref$jscomp$1$$,$num_selected$$){var $offset$jscomp$198$$=$APP.$app$util$dom$get_offset_position$$($event$jscomp$299$$.nativeEvent),$item_el$$=$APP.$rumext$v2$ref_val$$($item_ref$jscomp$1$$),$counter_el$jscomp$1$$=$app$main$ui$workspace$sidebar$assets$common$create_counter_element$$($num_selected$$);$APP.$app$util$dom$append_child_BANG_$$($item_el$$,$counter_el$jscomp$1$$);$APP.$app$util$dom$dnd$set_drag_image_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($event$jscomp$299$$,$item_el$$,
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$198$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$198$$));return(0,$APP.$app$util$timers$request_animation_frame$$)(function(){if($APP.$cljs$core$truth_$$($APP.$app$util$dom$child_QMARK_$$($counter_el$jscomp$1$$,$item_el$$))){$item_el$$!=null&&$item_el$$.removeChild($counter_el$jscomp$1$$);var $JSCompiler_temp$jscomp$660$$=$item_el$$}else $JSCompiler_temp$jscomp$660$$=null;return $JSCompiler_temp$jscomp$660$$})};
$app$main$ui$workspace$sidebar$assets$common$on_asset_drag_start$$=function($event$jscomp$300$$,$file_id$jscomp$335$$,$asset$jscomp$9$$,$selected$jscomp$138$$,$item_ref$jscomp$2$$,$asset_type$jscomp$12$$,$on_drag_start$jscomp$1$$){var $id_asset$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($asset$jscomp$9$$),$num_selected$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$138$$,$id_asset$$)?$APP.$cljs$core$count$$($selected$jscomp$138$$):1;$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$138$$,
$id_asset$$)||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$unselect_all_assets$cljs$0core$0IFn$0_invoke$0arity$01$$($file_id$jscomp$335$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$toggle_selected_assets$$($file_id$jscomp$335$$,$id_asset$$,$asset_type$jscomp$12$$)]));$on_drag_start$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_drag_start$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($asset$jscomp$9$$,
$event$jscomp$300$$):$on_drag_start$jscomp$1$$($asset$jscomp$9$$,$event$jscomp$300$$);return $num_selected$jscomp$1$$>1?$app$main$ui$workspace$sidebar$assets$common$set_drag_image$$($event$jscomp$300$$,$item_ref$jscomp$2$$,$num_selected$jscomp$1$$):null};
$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset_group$$=function($event$jscomp$301$$,$dragging_STAR_$jscomp$3$$,$prefix$jscomp$66$$,$selected_paths$jscomp$2$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$301$$);return $APP.$cljs$core$not$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($event$jscomp$301$$))&&!$APP.$cljs$core$every_QMARK_$$(function($p1__75511_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__75511_SHARP_$$,$prefix$jscomp$66$$)},$selected_paths$jscomp$2$$)?
$APP.$cljs$core$reset_BANG_$$($dragging_STAR_$jscomp$3$$,!0):null};
$app$main$ui$workspace$sidebar$assets$common$on_drop_asset_group$$=function($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$,$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$,$prefix$jscomp$67$$,$G__75547_count__75515_selected_paths$jscomp$3$$,$G__75545_i__75516_selected_full$jscomp$1$$,$rename$jscomp$3$$){$APP.$app$util$dom$stop_propagation$$($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$);if($APP.$cljs$core$not$$($APP.$app$util$dom$dnd$from_child_QMARK_$$($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$))){$APP.$cljs$core$reset_BANG_$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$,
!1);if($APP.$cljs$core$every_QMARK_$$(function($p1__75512_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__75512_SHARP_$$,$prefix$jscomp$67$$)},$G__75547_count__75515_selected_paths$jscomp$3$$))return null;$c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$=$APP.$cljs$core$seq$$($G__75545_i__75516_selected_full$jscomp$1$$);$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$=null;for($G__75545_i__75516_selected_full$jscomp$1$$=
$G__75547_count__75515_selected_paths$jscomp$3$$=0;;)if($G__75545_i__75516_selected_full$jscomp$1$$<$G__75547_count__75515_selected_paths$jscomp$3$$){var $target_asset$$=$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__75545_i__75516_selected_full$jscomp$1$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function(){var $G__75521$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_asset$$),$G__75522$$=$APP.$app$common$path_names$merge_path_item$$($prefix$jscomp$67$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($target_asset$$));return $rename$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$?$rename$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$($G__75521$$,$G__75522$$):$rename$jscomp$3$$($G__75521$$,$G__75522$$)}());$G__75545_i__75516_selected_full$jscomp$1$$+=1}else if($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$))$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$=
$c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$)?($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$=$APP.$cljs$core$_chunked_first$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$),$G__75545_i__75516_selected_full$jscomp$1$$=$APP.$cljs$core$_chunked_rest$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$),
$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$=$c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$,$G__75547_count__75515_selected_paths$jscomp$3$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$),$c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$=$G__75545_i__75516_selected_full$jscomp$1$$):($target_asset$$=$APP.$cljs$core$first$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$),
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function(){var $G__75523$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($target_asset$$),$G__75524$$=$APP.$app$common$path_names$merge_path_item$$($prefix$jscomp$67$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($target_asset$$));return $rename$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$?$rename$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$($G__75523$$,$G__75524$$):$rename$jscomp$3$$($G__75523$$,$G__75524$$)}()),
$c__5548__auto__$jscomp$41_event$jscomp$302_seq__75513_temp__5825__auto__$jscomp$333$$=$APP.$cljs$core$next$$($G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$),$G__75546_chunk__75514_dragging_STAR_$jscomp$4_seq__75513__$1$$=null,$G__75547_count__75515_selected_paths$jscomp$3$$=0),$G__75545_i__75516_selected_full$jscomp$1$$=0;else return null}else return null};
$app$main$ui$workspace$sidebar$assets$common$component_item_thumbnail_STAR_$$=function($is_hidden$jscomp$2_props_75525$$){var $file_id$jscomp$336$$=$is_hidden$jscomp$2_props_75525$$.fileId,$root_shape$jscomp$8$$=$is_hidden$jscomp$2_props_75525$$.rootShape,$component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$=$is_hidden$jscomp$2_props_75525$$.component,$class$$jscomp$57$$=$is_hidden$jscomp$2_props_75525$$.className,$container$jscomp$80$$=$is_hidden$jscomp$2_props_75525$$.container;
$is_hidden$jscomp$2_props_75525$$=$is_hidden$jscomp$2_props_75525$$.isHidden;var $page_id$jscomp$387$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$),$root_id$jscomp$7$$=$APP.$cljs$cst$2045$main_instance_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$),$retry$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0);$component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$336$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$387$$),$APP.$rumext$v2$adapt$$($root_id$jscomp$7$$)],function(){return $APP.$app$main$refs$workspace_thumbnail_by_id$$($APP.$app$common$thumbnails$fmt_object_id$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$336$$,$page_id$jscomp$387$$,$root_id$jscomp$7$$,"component"))});$component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$=
$APP.$rumext$v2$deref$$($component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$);var $on_error$jscomp$71$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($retry$$))],function(){return $APP.$cljs$core$_deref$$($retry$$)<3?$retry$$+1:null});return $component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$!=null&&$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1229$component_thumbnails$$)?
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$render$component_svg_thumbnail$$,{"thumbnail-uri":$component$jscomp$116_thumbnail_uri$jscomp$2_thumbnail_uri_STAR_$jscomp$1$$,"class":$class$$jscomp$57$$,"on-error":$on_error$jscomp$71$$,"root-shape":$root_shape$jscomp$8$$,objects:$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$80$$),"show-grids?":!0}):(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$render$component_svg$$,{"root-shape":$root_shape$jscomp$8$$,"class":$class$$jscomp$57$$,
objects:$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$80$$),"show-grids?":!0,"is-hidden":$is_hidden$jscomp$2_props_75525$$})};
$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$$=function($var_args$jscomp$1418$$){for(var $args__5755__auto__$jscomp$247$$=[],$len__5749__auto___75553$$=arguments.length,$i__5750__auto___75554$$=0;;)if($i__5750__auto___75554$$<$len__5749__auto___75553$$)$args__5755__auto__$jscomp$247$$.push(arguments[$i__5750__auto___75554$$]),$i__5750__auto___75554$$+=1;else break;return $app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(arguments[0],
1<$args__5755__auto__$jscomp$247$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$247$$.slice(1),0,null):null)};
$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$,$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$){function $do_restore_component$$(){var $comps_to_restore$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($id_file_map$$,$component_id__$1$jscomp$1_p__75535$$){var $component_file$jscomp$7_map__75536__$1$$=$APP.$cljs$core$__destructure_map$$($component_id__$1$jscomp$1_p__75535$$);
$component_id__$1$jscomp$1_p__75535$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($component_file$jscomp$7_map__75536__$1$$,$APP.$cljs$cst$1611$component_id$$);$component_file$jscomp$7_map__75536__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($component_file$jscomp$7_map__75536__$1$$,$APP.$cljs$cst$1627$component_file$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($id_file_map$$,$component_id__$1$jscomp$1_p__75535$$,$component_file$jscomp$7_map__75536__$1$$)},
$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$restorable_copies$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$restore_components$$($comps_to_restore$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($comps_to_restore$$))?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(1E3,function(){return $do_show_component$$(null,!0)}):null}function $do_show_component$$($_$jscomp$2838_temp__5825__auto__$jscomp$inline_8490$$,
$JSCompiler_temp$jscomp$1707_update_layout_QMARK_$jscomp$5$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$hide_context_menu$$);$local_component_QMARK_$$?$JSCompiler_temp$jscomp$1707_update_layout_QMARK_$jscomp$5$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$go_to_local_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$266$id$$,
$component_id$jscomp$88$$]))):($_$jscomp$2838_temp__5825__auto__$jscomp$inline_8490$$=$find_component$$($shape$jscomp$950$$,!0),$JSCompiler_temp$jscomp$1707_update_layout_QMARK_$jscomp$5$$=$APP.$cljs$core$truth_$$($_$jscomp$2838_temp__5825__auto__$jscomp$inline_8490$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$go_to_component_file$$($library_id$jscomp$52$$,$_$jscomp$2838_temp__5825__auto__$jscomp$inline_8490$$,$JSCompiler_temp$jscomp$1707_update_layout_QMARK_$jscomp$5$$)):
null);return $JSCompiler_temp$jscomp$1707_update_layout_QMARK_$jscomp$5$$}function $do_add_new_property$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-new-property",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:design-tab-menu-variant"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_property$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($variant_id$jscomp$47$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3394$property_value$$,"Value 1",$APP.$cljs$cst$3392$editing_QMARK_$$,!0],null)]))]))}function $do_add_variant$$(){return $APP.$app$common$types$component$is_variant_QMARK_$$($shape$jscomp$950$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"add-new-variant",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$APP.$cljs$core$truth_$$($for_design_tab_QMARK_$$)?"workspace:design-tab-menu-variant":"workspace:context-menu-variant"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$153$$)])):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"transform-in-variant",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$APP.$cljs$core$truth_$$($for_design_tab_QMARK_$$)?"workspace:design-tab-menu":"workspace:context-menu"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$transform_in_variant$cljs$0core$0IFn$0_invoke$0arity$01$$($shape_id$jscomp$153$$)]))}function $do_create_annotation$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_id_for_create$$($shape_id$jscomp$153$$))}
function $do_update_component$$(){return $local_component_QMARK_$$?$do_update_component_sync$$():$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,8,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2430$confirm$$,$APP.$cljs$cst$141$message$$,"",$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.update-remote-component.message"),$APP.$cljs$cst$273$hint$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.update-remote-component.hint"),$APP.$cljs$cst$2431$cancel_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.update-remote-component.cancel"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.update-remote-component.accept"),$APP.$cljs$cst$2434$accept_style$$,$APP.$cljs$cst$2435$primary$$,$APP.$cljs$cst$2436$on_accept$$,$do_update_component_sync$$],null)))}function $do_update_component_sync$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$update_component_sync$cljs$0core$0IFn$0_invoke$0arity$03$$($shape_id$jscomp$153$$,
$library_id$jscomp$52$$))}function $do_reset_component$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$reset_components$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$touched_not_dangling$$)))}function $do_detach_component$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$detach_components$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,
$copies$jscomp$2$$)))}function $find_component$$($shape$jscomp$951$$,$include_deleted_QMARK_$jscomp$9$$){return $APP.$app$common$types$file$resolve_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape$jscomp$951$$,$current_file$$,$libraries$jscomp$131$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2497$include_deleted_QMARK_$$,$include_deleted_QMARK_$jscomp$9$$],null)]))}$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$=
$APP.$cljs$core$__destructure_map$$($can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$);var $for_design_tab_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$,$cljs$cst$5349$for_design_tab_QMARK_$$),$multi$jscomp$5$$=$APP.$cljs$core$count$$($menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$)>1,$copies$jscomp$2$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$component$in_component_copy_QMARK_$$,
$menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$),$current_file_id$jscomp$12$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_page_id$$);var $libraries$jscomp$131$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$files$$),$current_file$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$131$$,$current_file_id$jscomp$12$$),
$objects$jscomp$739$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($current_file$$),$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$),$APP.$cljs$cst$1615$objects$$),$restorable_copies$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($library_id$jscomp$inline_8487_p1__75527_SHARP_$$){$library_id$jscomp$inline_8487_p1__75527_SHARP_$$=$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($library_id$jscomp$inline_8487_p1__75527_SHARP_$$);
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($library_id$jscomp$inline_8487_p1__75527_SHARP_$$,$current_file_id$jscomp$12$$)||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$131$$,$library_id$jscomp$inline_8487_p1__75527_SHARP_$$)!=null},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75526_SHARP_$$){return $find_component$$($p1__75526_SHARP_$$,!1)==null},$copies$jscomp$2$$)),$touched_not_dangling$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75528_SHARP_$$){var $and__5023__auto__$jscomp$689$$=
$app$common$files$helpers$component_touched_QMARK_$$($objects$jscomp$739$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__75528_SHARP_$$));return $and__5023__auto__$jscomp$689$$?$find_component$$($p1__75528_SHARP_$$,!1):$and__5023__auto__$jscomp$689$$},$copies$jscomp$2$$);$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$=$APP.$cljs$core$seq$$($touched_not_dangling$$);var $shape$jscomp$950$$=$APP.$cljs$core$first$$($menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$),
$shape_id$jscomp$153$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$),$main_instance_QMARK_$jscomp$3$$=$APP.$app$common$types$component$main_instance_QMARK_$$($shape$jscomp$950$$),$variant_container_QMARK_$$=$APP.$app$common$types$component$is_variant_container_QMARK_$$($shape$jscomp$950$$),$component_id$jscomp$88$$=$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$),$variant_id$jscomp$47$$=$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$),
$library_id$jscomp$52$$=$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$),$local_component_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($library_id$jscomp$52$$,$current_file_id$jscomp$12$$),$can_show_component_QMARK__component$jscomp$117$$=$find_component$$($shape$jscomp$950$$,!1),$lacks_annotation_QMARK_$$=$APP.$cljs$cst$2499$annotation$$.$cljs$core$IFn$_invoke$arity$1$($can_show_component_QMARK__component$jscomp$117$$)==null,$can_update_main_QMARK__is_dangling_QMARK_$$=
$can_show_component_QMARK__component$jscomp$117$$==null;$can_show_component_QMARK__component$jscomp$117$$=!$multi$jscomp$5$$&&!$main_instance_QMARK_$jscomp$3$$&&!$can_update_main_QMARK__is_dangling_QMARK_$$;$can_update_main_QMARK__is_dangling_QMARK_$$=!$multi$jscomp$5$$&&!$can_update_main_QMARK__is_dangling_QMARK_$$&&!$main_instance_QMARK_$jscomp$3$$&&$APP.$cljs$core$not$$($APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($objects$jscomp$739$$,$shape$jscomp$950$$))&&$app$common$files$helpers$component_touched_QMARK_$$($objects$jscomp$739$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$));var $can_detach_QMARK_$jscomp$1$$=$APP.$cljs$core$seq$$($copies$jscomp$2$$)&&$APP.$cljs$core$every_QMARK_$$(function($p1__75529_SHARP_$$){return $APP.$cljs$core$not$$($APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($objects$jscomp$739$$,$p1__75529_SHARP_$$))},$copies$jscomp$2$$),$same_variant_QMARK_$$=$app$common$types$variant$same_variant_QMARK_$$($menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$);
$menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$=$APP.$cljs$core$every_QMARK_$$(function($and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$){var $and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$=$find_component$$($and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$,!0),$main$jscomp$4_parent$jscomp$300$$=$APP.$app$common$types$component$get_deleted_component_root$$($and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$);$and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$131$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$)),$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$1614$pages_index$$),
$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$)),$APP.$cljs$cst$1615$objects$$);$main$jscomp$4_parent$jscomp$300$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$,$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($main$jscomp$4_parent$jscomp$300$$));$and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$=
$APP.$cljs$cst$2498$deleted$$.$cljs$core$IFn$_invoke$arity$1$($and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$)?($and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$=$APP.$app$common$types$component$is_variant_QMARK_$$($and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$))?$main$jscomp$4_parent$jscomp$300$$:$and__5023__auto____$1$jscomp$121_component__$1$jscomp$4$$:$and__5023__auto__$jscomp$690_objects__$1$jscomp$36_shape__$1$jscomp$103$$},
$restorable_copies$$);var $do_show_in_assets$$=function(){var $component_id__$1$$=$APP.$cljs$core$truth_$$($variant_container_QMARK_$$)?$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75530_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$739$$,$p1__75530_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$950$$)))):
$component_id$jscomp$88$$;return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$show_component_in_assets$$($component_id__$1$$))}}();$menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$=new $APP.$cljs$core$PersistentVector$$(null,9,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$inline_8492_or__5025__auto__$jscomp$1018$$=($and__5023__auto__$jscomp$inline_8492_or__5025__auto__$jscomp$1018$$=
!$multi$jscomp$5$$)?$APP.$cljs$core$truth_$$($variant_container_QMARK_$$)?$variant_container_QMARK_$$:$main_instance_QMARK_$jscomp$3$$:$and__5023__auto__$jscomp$inline_8492_or__5025__auto__$jscomp$1018$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8492_or__5025__auto__$jscomp$1018$$)?$and__5023__auto__$jscomp$inline_8492_or__5025__auto__$jscomp$1018$$:$multi$jscomp$5$$?$same_variant_QMARK_$$:$multi$jscomp$5$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.show-in-assets"),$APP.$cljs$cst$2627$action$$,$do_show_in_assets$$],null):null,!$multi$jscomp$5$$&&$main_instance_QMARK_$jscomp$3$$&&$local_component_QMARK_$$&&$lacks_annotation_QMARK_$$?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.create-annotation"),$APP.$cljs$cst$2627$action$$,$do_create_annotation$$],null):
null,$can_detach_QMARK_$jscomp$1$$?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$APP.$cljs$core$count$$($copies$jscomp$2$$)>1?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.detach-instances-in-bulk"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.detach-instance"),$APP.$cljs$cst$2627$action$$,$do_detach_component$$,$cljs$cst$5350$shortcut$$,$APP.$cljs$cst$4684$detach_component$$],null):null,$can_reset_overrides_QMARK__current_page_id$jscomp$2_map__75534__$1_p__75533$$?
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.reset-overrides"),$APP.$cljs$cst$2627$action$$,$do_reset_component$$],null):null,$APP.$cljs$core$seq$$($restorable_copies$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.restore-variant"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.restore-main"),$APP.$cljs$cst$2627$action$$,$do_restore_component$$],null):null,$can_show_component_QMARK__component$jscomp$117$$?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.show-main"),$APP.$cljs$cst$2627$action$$,$do_show_component$$],null):null,$can_update_main_QMARK__is_dangling_QMARK_$$?new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.update-main"),$APP.$cljs$cst$2627$action$$,$do_update_component$$],null):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$693_or__5025__auto__$jscomp$inline_8494$$=($and__5023__auto__$jscomp$693_or__5025__auto__$jscomp$inline_8494$$=!$multi$jscomp$5$$)?$and__5023__auto__$jscomp$693_or__5025__auto__$jscomp$inline_8494$$:$same_variant_QMARK_$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$693_or__5025__auto__$jscomp$inline_8494$$)?
$main_instance_QMARK_$jscomp$3$$:$and__5023__auto__$jscomp$693_or__5025__auto__$jscomp$inline_8494$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant"),$cljs$cst$5350$shortcut$$,$APP.$cljs$cst$4683$create_component_variant$$,$APP.$cljs$cst$2627$action$$,$do_add_variant$$],null):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($same_variant_QMARK_$$)?$main_instance_QMARK_$jscomp$3$$?
$APP.$cljs$core$truth_$$($variant_id$jscomp$47$$)?$for_design_tab_QMARK_$$:$variant_id$jscomp$47$$:$main_instance_QMARK_$jscomp$3$$:$same_variant_QMARK_$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant-property"),$APP.$cljs$cst$2627$action$$,$do_add_new_property$$],null):null],null);return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$complement$$($APP.$cljs$core$nil_QMARK_$$),
$menu_entries_restorable_variants_QMARK__shapes$jscomp$182$$)};$app$main$ui$workspace$context_menu$prevent_default$$=function($event$jscomp$303$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$303$$);return $APP.$app$util$dom$stop_propagation$$($event$jscomp$303$$)};
$app$main$ui$workspace$context_menu$menu_entry_STAR_$$=function($on_unmount_props_75540$$){var $children$jscomp$299$$=$on_unmount_props_75540$$.children,$on_pointer_leave$jscomp$4$$=$on_unmount_props_75540$$.onPointerLeave,$disabled$jscomp$10$$=$on_unmount_props_75540$$.disabled,$is_selected$jscomp$3$$=$on_unmount_props_75540$$.isSelected,$on_pointer_enter$jscomp$4$$=$on_unmount_props_75540$$.onPointerEnter,$value$jscomp$773$$=$on_unmount_props_75540$$.value,$icon$jscomp$19$$=$on_unmount_props_75540$$.icon,
$title$jscomp$33$$=$on_unmount_props_75540$$.title,$shortcut$jscomp$7$$=$on_unmount_props_75540$$.shortcut,$on_click$jscomp$37$$=$on_unmount_props_75540$$.onClick;$on_unmount_props_75540$$=$on_unmount_props_75540$$.onUnmount;var $submenu_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$hovering_QMARK_$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$on_click_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$37$$)],function($event$jscomp$304$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$hide_context_menu$$);
return $APP.$cljs$core$truth_$$($on_click$jscomp$37$$)?$on_click$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$?$on_click$jscomp$37$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$304$$):$on_click$jscomp$37$$($event$jscomp$304$$):null}),$on_pointer_enter__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$rumext$v2$set_ref_val_BANG_$$($hovering_QMARK_$$,!0);var $submenu_node_75774$$=$APP.$rumext$v2$ref_val$$($submenu_ref$$);$submenu_node_75774$$!=null&&$APP.$app$util$dom$set_css_property_BANG_$$($submenu_node_75774$$,
"display","block");return $APP.$cljs$core$truth_$$($on_pointer_enter$jscomp$4$$)?$on_pointer_enter$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_pointer_enter$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_pointer_enter$jscomp$4$$():null}),$on_pointer_leave__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$rumext$v2$set_ref_val_BANG_$$($hovering_QMARK_$$,!1);var $submenu_node_75775$$=$APP.$rumext$v2$ref_val$$($submenu_ref$$);$submenu_node_75775$$!=null&&$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(200,
function(){return $APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($hovering_QMARK_$$))?null:$APP.$app$util$dom$set_css_property_BANG_$$($submenu_node_75775$$,"display","none")});return $APP.$cljs$core$truth_$$($on_pointer_leave$jscomp$4$$)?$on_pointer_leave$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_pointer_leave$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_pointer_leave$jscomp$4$$():null}),$set_dom_node$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($dom$jscomp$1$$){var $submenu_node$$=
$APP.$rumext$v2$ref_val$$($submenu_ref$$);return $dom$jscomp$1$$!=null&&$submenu_node$$!=null?$APP.$app$util$dom$set_css_property_BANG_$$($submenu_node$$,"top",[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($dom$jscomp$1$$.offsetTop),"px"].join("")):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_unmount_props_75540$$)],$APP.$cljs$core$constantly$$($on_unmount_props_75540$$));return $APP.$cljs$core$truth_$$($icon$jscomp$19$$)?(0,$APP.$rumext$v2$jsxs$$)("li",
{disabled:$disabled$jscomp$10$$,"data-value":$value$jscomp$773$$,ref:$set_dom_node$$,onClick:$on_click_SINGLEQUOTE_$$,onPointerEnter:$on_pointer_enter__$1$$,onPointerLeave:$on_pointer_leave__$1$$,className:"main_ui_workspace_context_menu__icon-menu-item",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_context_menu__icon-wrapper",children:[$APP.$cljs$core$truth_$$($is_selected$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__selected-icon",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s"})}):(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__selected-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__shape-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$icon$jscomp$19$$,size:"s"})})]}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__title",
children:$title$jscomp$33$$})]}):(0,$APP.$rumext$v2$jsxs$$)("li",{disabled:$disabled$jscomp$10$$,ref:$set_dom_node$$,"data-value":$value$jscomp$773$$,onClick:$on_click_SINGLEQUOTE_$$,onPointerEnter:$on_pointer_enter__$1$$,onPointerLeave:$on_pointer_leave__$1$$,className:"main_ui_workspace_context_menu__context-menu-item",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__title",children:$title$jscomp$33$$}),$APP.$cljs$core$truth_$$($shortcut$jscomp$7$$)?(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_context_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$117$$,$p__75556_sc$jscomp$9$$){var $idx$jscomp$110$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__75556_sc$jscomp$9$$,0,null);$p__75556_sc$jscomp$9$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__75556_sc$jscomp$9$$,1,null);$out_arr__44057__auto__$jscomp$117$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__shortcut-key",
children:$p__75556_sc$jscomp$9$$},""+($shortcut$jscomp$7$$??"")+"-"+($idx$jscomp$110$$??"")));return $out_arr__44057__auto__$jscomp$117$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$main$data$shortcuts$split_sc$$($shortcut$jscomp$7$$)))}):null,$APP.$cljs$core$count$$($children$jscomp$299$$)>1?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_context_menu__submenu-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"arrow",size:"s"})}):null,$APP.$cljs$core$count$$($children$jscomp$299$$)>1?(0,$APP.$rumext$v2$jsx$$)("ul",{ref:$submenu_ref$$,style:{display:"none",left:250},onContextMenu:$app$main$ui$workspace$context_menu$prevent_default$$,className:"main_ui_workspace_context_menu__workspace-context-submenu",children:$children$jscomp$299$$}):null]})};$app$main$ui$workspace$context_menu$menu_separator_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_context_menu__separator"})};
$app$main$ui$workspace$context_menu$context_menu_edit_STAR_$$=function($props_75562_shapes$jscomp$183$$){$props_75562_shapes$jscomp$183$$=$props_75562_shapes$jscomp$183$$.shapes;var $enabled_paste_props_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$handle_copy_css$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$copy_selected_css$$())}),
$handle_copy_css_nested$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$copy_selected_css_nested$$())}),$handle_copy_props$$=$APP.$rumext$v2$use_callback$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$workspace$clipboard$copy_selected_props$$())}),$handle_paste_props$$=
$APP.$rumext$v2$use_callback$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$workspace$clipboard$paste_selected_props$$())}),$handle_copy_svg$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$copy_selected_svg$$())}),$handle_copy_text$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$copy_selected_text$$())}),
$handle_hover_copy_paste$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($data$jscomp$459$$){try{var $pdata$jscomp$12$$=$APP.$app$common$transit$decode_str$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$459$$),$and__5023__auto__$jscomp$inline_8496$$=(0,$APP.$app$main$data$workspace$clipboard$paste_data_valid_QMARK_$$)($pdata$jscomp$12$$);var $JSCompiler_inline_result$jscomp$1708$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8496$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3997$copied_props$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($pdata$jscomp$12$$)):$and__5023__auto__$jscomp$inline_8496$$;return $APP.$cljs$core$reset_BANG_$$($enabled_paste_props_STAR_$$,$JSCompiler_inline_result$jscomp$1708$$)}catch($e75563$$){return $APP.$cljs$core$reset_BANG_$$($enabled_paste_props_STAR_$$,!1)}},function(){return $APP.$cljs$core$reset_BANG_$$($enabled_paste_props_STAR_$$,!1)},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$mapcat$$(function($p1__75561_SHARP_$$){return $p1__75561_SHARP_$$.text()},
$APP.$app$util$clipboard$from_navigator$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$clipboard$default_options$$))))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4613$copy$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$clipboard$copy_selected$$())}}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-link"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4651$copy_link$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$clipboard$copy_link_to_clipboard$$())}}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.cut"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4695$cut$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$clipboard$copy_selected$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$delete_selected$$()]))}}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.paste"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4647$paste$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$paste_from_clipboard$$())}}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.duplicate"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4607$duplicate$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$duplicate_or_add_variant$$())}}),(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-paste-as"),onPointerEnter:$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1341$chrome$$)?
$handle_hover_copy_paste$$:null,children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-css"),onClick:$handle_copy_css$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-css-nested"),onClick:$handle_copy_css_nested$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-svg"),onClick:$handle_copy_svg$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-text"),onClick:$handle_copy_text$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.copy-props"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4645$copy_props$$),disabled:$APP.$cljs$core$count$$($props_75562_shapes$jscomp$183$$)>1,onClick:$handle_copy_props$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.paste-props"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4686$paste_props$$),
disabled:$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1341$chrome$$)&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($enabled_paste_props_STAR_$$)),onClick:$handle_paste_props$$})]}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{})]})};
$app$main$ui$workspace$context_menu$context_menu_layer_position_STAR_$$=function($do_bring_forward_props_75565$$){function $on_unmount$jscomp$1$$($id$jscomp$887$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$highlight$dehighlight_shape$$($id$jscomp$887$$))}}function $on_pointer_leave$jscomp$5$$($id$jscomp$886$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$highlight$dehighlight_shape$$($id$jscomp$886$$))}}
function $on_pointer_enter$jscomp$5$$($id$jscomp$885$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$highlight$highlight_shape$$($id$jscomp$885$$))}}function $select_shapes$$($id$jscomp$884$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$selection$select_shape$cljs$0core$0IFn$0_invoke$0arity$01$$($id$jscomp$884$$))}}var $shapes$jscomp$184$$=$do_bring_forward_props_75565$$.shapes;
$do_bring_forward_props_75565$$=$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$workspace$vertical_order_selected$$($APP.$cljs$cst$1939$up$$))});var $do_bring_to_front$$=$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$workspace$vertical_order_selected$$($APP.$cljs$cst$1546$top$$))}),
$do_send_backward$$=$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$workspace$vertical_order_selected$$($APP.$cljs$cst$1938$down$$))}),$do_send_to_back$$=$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$workspace$vertical_order_selected$$($APP.$cljs$cst$1547$bottom$$))}),
$hover_ids_hover_objs$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$current_hover_ids$$),$objects$jscomp$740$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);$hover_ids_hover_objs$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$740$$)),$hover_ids_hover_objs$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$count$$($hover_ids_hover_objs$$)>
1?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.select-layer"),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$118$$,$object$jscomp$37$$){$out_arr__44057__auto__$jscomp$118$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$),
isSelected:$APP.$cljs$core$some$$(function($p1__75564_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($object$jscomp$37$$,$p1__75564_SHARP_$$)},$shapes$jscomp$184$$),onClick:$select_shapes$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$)),onPointerEnter:$on_pointer_enter$jscomp$5$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$)),onPointerLeave:$on_pointer_leave$jscomp$5$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$)),
onUnmount:$on_unmount$jscomp$1$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$)),icon:$APP.$app$util$shape_icon$get_shape_icon$$($object$jscomp$37$$)},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($object$jscomp$37$$)??"")));return $out_arr__44057__auto__$jscomp$118$$},[],$hover_ids_hover_objs$$)}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.forward"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4642$bring_forward$$),onClick:$do_bring_forward_props_75565$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.front"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4634$bring_front$$),onClick:$do_bring_to_front$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.backward"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4669$bring_backward$$),onClick:$do_send_backward$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.back"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4694$bring_back$$),onClick:$do_send_to_back$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{})]})};
$app$main$ui$workspace$context_menu$context_menu_flip_STAR_$$=function(){return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flip-vertical"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4654$flip_vertical$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$flip_vertical_selected$$.$cljs$core$IFn$_invoke$arity$0$())}}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flip-horizontal"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4643$flip_horizontal$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$flip_horizontal_selected$$.$cljs$core$IFn$_invoke$arity$0$())}}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{})]})};
$app$main$ui$workspace$context_menu$context_menu_thumbnail_STAR_$$=function($props_75575_shapes$jscomp$185$$){function $do_toggle_thumbnail$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$toggle_file_thumbnail_selected$$())}$props_75575_shapes$jscomp$185$$=$props_75575_shapes$jscomp$185$$.shapes;var $single_QMARK_$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($props_75575_shapes$jscomp$185$$),1),
$has_frame_QMARK_$$=$APP.$cljs$core$some$$($APP.$app$common$files$helpers$frame_shape_QMARK_$$,$props_75575_shapes$jscomp$185$$);return $APP.$cljs$core$truth_$$($single_QMARK_$jscomp$6$$?$has_frame_QMARK_$$:$single_QMARK_$jscomp$6$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$every_QMARK_$$($APP.$cljs$cst$2903$use_for_thumbnail$$,$props_75575_shapes$jscomp$185$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.thumbnail-remove"),
onClick:$do_toggle_thumbnail$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.thumbnail-set"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4690$thumbnail_set$$),onClick:$do_toggle_thumbnail$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{})]}):null};
$app$main$ui$workspace$context_menu$context_menu_rename_STAR_$$=function($props_75576$$){function $do_rename$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$start_rename_selected$$())}return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($props_75576$$.shapes),1)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.rename"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4649$rename$$),onClick:$do_rename$$})]}):null};
$app$main$ui$workspace$context_menu$context_menu_group_STAR_$$=function($props_75584_shapes$jscomp$187$$){function $do_create_artboard_from_selection$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$create_artboard_from_selection$cljs$0core$0IFn$0_invoke$0arity$05$$(null,null,null,null))}function $do_unmask_group$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$unmask_group$$.$cljs$core$IFn$_invoke$arity$0$())}
function $do_mask_group$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$mask_group$$.$cljs$core$IFn$_invoke$arity$0$())}function $do_remove_group$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$groups$ungroup_selected$$())}function $do_create_group$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$groups$group_selected$$())}
$props_75584_shapes$jscomp$187$$=$props_75584_shapes$jscomp$187$$.shapes;var $multiple_QMARK_$jscomp$2$$=$APP.$cljs$core$count$$($props_75584_shapes$jscomp$187$$)>1,$single_QMARK_$jscomp$7$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($props_75584_shapes$jscomp$187$$),1),$objects$jscomp$741$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$any_in_copy_QMARK_$$=$APP.$cljs$core$some$$(function($p1__75581_SHARP_$$){return $APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($objects$jscomp$741$$,
$p1__75581_SHARP_$$)},$props_75584_shapes$jscomp$187$$),$any_is_variant_QMARK_$$=$APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$props_75584_shapes$jscomp$187$$),$has_frame_QMARK_$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__75582_SHARP_$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($p1__75582_SHARP_$$)&&!$APP.$app$common$types$component$instance_head_QMARK_$$($p1__75582_SHARP_$$)&&
$APP.$cljs$core$not$$($APP.$app$common$types$component$is_variant_container_QMARK_$$($p1__75582_SHARP_$$))},$props_75584_shapes$jscomp$187$$),$has_group_QMARK_$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__75583_SHARP_$$){return $APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($p1__75583_SHARP_$$)&&!$APP.$app$common$types$component$instance_head_QMARK_$$($p1__75583_SHARP_$$)&&$APP.$cljs$core$not$$($APP.$app$common$types$component$is_variant_container_QMARK_$$($p1__75583_SHARP_$$))},
$props_75584_shapes$jscomp$187$$),$has_bool_QMARK_$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$bool_shape_QMARK_$$,$props_75584_shapes$jscomp$187$$),$has_mask_QMARK_$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$1593$masked_group$$,$props_75584_shapes$jscomp$187$$),$is_group_QMARK_$jscomp$1$$=$single_QMARK_$jscomp$7$$?$has_group_QMARK_$jscomp$1$$:$single_QMARK_$jscomp$7$$,$is_bool_QMARK_$$=$single_QMARK_$jscomp$7$$?
$has_bool_QMARK_$$:$single_QMARK_$jscomp$7$$;return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($any_in_copy_QMARK_$$)?$any_in_copy_QMARK_$$:$any_is_variant_QMARK_$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($has_bool_QMARK_$$)?$has_bool_QMARK_$$:$APP.$cljs$core$truth_$$($has_group_QMARK_$jscomp$1$$)?$has_group_QMARK_$jscomp$1$$:$APP.$cljs$core$truth_$$($has_mask_QMARK_$jscomp$1$$)?
$has_mask_QMARK_$jscomp$1$$:$has_frame_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.ungroup"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4675$ungroup$$),onClick:$do_remove_group$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.group"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$1592$group$$),onClick:$do_create_group$$}),$APP.$cljs$core$truth_$$(function(){if($multiple_QMARK_$jscomp$2$$)return $multiple_QMARK_$jscomp$2$$;var $or__5025__auto____$1$jscomp$110$$=$APP.$cljs$core$truth_$$($is_group_QMARK_$jscomp$1$$)?$APP.$cljs$core$not$$($has_mask_QMARK_$jscomp$1$$):$is_group_QMARK_$jscomp$1$$;return $APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$110$$)?$or__5025__auto____$1$jscomp$110$$:$is_bool_QMARK_$$}())?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.mask"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$2647$mask$$),onClick:$do_mask_group$$}):null,$APP.$cljs$core$truth_$$($has_mask_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.unmask"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4680$unmask$$),onClick:$do_unmask_group$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.create-artboard-from-selection"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4676$artboard_selection$$),onClick:$do_create_artboard_from_selection$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{})]}):null})};
$app$main$ui$workspace$context_menu$context_focus_mode_menu_STAR_$$=function(){var $focus$jscomp$14$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$cljs$core$empty_QMARK_$$($focus$jscomp$14$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.focus.focus-on"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.focus.focus-off"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4653$toggle_focus_mode$$),
onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$selection$toggle_focus_mode$$())}})};
$app$main$ui$workspace$context_menu$context_menu_path_STAR_$$=function($has_group_QMARK_$jscomp$2_props_75596$$){function $make_do_bool$$($bool_type$jscomp$9$$){return function(){if($multiple_QMARK_$jscomp$3$$)var $JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$main$data$workspace$create_bool$$)($bool_type$jscomp$9$$));
else if($APP.$cljs$core$truth_$$($is_group_QMARK_$jscomp$2$$)){$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes$jscomp$188$$));
$JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$=$app$main$data$workspace$bool$group_to_bool$$($JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$,$bool_type$jscomp$9$$);$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$.call($APP.$app$main$store$emit_BANG_$$,
$JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$)}else $APP.$cljs$core$truth_$$($is_bool_QMARK_$jscomp$1$$)?($JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$,$JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes$jscomp$188$$)),$JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$=$app$main$data$workspace$bool$change_bool_type$$($JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$,$bool_type$jscomp$9$$),$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=
$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1640_JSCompiler_inline_result$jscomp$1643_param70676$jscomp$inline_8498_param70679$jscomp$inline_8501$$)):$JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$=null;return $JSCompiler_temp$jscomp$1635_JSCompiler_temp$jscomp$1636_JSCompiler_temp$jscomp$1637_JSCompiler_temp_const$jscomp$1638_JSCompiler_temp_const$jscomp$1641$$}}
function $do_transform_to_path$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$convert_selected_to_path$$.$cljs$core$IFn$_invoke$arity$0$())}function $do_start_editing$$(){return $APP.$app$util$timers$schedule$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$workspace$start_editing_selected$$())})}var $shapes$jscomp$188$$=$has_group_QMARK_$jscomp$2_props_75596$$.shapes,
$disable_flatten$$=$has_group_QMARK_$jscomp$2_props_75596$$.disableFlatten,$disable_booleans$$=$has_group_QMARK_$jscomp$2_props_75596$$.disableBooleans,$multiple_QMARK_$jscomp$3$$=$APP.$cljs$core$count$$($shapes$jscomp$188$$)>1,$single_QMARK_$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($shapes$jscomp$188$$),1);$has_group_QMARK_$jscomp$2_props_75596$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$group_shape_QMARK_$$,
$shapes$jscomp$188$$);var $has_bool_QMARK_$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$bool_shape_QMARK_$$,$shapes$jscomp$188$$),$has_frame_QMARK_$jscomp$2$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$frame_shape_QMARK_$$,$shapes$jscomp$188$$),$has_path_QMARK_$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$path_shape_QMARK_$$,
$shapes$jscomp$188$$),$is_group_QMARK_$jscomp$2$$=$single_QMARK_$jscomp$8$$?$has_group_QMARK_$jscomp$2_props_75596$$:$single_QMARK_$jscomp$8$$,$is_bool_QMARK_$jscomp$1$$=$single_QMARK_$jscomp$8$$?$has_bool_QMARK_$jscomp$1$$:$single_QMARK_$jscomp$8$$;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$single_QMARK_$jscomp$8$$&&$APP.$cljs$core$not$$($single_QMARK_$jscomp$8$$?$has_frame_QMARK_$jscomp$2$$:$single_QMARK_$jscomp$8$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.edit"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4673$start_editing$$),onClick:$do_start_editing$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($disable_flatten$$)?$disable_flatten$$:$APP.$cljs$core$truth_$$($has_frame_QMARK_$jscomp$2$$)?$has_frame_QMARK_$jscomp$2$$:$has_path_QMARK_$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flatten"),onClick:$do_transform_to_path$$}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$703_and__5023__auto____$1$jscomp$123$$=$APP.$cljs$core$not$$($has_frame_QMARK_$jscomp$2$$);return $and__5023__auto__$jscomp$703_and__5023__auto____$1$jscomp$123$$?($and__5023__auto__$jscomp$703_and__5023__auto____$1$jscomp$123$$=$APP.$cljs$core$not$$($disable_booleans$$))?$multiple_QMARK_$jscomp$3$$?$multiple_QMARK_$jscomp$3$$:
$single_QMARK_$jscomp$8$$?$APP.$cljs$core$truth_$$($is_group_QMARK_$jscomp$2$$)?$is_group_QMARK_$jscomp$2$$:$is_bool_QMARK_$jscomp$1$$:$single_QMARK_$jscomp$8$$:$and__5023__auto__$jscomp$703_and__5023__auto____$1$jscomp$123$$:$and__5023__auto__$jscomp$703_and__5023__auto____$1$jscomp$123$$}())?(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.path"),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.union"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4644$bool_union$$),onClick:$make_do_bool$$($APP.$cljs$cst$734$union$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.difference"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4646$bool_difference$$),
onClick:$make_do_bool$$($APP.$cljs$cst$2010$difference$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.intersection"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4610$bool_intersection$$),onClick:$make_do_bool$$($APP.$cljs$cst$2019$intersection$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.exclude"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4665$bool_exclude$$),onClick:$make_do_bool$$($APP.$cljs$cst$2018$exclude$$)}),$APP.$cljs$core$truth_$$($single_QMARK_$jscomp$8$$?$APP.$cljs$core$truth_$$($is_bool_QMARK_$jscomp$1$$)?$APP.$cljs$core$not$$($disable_flatten$$):$is_bool_QMARK_$jscomp$1$$:$single_QMARK_$jscomp$8$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flatten"),onClick:$do_transform_to_path$$})]}):null]}):null]})};
$app$main$ui$workspace$context_menu$context_menu_layer_options_STAR_$$=function($props_75611_shapes$jscomp$189$$){function $do_unlock_shape$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$update_shape_flags$$($ids$jscomp$261$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1607$blocked$$,!1],null)))}function $do_lock_shape$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$update_shape_flags$$($ids$jscomp$261$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1607$blocked$$,!0],null)))}function $do_hide_shape$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$update_shape_flags$$($ids$jscomp$261$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1604$hidden$$,!0],null)))}function $do_show_shape$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$update_shape_flags$$($ids$jscomp$261$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1604$hidden$$,!1],null)))}$props_75611_shapes$jscomp$189$$=$props_75611_shapes$jscomp$189$$.shapes;var $ids$jscomp$261$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$props_75611_shapes$jscomp$189$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$every_QMARK_$$($APP.$cljs$cst$1604$hidden$$,$props_75611_shapes$jscomp$189$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.show"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4661$toggle_visibility$$),onClick:$do_show_shape$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.hide"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4661$toggle_visibility$$),onClick:$do_hide_shape$$}),
$APP.$cljs$core$every_QMARK_$$($APP.$cljs$cst$1607$blocked$$,$props_75611_shapes$jscomp$189$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.unlock"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4682$toggle_lock$$),onClick:$do_unlock_shape$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.lock"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4682$toggle_lock$$),onClick:$do_lock_shape$$})]})};
$app$main$ui$workspace$context_menu$context_menu_prototype_STAR_$$=function($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$){function $do_add_flow$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$add_flow_selected_frame$$())}$props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$=$props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$.shapes;var $flows$jscomp$8$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_flows$$),
$options_mode_prototype_QMARK_$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$options_mode_global$$);$options_mode_prototype_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode_prototype_QMARK_$$,$APP.$cljs$cst$3601$prototype$$);var $single_QMARK_$jscomp$9$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$),1),$has_frame_QMARK_$jscomp$3$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$frame_shape_QMARK_$$,
$props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$);return $APP.$cljs$core$truth_$$($options_mode_prototype_QMARK_$$?$single_QMARK_$jscomp$9$$?$has_frame_QMARK_$jscomp$3$$:$single_QMARK_$jscomp$9$$:$options_mode_prototype_QMARK_$$)?($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$=$APP.$app$common$types$page$get_frame_flow$$($flows$jscomp$8$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$))),
$APP.$cljs$core$truth_$$($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.delete-flow-start"),onClick:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$remove_flow$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($props_75613_shapes$jscomp$190_temp__5823__auto__$jscomp$221$$)))}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flow-start"),onClick:$do_add_flow$$})):null};
$app$main$ui$workspace$context_menu$context_menu_layout_STAR_$$=function($props_75615_single_QMARK_$jscomp$10$$){var $shapes$jscomp$191$$=$props_75615_single_QMARK_$jscomp$10$$.shapes;$props_75615_single_QMARK_$jscomp$10$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($shapes$jscomp$191$$),1);var $objects$jscomp$742$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$any_in_copy_QMARK_$jscomp$1$$=$APP.$cljs$core$some$$($APP.$cljs$core$true_QMARK_$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75614_SHARP_$$){return $APP.$app$common$types$container$has_any_copy_parent_QMARK_$$($objects$jscomp$742$$,$p1__75614_SHARP_$$)},$shapes$jscomp$191$$)),$has_flex_QMARK_$$=$props_75615_single_QMARK_$jscomp$10$$&&$APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$shape$layout$flex_layout_QMARK_$$,$shapes$jscomp$191$$),$has_grid_QMARK_$$=$props_75615_single_QMARK_$jscomp$10$$&&$APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$shape$layout$grid_layout_QMARK_$$,
$shapes$jscomp$191$$),$any_is_variant_QMARK_$jscomp$1$$=$APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$shapes$jscomp$191$$),$on_add_layout$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$305_type$jscomp$588$$){$event$jscomp$305_type$jscomp$588$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$305_type$jscomp$588$$),"value"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$workspace$shape_layout$create_layout$$($event$jscomp$305_type$jscomp$588$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:context-menu"],null)))}),$on_remove_layout$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$191$$)],function(){var $ids$jscomp$262$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$shapes$jscomp$191$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$remove_layout$$($ids$jscomp$262$$))});
return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$not$$($any_in_copy_QMARK_$jscomp$1$$)?$has_flex_QMARK_$$||$has_grid_QMARK_$$?(0,$APP.$rumext$v2$jsxs$$)("div",{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),$has_flex_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.remove-flex"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4619$toggle_layout_flex$$),
onClick:$on_remove_layout$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.remove-grid"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4637$toggle_layout_grid$$),onClick:$on_remove_layout$$})]}):$props_75615_single_QMARK_$jscomp$10$$||$APP.$cljs$core$not$$($any_is_variant_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-flex"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4619$toggle_layout_flex$$),value:"flex",onClick:$on_add_layout$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-grid"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4637$toggle_layout_grid$$),
value:"grid",onClick:$on_add_layout$$})]}):null:null})};
$app$main$ui$workspace$context_menu$context_menu_component_STAR_$$=function($props_75623_single_QMARK_$jscomp$11$$){var $shapes$jscomp$192$$=$props_75623_single_QMARK_$jscomp$11$$.shapes;$props_75623_single_QMARK_$jscomp$11$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($shapes$jscomp$192$$),1);var $objects$jscomp$743$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$can_make_component$jscomp$2$$=$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$true_QMARK_$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75622_SHARP_$$){return $APP.$app$common$types$container$valid_shape_for_component_QMARK_$$($objects$jscomp$743$$,$p1__75622_SHARP_$$)},$shapes$jscomp$192$$)),$components_menu_entries$$=$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$$($shapes$jscomp$192$$),$variant_container_QMARK_$jscomp$1$$=$props_75623_single_QMARK_$jscomp$11$$?$APP.$app$common$types$component$is_variant_container_QMARK_$$($APP.$cljs$core$first$$($shapes$jscomp$192$$)):
$props_75623_single_QMARK_$jscomp$11$$,$all_main_QMARK_$jscomp$4$$=$APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$component$main_instance_QMARK_$$,$shapes$jscomp$192$$),$any_variant_QMARK_$jscomp$1$$=$APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$shapes$jscomp$192$$),$do_add_component$$=$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$workspace$libraries$add_component$cljs$0core$0IFn$0_invoke$0arity$02$$(null,
null))}),$do_add_multiple_components$$=$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$workspace$libraries$add_multiple_components$$())}),$do_combine_as_variants$$=$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$workspace$variants$combine_selected_as_variants$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$4269$trigger$$,"workspace:context-menu-component"],null)))}),$do_add_variant$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$192$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-new-variant",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"workspace:context-menu-component"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes$jscomp$192$$)))]))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$can_make_component$jscomp$2$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,
{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.create-component"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4683$create_component_variant$$),onClick:$do_add_component$$}),$props_75623_single_QMARK_$jscomp$11$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.create-multiple-components"),
onClick:$do_add_multiple_components$$})]}):null,$APP.$cljs$core$seq$$($components_menu_entries$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$119$$,$entry$jscomp$70$$){$out_arr__44057__auto__$jscomp$119$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$cljs$cst$937$title$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$70$$),shortcut:$APP.$cljs$core$contains_QMARK_$$($entry$jscomp$70$$,$cljs$cst$5350$shortcut$$)?$app$main$data$workspace$shortcuts$get_tooltip$$($cljs$cst$5350$shortcut$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$70$$)):null,onClick:$APP.$cljs$cst$2627$action$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$70$$)},$APP.$cljs$cst$937$title$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$70$$)));return $out_arr__44057__auto__$jscomp$119$$},
[],$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$some_QMARK_$$,$components_menu_entries$$))]}):null,$APP.$cljs$core$truth_$$($variant_container_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant"),
shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4683$create_component_variant$$),onClick:$do_add_variant$jscomp$1$$})]}):null,!$props_75623_single_QMARK_$jscomp$11$$&&$all_main_QMARK_$jscomp$4$$&&$APP.$cljs$core$not$$($any_variant_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.combine-as-variants"),onClick:$do_combine_as_variants$$})]}):null]})};
$app$main$ui$workspace$context_menu$context_menu_delete_STAR_$$=function(){return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_separator_STAR_$$,{}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.delete"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4648$delete$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$delete_selected$$())}})]})};
$app$main$ui$workspace$context_menu$page_item_context_menu_STAR_$$=function($page$jscomp$149_props_75693$$){function $do_delete$jscomp$1$$(){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$2430$confirm$$,$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-page.title"),$APP.$cljs$cst$141$message$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-page.body"),$APP.$cljs$cst$2436$on_accept$$,$delete_fn$jscomp$2$$],null)))}function $delete_fn$jscomp$2$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$pages$delete_page$$($id$jscomp$888$$))}var $deletable_QMARK__mdata$jscomp$15$$=$page$jscomp$149_props_75693$$.mdata;$page$jscomp$149_props_75693$$=$APP.$cljs$cst$1608$page$$.$cljs$core$IFn$_invoke$arity$1$($deletable_QMARK__mdata$jscomp$15$$);
$deletable_QMARK__mdata$jscomp$15$$=$cljs$cst$5353$deletable_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($deletable_QMARK__mdata$jscomp$15$$);var $id$jscomp$888$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$149_props_75693$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($deletable_QMARK__mdata$jscomp$15$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.delete"),
onClick:$do_delete$jscomp$1$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.rename"),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$start_rename_page_item$$($id$jscomp$888$$))}}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.duplicate"),
onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$pages$duplicate_page$$($id$jscomp$888$$),$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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"duplicate-page"],null))]))}})]})};
$app$main$ui$workspace$context_menu$viewport_context_menu_STAR_$$=function(){function $do_toggle_focus_mode$jscomp$1$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$selection$toggle_focus_mode$$())}function $do_paste$jscomp$1$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$paste_from_clipboard$$())}var $focus$jscomp$15$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$),
$read_only_QMARK_$jscomp$9$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$read_only_QMARK_$jscomp$9$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.paste"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4647$paste$$),onClick:$do_paste$jscomp$1$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.hide-ui"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4639$hide_ui$$),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$4639$hide_ui$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-context-menu"))}}),$APP.$app$common$data$not_empty_QMARK_$$($focus$jscomp$15$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.focus.focus-off"),shortcut:$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4653$toggle_focus_mode$$),onClick:$do_toggle_focus_mode$jscomp$1$$}):null]})};
$app$main$ui$workspace$context_menu$grid_track_context_menu_STAR_$$=function($do_delete_track_map__75715__$1_props_75713$$){$do_delete_track_map__75715__$1_props_75713$$=$APP.$cljs$core$__destructure_map$$($do_delete_track_map__75715__$1_props_75713$$.mdata);var $type$jscomp$589$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($do_delete_track_map__75715__$1_props_75713$$,$APP.$cljs$cst$139$type$$),$index$jscomp$466$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($do_delete_track_map__75715__$1_props_75713$$,
$APP.$cljs$cst$1779$index$$),$grid_id$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($do_delete_track_map__75715__$1_props_75713$$,$APP.$cljs$cst$4353$grid_id$$);$do_delete_track_map__75715__$1_props_75713$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid_id$jscomp$23$$),$APP.$rumext$v2$adapt$$($type$jscomp$589$$),$APP.$rumext$v2$adapt$$($index$jscomp$466$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$remove_layout_track$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$grid_id$jscomp$23$$],null),$type$jscomp$589$$,$index$jscomp$466$$))});var $do_add_track_before$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid_id$jscomp$23$$),$APP.$rumext$v2$adapt$$($type$jscomp$589$$),$APP.$rumext$v2$adapt$$($index$jscomp$466$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$add_layout_track$cljs$0core$0IFn$0_invoke$0arity$04$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$grid_id$jscomp$23$$],null),$type$jscomp$589$$,$APP.$app$common$types$shape$layout$default_track_value$$,$index$jscomp$466$$))}),$do_add_track_after$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid_id$jscomp$23$$),$APP.$rumext$v2$adapt$$($type$jscomp$589$$),$APP.$rumext$v2$adapt$$($index$jscomp$466$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$add_layout_track$cljs$0core$0IFn$0_invoke$0arity$04$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$grid_id$jscomp$23$$],null),$type$jscomp$589$$,$APP.$app$common$types$shape$layout$default_track_value$$,$index$jscomp$466$$+1))}),$do_duplicate_track$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid_id$jscomp$23$$),$APP.$rumext$v2$adapt$$($type$jscomp$589$$),$APP.$rumext$v2$adapt$$($index$jscomp$466$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$duplicate_layout_track$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$grid_id$jscomp$23$$],null),$type$jscomp$589$$,$index$jscomp$466$$))}),$do_delete_track_shapes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid_id$jscomp$23$$),$APP.$rumext$v2$adapt$$($type$jscomp$589$$),$APP.$rumext$v2$adapt$$($index$jscomp$466$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$remove_layout_track$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$grid_id$jscomp$23$$],null),$type$jscomp$589$$,$index$jscomp$466$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4254$with_shapes_QMARK_$$,!0],null)])))});return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$589$$,$APP.$cljs$cst$216$column$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.column.duplicate"),onClick:$do_duplicate_track$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.column.add-before"),onClick:$do_add_track_before$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.column.add-after"),
onClick:$do_add_track_after$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.column.delete"),onClick:$do_delete_track_map__75715__$1_props_75713$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.column.delete-shapes"),onClick:$do_delete_track_shapes$$})]}):
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.row.duplicate"),onClick:$do_duplicate_track$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.row.add-before"),onClick:$do_add_track_before$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.row.add-after"),onClick:$do_add_track_after$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.row.delete"),onClick:$do_delete_track_map__75715__$1_props_75713$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-track.row.delete-shapes"),onClick:$do_delete_track_shapes$$})]})};
$app$main$ui$workspace$context_menu$grid_cells_context_menu_STAR_$$=function($map__75730__$1_props_75726_single_QMARK_$jscomp$12$$){$map__75730__$1_props_75726_single_QMARK_$jscomp$12$$=$APP.$cljs$core$__destructure_map$$($map__75730__$1_props_75726_single_QMARK_$jscomp$12$$.mdata);var $grid$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75730__$1_props_75726_single_QMARK_$jscomp$12$$,$APP.$cljs$cst$1643$grid$$),$cells$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75730__$1_props_75726_single_QMARK_$jscomp$12$$,
$APP.$cljs$cst$4357$cells$$);$map__75730__$1_props_75726_single_QMARK_$jscomp$12$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($cells$jscomp$26$$),1);var $can_merge_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($cells$jscomp$26$$)],function(){return $app$common$types$shape$layout$valid_area_cells_QMARK_$$($cells$jscomp$26$$)}),$do_merge_cells$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$6$$),
$APP.$rumext$v2$adapt$$($cells$jscomp$26$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$merge_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$6$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$cells$jscomp$26$$)))}),$do_create_board$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$6$$),$APP.$rumext$v2$adapt$$($cells$jscomp$26$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$create_cell_board$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$6$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$cells$jscomp$26$$)))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$map__75730__$1_props_75726_single_QMARK_$jscomp$12$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-cells.merge"),onClick:$do_merge_cells$$,disabled:$APP.$cljs$core$not$$($can_merge_QMARK_$$)}),$map__75730__$1_props_75726_single_QMARK_$jscomp$12$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-cells.area"),onClick:$do_merge_cells$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.context-menu.grid-cells.create-board"),onClick:$do_create_board$$,disabled:!$map__75730__$1_props_75726_single_QMARK_$jscomp$12$$&&$APP.$cljs$core$not$$($can_merge_QMARK_$$)})]})};
$app$main$ui$workspace$context_menu$context_menu_STAR_$$=function(){var $mdata$jscomp$18$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$context_menu$menu_ref$$),$top$jscomp$15$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$18$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1500$y$$],null))-20,$left$jscomp$29$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$18$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1499$x$$],null)),$dropdown_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$read_only_QMARK_$jscomp$10$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($mdata$jscomp$18$$)],function(){var $temp__5825__auto__$jscomp$335$$=$APP.$rumext$v2$ref_val$$($dropdown_ref$$);
if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$335$$)){var $bounding_rect$jscomp$1$$=$APP.$app$util$dom$get_bounding_rect$$($temp__5825__auto__$jscomp$335$$),$window_size$jscomp$4$$=$APP.$app$util$dom$get_window_size$$(),$delta_x$jscomp$3$$=function(){var $x__5110__auto__$jscomp$132$$=$APP.$cljs$cst$258$right$$.$cljs$core$IFn$_invoke$arity$1$($bounding_rect$jscomp$1$$)+250-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($window_size$jscomp$4$$);return $x__5110__auto__$jscomp$132$$>
0?$x__5110__auto__$jscomp$132$$:0}(),$delta_y$jscomp$2$$=function(){var $x__5110__auto__$jscomp$133$$=$APP.$cljs$cst$1547$bottom$$.$cljs$core$IFn$_invoke$arity$1$($bounding_rect$jscomp$1$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($window_size$jscomp$4$$);return $x__5110__auto__$jscomp$133$$>0?$x__5110__auto__$jscomp$133$$:0}(),$new_style$jscomp$2$$=["top: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($top$jscomp$15$$-$delta_y$jscomp$2$$),"px; left: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$29$$-
$delta_x$jscomp$3$$),"px;"].join("");return $delta_x$jscomp$3$$>0||$delta_y$jscomp$2$$>0?$temp__5825__auto__$jscomp$335$$.setAttribute("style",$new_style$jscomp$2$$):null}return null});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$APP.$cljs$core$boolean$0$$($mdata$jscomp$18$$),"on-close":function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$hide_context_menu$$)},children:(0,$APP.$rumext$v2$jsx$$)("div",
{ref:$dropdown_ref$$,style:{top:$top$jscomp$15$$,left:$left$jscomp$29$$},"data-testid":"context-menu",onContextMenu:$app$main$ui$workspace$context_menu$prevent_default$$,className:"main_ui_workspace_context_menu__workspace-context-menu",children:(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_context_menu__context-list",children:$read_only_QMARK_$jscomp$10$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$viewport_context_menu_STAR_$$,{mdata:$mdata$jscomp$18$$}):function(){var $G__75751$$=
$APP.$cljs$cst$945$kind$$.$cljs$core$IFn$_invoke$arity$1$($mdata$jscomp$18$$);switch($G__75751$$ instanceof $APP.$cljs$core$Keyword$$?$G__75751$$.$fqn$:null){case "shape":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$shape_context_menu_STAR_$$,{mdata:$mdata$jscomp$18$$});case "page":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$page_item_context_menu_STAR_$$,{mdata:$mdata$jscomp$18$$});case "grid-track":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$grid_track_context_menu_STAR_$$,
{mdata:$mdata$jscomp$18$$});case "grid-cells":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$grid_cells_context_menu_STAR_$$,{mdata:$mdata$jscomp$18$$});default:return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$viewport_context_menu_STAR_$$,{mdata:$mdata$jscomp$18$$})}}()})})})};
$app$main$ui$workspace$coordinates$coordinates$$=function($colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$){$colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$=$APP.$rumext$v2$util$wrap_props$$($colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$);$colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$=$APP.$cljs$core$__destructure_map$$($colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$);$colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$,
$cljs$cst$5354$colorpalette_QMARK_$$);var $coords$jscomp$3$$=$app$main$ui$hooks$use_rxsub$$();return(0,$APP.$rumext$v2$jsxs$$)("div",{className:($APP.$cljs$core$truth_$$($colorpalette_QMARK__map__75538_map__75538__$1_props_75537$$)?"main_ui_workspace_coordinates__container-color-palette-open":"")+" main_ui_workspace_coordinates__container",children:[(0,$APP.$rumext$v2$jsx$$)("span",{alt:"x",className:"main_ui_workspace_coordinates__coordinate",children:["X: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$2$($coords$jscomp$3$$,
"-"))].join("")}),(0,$APP.$rumext$v2$jsx$$)("span",{alt:"y",className:"main_ui_workspace_coordinates__coordinate",children:["Y: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$2$($coords$jscomp$3$$,"-"))].join("")})]})};
$app$main$ui$workspace$libraries$get_library_summary$$=function($data$jscomp$460$$){var $colors$jscomp$10$$=$APP.$cljs$core$count$$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$460$$)),$typographies$jscomp$1$$=$APP.$cljs$core$count$$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$460$$)),$components$jscomp$8$$=$APP.$cljs$core$count$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75967_SHARP_$$){return $APP.$app$common$files$variant$is_secondary_variant_QMARK_$$($p1__75967_SHARP_$$,
$data$jscomp$460$$)},$APP.$app$common$types$components_list$components_seq$$($data$jscomp$460$$)));return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$5355$is_empty$$,$components$jscomp$8$$===0&&$colors$jscomp$10$$===0&&$typographies$jscomp$1$$===0,$APP.$cljs$cst$2174$colors$$,$colors$jscomp$10$$,$APP.$cljs$cst$2429$graphics$$,0,$APP.$cljs$cst$2177$typographies$$,$typographies$jscomp$1$$,$APP.$cljs$cst$1622$components$$,$components$jscomp$8$$],null)};
$app$main$ui$workspace$libraries$adapt_backend_summary$$=function($summary$jscomp$2$$){var $components$jscomp$9$$=function(){var $or__5025__auto__$jscomp$1026$$=$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$2$$));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1026$$)?$or__5025__auto__$jscomp$1026$$:0}(),$graphics$jscomp$1$$=function(){var $or__5025__auto__$jscomp$1027$$=$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1623$media$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$2$$));
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1027$$)?$or__5025__auto__$jscomp$1027$$:0}(),$typographies$jscomp$2$$=function(){var $or__5025__auto__$jscomp$1028$$=$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$2$$));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1028$$)?$or__5025__auto__$jscomp$1028$$:0}(),$colors$jscomp$11$$=function(){var $or__5025__auto__$jscomp$1029$$=$APP.$cljs$cst$1078$count$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($summary$jscomp$2$$));
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1029$$)?$or__5025__auto__$jscomp$1029$$:0}();return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$5355$is_empty$$,$components$jscomp$9$$===0&&$graphics$jscomp$1$$===0&&$colors$jscomp$11$$===0&&$typographies$jscomp$2$$===0,$APP.$cljs$cst$1622$components$$,$components$jscomp$9$$,$APP.$cljs$cst$2429$graphics$$,$graphics$jscomp$1$$,$APP.$cljs$cst$2177$typographies$$,$typographies$jscomp$2$$,$APP.$cljs$cst$2174$colors$$,$colors$jscomp$11$$],
null)};
$app$main$ui$workspace$libraries$describe_library$$=function($G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$,$G__75984__$3$jscomp$inline_8507_colors_count$$,$JSCompiler_inline_result$jscomp$1713_typography_count$$){var $all_zero_QMARK_$$=$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$===0&&$G__75984__$3$jscomp$inline_8507_colors_count$$===0&&$JSCompiler_inline_result$jscomp$1713_typography_count$$===0,$JSCompiler_temp_const$jscomp$1712$$=$APP.$cljs$core$str$$,
$JSCompiler_temp_const$jscomp$1711$$=$JSCompiler_temp_const$jscomp$1712$$.$cljs$core$IFn$_invoke$arity$1$,$JSCompiler_temp_const$jscomp$1709$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$,$G__75984$jscomp$inline_8504$$=$APP.$cljs$core$PersistentVector$EMPTY$$;$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$=$all_zero_QMARK_$$||$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$>0?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75984$jscomp$inline_8504$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.components",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$)]))):$G__75984$jscomp$inline_8504$$;$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$=$all_zero_QMARK_$$?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.graphics",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$(0)]))):$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$;$G__75984__$3$jscomp$inline_8507_colors_count$$=$all_zero_QMARK_$$||$G__75984__$3$jscomp$inline_8507_colors_count$$>0?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.colors",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($G__75984__$3$jscomp$inline_8507_colors_count$$)]))):$G__75984__$1$jscomp$inline_8505_G__75984__$2$jscomp$inline_8506_components_count$$;$JSCompiler_inline_result$jscomp$1713_typography_count$$=$all_zero_QMARK_$$||$JSCompiler_inline_result$jscomp$1713_typography_count$$>0?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__75984__$3$jscomp$inline_8507_colors_count$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.typography",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($JSCompiler_inline_result$jscomp$1713_typography_count$$)]))):$G__75984__$3$jscomp$inline_8507_colors_count$$;return[$JSCompiler_temp_const$jscomp$1711$$.call($JSCompiler_temp_const$jscomp$1712$$,$JSCompiler_temp_const$jscomp$1709$$.call($APP.$cuerdas$core$join$$," · ",$JSCompiler_inline_result$jscomp$1713_typography_count$$)),
" "].join("")};
$app$main$ui$workspace$libraries$library_description_STAR_$$=function($components_count$jscomp$1_props_75997$$){var $colors_count$jscomp$1_summary$jscomp$3$$=$components_count$jscomp$1_props_75997$$.summary;$components_count$jscomp$1_props_75997$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($colors_count$jscomp$1_summary$jscomp$3$$,$APP.$cljs$cst$1622$components$$);var $graphics_count$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($colors_count$jscomp$1_summary$jscomp$3$$,$APP.$cljs$cst$2429$graphics$$),
$typography_count$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($colors_count$jscomp$1_summary$jscomp$3$$,$APP.$cljs$cst$2177$typographies$$);$colors_count$jscomp$1_summary$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($colors_count$jscomp$1_summary$jscomp$3$$,$APP.$cljs$cst$2174$colors$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$components_count$jscomp$1_props_75997$$>0?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_libraries__element-count",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.components",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($components_count$jscomp$1_props_75997$$)]))}):null,$graphics_count$jscomp$1$$>0?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_libraries__element-count",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.graphics",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($graphics_count$jscomp$1$$)]))}):
null,$colors_count$jscomp$1_summary$jscomp$3$$>0?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_libraries__element-count",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.colors",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($colors_count$jscomp$1_summary$jscomp$3$$)]))}):null,$typography_count$jscomp$1$$>0?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_libraries__element-count",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.typography",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($typography_count$jscomp$1$$)]))}):null]})};
$app$main$ui$workspace$libraries$sample_library_entry_STAR_$$=function($library$jscomp$32_props_76005$$){var $importing$$=$library$jscomp$32_props_76005$$.importing;$library$jscomp$32_props_76005$$=$library$jscomp$32_props_76005$$.library;var $id$jscomp$889$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$32_props_76005$$),$importing_QMARK_$$=$APP.$cljs$core$_deref$$($importing$$),$team_id$jscomp$135$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_team_id$$),
$on_error$jscomp$72$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($importing$$,null);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.libraries-and-templates.import-error")))}),$on_success$jscomp$57$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$135$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$team$fetch_shared_files$cljs$0core$0IFn$0_invoke$0arity$01$$($team_id$jscomp$135$$))}),
$import_library$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_success$jscomp$57$$),$APP.$rumext$v2$adapt$$($on_error$jscomp$72$$)],function(){$APP.$cljs$core$reset_BANG_$$($importing$$,$id$jscomp$889$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$dashboard$clone_template$$($APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4777$template_id$$,$id$jscomp$889$$],null),
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2445$on_success$$,$on_success$jscomp$57$$,$APP.$cljs$cst$1281$on_error$$,$on_error$jscomp$72$$],null))))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__sample-library-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__sample-library-item-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$32_props_76005$$)}),(0,$APP.$rumext$v2$jsx$$)("input",
{type:"button",value:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($importing_QMARK_$$,$id$jscomp$889$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.adding"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.add"),onClick:$import_library$$,className:"main_ui_workspace_libraries__sample-library-button "+($importing_QMARK_$$==null?"main_ui_workspace_libraries__sample-library-add":"")+" "+($importing_QMARK_$$!=null?"main_ui_workspace_libraries__sample-library-adding":
"")})]},""+($id$jscomp$889$$??""))};
$app$main$ui$workspace$libraries$libraries_tab_STAR_$$=function($is_shared$jscomp$5_props_76019$$){var $shared_libraries$$=$is_shared$jscomp$5_props_76019$$.sharedLibraries,$linked_libraries$$=$is_shared$jscomp$5_props_76019$$.linkedLibraries;$is_shared$jscomp$5_props_76019$$=$is_shared$jscomp$5_props_76019$$.isShared;var $file_id$jscomp$337$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),$search_term_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),$search_term$jscomp$3$$=
$APP.$cljs$core$_deref$$($search_term_STAR_$$),$local_library_summary$jscomp$5$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_data$$);$local_library_summary$jscomp$5$$=$app$main$ui$workspace$libraries$get_library_summary$$($local_library_summary$jscomp$5$$);var $empty_library_QMARK_$$=$APP.$cljs$core$boolean$0$$($cljs$cst$5355$is_empty$$.$cljs$core$IFn$_invoke$arity$1$($local_library_summary$jscomp$5$$)),$selected$jscomp$139$$=$app$main$ui$hooks$use_shared_state$$($APP.$cljs$cst$4011$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_colorpalette_selected$$),
$dependencies$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shared_libraries$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$cljs$cst$5356$library_file_ids$$),$APP.$cljs$core$vals$$($shared_libraries$$)))}),$library_names$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shared_libraries$$)],
function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$890_p__76024$$){var $map__76025__$1_name$jscomp$417$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$890_p__76024$$);$id$jscomp$890_p__76024$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76025__$1_name$jscomp$417$$,$APP.$cljs$cst$266$id$$);$map__76025__$1_name$jscomp$417$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76025__$1_name$jscomp$417$$,
$APP.$cljs$cst$723$name$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$890_p__76024$$,$map__76025__$1_name$jscomp$417$$],null)},$APP.$cljs$core$vals$$($shared_libraries$$)))}),$find_connected_to$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dependencies$$)],function($library_id$jscomp$54$$){return $APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p__76027_v$jscomp$658$$){var $k$jscomp$686$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76027_v$jscomp$658$$,0,null);$p__76027_v$jscomp$658$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76027_v$jscomp$658$$,1,null);return $APP.$cljs$core$contains_QMARK_$$($p__76027_v$jscomp$658$$,$library_id$jscomp$54$$)?$k$jscomp$686$$:null},$dependencies$$)}),$shared_libraries__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shared_libraries$$),$APP.$rumext$v2$adapt$$($linked_libraries$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$),$APP.$rumext$v2$adapt$$($search_term$jscomp$3$$)],function(){return $APP.$cljs$core$truth_$$($shared_libraries$$)?$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cuerdas$core$lower$$,$APP.$cljs$cst$723$name$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76015_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76015_SHARP_$$,$cljs$cst$5357$connected_to_names$$,
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($library_names$$,$cljs$cst$5358$connected_to$$.$cljs$core$IFn$_invoke$arity$1$($p1__76015_SHARP_$$)))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76014_SHARP_$$){var $JSCompiler_temp_const$jscomp$1714$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$;var $G__76031$jscomp$inline_8509_JSCompiler_inline_result$jscomp$1716$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76014_SHARP_$$);$G__76031$jscomp$inline_8509_JSCompiler_inline_result$jscomp$1716$$=
$find_connected_to$$.$cljs$core$IFn$_invoke$arity$1$?$find_connected_to$$.$cljs$core$IFn$_invoke$arity$1$($G__76031$jscomp$inline_8509_JSCompiler_inline_result$jscomp$1716$$):$find_connected_to$$($G__76031$jscomp$inline_8509_JSCompiler_inline_result$jscomp$1716$$);return $JSCompiler_temp_const$jscomp$1714$$.call($APP.$cljs$core$assoc$$,$p1__76014_SHARP_$$,$cljs$cst$5358$connected_to$$,$G__76031$jscomp$inline_8509_JSCompiler_inline_result$jscomp$1716$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76013_SHARP_$$){return $app$util$strings$matches_search$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76013_SHARP_$$),
$search_term$jscomp$3$$)},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76012_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($linked_libraries$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76012_SHARP_$$))},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76011_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76011_SHARP_$$),$file_id$jscomp$337$$)},
$APP.$cljs$core$vals$$($shared_libraries$$))))))):null}),$linked_libraries__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($linked_libraries$$),$APP.$rumext$v2$adapt$$($find_connected_to$$),$APP.$rumext$v2$adapt$$($library_names$$)],function(){return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cuerdas$core$lower$$,$APP.$cljs$cst$723$name$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76017_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76017_SHARP_$$,
$cljs$cst$5357$connected_to_names$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($library_names$$,$cljs$cst$5358$connected_to$$.$cljs$core$IFn$_invoke$arity$1$($p1__76017_SHARP_$$)))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76016_SHARP_$$){var $JSCompiler_temp_const$jscomp$1717$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$;var $G__76032$jscomp$inline_8511_JSCompiler_inline_result$jscomp$1719$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76016_SHARP_$$);
$G__76032$jscomp$inline_8511_JSCompiler_inline_result$jscomp$1719$$=$find_connected_to$$.$cljs$core$IFn$_invoke$arity$1$?$find_connected_to$$.$cljs$core$IFn$_invoke$arity$1$($G__76032$jscomp$inline_8511_JSCompiler_inline_result$jscomp$1719$$):$find_connected_to$$($G__76032$jscomp$inline_8511_JSCompiler_inline_result$jscomp$1719$$);return $JSCompiler_temp_const$jscomp$1717$$.call($APP.$cljs$core$assoc$$,$p1__76016_SHARP_$$,$cljs$cst$5358$connected_to$$,$G__76032$jscomp$inline_8511_JSCompiler_inline_result$jscomp$1719$$)},
$APP.$cljs$core$vals$$($linked_libraries$$))))}),$linked_libraries_ids$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($linked_libraries__$1$$)],function(){return $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$$),$linked_libraries__$1$$)}),$importing_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$sample_libraries$$=
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,"penpot-design-system",$APP.$cljs$cst$723$name$$,"Design system example"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,"wireframing-kit",$APP.$cljs$cst$723$name$$,"Wireframe library"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,"whiteboarding-kit",$APP.$cljs$cst$723$name$$,
"Whiteboarding Kit"],null)],null),$change_search_term$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$306$$){return $APP.$cljs$core$reset_BANG_$$($search_term_STAR_$$,$event$jscomp$306$$)}),$link_library$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],function($G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$){$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$=
$APP.$app$util$dom$get_current_target$$($G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$);$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$=$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$==null?null:$APP.$app$util$dom$get_data$$($G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$,"library-id");$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$=
$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$==null?null:$APP.$app$common$uuid$parse$$($G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$);$APP.$cljs$core$reset_BANG_$$($selected$jscomp$139$$,$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$link_file_to_library$$($file_id$jscomp$337$$,
$G__76033$jscomp$inline_8513_G__76033__$1$jscomp$inline_8514_event$jscomp$307_library_id$jscomp$55$$))}),$unlink_library$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],function($G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$){$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$=$APP.$app$util$dom$get_current_target$$($G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$);
$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$=$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$==null?null:$APP.$app$util$dom$get_data$$($G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$,"library-id");$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$=$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$==
null?null:$APP.$app$common$uuid$parse$$($G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$,$APP.$cljs$core$_deref$$($selected$jscomp$139$$))&&$APP.$cljs$core$reset_BANG_$$($selected$jscomp$139$$,$APP.$cljs$cst$208$file$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$libraries$unlink_file_from_library$$($file_id$jscomp$337$$,
$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$337$$,$G__76034$jscomp$inline_8516_G__76034__$1$jscomp$inline_8517_event$jscomp$308_library_id$jscomp$56$$,null,null)]))}),$on_delete_accept$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$libraries$set_file_shared$$($file_id$jscomp$337$$,!1),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$3811$libraries_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$337$$],null))]))}),$on_delete_cancel$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],
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$3811$libraries_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$337$$],null)))}),$publish$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],function($event$jscomp$309_input_node$jscomp$5$$){function $cancel_publish$$(){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$3811$libraries_dialog$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$337$$],null)))}function $publish_library$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$set_file_shared$$($file_id$jscomp$337$$,!0))}$event$jscomp$309_input_node$jscomp$5$$=$APP.$app$util$dom$get_target$$($event$jscomp$309_input_node$jscomp$5$$);$empty_library_QMARK_$$?$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$("modals.publish-empty-library.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.publish-empty-library.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.publish-empty-library.accept"),$APP.$cljs$cst$2436$on_accept$$,$publish_library$$,$APP.$cljs$cst$5359$on_cancel$$,
$cancel_publish$$],null))):$publish_library$$();return $APP.$app$util$dom$blur_BANG_$$($event$jscomp$309_input_node$jscomp$5$$)}),$unpublish$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$337$$)],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,6,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$5360$delete_shared_libraries$$,
$APP.$cljs$cst$1707$ids$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$file_id$jscomp$337$$]),$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$5361$unpublish$$,$APP.$cljs$cst$2436$on_accept$$,$on_delete_accept$$,$APP.$cljs$cst$5359$on_cancel$$,$on_delete_cancel$$,$APP.$cljs$cst$5362$count_libraries$$,1],null)))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__libraries-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__lib-section",
children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!1,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.in-this-file"),className:"main_ui_workspace_libraries__title-spacing-lib"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__section-list",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__section-list-item",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__item-content",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.file-library")}),(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_libraries__item-contents",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$library_description_STAR_$$,{summary:$local_library_summary$jscomp$5$$})})]}),$is_shared$jscomp$5_props_76019$$?(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",
value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.unpublish"),onClick:$unpublish$$,className:"main_ui_workspace_libraries__item-unpublish"}):(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.publish"),onClick:$publish$$,className:"main_ui_workspace_libraries__item-publish"})]}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$120$$,$map__76039__$1_p__76038$$){$map__76039__$1_p__76038$$=
$APP.$cljs$core$__destructure_map$$($map__76039__$1_p__76038$$);var $id$jscomp$891$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76039__$1_p__76038$$,$APP.$cljs$cst$266$id$$),$name$jscomp$418$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76039__$1_p__76038$$,$APP.$cljs$cst$723$name$$),$data$jscomp$461$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76039__$1_p__76038$$,$APP.$cljs$cst$142$data$$),$connected_to$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76039__$1_p__76038$$,
$cljs$cst$5358$connected_to$$),$connected_to_names$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76039__$1_p__76038$$,$cljs$cst$5357$connected_to_names$$);$out_arr__44057__auto__$jscomp$120$$.push(function(){var $disabled_QMARK_$jscomp$4$$=$APP.$cljs$core$some$$(function($p1__76018_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($linked_libraries_ids$$,$p1__76018_SHARP_$$)},$connected_to$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"library-item",className:"main_ui_workspace_libraries__section-list-item",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__item-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__item-name",children:$name$jscomp$418$$}),(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_libraries__item-contents",children:function(){var $summary__$1$$=$app$main$ui$workspace$libraries$get_library_summary$$($data$jscomp$461$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$library_description_STAR_$$,
{summary:$summary__$1$$}),$APP.$cljs$core$seq$$($connected_to$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__connected-to-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{children:["(",$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.connected-to")," "]}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_libraries__connected-to-values",children:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$connected_to_names$$)}),
(0,$APP.$rumext$v2$jsx$$)("span",{children:")"})]}):null]})}()})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{type:"button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.unlink-library-btn"),icon:"detach","data-library-id":""+($id$jscomp$891$$??""),variant:"secondary",disabled:$disabled_QMARK_$jscomp$4$$,onClick:$unlink_library$$})]},""+($id$jscomp$891$$??""))}());return $out_arr__44057__auto__$jscomp$120$$},
[],$linked_libraries__$1$$)]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__shared-section",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!1,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.shared-libraries"),className:"main_ui_workspace_libraries__title-spacing-lib"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{onChange:$change_search_term$$,
value:$search_term$jscomp$3$$,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.search-shared-libraries"),iconId:"search"}),$APP.$cljs$core$seq$$($shared_libraries__$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__section-list-shared",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$121$$,$id$jscomp$892_p__76045$$){var $JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$=
$APP.$cljs$core$__destructure_map$$($id$jscomp$892_p__76045$$);$id$jscomp$892_p__76045$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$,$APP.$cljs$cst$266$id$$);var $JSCompiler_temp_const$jscomp$1720_name$jscomp$419$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$,$APP.$cljs$cst$723$name$$),$JSCompiler_temp_const$jscomp$1721$$=
$out_arr__44057__auto__$jscomp$121$$.push;$JSCompiler_temp_const$jscomp$1720_name$jscomp$419$$=(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__item-name",children:$JSCompiler_temp_const$jscomp$1720_name$jscomp$419$$});$JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$=$app$main$ui$workspace$libraries$adapt_backend_summary$$($APP.$cljs$cst$3822$library_summary$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$));
$JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$library_description_STAR_$$,{summary:$JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$});$JSCompiler_temp_const$jscomp$1721$$.call($out_arr__44057__auto__$jscomp$121$$,(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"library-item",className:"main_ui_workspace_libraries__section-list-item",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_libraries__item-content",children:[$JSCompiler_temp_const$jscomp$1720_name$jscomp$419$$,(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_libraries__item-contents",children:$JSCompiler_inline_result$jscomp$1723_map__76046__$1_summary__$1$jscomp$inline_8519$$})]}),(0,$APP.$rumext$v2$jsx$$)("button",{"data-library-id":""+($id$jscomp$892_p__76045$$??""),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.shared-library-btn"),onClick:$link_library$$,
className:"main_ui_workspace_libraries__item-button-shared",children:$app$main$ui$workspace$libraries$add_icon$$})]},""+($id$jscomp$892_p__76045$$??"")));return $out_arr__44057__auto__$jscomp$121$$},[],$shared_libraries__$1$$)}):$APP.$cljs$core$empty_QMARK_$$($shared_libraries__$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__section-list-empty",children:$shared_libraries__$1$$==null?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.loading"):
$APP.$cuerdas$core$empty_QMARK_$$($search_term$jscomp$3$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__sample-libraries-info",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.empty.no-libraries"),(0,$APP.$rumext$v2$jsx$$)("a",{target:"_blank",href:"https://penpot.app/libraries-templates",className:"main_ui_workspace_libraries__sample-libraries-link",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.empty.some-templates")})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__sample-libraries-container",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.empty.add-some"),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$122$$,$library$jscomp$35$$){$out_arr__44057__auto__$jscomp$122$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$sample_library_entry_STAR_$$,{library:$library$jscomp$35$$,importing:$importing_STAR_$$}));
return $out_arr__44057__auto__$jscomp$122$$},[],$sample_libraries$$)]})]}):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.libraries.no-matches-for",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$search_term$jscomp$3$$]))}):null]})]})};
$app$main$ui$workspace$libraries$extract_assets$$=function($color_ids_colors$jscomp$12_file_data$jscomp$107$$,$library$jscomp$36$$,$summary_QMARK_$$){function $truncate$jscomp$14$$($asset_type$jscomp$13$$,$items$jscomp$54$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($summary_QMARK_$$)?$APP.$cljs$core$count$$($items$jscomp$54$$)>5:$summary_QMARK_$$)?($exceeded$$.$cljs$core$IVolatile$_vreset_BANG_$arity$2$(null,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($exceeded$$.$cljs$core$IDeref$_deref$arity$1$(null),
$asset_type$jscomp$13$$,!0)),$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(5,$items$jscomp$54$$)):$items$jscomp$54$$}var $exceeded$$=$APP.$cljs$core$volatile_BANG_$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1622$components$$,!1,$APP.$cljs$cst$2174$colors$$,!1,$APP.$cljs$cst$2177$typographies$$,!1],null)),$assets$jscomp$1_typographies$jscomp$3_typography_ids$$=$APP.$app$main$data$workspace$libraries$assets_need_sync$cljs$0core$0IFn$0_invoke$0arity$03$$($library$jscomp$36$$,
$color_ids_colors$jscomp$12_file_data$jscomp$107$$,null),$component_ids$jscomp$6_components$jscomp$10$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2501$asset_id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76057_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2502$asset_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76057_SHARP_$$),
$APP.$cljs$cst$1609$component$$)},$assets$jscomp$1_typographies$jscomp$3_typography_ids$$)));$color_ids_colors$jscomp$12_file_data$jscomp$107$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2501$asset_id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76058_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2502$asset_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76058_SHARP_$$),
$APP.$cljs$cst$1284$color$$)},$assets$jscomp$1_typographies$jscomp$3_typography_ids$$)));$assets$jscomp$1_typographies$jscomp$3_typography_ids$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2501$asset_id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76059_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2502$asset_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76059_SHARP_$$),
$APP.$cljs$cst$1966$typography$$)},$assets$jscomp$1_typographies$jscomp$3_typography_ids$$)));$component_ids$jscomp$6_components$jscomp$10$$=$truncate$jscomp$14$$($APP.$cljs$cst$1622$components$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76061_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76061_SHARP_$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76060_SHARP_$$){return $APP.$app$common$types$components_list$get_component$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$36$$),
$p1__76060_SHARP_$$)},$component_ids$jscomp$6_components$jscomp$10$$)));$color_ids_colors$jscomp$12_file_data$jscomp$107$$=$truncate$jscomp$14$$($APP.$cljs$cst$2174$colors$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76063_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76063_SHARP_$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76062_SHARP_$$){return $APP.$app$common$types$library$get_color$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$36$$),
$p1__76062_SHARP_$$)},$color_ids_colors$jscomp$12_file_data$jscomp$107$$)));$assets$jscomp$1_typographies$jscomp$3_typography_ids$$=$truncate$jscomp$14$$($APP.$cljs$cst$2177$typographies$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76065_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76065_SHARP_$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76064_SHARP_$$){return $APP.$app$common$types$typographies_list$get_typography$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$36$$),
$p1__76064_SHARP_$$)},$assets$jscomp$1_typographies$jscomp$3_typography_ids$$)));return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$library$jscomp$36$$,$APP.$cljs$core$_deref$$($exceeded$$),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1622$components$$,$component_ids$jscomp$6_components$jscomp$10$$,$APP.$cljs$cst$2174$colors$$,$color_ids_colors$jscomp$12_file_data$jscomp$107$$,$APP.$cljs$cst$2177$typographies$$,$assets$jscomp$1_typographies$jscomp$3_typography_ids$$],
null)],null)};
$app$main$ui$workspace$libraries$updates_tab_STAR_$$=function($libs_assets_props_76074$$){var $file_id$jscomp$338$$=$libs_assets_props_76074$$.fileId,$libraries$jscomp$132$$=$libs_assets_props_76074$$.libraries,$summary_QMARK__STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$summary_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($summary_QMARK__STAR_$$),$updating_QMARK_$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$updating_library$$),$file_data$jscomp$108$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_data$$),
$see_all_assets$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($summary_QMARK__STAR_$$,!1)});$libs_assets_props_76074$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_data$jscomp$108$$),$APP.$rumext$v2$adapt$$($libraries$jscomp$132$$),$APP.$rumext$v2$adapt$$($summary_QMARK__STAR_$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($components$jscomp$11_map__76084_p__76079$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$11_map__76084_p__76079$$,
0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$11_map__76084_p__76079$$,1,null);$components$jscomp$11_map__76084_p__76079$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$11_map__76084_p__76079$$,2,null);var $map__76084__$1_typographies$jscomp$4$$=$APP.$cljs$core$__destructure_map$$($components$jscomp$11_map__76084_p__76079$$);$components$jscomp$11_map__76084_p__76079$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76084__$1_typographies$jscomp$4$$,
$APP.$cljs$cst$1622$components$$);var $colors$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76084__$1_typographies$jscomp$4$$,$APP.$cljs$cst$2174$colors$$);$map__76084__$1_typographies$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76084__$1_typographies$jscomp$4$$,$APP.$cljs$cst$2177$typographies$$);return $APP.$cljs$core$seq$$($components$jscomp$11_map__76084_p__76079$$)||$APP.$cljs$core$seq$$($colors$jscomp$13$$)||$APP.$cljs$core$seq$$($map__76084__$1_typographies$jscomp$4$$)},
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76071_SHARP_$$){return $app$main$ui$workspace$libraries$extract_assets$$($file_data$jscomp$108$$,$p1__76071_SHARP_$$,$summary_QMARK_$jscomp$1$$)},$APP.$cljs$core$vals$$($libraries$jscomp$132$$)))});var $update$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$338$$)],function($G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$){if($APP.$cljs$core$truth_$$($updating_QMARK_$jscomp$2$$))return null;
$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$=$APP.$app$util$dom$get_target$$($G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$);$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$=$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$==null?null:$APP.$app$util$dom$get_data$$($G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$,
"library-id");$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$=$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$==null?null:$APP.$app$common$uuid$parse$$($G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$libraries$set_updating_library$$(!0),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$338$$,$G__76092$jscomp$inline_8521_G__76092__$1$jscomp$inline_8522_event$jscomp$310_library_id$jscomp$57$$,null,null)]))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__updates-content",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__update-section",children:$APP.$cljs$core$empty_QMARK_$$($libs_assets_props_76074$$)?
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__section-list-empty",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"library",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.no-libraries-need-sync")})}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__section-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.library-updates")}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__section-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$123$$,$components$jscomp$12_map__76102_p__76096$$){var $id$jscomp$893_map__76101$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$12_map__76102_p__76096$$,0,null),$map__76101__$1$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$893_map__76101$$);$id$jscomp$893_map__76101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76101__$1$$,
$APP.$cljs$cst$266$id$$);var $name$jscomp$420$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76101__$1$$,$APP.$cljs$cst$723$name$$),$exceeded$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$12_map__76102_p__76096$$,1,null);$components$jscomp$12_map__76102_p__76096$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$12_map__76102_p__76096$$,2,null);var $map__76102__$1_typographies$jscomp$5$$=$APP.$cljs$core$__destructure_map$$($components$jscomp$12_map__76102_p__76096$$);
$components$jscomp$12_map__76102_p__76096$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76102__$1_typographies$jscomp$5$$,$APP.$cljs$cst$1622$components$$);var $colors$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76102__$1_typographies$jscomp$5$$,$APP.$cljs$cst$2174$colors$$);$map__76102__$1_typographies$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76102__$1_typographies$jscomp$5$$,$APP.$cljs$cst$2177$typographies$$);$out_arr__44057__auto__$jscomp$123$$.push((0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_libraries__section-list-item",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__item-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__item-name",children:$name$jscomp$420$$}),(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_libraries__item-contents",children:$app$main$ui$workspace$libraries$describe_library$$($APP.$cljs$core$count$$($components$jscomp$12_map__76102_p__76096$$),$APP.$cljs$core$count$$($colors$jscomp$14$$),
$APP.$cljs$core$count$$($map__76102__$1_typographies$jscomp$5$$))})]}),(0,$APP.$rumext$v2$jsx$$)("button",{type:"button",disabled:$updating_QMARK_$jscomp$2$$,"data-library-id":""+($id$jscomp$893_map__76101$$??""),onClick:$update$jscomp$1$$,className:"main_ui_workspace_libraries__item-update",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.update")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__libraries-updates",children:[$APP.$cljs$core$empty_QMARK_$$($components$jscomp$12_map__76102_p__76096$$)?
null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-column",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$15$$,$component$jscomp$118$$){var $JSCompiler_temp_const$jscomp$1724$$=$out_arr__44057__auto____$1$jscomp$15$$.push;var $JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$=$APP.$app$common$types$file$load_component_objects$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($map__76101__$1$$),
$component$jscomp$118$$);var $root_shape$jscomp$inline_8525$$=$APP.$app$common$types$file$get_component_root$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($map__76101__$1$$),$JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$);$JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$=(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$render$component_svg$$,{"root-shape":$root_shape$jscomp$inline_8525$$,
"class":"main_ui_workspace_libraries__component-svg",objects:$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__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$1726_component__$1$jscomp$inline_8524$$),className:"main_ui_workspace_libraries__item-name",
children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$)})})]});$JSCompiler_temp_const$jscomp$1724$$.call($out_arr__44057__auto____$1$jscomp$15$$,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-item",children:$JSCompiler_inline_result$jscomp$1726_component__$1$jscomp$inline_8524$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$118$$)??"")));
return $out_arr__44057__auto____$1$jscomp$15$$},[],$components$jscomp$12_map__76102_p__76096$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-item",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__name-block main_ui_workspace_libraries__ellipsis",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_libraries__item-name",
children:"(...)"})})},$APP.$app$common$uuid$next$$()):null]}),$APP.$cljs$core$empty_QMARK_$$($colors$jscomp$14$$)?null:(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--bullet-size":"24px"},className:"main_ui_workspace_libraries__libraries-updates-column",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$16$$,$JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$){var $JSCompiler_temp_const$jscomp$1727$$=$out_arr__44057__auto____$1$jscomp$16$$.push,
$default_name$jscomp$inline_8527$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$))?$APP.$app$util$color$gradient_type__GT_string$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$,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$1729_color$jscomp$154$$))?$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$):$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$);$JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$=(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-item",
children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{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$1729_color$jscomp$154$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$),$APP.$cljs$cst$1718$opacity$$,
$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$)],null)}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__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$1729_color$jscomp$154$$),className:"main_ui_workspace_libraries__item-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$)}),
$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$1729_color$jscomp$154$$),$default_name$jscomp$inline_8527$$)?null:(0,$APP.$rumext$v2$jsx$$)("span",{className:"color-value",children:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$)})]})]})},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$)??
""));$JSCompiler_temp_const$jscomp$1727$$.call($out_arr__44057__auto____$1$jscomp$16$$,$JSCompiler_inline_result$jscomp$1729_color$jscomp$154$$);return $out_arr__44057__auto____$1$jscomp$16$$},[],$colors$jscomp$14$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-item",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__name-block.ellipsis",
children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_libraries__item-name",children:"(...)"})})},$APP.$app$common$uuid$next$$()):null]}),$APP.$cljs$core$empty_QMARK_$$($map__76102__$1_typographies$jscomp$5$$)?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-column",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$17$$,$typography$jscomp$28$$){$out_arr__44057__auto____$1$jscomp$17$$.push((0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_libraries__libraries-updates-item",children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$)},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_workspace_libraries__name-block",children:(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$),className:"main_ui_workspace_libraries__item-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$)})})]})},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$28$$)??"")));return $out_arr__44057__auto____$1$jscomp$17$$},
[],$map__76102__$1_typographies$jscomp$5$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__libraries-updates-item",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__name-block.ellipsis",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_libraries__item-name",children:"(...)"})})},$APP.$app$common$uuid$next$$()):
null]})]}),$APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$)>0||$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$)>0||$APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($exceeded$jscomp$1$$)>0?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$link_button$link_button$$,{"on-click":$see_all_assets$$,"class":"main_ui_workspace_libraries__libraries-updates-see-all",value:["(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.update.see-all-changes")),
")"].join("")}):null]},""+($id$jscomp$893_map__76101$$??"")));return $out_arr__44057__auto__$jscomp$123$$},[],$libs_assets_props_76074$$)})]})})})};
$app$main$ui$workspace$libraries$libraries_dialog$$=function($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$){$close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$=$APP.$rumext$v2$util$wrap_props$$($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$);$close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$=$APP.$cljs$core$__destructure_map$$($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$);
var $starting_tab$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$,$APP.$cljs$cst$3812$starting_tab$$),$file_id$jscomp$339$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$,$APP.$cljs$cst$1628$file_id$$),$files$jscomp$25$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$);$close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($files$jscomp$25$$,$file_id$jscomp$339$$);var $JSCompiler_inline_result$jscomp$1732_shared_QMARK_$jscomp$4$$=$APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$),$linked_libraries$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$25$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$339$$)],function(){return $APP.$app$main$refs$select_libraries$$($files$jscomp$25$$,
$file_id$jscomp$339$$)}),$linked_libraries__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($linked_libraries$jscomp$1$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$339$$)],function(){return $APP.$app$common$data$removem$$(function($lib$jscomp$13_p__76137$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($lib$jscomp$13_p__76137$$,0,null);$lib$jscomp$13_p__76137$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($lib$jscomp$13_p__76137$$,
1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($lib$jscomp$13_p__76137$$),$file_id$jscomp$339$$)},$linked_libraries$jscomp$1$$)}),$shared_libraries$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$shared_files$$);$close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$311$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$dom$get_target$$($event$jscomp$311$$),
$APP.$app$util$dom$get_current_target$$($event$jscomp$311$$))?$APP.$app$main$data$modal$hide_BANG_$$():null});var $JSCompiler_temp_const$jscomp$1731_close_dialog$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$hide_BANG_$$()}),$selected_tab_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($starting_tab$$,"libraries")}),$selected_tab$$=$APP.$cljs$core$_deref$$($selected_tab_STAR_$$),
$on_change_tab$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76120_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($selected_tab_STAR_$$,$p1__76120_SHARP_$$)}),$tabs$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.libraries"),
$APP.$cljs$cst$266$id$$,"libraries"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.updates"),$APP.$cljs$cst$266$id$$,"updates"],null)],null)});$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_shared_files$cljs$0core$0IFn$0_invoke$0arity$01$$(null))});$JSCompiler_temp_const$jscomp$1731_close_dialog$$=
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$JSCompiler_temp_const$jscomp$1731_close_dialog$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),"data-testid":"close-libraries",className:"main_ui_workspace_libraries__close-btn",children:$app$main$ui$workspace$libraries$close_icon$$});var $JSCompiler_temp_const$jscomp$1730$$=(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.libraries")});
a:switch($selected_tab$$){case "libraries":$JSCompiler_inline_result$jscomp$1732_shared_QMARK_$jscomp$4$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$libraries_tab_STAR_$$,{isShared:$JSCompiler_inline_result$jscomp$1732_shared_QMARK_$jscomp$4$$,linkedLibraries:$linked_libraries__$1$jscomp$1$$,sharedLibraries:$shared_libraries$jscomp$1$$});break a;case "updates":$JSCompiler_inline_result$jscomp$1732_shared_QMARK_$jscomp$4$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$libraries$updates_tab_STAR_$$,
{fileId:$file_id$jscomp$339$$,libraries:$linked_libraries__$1$jscomp$1$$});break a;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($selected_tab$$)].join(""));}return(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$close_dialog_outside_file$jscomp$152_map__76131_map__76131__$1_props_76121$$,"data-testid":"libraries-modal",className:"main_ui_workspace_libraries__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__modal-dialog",
children:[$JSCompiler_temp_const$jscomp$1731_close_dialog$$,$JSCompiler_temp_const$jscomp$1730$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,{tabs:$tabs$jscomp$4$$,selected:$selected_tab$$,onChange:$on_change_tab$jscomp$1$$,children:$JSCompiler_inline_result$jscomp$1732_shared_QMARK_$jscomp$4$$})]})})};
$app$main$ui$workspace$libraries$v2_info_dialog$$=function(){var $handle_gotit_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$data$modal$hide_BANG_$$();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$profile$update_profile_props$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5363$v2_info_shown$$,!0],null)))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__modal-overlay",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__modal-dialog main_ui_workspace_libraries__modal-v2-info",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__modal-v2-title",children:"IMPORTANT INFORMATION ABOUT NEW COMPONENTS"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__modal-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_libraries__info-block",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-icon",children:$APP.$app$main$ui$icons$v2_icon_1$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-block-title",children:"One physical source of truth"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block-content",children:["Main components are now found at the design space. They act as a single source ",
"of truth and can be worked on with their copies. This ensures consistency and ","allows better control and synchronization."]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-icon",children:$APP.$app$main$ui$icons$v2_icon_2$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-block-title",children:"Swap components"}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_libraries__info-block-content",children:["Now, you can replace one component copy with another within your libraries. ","The swap components functionality streamlines making changes, testing ","variations, or updating elements without extensive manual adjustments."]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-icon",children:$APP.$app$main$ui$icons$v2_icon_3$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-block-title",children:"Graphic assets no longer exist"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block-content",children:["Graphic assets now disappear, so that all graphic assets become components. ","This way, swapping between them is possible, and we avoid confusion about ","what should go in each typology."]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-icon",children:$APP.$app$main$ui$icons$v2_icon_4$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-block-title",children:"Main components page"}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_libraries__info-block-content",children:["You might find that a new page called 'Main components' has appeared in ","your file. On that page, you'll find all the main components that were ",
"created in your files previously to this new version."]})]})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_libraries__info-bottom",children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_gotit_click$$,className:"main_ui_workspace_libraries__primary-button",children:"I GOT IT"})})]})]})})};
$app$main$ui$workspace$nudge$on_keydown$$=function($event$jscomp$312$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$312$$))?($APP.$app$util$dom$prevent_default$$($event$jscomp$312$$),$APP.$app$util$dom$stop_propagation$$($event$jscomp$312$$),$APP.$app$main$data$modal$hide_BANG_$$()):null};
$app$main$ui$workspace$nudge$nudge_modal$$=function(){var $profile$jscomp$55$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$nudge$jscomp$3$$=function(){var $or__5025__auto__$jscomp$1030$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($profile$jscomp$55$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$573$props$$,$APP.$cljs$cst$3717$nudge$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1030$$)?$or__5025__auto__$jscomp$1030$$:
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3718$big$$,10,$APP.$cljs$cst$3719$small$$,1],null)}(),$update_big$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76152_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$update_nudge$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3718$big$$,$p1__76152_SHARP_$$],null)))}),$update_small$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76153_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$update_nudge$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$3719$small$$,$p1__76153_SHARP_$$],null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$goog$events$unlistenByKey$$,$APP.$goog$events$listen$$(document,"keydown",$app$main$ui$workspace$nudge$on_keydown$$))});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_nudge__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_nudge__modal-container",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_nudge__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_workspace_nudge__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.nudge-title")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_workspace_nudge__modal-close-btn",children:$APP.$app$main$ui$icons$close$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_nudge__modal-content",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_nudge__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"nudge-small",className:"main_ui_workspace_nudge__modal-msg",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.small-nudge")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:.01,id:"nudge-small",value:$APP.$cljs$cst$3719$small$$.$cljs$core$IFn$_invoke$arity$1$($nudge$jscomp$3$$),onChange:$update_small$$})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_nudge__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"nudge-big",className:"main_ui_workspace_nudge__modal-msg",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.big-nudge")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:.01,id:"nudge-big",value:$APP.$cljs$cst$3718$big$$.$cljs$core$IFn$_invoke$arity$1$($nudge$jscomp$3$$),onChange:$update_big$$})]})]})]})})};
$app$main$ui$workspace$color_palette$recent_colors_palette_STAR_$$=function($props_75985$$){var $libraries$jscomp$133$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$colors$jscomp$16$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$recent_colors$$),$colors__$1$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$16$$),$APP.$rumext$v2$adapt$$($libraries$jscomp$133$$)],function(){return $APP.$cljs$core$vec$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($map__75990__$1_p__75989$$){$map__75990__$1_p__75989$$=
$APP.$cljs$core$__destructure_map$$($map__75990__$1_p__75989$$);var $G__75991$jscomp$inline_12878_ref_id$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75990__$1_p__75989$$,$APP.$cljs$cst$1719$ref_id$$),$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75990__$1_p__75989$$,$APP.$cljs$cst$1720$ref_file$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($G__75991$jscomp$inline_12878_ref_id$jscomp$12$$)?$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$:
$G__75991$jscomp$inline_12878_ref_id$jscomp$12$$)){var $fdata$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$133$$,$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$),$APP.$cljs$cst$142$data$$);$G__75991$jscomp$inline_12878_ref_id$jscomp$12$$=$APP.$app$common$types$library$get_color$$($fdata$jscomp$22$$,$G__75991$jscomp$inline_12878_ref_id$jscomp$12$$);$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$=$G__75991$jscomp$inline_12878_ref_id$jscomp$12$$==
null?null:$app$common$types$color$library_color__GT_color$$($G__75991$jscomp$inline_12878_ref_id$jscomp$12$$,$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$)?$or__5025__auto__$jscomp$1031_ref_file$jscomp$12$$:$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__75990__$1_p__75989$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$]))}return $map__75990__$1_p__75989$$},
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$color$valid_color_QMARK_$$,$APP.$cljs$core$reverse$$($colors$jscomp$16$$))))});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$color_palette$palette_STAR_$$,{...$props_75985$$,colors:$colors__$1$jscomp$3$$})};
$app$main$ui$workspace$color_palette$make_library_colors_ref$$=function($file_id$jscomp$340$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($files$jscomp$26$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($files$jscomp$26$$,$file_id$jscomp$340$$),$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2174$colors$$)},$APP.$app$main$refs$files$$)};
$app$main$ui$workspace$color_palette$file_color_palette_STAR_$$=function($props_75996$$){var $file_id$jscomp$341$$=$props_75996$$.fileId,$colors__$1$jscomp$4_colors_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$341$$)],function(){return $app$main$ui$workspace$color_palette$make_library_colors_ref$$($file_id$jscomp$341$$)}),$colors$jscomp$17$$=$APP.$rumext$v2$deref$$($colors__$1$jscomp$4_colors_ref$$);$colors__$1$jscomp$4_colors_ref$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$17$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$341$$)],function(){return $APP.$cljs$core$vec$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__75995_SHARP_$$){return $app$common$types$color$library_color__GT_color$$($p1__75995_SHARP_$$,$file_id$jscomp$341$$)},$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$color$valid_library_color_QMARK_$$,
$APP.$cljs$core$vals$$($colors$jscomp$17$$)))))});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$color_palette$palette_STAR_$$,{...$props_75996$$,colors:$colors__$1$jscomp$4_colors_ref$$})};
$app$main$ui$workspace$color_palette_ctx_menu$extract_colors$$=function($map__75966__$1_p__75965$$){$map__75966__$1_p__75965$$=$APP.$cljs$core$__destructure_map$$($map__75966__$1_p__75965$$);var $colors$jscomp$18_data$jscomp$462$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75966__$1_p__75965$$,$APP.$cljs$cst$142$data$$);$colors$jscomp$18_data$jscomp$462$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$app$main$ui$workspace$color_palette_ctx_menu$xf_COLON_sample_colors$$,
$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($colors$jscomp$18_data$jscomp$462$$));return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__75966__$1_p__75965$$,$APP.$cljs$cst$2174$colors$$,$colors$jscomp$18_data$jscomp$462$$),$APP.$cljs$cst$142$data$$)};
$app$main$ui$workspace$color_palette_ctx_menu$color_palette_ctx_menu_STAR_$$=function($local_colors_props_75969$$){var $show$jscomp$7$$=$local_colors_props_75969$$.show,$selected$jscomp$143$$=$local_colors_props_75969$$.selected,$on_close$jscomp$18$$=$local_colors_props_75969$$.onClose,$on_select$$=$local_colors_props_75969$$.onSelect,$recent_colors$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$recent_colors$$),$libraries$jscomp$134$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$libraries$$),
$file_id$jscomp$343$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);$local_colors_props_75969$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($libraries$jscomp$134$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$343$$)],function(){var $colors$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$134$$,
$file_id$jscomp$343$$),$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2174$colors$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$app$main$ui$workspace$color_palette_ctx_menu$xf_COLON_sample_colors$$,$colors$jscomp$19$$)});var $libraries__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($libraries$jscomp$134$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$343$$)],function(){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$color_palette_ctx_menu$extract_colors$$,
$APP.$cljs$core$vals$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$134$$,$file_id$jscomp$343$$)))}),$recent_colors__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($recent_colors$jscomp$2$$)],function(){return $APP.$cljs$core$vec$$($APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$467$$,$color$jscomp$157$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$157$$,
$cljs$cst$5367$app_DOT_main_DOT_ui_DOT_workspace_DOT_color_palette_ctx_menu_SLASH_id$$,""+($index$jscomp$467$$??""))},$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(7,$APP.$cljs$core$reverse$$($recent_colors$jscomp$2$$))))});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$show$jscomp$7$$,"on-close":$on_close$jscomp$18$$,children:(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_color_palette_ctx_menu__palette-menu",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$125$$,
$map__75978__$1_p__75977$$){$map__75978__$1_p__75977$$=$APP.$cljs$core$__destructure_map$$($map__75978__$1_p__75977$$);var $id$jscomp$894$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75978__$1_p__75977$$,$APP.$cljs$cst$266$id$$),$colors$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__75978__$1_p__75977$$,$APP.$cljs$cst$2174$colors$$);$out_arr__44057__auto__$jscomp$125$$.push((0,$APP.$rumext$v2$jsx$$)("li",{onClick:$on_select$$,"data-palette":""+($id$jscomp$894$$??
""),className:"main_ui_workspace_color_palette_ctx_menu__palette-library "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$143$$,$id$jscomp$894$$)?"main_ui_workspace_color_palette_ctx_menu__selected":""),children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__option-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__library-name",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name-wrapper",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name",children:""+($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($map__75978__$1_p__75977$$)??"")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-num",children:"("+($APP.$cljs$core$count$$($colors$jscomp$20$$)??"")+")"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$143$$,$id$jscomp$894$$)?(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_color_palette_ctx_menu__icon-wrapper",children:$APP.$app$main$ui$icons$tick$$}):null]}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{"--bullet-size":"20px"},className:"main_ui_workspace_color_palette_ctx_menu__color-sample",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$18$$,$color$jscomp$158$$){$out_arr__44057__auto____$1$jscomp$18$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,
{mini:!0,color:$color$jscomp$158$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$158$$)??"")));return $out_arr__44057__auto____$1$jscomp$18$$},[],$colors$jscomp$20$$)})]})},"library-"+($id$jscomp$894$$??"")));return $out_arr__44057__auto__$jscomp$125$$},[],$libraries__$1$jscomp$1$$),(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$on_select$$,"data-palette":"file",className:"main_ui_workspace_color_palette_ctx_menu__file-library "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$143$$,
$APP.$cljs$cst$208$file$$)?"main_ui_workspace_color_palette_ctx_menu__selected":""),children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__option-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__library-name",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name",
children:""+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.file-library")??"")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-num",children:"("+($APP.$cljs$core$count$$($local_colors_props_75969$$)??"")+")"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$143$$,$APP.$cljs$cst$208$file$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__icon-wrapper",
children:$APP.$app$main$ui$icons$tick$$}):null]}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{"--bullet-size":"20px"},className:"main_ui_workspace_color_palette_ctx_menu__color-sample",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$126$$,$color$jscomp$159$$){$out_arr__44057__auto__$jscomp$126$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{mini:!0,color:$color$jscomp$159$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$159$$)??
"")));return $out_arr__44057__auto__$jscomp$126$$},[],$local_colors_props_75969$$)})]})}),(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$on_select$$,"data-palette":"recent",className:"main_ui_workspace_color_palette_ctx_menu__recent-colors main_ui_workspace_color_palette_ctx_menu__selected",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__option-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__library-name",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-name",children:""+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.recent-colors")??"")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__lib-num",children:"("+($APP.$cljs$core$count$$($recent_colors__$1$jscomp$1$$)??
"")+")"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$143$$,$cljs$cst$5336$recent$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_color_palette_ctx_menu__icon-wrapper",children:$APP.$app$main$ui$icons$tick$$}):null]}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{"--bullet-size":"20px"},className:"main_ui_workspace_color_palette_ctx_menu__color-sample",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$127$$,
$color$jscomp$160$$){$out_arr__44057__auto__$jscomp$127$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{mini:!0,color:$color$jscomp$160$$},""+($cljs$cst$5367$app_DOT_main_DOT_ui_DOT_workspace_DOT_color_palette_ctx_menu_SLASH_id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$160$$)??"")));return $out_arr__44057__auto__$jscomp$127$$},[],$recent_colors__$1$jscomp$1$$)})]})})]})})};
$app$main$ui$workspace$text_palette$typography_item$$=function($map__76040_name_only_QMARK__props_76037$$){$map__76040_name_only_QMARK__props_76037$$=$APP.$rumext$v2$util$wrap_props$$($map__76040_name_only_QMARK__props_76037$$);var $font_data$jscomp$10_map__76040__$1$$=$APP.$cljs$core$__destructure_map$$($map__76040_name_only_QMARK__props_76037$$),$file_id$jscomp$344$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,$APP.$cljs$cst$1628$file_id$$),$selected_ids$jscomp$5$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,$cljs$cst$5368$selected_ids$$),$typography$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,$APP.$cljs$cst$1966$typography$$);$map__76040_name_only_QMARK__props_76037$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,$cljs$cst$5369$name_only_QMARK_$$);var $size$jscomp$143$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,
$APP.$cljs$cst$872$size$$),$current_file_id$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_data$jscomp$10_map__76040__$1$$,$APP.$cljs$cst$1902$current_file_id$$);$font_data$jscomp$10_map__76040__$1$$=$APP.$app$main$fonts$get_font_data$$($APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$));var $font_variant_id$jscomp$17$$=$APP.$cljs$cst$1743$font_variant_id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$),$variant_data$jscomp$1$$=
$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__76035_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76035_SHARP_$$),$font_variant_id$jscomp$17$$)},$APP.$cljs$cst$2620$variants$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$10_map__76040__$1$$)),$handle_click$jscomp$2$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$29$$),
$APP.$rumext$v2$adapt$$($selected_ids$jscomp$5$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$344$$),$APP.$rumext$v2$adapt$$($current_file_id$jscomp$13$$)],function(){var $attrs$jscomp$161$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1626$typography_ref_file$$,$file_id$jscomp$344$$,$APP.$cljs$cst$1740$typography_ref_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$)],
null),$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($typography$jscomp$29$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$]))]));$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$$,
"use-library-typography",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"text-palette",$APP.$cljs$cst$3773$external_library$$,$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$344$$,$current_file_id$jscomp$13$$)],null)));return $APP.$cljs$core$run_BANG_$$(function($p1__76036_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$update_text_attrs$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$266$id$$,$p1__76036_SHARP_$$,$APP.$cljs$cst$1578$editor$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_editor_state$$),$p1__76036_SHARP_$$),$APP.$cljs$cst$2595$attrs$$,$attrs$jscomp$161$$],null)))},$selected_ids$jscomp$5$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$handle_click$jscomp$2$$,className:"main_ui_workspace_text_palette__typography-item "+($size$jscomp$143$$<=72?"main_ui_workspace_text_palette__mid-item":
"")+" "+($size$jscomp$143$$<=64?"main_ui_workspace_text_palette__small-item":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$),style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$)},
className:"main_ui_workspace_text_palette__typography-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$)}),$APP.$cljs$core$truth_$$($map__76040_name_only_QMARK__props_76037$$)?null:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_text_palette__typography-font",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$10_map__76040__$1$$)}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_text_palette__typography-data",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1744$font_size$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$29$$)),"px | ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($variant_data$jscomp$1$$))].join("")})]})]})};
$app$main$ui$workspace$text_palette$palette$$=function($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$){$map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$=$APP.$rumext$v2$util$wrap_props$$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$);$map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$=$APP.$cljs$core$__destructure_map$$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$);
var $selected$jscomp$144$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,$APP.$cljs$cst$1906$selected$$),$selected_ids$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,$cljs$cst$5368$selected_ids$$),$current_file_id$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,
$APP.$cljs$cst$1902$current_file_id$$),$file_typographies$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,$cljs$cst$5370$file_typographies$$),$libraries$jscomp$135$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,$APP.$cljs$cst$4984$libraries$$),$size$jscomp$144$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,
$APP.$cljs$cst$872$size$$);$map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$,$APP.$cljs$cst$288$width$$);var $file_id$jscomp$345$$=function(){switch($selected$jscomp$144$$ instanceof $APP.$cljs$core$Keyword$$?$selected$jscomp$144$$.$fqn$:null){case "recent":return null;case "file":return $current_file_id$jscomp$14$$;default:return $selected$jscomp$144$$}}(),
$current_typographies$$=function(){switch($selected$jscomp$144$$ instanceof $APP.$cljs$core$Keyword$$?$selected$jscomp$144$$.$fqn$:null){case "recent":return $APP.$cljs$core$PersistentVector$EMPTY$$;case "file":return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76042_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76042_SHARP_$$))},$APP.$cljs$core$vals$$($file_typographies$$));default:return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76043_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76043_SHARP_$$))},
$APP.$cljs$core$vals$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$135$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$selected$jscomp$144$$,$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$2177$typographies$$],null))))}}(),$state$jscomp$1069$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$195$offset$$,0],null));$map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$-=
$size$jscomp$144$$<=64?164:$size$jscomp$144$$<=72?164:132;var $on_wheel_visible$jscomp$3$$=$map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$/144|0,$show_arrows_QMARK_$jscomp$1$$=$APP.$cljs$core$count$$($current_typographies$$)>$on_wheel_visible$jscomp$3$$,$offset$jscomp$200$$=$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($state$jscomp$1069$$),0),$max_offset$jscomp$3$$=$APP.$cljs$core$count$$($current_typographies$$)-$on_wheel_visible$jscomp$3$$,
$container$jscomp$82$$=(0,$APP.$rumext$v2$use_ref$$)(null),$on_left_arrow_click$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$3$$),$APP.$rumext$v2$adapt$$($on_wheel_visible$jscomp$3$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1069$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$195$offset$$,function($offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$){return $offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$>
0?(--$offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$,$offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$>0?$offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$:0):$offset__$1$jscomp$24_x__5110__auto__$jscomp$135$$})}),$on_right_arrow_click$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$3$$),$APP.$rumext$v2$adapt$$($on_wheel_visible$jscomp$3$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1069$$,
$APP.$cljs$core$update$$,$APP.$cljs$cst$195$offset$$,function($offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$){return $offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$<$max_offset$jscomp$3$$?($offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$+=1,$max_offset$jscomp$3$$<$offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$?$max_offset$jscomp$3$$:$offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$):$offset__$1$jscomp$25_y__5114__auto__$jscomp$80$$})});$on_wheel_visible$jscomp$3$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$3$$)],
function($event$jscomp$315_event__$1$jscomp$4$$){$event$jscomp$315_event__$1$jscomp$4$$=$event$jscomp$315_event__$1$jscomp$4$$.nativeEvent;return $event$jscomp$315_event__$1$jscomp$4$$.deltaY+$event$jscomp$315_event__$1$jscomp$4$$.deltaX>0?$on_right_arrow_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_right_arrow_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$315_event__$1$jscomp$4$$):$on_right_arrow_click$jscomp$1$$($event$jscomp$315_event__$1$jscomp$4$$):$on_left_arrow_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$on_left_arrow_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$315_event__$1$jscomp$4$$):$on_left_arrow_click$jscomp$1$$($event$jscomp$315_event__$1$jscomp$4$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_typographies$$)],function(){var $fonts$jscomp$26$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1741$font_id$$),
$current_typographies$$);return $APP.$cljs$core$run_BANG_$$($APP.$app$main$fonts$ensure_loaded_BANG_$$,$fonts$jscomp$26$$)});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1069$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($container$jscomp$82$$),"clientWidth"))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$),
$APP.$rumext$v2$adapt$$($selected$jscomp$144$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1069$$)))?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1069$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$195$offset$$,0):null});return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--height":[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$144$$),
"px"].join("")},className:"main_ui_workspace_text_palette__text-palette",children:[$show_arrows_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$200$$,0),onClick:$on_left_arrow_click$jscomp$1$$,className:"main_ui_workspace_text_palette__left-arrow",children:$APP.$app$main$ui$icons$arrow$$}):null,(0,$APP.$rumext$v2$jsx$$)("div",{ref:$container$jscomp$82$$,onWheel:$on_wheel_visible$jscomp$3$$,className:"main_ui_workspace_text_palette__text-palette-content",
children:$APP.$cljs$core$empty_QMARK_$$($current_typographies$$)?(0,$APP.$rumext$v2$jsx$$)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},className:"main_ui_workspace_text_palette__text-palette-empty",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.empty-typography-palette")}):(0,$APP.$rumext$v2$jsx$$)("div",{style:{position:"relative",maxWidth:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__76049_map__76049__$1_props_76044_width$jscomp$186_width__$1$jscomp$9$$),
"px"].join(""),right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(144*$offset$jscomp$200$$),"px"].join("")},className:"main_ui_workspace_text_palette__text-palette-inside",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$128$$,$item$jscomp$122_p__76067$$){var $idx$jscomp$112$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$122_p__76067$$,0,null);$item$jscomp$122_p__76067$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$122_p__76067$$,
1,null);$out_arr__44057__auto__$jscomp$128$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$text_palette$typography_item$$,{"file-id":$file_id$jscomp$345$$,"current-file-id":$current_file_id$jscomp$14$$,"selected-ids":$selected_ids$jscomp$6$$,typography:$item$jscomp$122_p__76067$$,size:$size$jscomp$144$$},$idx$jscomp$112$$));return $out_arr__44057__auto__$jscomp$128$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$current_typographies$$))})}),
$show_arrows_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$200$$,$max_offset$jscomp$3$$),onClick:$on_right_arrow_click$jscomp$1$$,className:"main_ui_workspace_text_palette__right-arrow",children:$APP.$app$main$ui$icons$arrow$$}):null]})};
$app$main$ui$workspace$text_palette_ctx_menu$text_palette_ctx_menu$$=function($map__76166_props_76165_show_menu_QMARK_$$){$map__76166_props_76165_show_menu_QMARK_$$=$APP.$rumext$v2$util$wrap_props$$($map__76166_props_76165_show_menu_QMARK_$$);var $map__76166__$1_typographies$jscomp$6$$=$APP.$cljs$core$__destructure_map$$($map__76166_props_76165_show_menu_QMARK_$$);$map__76166_props_76165_show_menu_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76166__$1_typographies$jscomp$6$$,
$cljs$cst$5371$show_menu_QMARK_$$);var $close_menu$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76166__$1_typographies$jscomp$6$$,$cljs$cst$5372$close_menu$$),$on_select_palette$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76166__$1_typographies$jscomp$6$$,$cljs$cst$5373$on_select_palette$$),$selected$jscomp$146$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76166__$1_typographies$jscomp$6$$,$APP.$cljs$cst$1906$selected$$);$map__76166__$1_typographies$jscomp$6$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_file_typography$$);var $libraries$jscomp$137$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$libraries$$);return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$map__76166_props_76165_show_menu_QMARK_$$,"on-close":$close_menu$$,children:(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_text_palette_ctx_menu__text-context-menu",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$129$$,
$p__76167$$){var $idx$jscomp$113$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76167$$,0,null),$cur_library$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76167$$,1,null);$out_arr__44057__auto__$jscomp$129$$.push(function(){var $typographies__$1$$=$APP.$cljs$core$vals$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($cur_library$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$2177$typographies$$],
null)));return(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:function(){return $on_select_palette$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_palette$$.$cljs$core$IFn$_invoke$arity$1$($cur_library$$):$on_select_palette$$($cur_library$$)},className:"main_ui_workspace_text_palette_ctx_menu__palette-library "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$146$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cur_library$$))?"main_ui_workspace_text_palette_ctx_menu__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_text_palette_ctx_menu__library-name",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__lib-name",children:""+($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($cur_library$$)??"")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__lib-num",children:"("+($APP.$cljs$core$count$$($typographies__$1$$)??"")+")"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$146$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cur_library$$))?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__icon-wrapper",children:$APP.$app$main$ui$icons$tick$$}):null]},["library-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($idx$jscomp$113$$)].join(""))}());return $out_arr__44057__auto__$jscomp$129$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$APP.$cljs$core$vals$$($libraries$jscomp$137$$))),
(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:function(){return $on_select_palette$$.$cljs$core$IFn$_invoke$arity$1$?$on_select_palette$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$208$file$$):$on_select_palette$$($APP.$cljs$cst$208$file$$)},className:"main_ui_workspace_text_palette_ctx_menu__file-library "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$146$$,$APP.$cljs$cst$208$file$$)?"main_ui_workspace_text_palette_ctx_menu__selected":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_text_palette_ctx_menu__library-name",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__lib-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.file-library")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__lib-num",children:"("+($APP.$cljs$core$count$$($map__76166__$1_typographies$jscomp$6$$)??"")+")"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$146$$,
$APP.$cljs$cst$208$file$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_text_palette_ctx_menu__icon-wrapper",children:$APP.$app$main$ui$icons$tick$$}):null]})]})})};
$app$main$ui$workspace$palette$calculate_palette_style$$=function($rulers_QMARK_$jscomp$1$$){var $left_sidebar$jscomp$1_left_sidebar_size$$=$APP.$goog$dom$getElement$$("left-sidebar-aside");$left_sidebar$jscomp$1_left_sidebar_size$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$dom$get_data$$($left_sidebar$jscomp$1_left_sidebar_size$$,"width"));return{paddingLeft:""+(($APP.$cljs$core$truth_$$($rulers_QMARK_$jscomp$1$$)?22:0)+($APP.$cljs$core$truth_$$($left_sidebar$jscomp$1_left_sidebar_size$$)?
$left_sidebar$jscomp$1_left_sidebar_size$$:318)+4+1??"")+"px",paddingRight:"322px"}};
$app$main$ui$workspace$palette$palette_STAR_$$=function($color_palette_QMARK__props_76174$$){var $map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$=$color_palette_QMARK__props_76174$$.onChangeSize,$hide_palettes_QMARK__layout$jscomp$15$$=$color_palette_QMARK__props_76174$$.layout;$color_palette_QMARK__props_76174$$=$APP.$cljs$cst$3585$colorpalette$$.$cljs$core$IFn$_invoke$arity$1$($hide_palettes_QMARK__layout$jscomp$15$$);var $text_palette_QMARK_$$=$APP.$cljs$cst$3610$textpalette$$.$cljs$core$IFn$_invoke$arity$1$($hide_palettes_QMARK__layout$jscomp$15$$);
$hide_palettes_QMARK__layout$jscomp$15$$=$APP.$cljs$cst$3595$hide_palettes$$.$cljs$core$IFn$_invoke$arity$1$($hide_palettes_QMARK__layout$jscomp$15$$);var $read_only_QMARK_$jscomp$11$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$container$jscomp$83$$=(0,$APP.$rumext$v2$use_ref$$)(null),$state_STAR_$jscomp$9$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5366$show_menu$$,
!1],null)}),$show_menu_QMARK_$jscomp$1_state$jscomp$1070$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$9$$);$show_menu_QMARK_$jscomp$1_state$jscomp$1070$$=$cljs$cst$5366$show_menu$$.$cljs$core$IFn$_invoke$arity$1$($show_menu_QMARK_$jscomp$1_state$jscomp$1070$$);var $selected$jscomp$147$$=$app$main$ui$hooks$use_shared_state$$($APP.$cljs$cst$4011$app_DOT_main_DOT_data_DOT_workspace_DOT_colors_SLASH_colorpalette_selected$$),$selected_text_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$208$file$$),
$selected_text$$=$APP.$cljs$core$_deref$$($selected_text_STAR_$$),$on_select$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76171_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($selected$jscomp$147$$,$p1__76171_SHARP_$$)}),$rulers_QMARK_$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$rulers_QMARK_$$),$vport$jscomp$9_vport_width$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$palette$ref_COLON_viewport$$);$vport$jscomp$9_vport_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($vport$jscomp$9_vport_width$$,
$APP.$cljs$cst$288$width$$);$map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$=$APP.$app$main$ui$hooks$resize$use_resize_hook$cljs$0core$0IFn$0_invoke$0arity$08$$($APP.$cljs$cst$4568$palette$$,72,54,80,$APP.$cljs$cst$1500$y$$,!0,$APP.$cljs$cst$1547$bottom$$,$map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$);var $map__76177__$1_size$jscomp$146$$=$APP.$cljs$core$__destructure_map$$($map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$);$map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76177__$1_size$jscomp$146$$,$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76177__$1_size$jscomp$146$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76177__$1_size$jscomp$146$$,$APP.$cljs$cst$4380$on_pointer_move$$),$parent_ref$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76177__$1_size$jscomp$146$$,
$APP.$cljs$cst$4381$parent_ref$$);$map__76177__$1_size$jscomp$146$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76177__$1_size$jscomp$146$$,$APP.$cljs$cst$872$size$$);var $on_resize$$=$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$($state_STAR_$jscomp$9$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($container$jscomp$83$$),
"clientWidth"))}),$on_close_menu$$=$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$($state_STAR_$jscomp$9$$,$APP.$cljs$core$assoc$$,$cljs$cst$5366$show_menu$$,!1)}),$on_select_palette$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select$jscomp$1$$)],function($G__76190_event$jscomp$316_value$jscomp$774$$){$G__76190_event$jscomp$316_value$jscomp$774$$=$APP.$app$util$dom$get_attribute$$($APP.$app$util$dom$get_current_target$$($G__76190_event$jscomp$316_value$jscomp$774$$),
"data-palette");$G__76190_event$jscomp$316_value$jscomp$774$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("file",$G__76190_event$jscomp$316_value$jscomp$774$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("recent",$G__76190_event$jscomp$316_value$jscomp$774$$)?$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__76190_event$jscomp$316_value$jscomp$774$$):$APP.$app$common$uuid$parse$$($G__76190_event$jscomp$316_value$jscomp$774$$);return $on_select$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$on_select$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__76190_event$jscomp$316_value$jscomp$774$$):$on_select$jscomp$1$$($G__76190_event$jscomp$316_value$jscomp$774$$)}),$on_select_text_palette_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select$jscomp$1$$)],function($lib$jscomp$14$$){return $lib$jscomp$14$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$208$file$$,$lib$jscomp$14$$)?$APP.$cljs$core$reset_BANG_$$($selected_text_STAR_$$,
$APP.$cljs$cst$208$file$$):$APP.$cljs$core$reset_BANG_$$($selected_text_STAR_$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($lib$jscomp$14$$))}),$toggle_palettes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1546$top$$;$APP.$app$util$dom$add_class_BANG_$$($APP.$goog$dom$getElementByClass$$("color-palette"),"fade-out-down");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3595$hide_palettes$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-left-toolbar"))}),$on_select_color_palette$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$317_node$jscomp$398$$){$event$jscomp$317_node$jscomp$398$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$317_node$jscomp$398$$);$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1546$top$$;$APP.$app$util$dom$add_class_BANG_$$($APP.$goog$dom$getElementByClass$$("color-palette"),
"fade-out-down");$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(300,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3595$hide_palettes$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3610$textpalette$$),$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3585$colorpalette$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-left-toolbar")]))});return $APP.$app$util$dom$blur_BANG_$$($event$jscomp$317_node$jscomp$398$$)}),$on_select_text_palette$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$318_node$jscomp$399$$){$event$jscomp$318_node$jscomp$399$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$318_node$jscomp$399$$);$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1546$top$$;$APP.$app$util$dom$add_class_BANG_$$($APP.$goog$dom$getElementByClass$$("color-palette"),
"fade-out-down");$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(300,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3595$hide_palettes$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3585$colorpalette$$),$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3610$textpalette$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-left-toolbar")]))});return $APP.$app$util$dom$blur_BANG_$$($event$jscomp$318_node$jscomp$399$$)}),$any_palette_QMARK_$$=$APP.$cljs$core$truth_$$($color_palette_QMARK__props_76174$$)?$color_palette_QMARK__props_76174$$:$text_palette_QMARK_$$,$size_classname$$=$map__76177__$1_size$jscomp$146$$<=64?"main_ui_workspace_palette__small-palette":$map__76177__$1_size$jscomp$146$$<=72?"main_ui_workspace_palette__mid-palette":$map__76177__$1_size$jscomp$146$$<=
80?"main_ui_workspace_palette__big-palette":null;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $key1$jscomp$7$$=$APP.$goog$events$listen$$(window,"resize",$on_resize$$);return function(){return $APP.$goog$events$unlistenByKey$$($key1$jscomp$7$$)}});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$9$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,
$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($parent_ref$jscomp$2$$),"clientWidth"))});return(0,$APP.$rumext$v2$jsx$$)("div",{id:"palette-wrapper",style:$app$main$ui$workspace$palette$calculate_palette_style$$($rulers_QMARK_$jscomp$2$$),"data-testid":"palette",className:"main_ui_workspace_palette__palette-wrapper",children:$read_only_QMARK_$jscomp$11$$?null:(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$parent_ref$jscomp$2$$,style:{"--height":""+($map__76177__$1_size$jscomp$146$$??
"")+"px"},className:""+($size_classname$$??"")+" main_ui_workspace_palette__palettes "+(($APP.$cljs$core$truth_$$($any_palette_QMARK_$$)?"main_ui_workspace_palette__wide":"")+" "+($APP.$cljs$core$truth_$$($hide_palettes_QMARK__layout$jscomp$15$$)?"main_ui_workspace_palette__hidden-bts":"")),children:[(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$map__76177_on_change_size$jscomp$1_on_pointer_down$jscomp$3$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$1$$,onPointerMove:$on_pointer_move$jscomp$2$$,
className:"main_ui_workspace_palette__resize-area"}),(0,$APP.$rumext$v2$jsxs$$)("ul",{className:""+($size_classname$$??"")+" main_ui_workspace_palette__palette-btn-list "+($APP.$cljs$core$truth_$$($hide_palettes_QMARK__layout$jscomp$15$$)?"main_ui_workspace_palette__hidden-bts":""),children:[(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_palette__palette-item",children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.color-palette",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4623$toggle_colorpalette$$)])),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.color-palette",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4623$toggle_colorpalette$$)])),onClick:$on_select_color_palette$$,className:"main_ui_workspace_palette__palette-btn "+
($APP.$cljs$core$truth_$$($color_palette_QMARK__props_76174$$)?"main_ui_workspace_palette__selected":""),children:$APP.$app$main$ui$icons$drop_icon$$})}),(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_palette__palette-item",children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.text-palette",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4667$toggle_textpalette$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.text-palette",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4667$toggle_textpalette$$)])),onClick:$on_select_text_palette$$,className:"main_ui_workspace_palette__palette-btn "+($APP.$cljs$core$truth_$$($text_palette_QMARK_$$)?"main_ui_workspace_palette__selected":""),children:$APP.$app$main$ui$icons$text_palette$$})})]}),$APP.$cljs$core$truth_$$($any_palette_QMARK_$$)?
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$9$$,$APP.$cljs$core$update$$,$cljs$cst$5366$show_menu$$,$APP.$cljs$core$not$$)},className:"main_ui_workspace_palette__palette-actions",children:$APP.$app$main$ui$icons$menu$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$container$jscomp$83$$,className:"main_ui_workspace_palette__palette",children:[$APP.$cljs$core$truth_$$($text_palette_QMARK_$$)?
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$text_palette_ctx_menu$text_palette_ctx_menu$$,{"show-menu?":$show_menu_QMARK_$jscomp$1_state$jscomp$1070$$,"close-menu":$on_close_menu$$,"on-select-palette":$on_select_text_palette_menu$$,selected:$selected_text$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$text_palette$text_palette$$,{size:$map__76177__$1_size$jscomp$146$$,selected:$selected_text$$,width:$vport$jscomp$9_vport_width$$})]}):
null,$APP.$cljs$core$truth_$$($color_palette_QMARK__props_76174$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$color_palette_ctx_menu$color_palette_ctx_menu_STAR_$$,{show:$show_menu_QMARK_$jscomp$1_state$jscomp$1070$$,onClose:$on_close_menu$$,onSelect:$on_select_palette$jscomp$1$$,selected:$APP.$cljs$core$_deref$$($selected$jscomp$147$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$color_palette$color_palette_STAR_$$,{size:$map__76177__$1_size$jscomp$146$$,
selected:$APP.$cljs$core$_deref$$($selected$jscomp$147$$),width:$vport$jscomp$9_vport_width$$})]}):null]})]}):(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$toggle_palettes$$,"data-testid":"toggle-palettes-visibility",className:"main_ui_workspace_palette__handler",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_palette__handler-btn"})})]})})};
$app$main$ui$workspace$main_menu$file_menu_STAR_$$=function($props_76223_shared_QMARK_$jscomp$5$$){var $on_close$jscomp$23$$=$props_76223_shared_QMARK_$jscomp$5$$.onClose,$file$jscomp$154$$=$props_76223_shared_QMARK_$jscomp$5$$.file,$file_id$jscomp$346$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$154$$);$props_76223_shared_QMARK_$jscomp$5$$=$APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$154$$);var $all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$selected$jscomp$148$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$);$all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$=$APP.$cljs$core$filterv$$($APP.$app$common$files$helpers$frame_shape_QMARK_$$,$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$,$APP.$app$common$uuid$zero$$));var $on_remove_shared_key_down_selected_frames$$=
$APP.$cljs$core$filterv$$(function($p1__76221_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected$jscomp$148$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76221_SHARP_$$))},$all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$),$frames$jscomp$26$$=$APP.$cljs$core$seq$$($on_remove_shared_key_down_selected_frames$$)?$on_remove_shared_key_down_selected_frames$$:$all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$;$all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$=
(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$);$all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$);var $on_remove_shared$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$346$$)],function($event$jscomp$346$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$346$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$346$$);
return $app$main$data$modal$show_BANG_$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$PersistentHashSet$createAsIfByAssoc$$([$file_id$jscomp$346$$]),$APP.$cljs$cst$2436$on_accept$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$set_file_shared$$($file_id$jscomp$346$$,
!1))},$APP.$cljs$cst$5362$count_libraries$$,1],null))});$on_remove_shared_key_down_selected_frames$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_remove_shared$$)],function($event$jscomp$347$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$347$$))?$on_remove_shared$$.$cljs$core$IFn$_invoke$arity$1$?$on_remove_shared$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$347$$):$on_remove_shared$$($event$jscomp$347$$):
null});var $on_add_shared$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$346$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$show_shared_dialog$$($file_id$jscomp$346$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$set_file_shared$$($file_id$jscomp$346$$,!0))}))}),$on_add_shared_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_add_shared$$)],
function($event$jscomp$348$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$348$$))?$on_add_shared$$.$cljs$core$IFn$_invoke$arity$1$?$on_add_shared$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$348$$):$on_add_shared$$($event$jscomp$348$$):null}),$on_show_version_history$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$346$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3589$document_history$$))}),
$on_show_version_history_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_show_version_history$$)],function($event$jscomp$349$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$349$$))?$on_show_version_history$$.$cljs$core$IFn$_invoke$arity$1$?$on_show_version_history$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$349$$):$on_show_version_history$$($event$jscomp$349$$):null}),$on_pin_version$$=$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$workspace$versions$create_version$$())}),
$on_pin_version_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_pin_version$$)],function($event$jscomp$350$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$350$$))?$on_pin_version$$.$cljs$core$IFn$_invoke$arity$1$?$on_pin_version$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$350$$):$on_pin_version$$($event$jscomp$350$$):null}),$on_export_shapes$$=$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$exports$assets$show_workspace_export_dialog$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1770$origin$$,"workspace:menu"],null)))}),$on_export_shapes_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_export_shapes$$)],function($event$jscomp$351$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$351$$))?$on_export_shapes$$.$cljs$core$IFn$_invoke$arity$1$?$on_export_shapes$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$351$$):$on_export_shapes$$($event$jscomp$351$$):null}),$on_export_file$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$154$$)],function(){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$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$file$jscomp$154$$],null)),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"workspace"],null)))}),$on_export_file_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_export_file$$)],function($event$jscomp$352$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$352$$))?$on_export_file$$.$cljs$core$IFn$_invoke$arity$1$?$on_export_file$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$352$$):$on_export_file$$($event$jscomp$352$$):null}),$on_export_frames$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frames$jscomp$26$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$exports$assets$show_workspace_export_frames_dialog$$($APP.$cljs$core$reverse$$($frames$jscomp$26$$)))}),$on_export_frames_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_export_frames$$)],function($event$jscomp$353$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$353$$))?$on_export_frames$$.$cljs$core$IFn$_invoke$arity$1$?
$on_export_frames$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$353$$):$on_export_frames$$($event$jscomp$353$$):null});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,className:"main_ui_workspace_main_menu__sub-menu main_ui_workspace_main_menu__file",onClose:$on_close$jscomp$23$$,children:[$props_76223_shared_QMARK_$jscomp$5$$?$APP.$cljs$core$truth_$$($all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$on_remove_shared$$,onKeyDown:$on_remove_shared_key_down_selected_frames$$,id:"file-menu-remove-shared",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.unpublish-shared")})}):null:$APP.$cljs$core$truth_$$($all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$on_add_shared$$,onKeyDown:$on_add_shared_key_down$$,id:"file-menu-add-shared",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.add-shared")})}):null,$APP.$cljs$core$truth_$$($all_frames_can_edit$jscomp$4_objects$jscomp$745_perms$jscomp$2$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_main_menu__separator"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$on_pin_version$$,onKeyDown:$on_pin_version_key_down$$,id:"file-menu-create-version",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.create-version-menu")})}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$on_show_version_history$$,onKeyDown:$on_show_version_history_key_down$$,id:"file-menu-show-version-history",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.show-version-history")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$146$$,
$sc$jscomp$26$$){$out_arr__44057__auto__$jscomp$146$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$26$$},$sc$jscomp$26$$));return $out_arr__44057__auto__$jscomp$146$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4659$toggle_history$$)))})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_main_menu__separator"})]}):null,$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$on_export_shapes$$,onKeyDown:$on_export_shapes_key_down$$,id:"file-menu-export-shapes",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.export-shapes")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$147$$,
$sc$jscomp$27$$){$out_arr__44057__auto__$jscomp$147$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$27$$},$sc$jscomp$27$$));return $out_arr__44057__auto__$jscomp$147$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4575$export_shapes$$)))})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",
onClick:$on_export_file$$,onKeyDown:$on_export_file_key_down$$,"data-format":"binfile-v3",id:"file-menu-binary-file",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.download-binary-file")})}),$APP.$cljs$core$seq$$($frames$jscomp$26$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",
onClick:$on_export_frames$$,onKeyDown:$on_export_frames_key_down$$,id:"file-menu-export-frames",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.export-frames")})}):null]})};
$app$main$ui$workspace$main_menu$menu$$=function($props_76240_show_menu_QMARK_$jscomp$2$$){var $profile$jscomp$57$$=$props_76240_show_menu_QMARK_$jscomp$2$$.profile,$layout$jscomp$19$$=$props_76240_show_menu_QMARK_$jscomp$2$$.layout,$file$jscomp$155$$=$props_76240_show_menu_QMARK_$jscomp$2$$.file,$show_menu_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$props_76240_show_menu_QMARK_$jscomp$2$$=$APP.$cljs$core$_deref$$($show_menu_STAR_$$);var $sub_menu_STAR_$jscomp$1$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$sub_menu$jscomp$1$$=$APP.$cljs$core$_deref$$($sub_menu_STAR_$jscomp$1$$),$open_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$357$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$357$$);return $APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$$,!0)}),$close_menu$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$358$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$358$$);
return $APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$$,!1)}),$close_sub_menu$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$359$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$359$$);return $APP.$cljs$core$reset_BANG_$$($sub_menu_STAR_$jscomp$1$$,null)}),$close_all_menus$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$$,!1);return $APP.$cljs$core$reset_BANG_$$($sub_menu_STAR_$jscomp$1$$,
null)}),$on_menu_click$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$360_menu__$1$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$360_menu__$1$$);$event$jscomp$360_menu__$1$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$360_menu__$1$$),"testid"));return $APP.$cljs$core$reset_BANG_$$($sub_menu_STAR_$jscomp$1$$,$event$jscomp$360_menu__$1$$)}),$on_power_up_click$jscomp$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-pricing-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://penpot.app/pricing")}),
$toggle_flag$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$361_flag$jscomp$13$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$361_flag$jscomp$13$$);$event$jscomp$361_flag$jscomp$13$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$361_flag$jscomp$13$$),"testid"));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($event$jscomp$361_flag$jscomp$13$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu"));$APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$$,!1);return $APP.$cljs$core$reset_BANG_$$($sub_menu_STAR_$jscomp$1$$,null)}),$toggle_theme$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$362$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$362$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$profile$toggle_theme$$())}),
$open_plugins_manager$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$363$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$363$$);$APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$$,!1);$APP.$cljs$core$reset_BANG_$$($sub_menu_STAR_$jscomp$1$$,null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-plugins-manager",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:menu"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4708$plugin_management$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)]))}),$subscription$jscomp$7_subscription_type$jscomp$7$$=$APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$573$props$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$57$$));
$subscription$jscomp$7_subscription_type$jscomp$7$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($subscription$jscomp$7_subscription_type$jscomp$7$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $disposable$jscomp$7$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($close_all_menus$$,$APP.$beicon$v2$core$filter$$(function($p1__76239_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3430$interrupt$$,
$p1__76239_SHARP_$$)},$APP.$app$main$store$stream$$));return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$beicon$v2$core$dispose_BANG_$$,$disposable$jscomp$7$$)});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcut-subsection.main-menu"),onClick:$open_menu$$,icon:"menu"}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,
{show:$props_76240_show_menu_QMARK_$jscomp$2$$,id:"workspace-menu",onClose:$close_menu$jscomp$1$$,className:"main_ui_workspace_main_menu__menu",children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$364$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$364$$))?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?
$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$364$$):$on_menu_click$jscomp$2$$($event$jscomp$364$$):null},onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"file",id:"file-menu-file",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.option.file")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}),
$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$365$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$365$$))?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$365$$):$on_menu_click$jscomp$2$$($event$jscomp$365$$):null},
onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"edit",id:"file-menu-edit",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.option.edit")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$366$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$366$$))?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$366$$):$on_menu_click$jscomp$2$$($event$jscomp$366$$):null},onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"view",id:"file-menu-view",children:[(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.option.view")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$367$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$367$$))?
$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$367$$):$on_menu_click$jscomp$2$$($event$jscomp$367$$):null},onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"preferences",id:"file-menu-preferences",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.option.preferences")}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}),$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"plugins/runtime"))?$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$368$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$368$$))?
$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$368$$):$on_menu_click$jscomp$2$$($event$jscomp$368$$):null},onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"plugins",id:"file-menu-plugins",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.plugins.menu.title")}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}):null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_main_menu__separator"}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_menu_click$jscomp$2$$,onKeyDown:function($event$jscomp$369$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$369$$))?
$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_menu_click$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$369$$):$on_menu_click$jscomp$2$$($event$jscomp$369$$):null},onPointerEnter:$on_menu_click$jscomp$2$$,"data-testid":"help-info",id:"file-menu-help-info",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.option.help-info")}),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__open-arrow",children:$APP.$app$main$ui$icons$arrow$$})]}),$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("enterprise",$subscription$jscomp$7_subscription_type$jscomp$7$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$dashboard$subscription$main_menu_power_up_STAR_$$,{closeSubMenu:$close_sub_menu$jscomp$2$$}):null,$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$1184$subscriptions_old$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__menu-item",onClick:$on_power_up_click$jscomp$1$$,onKeyDown:function($event$jscomp$370$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$370$$))?$on_power_up_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$on_power_up_click$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_power_up_click$jscomp$1$$():
null},onPointerEnter:$close_sub_menu$jscomp$2$$,id:"file-menu-power-up",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("subscription.workspace.header.menu.option.power-up")})}):null]}),function(){switch($sub_menu$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$sub_menu$jscomp$1$$.$fqn$:null){case "file":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$file_menu_STAR_$$,
{file:$file$jscomp$155$$,onClose:$close_sub_menu$jscomp$2$$});case "edit":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$edit_menu_STAR_$$,{onClose:$close_sub_menu$jscomp$2$$});case "view":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$view_menu_STAR_$$,{layout:$layout$jscomp$19$$,toggleFlag:$toggle_flag$jscomp$2$$,onClose:$close_sub_menu$jscomp$2$$});case "preferences":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$preferences_menu_STAR_$$,{layout:$layout$jscomp$19$$,
profile:$profile$jscomp$57$$,toggleFlag:$toggle_flag$jscomp$2$$,toggleTheme:$toggle_theme$jscomp$1$$,onClose:$close_sub_menu$jscomp$2$$});case "plugins":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$plugins_menu_STAR_$$,{openPlugins:$open_plugins_manager$$,onClose:$close_sub_menu$jscomp$2$$});case "help-info":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$help_info_menu_STAR_$$,{layout:$layout$jscomp$19$$,onClose:$close_sub_menu$jscomp$2$$});default:return null}}()]})};
$app$main$ui$workspace$left_header$left_header_STAR_$$=function($class$$jscomp$58_props_76258$$){var $layout$jscomp$20$$=$class$$jscomp$58_props_76258$$.layout,$file$jscomp$156$$=$class$$jscomp$58_props_76258$$.file,$page_id$jscomp$388$$=$class$$jscomp$58_props_76258$$.pageId,$project$jscomp$21$$=$class$$jscomp$58_props_76258$$.project;$class$$jscomp$58_props_76258$$=$class$$jscomp$58_props_76258$$.className;var $profile$jscomp$58$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$file_id$jscomp$347$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$156$$),$file_name$jscomp$8$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$156$$),$project_id$jscomp$35$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$21$$),$team_id$jscomp$136$$=$APP.$cljs$cst$1912$team_id$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$21$$),$shared_QMARK_$jscomp$6$$=$APP.$cljs$cst$2142$is_shared$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$156$$),$persistence$jscomp$1_read_only_QMARK_$jscomp$13$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$persistence$$),$persistence_status$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($persistence$jscomp$1_read_only_QMARK_$jscomp$13$$,$APP.$cljs$cst$109$status$$);$persistence$jscomp$1_read_only_QMARK_$jscomp$13$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);var $editing_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$editing_QMARK_$jscomp$3$$=$APP.$cljs$core$_deref$$($editing_STAR_$$),
$input_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(null),$handle_blur$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$347$$)],function(){var $value$jscomp$775$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_value$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$3$$)));$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$775$$,"")&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$rename_file$$($file_id$jscomp$347$$,
$value$jscomp$775$$));return $APP.$cljs$core$reset_BANG_$$($editing_STAR_$$,!1)}),$handle_name_keydown$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($handle_blur$jscomp$3$$)],function($event$jscomp$371$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$371$$))?$handle_blur$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$handle_blur$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$371$$):$handle_blur$jscomp$3$$($event$jscomp$371$$):
null}),$start_editing_name$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$372$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$372$$);return $APP.$cljs$core$reset_BANG_$$($editing_STAR_$$,!0)}),$close_modals$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$stop_picker$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()]))}),
$go_back$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$close_modals$$.$cljs$core$IFn$_invoke$arity$0$?$close_modals$$.$cljs$core$IFn$_invoke$arity$0$():$close_modals$$();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$layout$set_options_mode$$($APP.$cljs$cst$3602$design$$),$APP.$app$main$data$common$go_to_dashboard_recent$$()]))}),
$nav_to_project$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($project_id$jscomp$35$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$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$2413$app_DOT_main_DOT_router_SLASH_new_window$$,
!0,$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$35$$]))]))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$3$$)],function(){return $editing_QMARK_$jscomp$3$$?$APP.$app$util$dom$select_text_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$3$$)):null});return(0,$APP.$rumext$v2$jsxs$$)("header",{className:""+($class$$jscomp$58_props_76258$$??"")+" main_ui_workspace_left_header__workspace-header-left",children:[(0,$APP.$rumext$v2$jsx$$)("a",
{onClick:$go_back$jscomp$1$$,className:"main_ui_workspace_left_header__main-icon",children:$APP.$app$main$ui$icons$logo_icon$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{alt:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sitemap"),className:"main_ui_workspace_left_header__project-tree",children:[(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$nav_to_project$$,className:"main_ui_workspace_left_header__project-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($project$jscomp$21$$)}),
$editing_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$input_ref$jscomp$3$$,onBlur:$handle_blur$jscomp$3$$,onKeyDown:$handle_name_keydown$$,autoFocus:!0,defaultValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$156$$,""),className:"main_ui_workspace_left_header__file-name-input"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$file_name$jscomp$8$$,onDoubleClick:$start_editing_name$$,className:"main_ui_workspace_left_header__file-name",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{title:function(){switch($persistence_status$$ instanceof $APP.$cljs$core$Keyword$$?$persistence_status$$.$fqn$:null){case "pending":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.saving");case "saving":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.saving");case "saved":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.saved");case "error":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.save-error");
default:return null}}(),className:function(){switch($persistence_status$$ instanceof $APP.$cljs$core$Keyword$$?$persistence_status$$.$fqn$:null){case "pending":return"main_ui_workspace_left_header__status-notification main_ui_workspace_left_header__pending-status";case "saving":return"main_ui_workspace_left_header__status-notification main_ui_workspace_left_header__saving-status";case "saved":return"main_ui_workspace_left_header__status-notification main_ui_workspace_left_header__saved-status";case "error":return"main_ui_workspace_left_header__status-notification main_ui_workspace_left_header__error-status";
default:return"main_ui_workspace_left_header__status-notification"}}(),children:function(){switch($persistence_status$$ instanceof $APP.$cljs$core$Keyword$$?$persistence_status$$.$fqn$:null){case "pending":return $APP.$app$main$ui$icons$status_alert$$;case "saving":return $APP.$app$main$ui$icons$status_alert$$;case "saved":return $APP.$app$main$ui$icons$status_tick$$;case "error":return $APP.$app$main$ui$icons$status_wrong$$;default:return null}}()}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_left_header__file-name-label",
children:$file_name$jscomp$8$$})]})]}),$shared_QMARK_$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_left_header__shared-badge",children:$APP.$app$main$ui$icons$library$$}):null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_left_header__menu-section",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$main_menu$menu$$,{layout:$layout$jscomp$20$$,file:$file$jscomp$156$$,profile:$profile$jscomp$58$$,"read-only?":$persistence$jscomp$1_read_only_QMARK_$jscomp$13$$,
"team-id":$team_id$jscomp$136$$,"page-id":$page_id$jscomp$388$$})})]})};
$app$main$data$workspace$history$initialize_history$$=function(){typeof $app$main$data$workspace$history$initialize_history_76224$$==="undefined"&&($app$main$data$workspace$history$initialize_history_76224$$=function($meta76225$$){this.$meta76225$=$meta76225$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$history$initialize_history_76224$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$history$initialize_history_76224$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $cljs$cst$5375$app_DOT_main_DOT_data_DOT_workspace_DOT_history_SLASH_initialize_history$$},$app$main$data$workspace$history$initialize_history_76224$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_76226$$,$meta76225__$1$$){return new $app$main$data$workspace$history$initialize_history_76224$$($meta76225__$1$$)},$app$main$data$workspace$history$initialize_history_76224$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta76225$},$app$main$data$workspace$history$initialize_history_76224$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$history$initialize_history_76224$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2859$$,$___$1$jscomp$1983$$,$stream$jscomp$98$$){return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$layout$toggle_layout_flag$$($APP.$cljs$cst$3589$document_history$$)),$APP.$beicon$v2$core$map$$(function(){return $APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3589$document_history$$)},
$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$($APP.$app$main$data$workspace$common$interrupt_QMARK_$$,$stream$jscomp$98$$))))});return new $app$main$data$workspace$history$initialize_history_76224$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$workspace$right_header$right_header_STAR_$$=function($props_76262_zoom$jscomp$64$$){var $layout$jscomp$21$$=$props_76262_zoom$jscomp$64$$.layout,$page_id$jscomp$389$$=$props_76262_zoom$jscomp$64$$.pageId,$file_id$jscomp$348$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($props_76262_zoom$jscomp$64$$.file),$threads_map$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comment_threads$$);$props_76262_zoom$jscomp$64$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_zoom$$);
var $read_only_QMARK_$jscomp$14$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$selected_drawtool$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_drawing_tool$$),$on_increase$jscomp$2$$=$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$workspace$increase_zoom$$.$cljs$core$IFn$_invoke$arity$1$(null))}),$on_decrease$jscomp$2$$=$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$workspace$decrease_zoom$$.$cljs$core$IFn$_invoke$arity$1$(null))}),
$on_zoom_reset$jscomp$2$$=$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$workspace$zoom$reset_zoom$$)}),$on_zoom_fit$jscomp$2$$=$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$workspace$zoom$zoom_to_fit_all$$)}),$on_zoom_selected$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.$app$main$data$workspace$zoom$zoom_to_selected_shape$$)}),
$editing_STAR_$jscomp$1_has_unread_comments_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$editing_QMARK_$jscomp$4$$=$APP.$cljs$core$_deref$$($editing_STAR_$jscomp$1_has_unread_comments_QMARK_$$),$input_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(null),$team$jscomp$40$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$team$$),$permissions$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($team$jscomp$40$$,$APP.$cljs$cst$1706$permissions$$);$editing_STAR_$jscomp$1_has_unread_comments_QMARK_$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($threads_map$jscomp$6$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$348$$)],function(){return $APP.$cljs$core$boolean$0$$($APP.$cljs$core$some$$(function($p1__76261_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76261_SHARP_$$),$file_id$jscomp$348$$)&&$APP.$cljs$cst$3305$count_unread_comments$$.$cljs$core$IFn$_invoke$arity$1$($p1__76261_SHARP_$$)>
0},$APP.$cljs$core$vals$$($threads_map$jscomp$6$$)))});var $display_share_button_QMARK_$$=function(){var $and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$=$APP.$cljs$core$not$$($APP.$cljs$cst$4713$is_default$$.$cljs$core$IFn$_invoke$arity$1$($team$jscomp$40$$));return $and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$?($and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$=$APP.$cljs$cst$1581$is_admin$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$31$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$)?
$and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$:$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$31$$)):$and__5023__auto__$jscomp$710_or__5025__auto__$jscomp$1036$$}(),$nav_to_viewer$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$348$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$389$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_viewer$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$2028$page_id$$,$page_id$jscomp$389$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$348$$,$APP.$cljs$cst$1355$section$$,"interactions"],null)])))}),$active_comments$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout$jscomp$21$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$(),
$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3589$document_history$$),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-header"),$APP.$app$main$data$workspace$drawing$select_for_drawing$$($APP.$cljs$cst$3313$comments$$)]))}),$toggle_comments$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_drawtool$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected_drawtool$$,
$APP.$cljs$cst$3313$comments$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$drawing$common$clear_drawing$$()):$active_comments$$.$cljs$core$IFn$_invoke$arity$0$?$active_comments$$.$cljs$core$IFn$_invoke$arity$0$():$active_comments$$()}),$toggle_history$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_drawtool$$)],function(){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3313$comments$$,
$selected_drawtool$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()]));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$data$workspace$history$initialize_history$$(),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"workspace-header"))}),$open_share_dialog$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team$jscomp$40$$)],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$40$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$2489$workspace$$],
null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$4$$)],function(){return $editing_QMARK_$jscomp$4$$?$APP.$app$util$dom$select_text_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$4$$)):null});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_right_header__workspace-header-right",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__users-section",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$presence$active_sessions$$,
{})}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$exports$assets$progress_widget$$,{}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__separator"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__zoom-section",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$right_header$zoom_widget_workspace$$,{zoom:$props_76262_zoom$jscomp$64$$,"on-increase":$on_increase$jscomp$2$$,"on-decrease":$on_decrease$jscomp$2$$,"on-zoom-reset":$on_zoom_reset$jscomp$2$$,
"on-zoom-fit":$on_zoom_fit$jscomp$2$$,"on-zoom-selected":$on_zoom_selected$jscomp$1$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__comments-section",children:(0,$APP.$rumext$v2$jsxs$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.comments",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4620$add_comment$$)])),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.comments",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4620$add_comment$$)])),onClick:$toggle_comments$$,"data-tool":"comments",style:{position:"relative"},className:"main_ui_workspace_right_header__comments-btn "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected_drawtool$$,$APP.$cljs$cst$3313$comments$$)?"main_ui_workspace_right_header__selected":""),children:[$APP.$app$main$ui$icons$comments$$,$editing_STAR_$jscomp$1_has_unread_comments_QMARK_$$?
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__unread"}):null]})}),$read_only_QMARK_$jscomp$14$$?null:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_right_header__history-section",children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.history"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.history"),onClick:$toggle_history$$,className:($APP.$cljs$core$contains_QMARK_$$($layout$jscomp$21$$,
$APP.$cljs$cst$3589$document_history$$)?"main_ui_workspace_right_header__selected":"")+" main_ui_workspace_right_header__history-button",children:$APP.$app$main$ui$icons$history$$})}),$APP.$cljs$core$truth_$$($display_share_button_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("a",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.share"),onClick:$open_share_dialog$jscomp$1$$,className:"main_ui_workspace_right_header__viewer-btn",children:$APP.$app$main$ui$icons$share$$}):null,
(0,$APP.$rumext$v2$jsx$$)("a",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.header.viewer",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4656$open_viewer$$)])),onClick:$nav_to_viewer$$,className:"main_ui_workspace_right_header__viewer-btn",children:$APP.$app$main$ui$icons$play$$})]})};
$app$main$data$workspace$assets$get_current_assets_ordering$$=function(){var $or__5025__auto__$jscomp$1037$$=$cljs$cst$5376$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_ordering$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$storage$user$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1037$$)?$or__5025__auto__$jscomp$1037$$:$APP.$cljs$cst$4903$asc$$};
$app$main$data$workspace$assets$get_current_assets_list_style$$=function(){var $or__5025__auto__$jscomp$1038$$=$cljs$cst$5377$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_list_style$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$storage$user$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1038$$)?$or__5025__auto__$jscomp$1038$$:$cljs$cst$5378$thumbs$$};
$app$main$ui$workspace$sidebar$assets$groups$asset_group_title_STAR_$$=function($other_path$jscomp$1_props_76298$$){var $on_group_combine_variants$$=$other_path$jscomp$1_props_76298$$.onGroupCombineVariants,$path$jscomp$260$$=$other_path$jscomp$1_props_76298$$.path,$is_group_open$$=$other_path$jscomp$1_props_76298$$.isGroupOpen,$is_can_combine$$=$other_path$jscomp$1_props_76298$$.isCanCombine,$file_id$jscomp$349$$=$other_path$jscomp$1_props_76298$$.fileId,$section$jscomp$28$$=$other_path$jscomp$1_props_76298$$.section,
$on_ungroup$$=$other_path$jscomp$1_props_76298$$.onUngroup,$on_rename$$=$other_path$jscomp$1_props_76298$$.onRename;if($APP.$cljs$core$empty_QMARK_$$($path$jscomp$260$$))return null;var $truncated_vec__76299$$=$app$common$path_names$compact_path$$($path$jscomp$260$$);$other_path$jscomp$1_props_76298$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($truncated_vec__76299$$,0,null);var $last_path$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($truncated_vec__76299$$,1,
null);$truncated_vec__76299$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($truncated_vec__76299$$,2,null);var $menu_state$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$assets$common$initial_context_menu_state$$),$on_fold_group$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$349$$),$APP.$rumext$v2$adapt$$($section$jscomp$28$$),$APP.$rumext$v2$adapt$$($path$jscomp$260$$),$APP.$rumext$v2$adapt$$($is_group_open$$)],
function($event$jscomp$377$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$377$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_assets_group_open$$($file_id$jscomp$349$$,$section$jscomp$28$$,$path$jscomp$260$$,$APP.$cljs$core$not$$($is_group_open$$)))}),$on_context_menu$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$378_pos$jscomp$134$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$378_pos$jscomp$134$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$378_pos$jscomp$134$$);$event$jscomp$378_pos$jscomp$134$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$378_pos$jscomp$134$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($menu_state$$,$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$,$event$jscomp$378_pos$jscomp$134$$)}),$on_close_menu$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$2$($menu_state$$,
$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__group-title-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onContextMenu:$on_context_menu$jscomp$2$$,className:"main_ui_workspace_sidebar_assets_groups__group-title",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($is_group_open$$),allClickable:!0,
onCollapsed:$on_fold_group$$,title:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$empty_QMARK_$$($other_path$jscomp$1_props_76298$$)?null:(0,$APP.$rumext$v2$jsxs$$)("span",{title:$APP.$cljs$core$truth_$$($truncated_vec__76299$$)?$path$jscomp$260$$:null,className:"main_ui_workspace_sidebar_assets_groups__pre-path",children:[$other_path$jscomp$1_props_76298$$," • "]}),(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$core$truth_$$($truncated_vec__76299$$)?$path$jscomp$260$$:
null,className:"main_ui_workspace_sidebar_assets_groups__path",children:$last_path$jscomp$1$$})]})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,{onClose:$on_close_menu$jscomp$1$$,state:$APP.$cljs$core$_deref$$($menu_state$$),options:function(){var $G__76302$$=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$("workspace.assets.rename"),
$APP.$cljs$cst$266$id$$,"assets-rename-group",$APP.$cljs$cst$2359$handler$$,function($p1__76297_SHARP_$$){return $on_rename$$.$cljs$core$IFn$_invoke$arity$3$?$on_rename$$.$cljs$core$IFn$_invoke$arity$3$($p1__76297_SHARP_$$,$path$jscomp$260$$,$last_path$jscomp$1$$):$on_rename$$($p1__76297_SHARP_$$,$path$jscomp$260$$,$last_path$jscomp$1$$)}],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.ungroup"),
$APP.$cljs$cst$266$id$$,"assets-ungroup-group",$APP.$cljs$cst$2359$handler$$,function(){return $on_ungroup$$.$cljs$core$IFn$_invoke$arity$1$?$on_ungroup$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$260$$):$on_ungroup$$($path$jscomp$260$$)}],null)],null);return $APP.$cljs$core$truth_$$($is_can_combine$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__76302$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.combine-as-variants"),
$APP.$cljs$cst$266$id$$,"assets-combine-as-variants",$APP.$cljs$cst$2359$handler$$,function(){return $on_group_combine_variants$$.$cljs$core$IFn$_invoke$arity$1$?$on_group_combine_variants$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$260$$):$on_group_combine_variants$$($path$jscomp$260$$)}],null)):$G__76302$$}()})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__title-menu",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.component-group-options"),onClick:$on_context_menu$jscomp$2$$,icon:"menu"})})]})};
$app$main$ui$workspace$sidebar$assets$groups$group_assets$$=function($assets$jscomp$2$$,$reverse_sort_QMARK_$$){return $APP.$cljs$core$empty_QMARK_$$($assets$jscomp$2$$)?null:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($groups$jscomp$4$$,$p__76303_path$jscomp$261_path__$1$jscomp$9$$){var $map__76304__$1$$=$APP.$cljs$core$__destructure_map$$($p__76303_path$jscomp$261_path__$1$jscomp$9$$);$p__76303_path$jscomp$261_path__$1$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76304__$1$$,
$APP.$cljs$cst$294$path$$);$p__76303_path$jscomp$261_path__$1$jscomp$9$$=$APP.$app$common$path_names$split_path$$($APP.$cljs$core$truth_$$($p__76303_path$jscomp$261_path__$1$jscomp$9$$)?$p__76303_path$jscomp$261_path__$1$jscomp$9$$:"");return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($groups$jscomp$4$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p__76303_path$jscomp$261_path__$1$jscomp$9$$,""),function($group$jscomp$47$$){return $APP.$cljs$core$truth_$$($group$jscomp$47$$)?
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($group$jscomp$47$$,$map__76304__$1$$):new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$map__76304__$1$$],null)})},$APP.$cljs$core$sorted_map_by$$(function($key1$jscomp$8$$,$key2$jscomp$6$$){return $APP.$cljs$core$truth_$$($reverse_sort_QMARK_$$)?$APP.$cljs$core$compare$$($key2$jscomp$6$$,$key1$jscomp$8$$):$APP.$cljs$core$compare$$($key1$jscomp$8$$,$key2$jscomp$6$$)}),$assets$jscomp$2$$)};
$app$main$ui$workspace$sidebar$assets$groups$name_group_dialog$$=function($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$){$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$=$APP.$rumext$v2$util$wrap_props$$($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$);$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$=$APP.$cljs$core$__destructure_map$$($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$);
var $path$jscomp$262$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$,$APP.$cljs$cst$294$path$$,""),$last_path$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$,$cljs$cst$5379$last_path$$,""),$accept$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$,
$APP.$cljs$cst$922$accept$$);$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($last_path$jscomp$2$$)],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5380$asset_name$$,$last_path$jscomp$2$$],null)});var $form$jscomp$180$$=$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$util$forms$use_form$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$296$schema$$,
$app$main$ui$workspace$sidebar$assets$groups$schema_COLON_group_form$$,$APP.$cljs$cst$4857$initial$$,$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$):$APP.$app$util$forms$use_form$$($APP.$cljs$cst$296$schema$$,$app$main$ui$workspace$sidebar$assets$groups$schema_COLON_group_form$$,$APP.$cljs$cst$4857$initial$$,$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$),$create_QMARK_$$=$APP.$cljs$core$empty_QMARK_$$($path$jscomp$262$$);$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($form$jscomp$180$$)],function(){var $asset_name$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$180$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$APP.$cljs$cst$723$name$$],null));$create_QMARK_$$?$accept$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$?$accept$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$($asset_name$$):
$accept$jscomp$8$$($asset_name$$):$accept$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$?$accept$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$262$$,$asset_name$$):$accept$jscomp$8$$($path$jscomp$262$$,$asset_name$$);return $APP.$app$main$data$modal$hide_BANG_$$()});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__modal-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_assets_groups__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_workspace_sidebar_assets_groups__modal-title",children:$create_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.create-group"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.rename-group")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_workspace_sidebar_assets_groups__modal-close-btn",
children:$APP.$app$main$ui$icons$close$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__modal-content",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$form$$,{form:$form$jscomp$180$$,"on-submit":$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$,children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$forms$input$$,{name:$APP.$cljs$cst$723$name$$,"class":"main_ui_workspace_sidebar_assets_groups__input-wrapper",
"auto-focus?":!0,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.group-name"),hint:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.create-group-hint")})})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__modal-footer",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets_groups__action-buttons",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel"),
onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_workspace_sidebar_assets_groups__cancel-button"}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$4856$valid$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$180$$))),value:$create_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.create"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.rename"),onClick:$initial$jscomp$35_map__76306_map__76306__$1_on_accept$jscomp$10_props_76305$$,
className:"main_ui_workspace_sidebar_assets_groups__accept-btn "+($APP.$cljs$core$not$$($APP.$cljs$cst$4856$valid$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$180$$)))?"disabled":"")})]})})]})})};
$app$main$ui$workspace$sidebar$assets$colors$color_item$$=function($dragging_QMARK_$jscomp$3_props_76307$$){var $selected_paths$jscomp$4$$=$dragging_QMARK_$jscomp$3_props_76307$$["selected-paths"],$on_asset_click$$=$dragging_QMARK_$jscomp$3_props_76307$$["on-asset-click"],$selected_full$jscomp$2$$=$dragging_QMARK_$jscomp$3_props_76307$$["selected-full"],$on_assets_delete$$=$dragging_QMARK_$jscomp$3_props_76307$$["on-assets-delete"],$selected$jscomp$149$$=$dragging_QMARK_$jscomp$3_props_76307$$.selected,
$file_id$jscomp$350$$=$dragging_QMARK_$jscomp$3_props_76307$$["file-id"],$color$jscomp$162$$=$dragging_QMARK_$jscomp$3_props_76307$$.color,$multi_assets_QMARK_$$=$dragging_QMARK_$jscomp$3_props_76307$$["multi-assets?"],$local_QMARK_$jscomp$5$$=$dragging_QMARK_$jscomp$3_props_76307$$["local?"],$move_color$$=$dragging_QMARK_$jscomp$3_props_76307$$["move-color"],$on_clear_selection$$=$dragging_QMARK_$jscomp$3_props_76307$$["on-clear-selection"],$on_group$$=$dragging_QMARK_$jscomp$3_props_76307$$["on-group"],
$multi_colors_QMARK_$$=$dragging_QMARK_$jscomp$3_props_76307$$["multi-colors?"],$color__$1$jscomp$32$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$162$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$)],function(){var $G__76309__$1$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$162$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$162$$,$APP.$cljs$cst$1284$color$$,
$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$162$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1718$opacity$$,1])):$color$jscomp$162$$;return $APP.$cljs$core$truth_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$162$$))?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($G__76309__$1$$,$APP.$cljs$cst$260$value$$):$G__76309__$1$$}),$color_id$jscomp$7$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),
$item_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(),$dragging_STAR_$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$dragging_QMARK_$jscomp$3_props_76307$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$5$$);var $default_name$jscomp$1_rename_QMARK_$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3746$color_for_rename$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_local$$)),$color_id$jscomp$7$$),
$input_ref$jscomp$5$$=(0,$APP.$rumext$v2$use_ref$$)(),$editing_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($default_name$jscomp$1_rename_QMARK_$jscomp$2$$),$editing_QMARK_$jscomp$5$$=$APP.$cljs$core$_deref$$($editing_STAR_$jscomp$2$$),$menu_state$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$assets$common$initial_context_menu_state$$),$read_only_QMARK_$jscomp$15$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);
$default_name$jscomp$1_rename_QMARK_$jscomp$2$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$))?$APP.$app$util$color$gradient_type__GT_string$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color__$1$jscomp$32$$,$APP.$cljs$cst$1708$gradient$$),$APP.$cljs$cst$139$type$$)):$APP.$cljs$core$truth_$$($APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$))?
$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$):$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$);var $rename_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$),$APP.$rumext$v2$adapt$$($color_id$jscomp$7$$)],function($name$jscomp$422$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$rename_color$$($file_id$jscomp$350$$,
$color_id$jscomp$7$$,$name$jscomp$422$$))}),$edit_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$)],function($attrs$jscomp$162_color__$2$jscomp$3$$){var $name$jscomp$423$$=$APP.$app$common$path_names$merge_path_item$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$));$attrs$jscomp$162_color__$2$jscomp$3$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($attrs$jscomp$162_color__$2$jscomp$3$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$)),$APP.$cljs$cst$723$name$$,$name$jscomp$423$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$update_color$$($attrs$jscomp$162_color__$2$jscomp$3$$,$file_id$jscomp$350$$))}),$delete_color$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($multi_colors_QMARK_$$),$APP.$rumext$v2$adapt$$($multi_assets_QMARK_$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$),$APP.$rumext$v2$adapt$$($color_id$jscomp$7$$)],function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($multi_colors_QMARK_$$)?$multi_colors_QMARK_$$:$multi_assets_QMARK_$$))return $on_assets_delete$$.$cljs$core$IFn$_invoke$arity$0$?$on_assets_delete$$.$cljs$core$IFn$_invoke$arity$0$():$on_assets_delete$$();
var $undo_id$jscomp$84$$=Symbol();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$84$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$libraries$delete_color$$($color__$1$jscomp$32$$),$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$350$$,$file_id$jscomp$350$$,$APP.$cljs$cst$2174$colors$$,$color_id$jscomp$7$$),
$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$84$$)]))}),$rename_color_clicked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$15$$),$APP.$rumext$v2$adapt$$($local_QMARK_$jscomp$5$$)],function($event$jscomp$379$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($local_QMARK_$jscomp$5$$)?$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$15$$):$local_QMARK_$jscomp$5$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$379$$),
$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$2$$,!0)):null}),$input_blur$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($rename_color$$)],function($event$jscomp$380_name$jscomp$424$$){$event$jscomp$380_name$jscomp$424$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$380_name$jscomp$424$$);$rename_color$$.$cljs$core$IFn$_invoke$arity$1$?$rename_color$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$380_name$jscomp$424$$):$rename_color$$($event$jscomp$380_name$jscomp$424$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$clear_color_for_rename$$);return $APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$2$$,!1)}),$input_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($input_blur$$)],function($event$jscomp$381$$){$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$381$$))&&($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$clear_color_for_rename$$),
$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$2$$,!1));return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$381$$))?$input_blur$$.$cljs$core$IFn$_invoke$arity$1$?$input_blur$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$381$$):$input_blur$$($event$jscomp$381$$):null}),$edit_color_clicked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($edit_color$$),$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$)],function($event$jscomp$382$$){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2199$colorpicker$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$1499$x$$,$event$jscomp$382$$.clientX,$APP.$cljs$cst$1500$y$$,$event$jscomp$382$$.clientY,$APP.$cljs$cst$2436$on_accept$$,$edit_color$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$3588$assets$$,$APP.$cljs$cst$142$data$$,$color__$1$jscomp$32$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$258$right$$],null))}),$on_context_menu$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color_id$jscomp$7$$),
$APP.$rumext$v2$adapt$$($selected$jscomp$149$$),$APP.$rumext$v2$adapt$$($on_clear_selection$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$15$$)],function($event$jscomp$383_pos$jscomp$135$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$383_pos$jscomp$135$$);$event$jscomp$383_pos$jscomp$135$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$383_pos$jscomp$135$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($local_QMARK_$jscomp$5$$)?$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$15$$):
$local_QMARK_$jscomp$5$$)?($APP.$cljs$core$contains_QMARK_$$($selected$jscomp$149$$,$color_id$jscomp$7$$)||($on_clear_selection$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$$()),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($menu_state$jscomp$1$$,$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$,$event$jscomp$383_pos$jscomp$135$$)):null}),$on_close_menu$jscomp$2$$=$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$($menu_state$jscomp$1$$,
$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$)}),$on_drop$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$5$$),$APP.$rumext$v2$adapt$$($selected$jscomp$149$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$2$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$4$$),$APP.$rumext$v2$adapt$$($move_color$$)],function($event$jscomp$384$$){return $app$main$ui$workspace$sidebar$assets$common$on_drop_asset$$($event$jscomp$384$$,
$color__$1$jscomp$32$$,$dragging_STAR_$jscomp$5$$,$selected$jscomp$149$$,$selected_full$jscomp$2$$,$selected_paths$jscomp$4$$,$move_color$$)}),$on_drag_enter$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$5$$),$APP.$rumext$v2$adapt$$($selected$jscomp$149$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$4$$)],function($event$jscomp$385$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset$$($event$jscomp$385$$,
$color__$1$jscomp$32$$,$dragging_STAR_$jscomp$5$$,$selected$jscomp$149$$,$selected_paths$jscomp$4$$)}),$on_drag_leave$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$5$$)],function($event$jscomp$386$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$386$$,$dragging_STAR_$jscomp$5$$)}),$on_color_drag_start$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$),$APP.$rumext$v2$adapt$$($selected$jscomp$149$$),$APP.$rumext$v2$adapt$$($item_ref$jscomp$3$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$15$$),$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$5$$)],function($event$jscomp$387$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$15$$)?$read_only_QMARK_$jscomp$15$$:$editing_QMARK_$jscomp$5$$)?$APP.$app$util$dom$prevent_default$$($event$jscomp$387$$):$app$main$ui$workspace$sidebar$assets$common$on_asset_drag_start$$($event$jscomp$387$$,
$file_id$jscomp$350$$,$color__$1$jscomp$32$$,$selected$jscomp$149$$,$item_ref$jscomp$3$$,$APP.$cljs$cst$2174$colors$$,$APP.$cljs$core$identity$$)}),$on_click$jscomp$39$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color__$1$jscomp$32$$),$APP.$rumext$v2$adapt$$($on_asset_click$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$15$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$350$$)],function($event$jscomp$388$$){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$15$$))return null;
$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,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"use-library-color",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"sidebar",$APP.$cljs$cst$3773$external_library$$,$APP.$cljs$core$not$$($local_QMARK_$jscomp$5$$)],null)));
var $G__76312$jscomp$inline_8530_JSCompiler_inline_result$jscomp$1733$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$);$G__76312$jscomp$inline_8530_JSCompiler_inline_result$jscomp$1733$$=$on_asset_click$$.$cljs$core$IFn$_invoke$arity$2$?$on_asset_click$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$388$$,$G__76312$jscomp$inline_8530_JSCompiler_inline_result$jscomp$1733$$):$on_asset_click$$($event$jscomp$388$$,$G__76312$jscomp$inline_8530_JSCompiler_inline_result$jscomp$1733$$);
return $APP.$cljs$core$truth_$$($G__76312$jscomp$inline_8530_JSCompiler_inline_result$jscomp$1733$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$apply_color_from_assets$$($file_id$jscomp$350$$,$color__$1$jscomp$32$$,$event$jscomp$388$$.altKey))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$5$$)],function(){$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$5$$)&&$APP.$app$util$dom$select_text_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$5$$));
return null});return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$2$$,onDragLeave:$on_drag_leave$jscomp$2$$,className:"main_ui_workspace_sidebar_assets_colors__asset-list-item "+($APP.$cljs$core$contains_QMARK_$$($selected$jscomp$149$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$))?"main_ui_workspace_sidebar_assets_colors__selected":"")+" "+($APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_assets_colors__editing":
""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_colors__bullet-block",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$color_bullet$color_bullet$$,{color:$color__$1$jscomp$32$$,mini:!0})}),$editing_QMARK_$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$input_ref$jscomp$5$$,onBlur:$input_blur$$,onKeyDown:$input_key_down$$,autoFocus:!0,maxLength:255,defaultValue:$APP.$app$common$path_names$merge_path_item$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$)),className:"main_ui_workspace_sidebar_assets_colors__element-name"}):(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),$default_name$jscomp$1_rename_QMARK_$jscomp$2$$)?$default_name$jscomp$1_rename_QMARK_$jscomp$2$$:""+($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$)??
"")+" ("+($default_name$jscomp$1_rename_QMARK_$jscomp$2$$??"")+")",onDoubleClick:$rename_color_clicked$$,className:"main_ui_workspace_sidebar_assets_colors__name-block",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),$default_name$jscomp$1_rename_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_colors__default-name",children:$default_name$jscomp$1_rename_QMARK_$jscomp$2$$}):
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_colors__default-name main_ui_workspace_sidebar_assets_colors__default-name-with-color",children:$default_name$jscomp$1_rename_QMARK_$jscomp$2$$})]})}),$APP.$cljs$core$truth_$$($local_QMARK_$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,
{onClose:$on_close_menu$jscomp$2$$,state:$APP.$cljs$core$_deref$$($menu_state$jscomp$1$$),options:new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($multi_colors_QMARK_$$)?$multi_colors_QMARK_$$:$multi_assets_QMARK_$$)?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.rename"),$APP.$cljs$cst$266$id$$,
"assets-rename-color",$APP.$cljs$cst$2359$handler$$,$rename_color_clicked$$],null),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($multi_colors_QMARK_$$)?$multi_colors_QMARK_$$:$multi_assets_QMARK_$$)?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.edit"),$APP.$cljs$cst$266$id$$,"assets-edit-color",$APP.$cljs$cst$2359$handler$$,$edit_color_clicked$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.delete"),$APP.$cljs$cst$266$id$$,"assets-delete-color",$APP.$cljs$cst$2359$handler$$,$delete_color$$],null),$APP.$cljs$core$truth_$$($multi_assets_QMARK_$$)?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.group"),$APP.$cljs$cst$266$id$$,"assets-group-color",$APP.$cljs$cst$2359$handler$$,function(){var $G__76316$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color__$1$jscomp$32$$);return $on_group$$.$cljs$core$IFn$_invoke$arity$1$?$on_group$$.$cljs$core$IFn$_invoke$arity$1$($G__76316$$):$on_group$$($G__76316$$)}()],null)],null)}):null,$dragging_QMARK_$jscomp$3_props_76307$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_colors__dragging"}):null],onContextMenu:$on_context_menu$jscomp$3$$,onDrop:$on_drop$jscomp$5$$,style:{"--bullet-size":"16px"},onDragOver:$APP.$app$util$dom$prevent_default$$,
draggable:$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$15$$)&&$APP.$cljs$core$not$$($editing_QMARK_$jscomp$5$$),onClick:$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$5$$)?null:$on_click$jscomp$39$$,ref:$item_ref$jscomp$3$$,onDragStart:$on_color_drag_start$$})};
$app$main$ui$workspace$sidebar$assets$colors$colors_section_STAR_$$=function($props_76352_selected_full$jscomp$4$$){var $on_asset_click$jscomp$2_on_asset_click__$1$$=$props_76352_selected_full$jscomp$4$$.onAssetClick,$is_open$jscomp$3$$=$props_76352_selected_full$jscomp$4$$.isOpen,$open_status_ref$$=$props_76352_selected_full$jscomp$4$$.openStatusRef,$on_assets_delete$jscomp$2$$=$props_76352_selected_full$jscomp$4$$.onAssetsDelete,$file_id$jscomp$352$$=$props_76352_selected_full$jscomp$4$$.fileId,
$is_force_open$$=$props_76352_selected_full$jscomp$4$$.isForceOpen,$colors$jscomp$22$$=$props_76352_selected_full$jscomp$4$$.colors,$is_local$$=$props_76352_selected_full$jscomp$4$$.isLocal,$on_clear_selection$jscomp$2$$=$props_76352_selected_full$jscomp$4$$.onClearSelection,$is_reverse_sort$$=$props_76352_selected_full$jscomp$4$$.isReverseSort,$selected__$1$jscomp$15$$=$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($props_76352_selected_full$jscomp$4$$.selected);$props_76352_selected_full$jscomp$4$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected__$1$jscomp$15$$),$APP.$rumext$v2$adapt$$($colors$jscomp$22$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76332_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$15$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76332_SHARP_$$))}),
$colors$jscomp$22$$)});var $open_groups$jscomp$1_open_groups_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_status_ref$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4342$groups$$,$APP.$cljs$cst$2174$colors$$],null)),$open_status_ref$$)});$open_groups$jscomp$1_open_groups_ref$$=
$APP.$rumext$v2$deref$$($open_groups$jscomp$1_open_groups_ref$$);var $multi_colors_QMARK_$jscomp$2$$=$APP.$cljs$core$count$$($selected__$1$jscomp$15$$)>1,$multi_assets_QMARK_$jscomp$2$$=$APP.$cljs$core$seq$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$15$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2429$graphics$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$15$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$15$$)),
$groups$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$),$APP.$rumext$v2$adapt$$($is_reverse_sort$$)],function(){return $app$main$ui$workspace$sidebar$assets$groups$group_assets$$($colors$jscomp$22$$,$is_reverse_sort$$)}),$read_only_QMARK_$jscomp$16$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$add_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($value$jscomp$776$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$add_color$cljs$0core$0IFn$0_invoke$0arity$02$$($value$jscomp$776$$,
null))}),$add_color_clicked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$352$$)],function($event$jscomp$392_x_position$$){var $bounds$jscomp$78_y_position$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_current_target$$($event$jscomp$392_x_position$$));$event$jscomp$392_x_position$$=$APP.$cljs$cst$258$right$$.$cljs$core$IFn$_invoke$arity$1$($bounds$jscomp$78_y_position$$);$bounds$jscomp$78_y_position$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($bounds$jscomp$78_y_position$$);
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$352$$,$APP.$cljs$cst$2174$colors$$,!0),$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,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-asset-to-library",
$APP.$cljs$cst$2502$asset_type$$,"color"],null)),$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2199$colorpicker$$,new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$1499$x$$,$event$jscomp$392_x_position$$,$APP.$cljs$cst$1500$y$$,$bounds$jscomp$78_y_position$$,$APP.$cljs$cst$2436$on_accept$$,$add_color$$,$APP.$cljs$cst$1770$origin$$,$APP.$cljs$cst$3588$assets$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,
"#406280",$APP.$cljs$cst$1718$opacity$$,1],null),$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$258$right$$],null))]))}),$create_group$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$15$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$2$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$352$$)],function($color_id$jscomp$8$$){return function($group_name$jscomp$2$$){$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$?
$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$2$$();var $undo_id$jscomp$85$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$85$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76347_SHARP_$$){return $APP.$app$main$data$workspace$libraries$update_color$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76347_SHARP_$$,
$APP.$cljs$cst$723$name$$,$app$main$ui$workspace$sidebar$assets$common$add_group$$($p1__76347_SHARP_$$,$group_name$jscomp$2$$)),$file_id$jscomp$352$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76346_SHARP_$$){return $multi_colors_QMARK_$jscomp$2$$?$APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$15$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76346_SHARP_$$)):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color_id$jscomp$8$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76346_SHARP_$$))},
$colors$jscomp$22$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$85$$))}}),$rename_group$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$)],function($path$jscomp$263$$,$last_path$jscomp$3$$){$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$2$$();
var $undo_id$jscomp$86$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$86$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76349_SHARP_$$){return $APP.$app$main$data$workspace$libraries$update_color$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76349_SHARP_$$,$APP.$cljs$cst$723$name$$,$app$main$ui$workspace$sidebar$assets$common$rename_group$$($p1__76349_SHARP_$$,
$path$jscomp$263$$,$last_path$jscomp$3$$)),$file_id$jscomp$352$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76348_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76348_SHARP_$$),$path$jscomp$263$$)},$colors$jscomp$22$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$86$$))}),$on_group$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$15$$)],function($color_id$jscomp$9$$){return function($event$jscomp$393$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$393$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$922$accept$$,$create_group$$.$cljs$core$IFn$_invoke$arity$1$?
$create_group$$.$cljs$core$IFn$_invoke$arity$1$($color_id$jscomp$9$$):$create_group$$($color_id$jscomp$9$$)],null))}}),$on_rename_group$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$)],function($event$jscomp$394$$,$path$jscomp$264$$,$last_path$jscomp$4$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$394$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$294$path$$,$path$jscomp$264$$,$cljs$cst$5379$last_path$$,$last_path$jscomp$4$$,$APP.$cljs$cst$922$accept$$,$rename_group$$],null))}),$on_ungroup$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($colors$jscomp$22$$)],function($path$jscomp$265$$){$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$2$$();var $undo_id$jscomp$87$$=Symbol();
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$87$$));$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$(function($p1__76351_SHARP_$$){return $APP.$app$main$data$workspace$libraries$update_color$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76351_SHARP_$$,$APP.$cljs$cst$723$name$$,$app$main$ui$workspace$sidebar$assets$common$ungroup$$($p1__76351_SHARP_$$,
$path$jscomp$265$$)),$file_id$jscomp$352$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76350_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76350_SHARP_$$),$path$jscomp$265$$)},$colors$jscomp$22$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$87$$))});$on_asset_click$jscomp$2_on_asset_click__$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$6$$),$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$2_on_asset_click__$1$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$2_on_asset_click__$1$$,$groups$jscomp$6$$));return(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_STAR_$$,{fileId:$file_id$jscomp$352$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.colors"),
section:$APP.$cljs$cst$2174$colors$$,assetsCount:$APP.$cljs$core$count$$($colors$jscomp$22$$),isOpen:$is_open$jscomp$3$$,children:[$APP.$cljs$core$truth_$$($is_local$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$cljs$cst$5347$title_button$$,children:$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$16$$)?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.colors.add-color"),
onClick:$add_color_clicked$$,icon:"add"})}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$APP.$cljs$cst$1621$content$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$colors$colors_group$$,{"selected-full":$props_76352_selected_full$jscomp$4$$,"on-assets-delete":$on_assets_delete$jscomp$2$$,"force-open?":$is_force_open$$,selected:$selected__$1$jscomp$15$$,"file-id":$file_id$jscomp$352$$,"multi-assets?":$multi_assets_QMARK_$jscomp$2$$,
"on-ungroup":$on_ungroup$jscomp$2$$,"local?":$is_local$$,colors:$colors$jscomp$22$$,"open-groups":$open_groups$jscomp$1_open_groups_ref$$,prefix:"","on-group":$on_group$jscomp$2$$,"on-clear-selection":$on_clear_selection$jscomp$2$$,"multi-colors?":$multi_colors_QMARK_$jscomp$2$$,groups:$groups$jscomp$6$$,"on-asset-click":$on_asset_click$jscomp$2_on_asset_click__$1$$,"on-rename-group":$on_rename_group$jscomp$1$$})})]})};
$app$main$ui$components$editable_label$editable_label_STAR_$$=function($display_value_props_76308$$){var $on_change$jscomp$40$$=$display_value_props_76308$$.onChange,$on_cancel$jscomp$7$$=$display_value_props_76308$$.onCancel,$tooltip$$=$display_value_props_76308$$.tooltip,$class_label$$=$display_value_props_76308$$.classLabel,$value$jscomp$777$$=$display_value_props_76308$$.value,$class_input$$=$display_value_props_76308$$.classInput,$is_editing$$=$display_value_props_76308$$.isEditing;$display_value_props_76308$$=
$display_value_props_76308$$.displayValue;var $input_ref$jscomp$6$$=(0,$APP.$rumext$v2$use_ref$$)(null),$internal_editing_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$internal_editing_QMARK_$$=$APP.$cljs$core$_deref$$($internal_editing_STAR_$$),$start_edition$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($internal_editing_STAR_$$,!0);return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(100,
function(){var $temp__5825__auto__$jscomp$336$$=$APP.$rumext$v2$ref_val$$($input_ref$jscomp$6$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$336$$)?$APP.$app$util$dom$focus_BANG_$$($temp__5825__auto__$jscomp$336$$):null})}),$stop_edition$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($internal_editing_STAR_$$,!1)}),$accept_edition$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($internal_editing_QMARK_$$),
$APP.$rumext$v2$adapt$$($on_change$jscomp$40$$),$APP.$rumext$v2$adapt$$($stop_edition$$)],function(){if($APP.$cljs$core$truth_$$($internal_editing_QMARK_$$)){var $value__$1$jscomp$38$$=$APP.$app$util$dom$get_value$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$6$$));$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$40$$)&&($on_change$jscomp$40$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$40$$.$cljs$core$IFn$_invoke$arity$1$($value__$1$jscomp$38$$):$on_change$jscomp$40$$($value__$1$jscomp$38$$));
return $stop_edition$$.$cljs$core$IFn$_invoke$arity$0$?$stop_edition$$.$cljs$core$IFn$_invoke$arity$0$():$stop_edition$$()}return null}),$cancel_edition$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stop_edition$$),$APP.$rumext$v2$adapt$$($on_cancel$jscomp$7$$)],function(){$stop_edition$$.$cljs$core$IFn$_invoke$arity$0$?$stop_edition$$.$cljs$core$IFn$_invoke$arity$0$():$stop_edition$$();return $APP.$cljs$core$fn_QMARK_$$($on_cancel$jscomp$7$$)?$on_cancel$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$?
$on_cancel$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$():$on_cancel$jscomp$7$$():null}),$on_key_up$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($cancel_edition$$),$APP.$rumext$v2$adapt$$($accept_edition$$)],function($event$jscomp$395$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$395$$))?$cancel_edition$$.$cljs$core$IFn$_invoke$arity$0$?$cancel_edition$$.$cljs$core$IFn$_invoke$arity$0$():$cancel_edition$$():$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$395$$))?
$accept_edition$$.$cljs$core$IFn$_invoke$arity$0$?$accept_edition$$.$cljs$core$IFn$_invoke$arity$0$():$accept_edition$$():null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_editing$$),$APP.$rumext$v2$adapt$$($internal_editing_QMARK_$$),$APP.$rumext$v2$adapt$$($start_edition$$)],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_editing$$)?$APP.$cljs$core$not$$($internal_editing_QMARK_$$):$is_editing$$)?$start_edition$$.$cljs$core$IFn$_invoke$arity$0$?
$start_edition$$.$cljs$core$IFn$_invoke$arity$0$():$start_edition$$():null});return $internal_editing_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("input",{ref:$input_ref$jscomp$6$$,defaultValue:$value$jscomp$777$$,onKeyUp:$on_key_up$$,maxLength:255,onBlur:$accept_edition$$,className:"main_ui_components_editable_label__editable-label-input "+($class_input$$??"")}):(0,$APP.$rumext$v2$jsx$$)("span",{title:$tooltip$$,className:"main_ui_components_editable_label__editable-label-text "+($class_label$$??""),children:$display_value_props_76308$$})};
$app$main$ui$workspace$sidebar$assets$components$get_component_root_and_container$$=function($file_id$jscomp$353_root_shape$jscomp$10$$,$component$jscomp$119_container$jscomp$84$$){var $data$jscomp$464$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$refs$files$$),$file_id$jscomp$353_root_shape$jscomp$10$$),$APP.$cljs$cst$142$data$$);$file_id$jscomp$353_root_shape$jscomp$10$$=$APP.$app$common$types$file$get_component_root$$($data$jscomp$464$$,
$component$jscomp$119_container$jscomp$84$$);$component$jscomp$119_container$jscomp$84$$=$APP.$app$common$types$file$get_component_page$$($data$jscomp$464$$,$component$jscomp$119_container$jscomp$84$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$file_id$jscomp$353_root_shape$jscomp$10$$,$component$jscomp$119_container$jscomp$84$$],null)};
$app$main$ui$workspace$sidebar$assets$components$components_item_STAR_$$=function($dragging_QMARK_$jscomp$5_props_76310$$){var $selected_paths$jscomp$6$$=$dragging_QMARK_$jscomp$5_props_76310$$.selectedPaths,$on_asset_click$jscomp$3$$=$dragging_QMARK_$jscomp$5_props_76310$$.onAssetClick,$selected_full$jscomp$5$$=$dragging_QMARK_$jscomp$5_props_76310$$.selectedFull,$selected$jscomp$152$$=$dragging_QMARK_$jscomp$5_props_76310$$.selected,$file_id$jscomp$354$$=$dragging_QMARK_$jscomp$5_props_76310$$.fileId,
$cancel_rename$$=$dragging_QMARK_$jscomp$5_props_76310$$.cancelRename,$is_listing_thumbs$$=$dragging_QMARK_$jscomp$5_props_76310$$.isListingThumbs,$num_variants$$=$dragging_QMARK_$jscomp$5_props_76310$$.numVariants,$on_context_menu$jscomp$4_on_context_menu__$1$$=$dragging_QMARK_$jscomp$5_props_76310$$.onContextMenu,$renaming_root_shape$jscomp$11$$=$dragging_QMARK_$jscomp$5_props_76310$$.renaming,$component$jscomp$120$$=$dragging_QMARK_$jscomp$5_props_76310$$.component,$do_rename$jscomp$2$$=$dragging_QMARK_$jscomp$5_props_76310$$.doRename,
$is_local$jscomp$1$$=$dragging_QMARK_$jscomp$5_props_76310$$.isLocal,$on_drag_start$jscomp$2$$=$dragging_QMARK_$jscomp$5_props_76310$$.onDragStart,$item_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(),$dragging_STAR_$jscomp$7$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$dragging_QMARK_$jscomp$5_props_76310$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$7$$);var $read_only_QMARK_$jscomp$17$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),
$component_id$jscomp$89$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$),$visible_QMARK_$$=$APP.$app$main$ui$hooks$use_visible$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($item_ref$jscomp$4$$),$renaming_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($renaming_root_shape$jscomp$11$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$)),$container$jscomp$85_vec__76313$$=$app$main$ui$workspace$sidebar$assets$components$get_component_root_and_container$$($file_id$jscomp$354$$,
$component$jscomp$120$$);$renaming_root_shape$jscomp$11$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($container$jscomp$85_vec__76313$$,0,null);$container$jscomp$85_vec__76313$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($container$jscomp$85_vec__76313$$,1,null);var $on_component_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component_id$jscomp$89$$),$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$3$$)],function($event$jscomp$396$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$396$$);
return $APP.$cljs$core$truth_$$($on_asset_click$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$?$on_asset_click$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$396$$,$component_id$jscomp$89$$):$on_asset_click$jscomp$3$$($event$jscomp$396$$,$component_id$jscomp$89$$))?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$unselect_all_assets$cljs$0core$0IFn$0_invoke$0arity$01$$(null))}),$on_component_double_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$354$$),
$APP.$rumext$v2$adapt$$($component$jscomp$120$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$1$$),$APP.$rumext$v2$adapt$$($renaming_QMARK_$$)],function($event$jscomp$397$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$397$$);return $renaming_QMARK_$$?null:$APP.$cljs$core$truth_$$($is_local$jscomp$1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$go_to_local_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$266$id$$,
$component_id$jscomp$89$$]))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$go_to_component_file$$($file_id$jscomp$354$$,$component$jscomp$120$$,!1))}),$on_drop$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component$jscomp$120$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$7$$),$APP.$rumext$v2$adapt$$($selected$jscomp$152$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$5$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$6$$),
$APP.$rumext$v2$adapt$$($is_local$jscomp$1$$),$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],function($event$jscomp$398$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$1$$)?$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):$is_local$jscomp$1$$)?$app$main$ui$workspace$sidebar$assets$common$on_drop_asset$$($event$jscomp$398$$,
$component$jscomp$120$$,$dragging_STAR_$jscomp$7$$,$selected$jscomp$152$$,$selected_full$jscomp$5$$,$selected_paths$jscomp$6$$,$APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$):null}),$on_drag_enter$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component$jscomp$120$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$7$$),$APP.$rumext$v2$adapt$$($selected$jscomp$152$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$6$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$1$$),
$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],function($event$jscomp$399$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$1$$)?$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):$is_local$jscomp$1$$)?$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset$$($event$jscomp$399$$,$component$jscomp$120$$,$dragging_STAR_$jscomp$7$$,
$selected$jscomp$152$$,$selected_paths$jscomp$6$$):null}),$on_drag_leave$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$7$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$1$$),$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],function($event$jscomp$400$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$1$$)?$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):
$is_local$jscomp$1$$)?$app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$400$$,$dragging_STAR_$jscomp$7$$):null}),$on_component_drag_start$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$354$$),$APP.$rumext$v2$adapt$$($component$jscomp$120$$),$APP.$rumext$v2$adapt$$($selected$jscomp$152$$),$APP.$rumext$v2$adapt$$($item_ref$jscomp$4$$),$APP.$rumext$v2$adapt$$($on_drag_start$jscomp$2$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$17$$),
$APP.$rumext$v2$adapt$$($renaming_QMARK_$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$1$$)],function($event$jscomp$401$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$17$$)?$read_only_QMARK_$jscomp$17$$:$renaming_QMARK_$$)?$APP.$app$util$dom$prevent_default$$($event$jscomp$401$$):$app$main$ui$workspace$sidebar$assets$common$on_asset_drag_start$$($event$jscomp$401$$,$file_id$jscomp$354$$,$component$jscomp$120$$,$selected$jscomp$152$$,$item_ref$jscomp$4$$,$APP.$cljs$cst$1622$components$$,
$on_drag_start$jscomp$2$$)});$on_context_menu$jscomp$4_on_context_menu__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_context_menu$jscomp$4_on_context_menu__$1$$),$APP.$rumext$v2$adapt$$($component_id$jscomp$89$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_context_menu$jscomp$4_on_context_menu__$1$$,$component_id$jscomp$89$$));return(0,$APP.$rumext$v2$jsx$$)("div",{onDoubleClick:$on_component_double_click$$,onDragEnter:$on_drag_enter$jscomp$4$$,
onDragLeave:$on_drag_leave$jscomp$4$$,className:"main_ui_workspace_sidebar_assets_components__component-item "+($APP.$cljs$core$truth_$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-grid":"")+" "+($APP.$cljs$core$not$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-list":"")+" "+($APP.$cljs$core$contains_QMARK_$$($selected$jscomp$152$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$))?"main_ui_workspace_sidebar_assets_components__component-item-selected":
""),children:$renaming_root_shape$jscomp$11$$!=null&&$container$jscomp$85_vec__76313$$!=null?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:($APP.$cljs$core$truth_$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-grid-name":"")+" "+($APP.$cljs$core$not$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-list-name":
"")+" "+($renaming_QMARK_$$?"main_ui_workspace_sidebar_assets_components__component-item-editing":""),children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$editable_label$editable_label_STAR_$$,{classInput:($APP.$cljs$core$truth_$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-grid-input":"")+" "+($APP.$cljs$core$not$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-list-input":""),classLabel:($APP.$cljs$core$truth_$$($is_listing_thumbs$$)?
"main_ui_workspace_sidebar_assets_components__component-item-grid-label":"")+" "+($APP.$cljs$core$not$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-list-label":""),value:$APP.$app$common$path_names$merge_path_item$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$)),tooltip:$APP.$app$common$path_names$merge_path_item$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$),
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$)),displayValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$),isEditing:$renaming_QMARK_$$,onChange:$do_rename$jscomp$2$$,onCancel:$cancel_rename$$})}),$dragging_QMARK_$jscomp$5_props_76310$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_components__component-item-dragging"}):null]}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$component_item_thumbnail_STAR_$$,
{fileId:$file_id$jscomp$354$$,className:"main_ui_workspace_sidebar_assets_components__component-item-thumbnail "+($APP.$cljs$core$not$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-list-thumbnail":""),rootShape:$renaming_root_shape$jscomp$11$$,component:$component$jscomp$120$$,container:$container$jscomp$85_vec__76313$$,isHidden:$APP.$cljs$core$not$$($visible_QMARK_$$)}),$APP.$app$common$types$component$is_variant_QMARK_$$($component$jscomp$120$$)?(0,$APP.$rumext$v2$jsx$$)("span",
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.assets.components.num-variants",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$num_variants$$])),className:"main_ui_workspace_sidebar_assets_components__component-item-variant-mark "+($APP.$cljs$core$truth_$$($is_listing_thumbs$$)?"main_ui_workspace_sidebar_assets_components__component-item-grid-variant-mark":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"variant",size:"s"})}):null]}):null,id:"component-shape-id-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$120$$)??""),onContextMenu:$on_context_menu$jscomp$4_on_context_menu__$1$$,onDrop:$on_drop$jscomp$7$$,onDragOver:$APP.$app$util$dom$prevent_default$$,draggable:$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$17$$)&&!$renaming_QMARK_$$,onClick:$on_component_click$$,ref:$item_ref$jscomp$4$$,onDragStart:$on_component_drag_start$$})};
$app$main$ui$workspace$sidebar$assets$components$components_section_STAR_$$=function($props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$){var $on_asset_click$jscomp$5_on_asset_click__$1$jscomp$1$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.onAssetClick,$is_open$jscomp$4$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.isOpen,$open_status_ref$jscomp$1$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.openStatusRef,$on_assets_delete$jscomp$3$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.onAssetsDelete,
$any_variant_QMARK_$jscomp$2_selected$jscomp$154$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.selected,$file_id$jscomp$356$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.fileId,$is_listing_thumbs$jscomp$2$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.isListingThumbs,$count_variants$jscomp$1$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.countVariants,$is_force_open$jscomp$2$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.isForceOpen,
$is_local$jscomp$3$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.isLocal,$on_clear_selection$jscomp$3$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.onClearSelection,$components$jscomp$14$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.components,$is_reverse_sort$jscomp$1$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.isReverseSort,$delete_component$$=$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$.deleteComponent,$input_ref$jscomp$7$$=
(0,$APP.$rumext$v2$use_ref$$)(null),$state_STAR_$jscomp$10$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$);$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$10$$);var $current_component_id$$=$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$);$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$=$cljs$cst$5392$renaming$$.$cljs$core$IFn$_invoke$arity$1$($props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$);
var $open_groups$jscomp$3_open_groups_ref$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_status_ref$jscomp$1$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4342$groups$$,$APP.$cljs$cst$1622$components$$],null)),$open_status_ref$jscomp$1$$)});$open_groups$jscomp$3_open_groups_ref$jscomp$1$$=
$APP.$rumext$v2$deref$$($open_groups$jscomp$3_open_groups_ref$jscomp$1$$);var $menu_state$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$assets$common$initial_context_menu_state$$),$read_only_QMARK_$jscomp$18$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$toggle_list_style$jscomp$1$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$workspace$sidebar$assets$common$assets_toggle_list_style$$),$selected__$1$jscomp$16$$=
$APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($any_variant_QMARK_$jscomp$2_selected$jscomp$154$$),$selected_full$jscomp$7$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76329_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$16$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76329_SHARP_$$))}),$components$jscomp$14$$),$multi_components_QMARK_$$=
$APP.$cljs$core$count$$($selected__$1$jscomp$16$$)>1,$multi_assets_QMARK_$jscomp$3$$=$APP.$cljs$core$seq$$($APP.$cljs$cst$2429$graphics$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$16$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$16$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$16$$)),$selected_and_current$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected__$1$jscomp$16$$),
$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($current_component_id$$)],function(){return $APP.$cljs$core$set$$($APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($selected__$1$jscomp$16$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$current_component_id$$))}),$selected_and_current_full$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_and_current$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76330_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected_and_current$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76330_SHARP_$$))},$components$jscomp$14$$)});$any_variant_QMARK_$jscomp$2_selected$jscomp$154$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_and_current$$)],function(){return $APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$selected_and_current_full$$)});var $all_same_page_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_and_current$$)],
function(){var $page$jscomp$150$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($selected_and_current_full$$));return $APP.$cljs$core$every_QMARK_$$(function($p1__76331_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$150$$,$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($p1__76331_SHARP_$$))},$selected_and_current_full$$)}),$groups$jscomp$8$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$),
$APP.$rumext$v2$adapt$$($is_reverse_sort$jscomp$1$$)],function(){return $app$main$ui$workspace$sidebar$assets$groups$group_assets$$($components$jscomp$14$$,$is_reverse_sort$jscomp$1$$)}),$add_component$jscomp$1$$=$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$main$data$workspace$set_assets_section_open$$($file_id$jscomp$356$$,$APP.$cljs$cst$1622$components$$,!0));return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$7$$))}),
$on_file_selected$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$356$$)],function($blobs$jscomp$2_params$jscomp$407$$){$blobs$jscomp$2_params$jscomp$407$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$356$$,$APP.$cljs$cst$3568$blobs$$,$APP.$cljs$core$seq$$($blobs$jscomp$2_params$jscomp$407$$)],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$media$upload_media_components$$($blobs$jscomp$2_params$jscomp$407$$),
$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,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-asset-to-library",$APP.$cljs$cst$2502$asset_type$$,"components"],null))]))}),$on_duplicate$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_component_id$$),
$APP.$rumext$v2$adapt$$($selected__$1$jscomp$16$$)],function(){if($APP.$cljs$core$empty_QMARK_$$($selected__$1$jscomp$16$$))return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$356$$,$current_component_id$$));var $undo_id$jscomp$88$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$88$$));
$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$data$workspace$libraries$duplicate_component$$,$file_id$jscomp$356$$),$selected__$1$jscomp$16$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$88$$))}),$on_delete$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_component_id$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$356$$),$APP.$rumext$v2$adapt$$($multi_components_QMARK_$$),$APP.$rumext$v2$adapt$$($multi_assets_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($on_assets_delete$jscomp$3$$)],function(){var $undo_id$jscomp$89$$=Symbol();return $multi_components_QMARK_$$||$multi_assets_QMARK_$jscomp$3$$?$on_assets_delete$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_assets_delete$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_assets_delete$jscomp$3$$():$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$89$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$delete_component$$.$cljs$core$IFn$_invoke$arity$1$?$delete_component$$.$cljs$core$IFn$_invoke$arity$1$($current_component_id$$):$delete_component$$($current_component_id$$),$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$356$$,$file_id$jscomp$356$$,$APP.$cljs$cst$1622$components$$,$current_component_id$$),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$89$$)]))}),
$on_close_menu$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$($menu_state$jscomp$2$$,$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$)}),$on_rename$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$($state_STAR_$jscomp$10$$,$APP.$cljs$core$assoc$$,$cljs$cst$5392$renaming$$,!0)}),$cancel_rename$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($state_STAR_$jscomp$10$$,$APP.$cljs$core$dissoc$$,$cljs$cst$5392$renaming$$)}),$do_rename$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_component_id$$)],function($new_name$jscomp$28$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($state_STAR_$jscomp$10$$,$APP.$cljs$core$dissoc$$,$cljs$cst$5392$renaming$$);
return $APP.$cuerdas$core$blank_QMARK_$$($new_name$jscomp$28$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$($current_component_id$$,$new_name$jscomp$28$$))}),$on_context_menu$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected__$1$jscomp$16$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$3$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$18$$)],
function($component_id$jscomp$90$$,$event$jscomp$405_pos$jscomp$136$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$405_pos$jscomp$136$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$405_pos$jscomp$136$$);$event$jscomp$405_pos$jscomp$136$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$405_pos$jscomp$136$$);return $APP.$cljs$core$not$$($read_only_QMARK_$jscomp$18$$)?($APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$16$$,$component_id$jscomp$90$$)||($on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?
$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$3$$()),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$10$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1611$component_id$$,$component_id$jscomp$90$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($menu_state$jscomp$2$$,$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$,$event$jscomp$405_pos$jscomp$136$$)):null}),$create_group$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_component_id$$),
$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$16$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$3$$)],function($group_name$jscomp$3$$){$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$3$$();var $undo_id$jscomp$90$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$90$$));
$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76334_SHARP_$$){return $APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76334_SHARP_$$),$app$main$ui$workspace$sidebar$assets$common$add_group$$($p1__76334_SHARP_$$,$group_name$jscomp$3$$))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76333_SHARP_$$){return $multi_components_QMARK_$$?
$APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$16$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76333_SHARP_$$)):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_component_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76333_SHARP_$$))},$components$jscomp$14$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$90$$))}),$rename_group$jscomp$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$3$$)],function($path$jscomp$266$$,$last_path$jscomp$5$$){$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$3$$();var $undo_id$jscomp$91$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$91$$));
$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76336_SHARP_$$){return $APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76336_SHARP_$$),$app$main$ui$workspace$sidebar$assets$common$rename_group$$($p1__76336_SHARP_$$,$path$jscomp$266$$,$last_path$jscomp$5$$))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76335_SHARP_$$){return $app$common$path_names$inside_path_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76335_SHARP_$$),
$path$jscomp$266$$)},$components$jscomp$14$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$91$$))}),$on_group$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$16$$),$APP.$rumext$v2$adapt$$($create_group$jscomp$1$$)],function($event$jscomp$406$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$406$$);
return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$922$accept$$,$create_group$jscomp$1$$],null))}),$on_rename_group$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$)],function($event$jscomp$407$$,$path$jscomp$267$$,$last_path$jscomp$6$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$407$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$294$path$$,$path$jscomp$267$$,$cljs$cst$5379$last_path$$,$last_path$jscomp$6$$,$APP.$cljs$cst$922$accept$$,$rename_group$jscomp$1$$],null))}),$on_ungroup$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$3$$)],function($path$jscomp$268$$){$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():
$on_clear_selection$jscomp$3$$();var $undo_id$jscomp$92$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$92$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76338_SHARP_$$){return $APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76338_SHARP_$$),
$app$main$ui$workspace$sidebar$assets$common$ungroup$$($p1__76338_SHARP_$$,$path$jscomp$268$$))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76337_SHARP_$$){return $app$common$path_names$inside_path_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76337_SHARP_$$),$path$jscomp$268$$)},$components$jscomp$14$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$92$$))}),
$on_group_combine_variants$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$14$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$3$$)],function($path$jscomp$269$$){$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$3$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$3$$();var $comps_page_id$jscomp$390$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76339_SHARP_$$){return $app$common$path_names$inside_path_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76339_SHARP_$$),
$path$jscomp$269$$)},$components$jscomp$14$$),$ids$jscomp$263$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2045$main_instance_id$$,$comps_page_id$jscomp$390$$));$comps_page_id$jscomp$390$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($comps_page_id$jscomp$390$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$combine_as_variants$$($ids$jscomp$263$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2028$page_id$$,$comps_page_id$jscomp$390$$,$APP.$cljs$cst$4269$trigger$$,"workspace:context-menu-assets-group"],null)))}),$on_drag_start$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$356$$)],function($component$jscomp$122$$,$event$jscomp$408$$){var $file_data$jscomp$109_shape_main$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$refs$files$$),
$file_id$jscomp$356$$),$APP.$cljs$cst$142$data$$);$file_data$jscomp$109_shape_main$jscomp$13$$=$APP.$app$common$types$file$get_component_root$$($file_data$jscomp$109_shape_main$jscomp$13$$,$component$jscomp$122$$);$APP.$cljs$core$reset_BANG_$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$356$$,$APP.$cljs$cst$1609$component$$,$component$jscomp$122$$,$APP.$cljs$cst$1795$shape$$,$file_data$jscomp$109_shape_main$jscomp$13$$,
$APP.$cljs$cst$2526$is_local$$,$is_local$jscomp$3$$],null));$APP.$app$util$dom$dnd$set_data_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$408$$,"penpot/component",!0);$APP.$app$util$dom$dnd$set_drag_image_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($event$jscomp$408$$);return $APP.$app$util$dom$dnd$set_allowed_effect_BANG_$$($event$jscomp$408$$)}),$on_show_main$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_component_id$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$356$$),
$APP.$rumext$v2$adapt$$($is_local$jscomp$3$$)],function($component$jscomp$123_event$jscomp$409$$){$APP.$app$util$dom$stop_propagation$$($component$jscomp$123_event$jscomp$409$$);if($APP.$cljs$core$truth_$$($is_local$jscomp$3$$))return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$go_to_local_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$266$id$$,$current_component_id$$])));
$component$jscomp$123_event$jscomp$409$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__76341_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76341_SHARP_$$),$current_component_id$$)},$components$jscomp$14$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$go_to_component_file$$($file_id$jscomp$356$$,$component$jscomp$123_event$jscomp$409$$,
!1))});$on_asset_click$jscomp$5_on_asset_click__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$8$$),$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$5_on_asset_click__$1$jscomp$1$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$5_on_asset_click__$1$jscomp$1$$,$groups$jscomp$8$$));var $on_combine_as_variants$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_and_current_full$$)],
function($event$jscomp$410_page_id$jscomp$391$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$410_page_id$jscomp$391$$);$event$jscomp$410_page_id$jscomp$391$$=$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($selected_and_current_full$$));var $ids$jscomp$264$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2045$main_instance_id$$,
$selected_full$jscomp$7$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$combine_as_variants$$($ids$jscomp$264$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2028$page_id$$,$event$jscomp$410_page_id$jscomp$391$$,$APP.$cljs$cst$4269$trigger$$,"workspace:context-menu-assets"],null)))});return(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_STAR_$$,{fileId:$file_id$jscomp$356$$,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.components"),section:$APP.$cljs$cst$1622$components$$,assetsCount:$APP.$cljs$core$count$$($components$jscomp$14$$),isOpen:$is_open$jscomp$4$$,children:[(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$cljs$cst$5347$title_button$$,children:[$is_open$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,
{selected:$APP.$cljs$core$truth_$$($is_listing_thumbs$jscomp$2$$)?"grid":"list","on-change":$toggle_list_style$jscomp$1$$,name:"listing-style",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"view-as-list",value:"list",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.list-view"),id:"opt-list"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"flex-grid",value:"grid",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.grid-view"),
id:"opt-grid"})]})}):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$722$$=$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$18$$);return $and__5023__auto__$jscomp$722$$?$is_local$jscomp$3$$:$and__5023__auto__$jscomp$722$$}())?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.components.add-component"),onClick:$add_component$jscomp$1$$,icon:"add",
children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,{accept:$APP.$app$main$data$workspace$media$accept_image_types$$,multi:!0,ref:$input_ref$jscomp$7$$,"on-selected":$on_file_selected$jscomp$2$$})}):null]}),(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$APP.$cljs$cst$1621$content$$,children:[$is_open$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$components$components_group_STAR_$$,
{isLocal:$is_local$jscomp$3$$,selected:$selected__$1$jscomp$16$$,onRenameGroup:$on_rename_group$jscomp$3$$,onGroup:$on_group$jscomp$4$$,onAssetClick:$on_asset_click$jscomp$5_on_asset_click__$1$jscomp$1$$,prefix:"",isForceOpen:$is_force_open$jscomp$2$$,doRename:$do_rename$jscomp$4$$,countVariants:$count_variants$jscomp$1$$,cancelRename:$cancel_rename$jscomp$2$$,onContextMenu:$on_context_menu$jscomp$6$$,isListingThumbs:$is_listing_thumbs$jscomp$2$$,onUngroup:$on_ungroup$jscomp$4$$,onGroupCombineVariants:$on_group_combine_variants$jscomp$2$$,
openGroups:$open_groups$jscomp$3_open_groups_ref$jscomp$1$$,renaming:$props_76344_renaming_QMARK_$jscomp$1_state$jscomp$1071$$?$current_component_id$$:null,onDragStart:$on_drag_start$jscomp$4$$,fileId:$file_id$jscomp$356$$,groups:$groups$jscomp$8$$,selectedFull:$selected_full$jscomp$7$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,{onClose:$on_close_menu$jscomp$3$$,state:$APP.$cljs$core$_deref$$($menu_state$jscomp$2$$),options:new $APP.$cljs$core$PersistentVector$$(null,
6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$3$$)?$APP.$cljs$core$not$$($multi_components_QMARK_$$?$multi_components_QMARK_$$:$multi_assets_QMARK_$jscomp$3$$?$multi_assets_QMARK_$jscomp$3$$:$read_only_QMARK_$jscomp$18$$):$is_local$jscomp$3$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.rename"),$APP.$cljs$cst$266$id$$,"assets-rename-component",
$APP.$cljs$cst$2359$handler$$,$on_rename$jscomp$1$$],null):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$3$$)?$APP.$cljs$core$not$$($multi_assets_QMARK_$jscomp$3$$?$multi_assets_QMARK_$jscomp$3$$:$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$18$$)?$read_only_QMARK_$jscomp$18$$:$any_variant_QMARK_$jscomp$2_selected$jscomp$154$$):$is_local$jscomp$3$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.duplicate-main"),
$APP.$cljs$cst$266$id$$,"assets-duplicate-component",$APP.$cljs$cst$2359$handler$$,$on_duplicate$jscomp$1$$],null):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$3$$)?$APP.$cljs$core$not$$($multi_assets_QMARK_$jscomp$3$$?$multi_assets_QMARK_$jscomp$3$$:$read_only_QMARK_$jscomp$18$$):$is_local$jscomp$3$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.group"),$APP.$cljs$cst$266$id$$,
"assets-group-component",$APP.$cljs$cst$2359$handler$$,$on_group$jscomp$4$$],null):null,$multi_assets_QMARK_$jscomp$3$$?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.show-main"),$APP.$cljs$cst$266$id$$,"assets-show-main-component",$APP.$cljs$cst$2359$handler$$,$on_show_main$$],null),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$3$$)?$multi_components_QMARK_$$&&$APP.$cljs$core$not$$($any_variant_QMARK_$jscomp$2_selected$jscomp$154$$):
$is_local$jscomp$3$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.combine-as-variants"),$APP.$cljs$cst$266$id$$,"assets-combine-as-variants",$APP.$cljs$cst$937$title$$,$APP.$cljs$core$truth_$$($all_same_page_QMARK_$$)?null:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.combine-as-variants-error"),$APP.$cljs$cst$2632$disabled$$,$APP.$cljs$core$not$$($all_same_page_QMARK_$$),
$APP.$cljs$cst$2359$handler$$,$on_combine_as_variants$$],null):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$3$$)?$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$18$$):$is_local$jscomp$3$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.delete"),$APP.$cljs$cst$266$id$$,"assets-delete-component",$APP.$cljs$cst$2359$handler$$,$on_delete$jscomp$9$$],null):null],null)})]})]})};
$app$main$ui$components$editable_select$editable_select$$=function($aria_label$jscomp$8_map__76345_props_76343$$){function $handle_change_input$$($event$jscomp$413_value__$1$jscomp$42$$){$event$jscomp$413_value__$1$jscomp$42$$=$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$413_value__$1$jscomp$42$$));var $or__5025__auto__$jscomp$inline_8536$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$413_value__$1$jscomp$42$$);return $set_value$$($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8536$$)?
$or__5025__auto__$jscomp$inline_8536$$:$event$jscomp$413_value__$1$jscomp$42$$)}function $set_value$$($value__$1$jscomp$41$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$11$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4399$current_value$$,$value__$1$jscomp$41$$);return $APP.$cljs$core$truth_$$($on_change$jscomp$41$$)?$on_change$jscomp$41$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$41$$.$cljs$core$IFn$_invoke$arity$1$($value__$1$jscomp$41$$):$on_change$jscomp$41$$($value__$1$jscomp$41$$):
null}function $as_key_value$$($item$jscomp$123$$){return $APP.$cljs$core$map_QMARK_$$($item$jscomp$123$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$123$$),$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$123$$)],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$item$jscomp$123$$,$item$jscomp$123$$],
null)}$aria_label$jscomp$8_map__76345_props_76343$$=$APP.$rumext$v2$util$wrap_props$$($aria_label$jscomp$8_map__76345_props_76343$$);var $map__76345__$1_toggle_dropdown$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($aria_label$jscomp$8_map__76345_props_76343$$),$options$jscomp$605$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$871$options$$);$aria_label$jscomp$8_map__76345_props_76343$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,
$APP.$cljs$cst$4400$aria_label$$);var $on_change$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$4041$on_change$$),$placeholder$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$4862$placeholder$$),$value$jscomp$778$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$260$value$$),$on_blur$jscomp$10$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$4870$on_blur$$),$type$jscomp$590$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$139$type$$),$input_class$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$cljs$cst$5393$input_class$$),$class$$jscomp$59$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,
$APP.$cljs$cst$1277$class$$),$state_STAR_$jscomp$11$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$cst$4397$is_open_QMARK_$$,!1,$APP.$cljs$cst$4399$current_value$$,$value$jscomp$778$$,$APP.$cljs$cst$1546$top$$,null,$APP.$cljs$cst$257$left$$,null,$APP.$cljs$cst$1547$bottom$$,null],null)),$handle_key_down$jscomp$7_state$jscomp$1072$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$11$$),
$is_open_QMARK_$jscomp$1$$=$APP.$cljs$cst$4397$is_open_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($handle_key_down$jscomp$7_state$jscomp$1072$$),$current_value$jscomp$6$$=$APP.$cljs$cst$4399$current_value$$.$cljs$core$IFn$_invoke$arity$1$($handle_key_down$jscomp$7_state$jscomp$1072$$),$element_id$jscomp$3$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($handle_key_down$jscomp$7_state$jscomp$1072$$),$min_val$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,
$APP.$cljs$cst$336$min$$),$max_val$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76345__$1_toggle_dropdown$jscomp$3$$,$APP.$cljs$cst$337$max$$),$emit_blur_QMARK_$$=(0,$APP.$rumext$v2$use_ref$$)(null),$font_size_wrapper_ref$$=(0,$APP.$rumext$v2$use_ref$$)();$map__76345__$1_toggle_dropdown$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($handle_key_down$jscomp$7_state$jscomp$1072$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$11$$,
$APP.$cljs$core$update$$,$APP.$cljs$cst$4397$is_open_QMARK_$$,$APP.$cljs$core$not$$)});var $select_item$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$41$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$10$$)],function($event$jscomp$412_value__$1$jscomp$39$$){$event$jscomp$412_value__$1$jscomp$39$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$412_value__$1$jscomp$39$$),
"value"));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$11$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4399$current_value$$,$event$jscomp$412_value__$1$jscomp$39$$);$APP.$cljs$core$truth_$$($on_change$jscomp$41$$)&&($on_change$jscomp$41$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$41$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$412_value__$1$jscomp$39$$):$on_change$jscomp$41$$($event$jscomp$412_value__$1$jscomp$39$$));return $APP.$cljs$core$truth_$$($on_blur$jscomp$10$$)?
$on_blur$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$10$$():null}),$labels_map$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($as_key_value$$),$options$jscomp$605$$);$handle_key_down$jscomp$7_state$jscomp$1072$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($set_value$$)],function($event$jscomp$414$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$590$$,
"number")){var $up_QMARK_$jscomp$3$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$414$$),$down_QMARK_$jscomp$3$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$414$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($up_QMARK_$jscomp$3$$)?$up_QMARK_$jscomp$3$$:$down_QMARK_$jscomp$3$$)){$APP.$app$util$dom$prevent_default$$($event$jscomp$414$$);var $value__$1$jscomp$43$$=$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$414$$)),$new_value$jscomp$19$$=
function(){var $or__5025__auto__$jscomp$1050$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($value__$1$jscomp$43$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1050$$)?$or__5025__auto__$jscomp$1050$$:$value__$1$jscomp$43$$}()+($event$jscomp$414$$.shiftKey?$APP.$cljs$core$truth_$$($up_QMARK_$jscomp$3$$)?10:-10:$event$jscomp$414$$.altKey?$APP.$cljs$core$truth_$$($up_QMARK_$jscomp$3$$)?.1:-.1:$APP.$cljs$core$truth_$$($up_QMARK_$jscomp$3$$)?1:-1);return $set_value$$($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$728$$=
$APP.$app$common$math$finite_QMARK_$$($min_val$jscomp$2$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$728$$)?$new_value$jscomp$19$$<$min_val$jscomp$2$$:$and__5023__auto__$jscomp$728$$}())?$min_val$jscomp$2$$:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$729$$=$APP.$app$common$math$finite_QMARK_$$($max_val$jscomp$3$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$729$$)?$new_value$jscomp$19$$>$max_val$jscomp$3$$:$and__5023__auto__$jscomp$729$$}())?$max_val$jscomp$3$$:
$new_value$jscomp$19$$)}}return null});var $handle_focus$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($emit_blur_QMARK_$$,!1)}),$handle_blur$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$rumext$v2$set_ref_val_BANG_$$($emit_blur_QMARK_$$,!0);return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(200,function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($on_blur$jscomp$10$$)?
$APP.$rumext$v2$ref_val$$($emit_blur_QMARK_$$):$on_blur$jscomp$10$$)?$on_blur$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$10$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$10$$():null})});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value$jscomp$778$$),$APP.$rumext$v2$adapt$$($current_value$jscomp$6$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$778$$),
$current_value$jscomp$6$$)?$APP.$cljs$core$reset_BANG_$$($state_STAR_$jscomp$11$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4399$current_value$$,$value$jscomp$778$$],null)):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$1$$)],function(){var $nodes_76367_wrapper_node_76365$$=$APP.$rumext$v2$ref_val$$($font_size_wrapper_ref$$),$G__76355_76371__$1_node_76366$$=$APP.$goog$dom$getElementByClass$$("checked-element is-selected",
$nodes_76367_wrapper_node_76365$$);$nodes_76367_wrapper_node_76365$$=$goog$dom$getElementsByClass$$("checked-element-value",$nodes_76367_wrapper_node_76365$$);var $closest_value_76369$$=$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(function($a$jscomp$424$$,$b$jscomp$363$$){return $APP.$cljs$core$first$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76340_SHARP_$$){return $APP.$app$common$math$abs$$($p1__76340_SHARP_$$-$b$jscomp$363$$)},$a$jscomp$424$$))}($options$jscomp$605$$,
$value$jscomp$778$$));$APP.$cljs$core$truth_$$($is_open_QMARK_$jscomp$1$$)&&($G__76355_76371__$1_node_76366$$!=null?$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76355_76371__$1_node_76366$$,!1):($G__76355_76371__$1_node_76366$$=$nodes_76367_wrapper_node_76365$$==null?null:$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__76342_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($closest_value_76369$$,$p1__76342_SHARP_$$!=
null?$p1__76342_SHARP_$$.innerText:null)},$nodes_76367_wrapper_node_76365$$),$G__76355_76371__$1_node_76366$$!=null&&$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76355_76371__$1_node_76366$$,!1)));return $APP.$rumext$v2$set_ref_val_BANG_$$($emit_blur_QMARK_$$,$APP.$cljs$core$not$$($is_open_QMARK_$jscomp$1$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{ref:function($node$jscomp$401$$){return $APP.$cljs$core$truth_$$($node$jscomp$401$$)?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $left$jscomp$30_temp__5825__auto__$jscomp$337$$=
$APP.$cljs$core$truth_$$($node$jscomp$401$$)?$APP.$app$util$dom$get_bounding_rect$$($node$jscomp$401$$):null;if($APP.$cljs$core$truth_$$($left$jscomp$30_temp__5825__auto__$jscomp$337$$)){var $map__76353__$1_window_height$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($APP.$app$util$dom$get_window_size$$());$map__76353__$1_window_height$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76353__$1_window_height$jscomp$2$$,$APP.$cljs$cst$1511$height$$);var $height$jscomp$160_map__76354__$1$$=
$APP.$cljs$core$__destructure_map$$($left$jscomp$30_temp__5825__auto__$jscomp$337$$);$left$jscomp$30_temp__5825__auto__$jscomp$337$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$160_map__76354__$1$$,$APP.$cljs$cst$257$left$$);var $top$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$160_map__76354__$1$$,$APP.$cljs$cst$1546$top$$);$height$jscomp$160_map__76354__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$160_map__76354__$1$$,
$APP.$cljs$cst$1511$height$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$11$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$257$left$$,$left$jscomp$30_temp__5825__auto__$jscomp$337$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1546$top$$,$map__76353__$1_window_height$jscomp$2$$-$top$jscomp$16$$>=300?$top$jscomp$16$$+$height$jscomp$160_map__76354__$1$$:null,$APP.$cljs$cst$1547$bottom$$,$map__76353__$1_window_height$jscomp$2$$-
$top$jscomp$16$$<300?$map__76353__$1_window_height$jscomp$2$$-$top$jscomp$16$$:null]))}return null}):null},className:""+($class$$jscomp$59$$??"")+" main_ui_components_editable_select__editable-select",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$590$$,"number")?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{value:function(){var $or__5025__auto__$jscomp$1051$$=$current_value$jscomp$6$$==null?null:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($labels_map$$,
$current_value$jscomp$6$$,$current_value$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1051$$)?$or__5025__auto__$jscomp$1051$$:""}(),className:$input_class$$,onChange:$set_value$$,onFocus:$handle_focus$jscomp$3$$,onBlur:$handle_blur$jscomp$4$$,"aria-label":$aria_label$jscomp$8_map__76345_props_76343$$,placeholder:$placeholder$jscomp$3$$}):(0,$APP.$rumext$v2$jsx$$)("input",{onChange:$handle_change_input$$,"aria-label":$aria_label$jscomp$8_map__76345_props_76343$$,className:$input_class$$,
placeholder:$placeholder$jscomp$3$$,value:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$778$$,$APP.$cljs$cst$1600$multiple$$)?null:function(){var $or__5025__auto__$jscomp$1052$$=$current_value$jscomp$6$$==null?null:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($labels_map$$,$current_value$jscomp$6$$,$current_value$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1052$$)?$or__5025__auto__$jscomp$1052$$:""}(),onFocus:$handle_focus$jscomp$3$$,onBlur:$handle_blur$jscomp$4$$,
type:$type$jscomp$590$$,onKeyDown:$handle_key_down$jscomp$7_state$jscomp$1072$$}),(0,$APP.$rumext$v2$jsx$$)("span",{onClick:$map__76345__$1_toggle_dropdown$jscomp$3$$,className:"main_ui_components_editable_select__dropdown-button",children:$APP.$app$main$ui$icons$arrow$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$APP.$cljs$core$truth_$$($is_open_QMARK_$jscomp$1$$)?$is_open_QMARK_$jscomp$1$$:!1,"on-close":function($event$jscomp$411$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$411$$);
return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$11$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4397$is_open_QMARK_$$,!1)},children:(0,$APP.$rumext$v2$jsx$$)("ul",{ref:$font_size_wrapper_ref$$,className:"main_ui_components_editable_select__custom-select-dropdown",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$158$$,$JSCompiler_temp_const$jscomp$1737_p__76358$$){var $JSCompiler_temp$jscomp$1739_index$jscomp$470$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1737_p__76358$$,0,null),$item$jscomp$124_value__$1$jscomp$inline_8539$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1737_p__76358$$,1,null);$JSCompiler_temp_const$jscomp$1737_p__76358$$=$out_arr__44057__auto__$jscomp$158$$.push;if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1461$separator$$,$item$jscomp$124_value__$1$jscomp$inline_8539$$))$JSCompiler_temp$jscomp$1739_index$jscomp$470$$=
(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_components_editable_select__separator"},""+($element_id$jscomp$3$$??"")+"-"+($JSCompiler_temp$jscomp$1739_index$jscomp$470$$??""));else{var $label$jscomp$inline_8540_vec__76362$jscomp$inline_8538$$=$as_key_value$$($item$jscomp$124_value__$1$jscomp$inline_8539$$);$item$jscomp$124_value__$1$jscomp$inline_8539$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($label$jscomp$inline_8540_vec__76362$jscomp$inline_8538$$,0,null);$label$jscomp$inline_8540_vec__76362$jscomp$inline_8538$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($label$jscomp$inline_8540_vec__76362$jscomp$inline_8538$$,1,null);$JSCompiler_temp$jscomp$1739_index$jscomp$470$$=(0,$APP.$rumext$v2$jsxs$$)("li",{"data-value":$item$jscomp$124_value__$1$jscomp$inline_8539$$,onClick:$select_item$jscomp$1$$,className:"main_ui_components_editable_select__dropdown-element "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(""+($item$jscomp$124_value__$1$jscomp$inline_8539$$??""),$current_value$jscomp$6$$)?
"main_ui_components_editable_select__is-selected":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_editable_select__label",children:$label$jscomp$inline_8540_vec__76362$jscomp$inline_8538$$}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_components_editable_select__check-icon",children:$APP.$app$main$ui$icons$tick$$})]},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($element_id$jscomp$3$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1739_index$jscomp$470$$)].join(""))}$JSCompiler_temp_const$jscomp$1737_p__76358$$.call($out_arr__44057__auto__$jscomp$158$$,
$JSCompiler_temp$jscomp$1739_index$jscomp$470$$);return $out_arr__44057__auto__$jscomp$158$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$options$jscomp$605$$))})})]})};
$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$=function($value$jscomp$779$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$779$$,$APP.$cljs$cst$1600$multiple$$)?"":$APP.$app$util$strings$format_precision$$($value$jscomp$779$$,2)};
$app$main$ui$workspace$sidebar$options$menus$typography$get_next_font$$=function($index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$,$fonts$jscomp$27$$){$index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$=$APP.$cljs$core$__destructure_map$$($index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$);var $id$jscomp$895$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$,$APP.$cljs$cst$266$id$$);if($APP.$cljs$core$seq$$($fonts$jscomp$27$$)){$index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$=
$APP.$app$common$data$index_of_pred$$($fonts$jscomp$27$$,function($p1__76372_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76372_SHARP_$$),$id$jscomp$895$$)});$index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$=$APP.$cljs$core$truth_$$($index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$)?$index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$:-1;try{var $or__5025__auto__$jscomp$1054$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($fonts$jscomp$27$$,$index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$+1)}catch($e76375$jscomp$inline_8542$$){$or__5025__auto__$jscomp$1054$$=null}return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1054$$)?$or__5025__auto__$jscomp$1054$$:$APP.$cljs$core$first$$($fonts$jscomp$27$$)}return $index$jscomp$471_index__$1$jscomp$23_map__76374__$1_p__76373$$};
$app$main$ui$workspace$sidebar$options$menus$typography$get_prev_font$$=function($index$jscomp$472_map__76378__$1_p__76377$$,$fonts$jscomp$28$$){$index$jscomp$472_map__76378__$1_p__76377$$=$APP.$cljs$core$__destructure_map$$($index$jscomp$472_map__76378__$1_p__76377$$);var $id$jscomp$896$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$472_map__76378__$1_p__76377$$,$APP.$cljs$cst$266$id$$);if($APP.$cljs$core$seq$$($fonts$jscomp$28$$)){$index$jscomp$472_map__76378__$1_p__76377$$=
$APP.$app$common$data$index_of_pred$$($fonts$jscomp$28$$,function($p1__76376_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76376_SHARP_$$),$id$jscomp$896$$)});try{var $or__5025__auto__$jscomp$1056$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($fonts$jscomp$28$$,$index$jscomp$472_map__76378__$1_p__76377$$-1)}catch($e76379$jscomp$inline_8544$$){$or__5025__auto__$jscomp$1056$$=null}return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1056$$)?
$or__5025__auto__$jscomp$1056$$:$APP.$cljs$core$peek$$($fonts$jscomp$28$$)}return $index$jscomp$472_map__76378__$1_p__76377$$};
$app$main$ui$workspace$sidebar$options$menus$typography$filter_fonts$$=function($map__76384__$1_p__76383_xform$jscomp$40$$,$fonts$jscomp$29$$){$map__76384__$1_p__76383_xform$jscomp$40$$=$APP.$cljs$core$__destructure_map$$($map__76384__$1_p__76383_xform$jscomp$40$$);var $term$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76384__$1_p__76383_xform$jscomp$40$$,$APP.$cljs$cst$2470$term$$),$backends$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76384__$1_p__76383_xform$jscomp$40$$,
$cljs$cst$5394$backends$$),$term__$1$jscomp$1$$=$APP.$cuerdas$core$lower$$($term$jscomp$8$$);$map__76384__$1_p__76383_xform$jscomp$40$$=function(){var $G__76385_G__76385__$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$identity$$);$G__76385_G__76385__$1$$=$APP.$cljs$core$seq$$($term__$1$jscomp$1$$)?$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($G__76385_G__76385__$1$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76381_SHARP_$$){return $APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76381_SHARP_$$)),
$term__$1$jscomp$1$$)})):$G__76385_G__76385__$1$$;return $APP.$cljs$core$seq$$($backends$$)?$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($G__76385_G__76385__$1$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76382_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($backends$$,$APP.$cljs$cst$2536$backend$$.$cljs$core$IFn$_invoke$arity$1$($p1__76382_SHARP_$$))})):$G__76385_G__76385__$1$$}();return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$map__76384__$1_p__76383_xform$jscomp$40$$,$fonts$jscomp$29$$)};
$app$main$ui$workspace$sidebar$options$menus$typography$font_selector_STAR_$$=function($props_76388_recent_fonts__$1$$){var $current_font$jscomp$1$$=$props_76388_recent_fonts__$1$$.currentFont,$on_close$jscomp$26$$=$props_76388_recent_fonts__$1$$.onClose,$show_recent$$=$props_76388_recent_fonts__$1$$.showRecent,$full_size_full_size_QMARK_$$=$props_76388_recent_fonts__$1$$.fullSize,$on_select$jscomp$2$$=$props_76388_recent_fonts__$1$$.onSelect,$selected$jscomp$155$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($current_font$jscomp$1$$),
$state_STAR_$jscomp$12$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2470$term$$,"",$cljs$cst$5394$backends$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$],null)}),$state$jscomp$1073$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$12$$),$flist$$=(0,$APP.$rumext$v2$use_ref$$)(),$input$jscomp$71$$=(0,$APP.$rumext$v2$use_ref$$)(),$fonts$jscomp$30$$=$APP.$rumext$v2$deref$$($APP.$app$main$fonts$fonts$$),$fonts__$1$jscomp$2$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1073$$),$APP.$rumext$v2$adapt$$($fonts$jscomp$30$$)],function(){return $app$main$ui$workspace$sidebar$options$menus$typography$filter_fonts$$($state$jscomp$1073$$,$fonts$jscomp$30$$)}),$recent_fonts$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$recent_fonts$$);$props_76388_recent_fonts__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1073$$),
$APP.$rumext$v2$adapt$$($recent_fonts$jscomp$1$$)],function(){return $app$main$ui$workspace$sidebar$options$menus$typography$filter_fonts$$($state$jscomp$1073$$,$recent_fonts$jscomp$1$$)});$full_size_full_size_QMARK_$$=$APP.$cljs$core$boolean$0$$($APP.$cljs$core$truth_$$($full_size_full_size_QMARK_$$)?$show_recent$$:$full_size_full_size_QMARK_$$);var $select_next$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts__$1$jscomp$2$$)],function($event$jscomp$415$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$415$$);
$APP.$app$util$dom$prevent_default$$($event$jscomp$415$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($selected$jscomp$155$$,$app$main$ui$workspace$sidebar$options$menus$typography$get_next_font$$,$fonts__$1$jscomp$2$$)}),$select_prev$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts__$1$jscomp$2$$)],function($event$jscomp$416$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$416$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$416$$);
return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($selected$jscomp$155$$,$app$main$ui$workspace$sidebar$options$menus$typography$get_prev_font$$,$fonts__$1$jscomp$2$$)}),$on_key_down$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts__$1$jscomp$2$$)],function($event$jscomp$417$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$417$$))?$select_prev$$.$cljs$core$IFn$_invoke$arity$1$?$select_prev$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$417$$):
$select_prev$$($event$jscomp$417$$):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$417$$))?$select_next$$.$cljs$core$IFn$_invoke$arity$1$?$select_next$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$417$$):$select_next$$($event$jscomp$417$$):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$417$$))?$on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$?$on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$():$on_close$jscomp$26$$():
$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$417$$))?$on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$?$on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$():$on_close$jscomp$26$$():$APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($input$jscomp$71$$))}),$on_filter_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$418$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$12$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2470$term$$,$event$jscomp$418$$)}),$on_select_and_close$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select$jscomp$2$$),$APP.$rumext$v2$adapt$$($on_close$jscomp$26$$)],function($font$jscomp$45$$){$on_select$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_select$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$45$$):$on_select$jscomp$2$$($font$jscomp$45$$);return $on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$?
$on_close$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$():$on_close$jscomp$26$$()});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts__$1$jscomp$2$$)],function(){var $key$jscomp$408$$=$APP.$goog$events$listen$$(document,"keydown",$on_key_down$jscomp$11$$);return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$408$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($selected$jscomp$155$$))],
function(){var $temp__5825__auto__$jscomp$338$$=$APP.$rumext$v2$ref_val$$($flist$$);if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$338$$)){var $temp__5825__auto____$1$jscomp$23$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($selected$jscomp$155$$));return $APP.$cljs$core$truth_$$($temp__5825__auto____$1$jscomp$23$$)?$temp__5825__auto__$jscomp$338$$.scrollToRow($temp__5825__auto____$1$jscomp$23$$):null}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($selected$jscomp$155$$))],
function(){var $G__76389$$=$APP.$cljs$core$_deref$$($selected$jscomp$155$$);return $on_select$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_select$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76389$$):$on_select$jscomp$2$$($G__76389$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$push_shortcuts$$($APP.$cljs$cst$1966$typography$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$));
return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$pop_shortcuts$$($APP.$cljs$cst$1966$typography$$))}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $index$jscomp$474$$=$APP.$app$common$data$index_of_pred$$($fonts__$1$jscomp$2$$,function($p1__76386_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76386_SHARP_$$),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($current_font$jscomp$1$$))}),$inst$jscomp$6$$=$APP.$rumext$v2$ref_val$$($flist$$);return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $offset$jscomp$201$$=$inst$jscomp$6$$.getOffsetForRow({alignment:"center",index:$index$jscomp$474$$});return $inst$jscomp$6$$.scrollToPosition($offset$jscomp$201$$)})});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-selector",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-selector-dropdown "+($full_size_full_size_QMARK_$$?"main_ui_workspace_sidebar_options_menus_typography__font-selector-dropdown-full-size":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__header",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{onChange:$on_filter_change$$,value:$APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1073$$),
autoFocus:!0,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.search-font")}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($props_76388_recent_fonts__$1$$)?$show_recent$$:$props_76388_recent_fonts__$1$$)?(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_workspace_sidebar_options_menus_typography__show-recent",children:[(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_workspace_sidebar_options_menus_typography__title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.recent-fonts")}),
$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$159$$,$font$jscomp$46_p__76390$$){var $idx$jscomp$115$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($font$jscomp$46_p__76390$$,0,null);$font$jscomp$46_p__76390$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($font$jscomp$46_p__76390$$,1,null);$out_arr__44057__auto__$jscomp$159$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_item_STAR_$$,
{font:$font$jscomp$46_p__76390$$,style:{},onClick:$on_select_and_close$$,isCurrent:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$46_p__76390$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($selected$jscomp$155$$)))},"font-"+($idx$jscomp$115$$??"")));return $out_arr__44057__auto__$jscomp$159$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($props_76388_recent_fonts__$1$$))]}):
null]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__fonts-list "+($full_size_full_size_QMARK_$$?"main_ui_workspace_sidebar_options_menus_typography__fonts-list-full-size":""),children:(0,$APP.$rumext$v2$jsx$$)($shadow$js$shim$module$0react_virtualized$$.AutoSizer,{children:function($props$jscomp$304$$){return(0,$APP.$rumext$v2$create_element$$)($shadow$js$shim$module$0react_virtualized$$.List,{height:$props$jscomp$304$$.height,ref:$flist$$,width:$props$jscomp$304$$.width,
rowCount:$APP.$cljs$core$count$$($fonts__$1$jscomp$2$$),rowHeight:36,rowRenderer:function($p1__76387_SHARP_$$){var $G__76395$$=$APP.$cljs$core$_deref$$($selected$jscomp$155$$);return $app$main$ui$workspace$sidebar$options$menus$typography$row_renderer$$.$cljs$core$IFn$_invoke$arity$4$?$app$main$ui$workspace$sidebar$options$menus$typography$row_renderer$$.$cljs$core$IFn$_invoke$arity$4$($fonts__$1$jscomp$2$$,$G__76395$$,$on_select_and_close$$,$p1__76387_SHARP_$$):$app$main$ui$workspace$sidebar$options$menus$typography$row_renderer$$($fonts__$1$jscomp$2$$,
$G__76395$$,$on_select_and_close$$,$p1__76387_SHARP_$$)}})}})})]})})};
$app$main$ui$workspace$sidebar$options$menus$typography$row_renderer$$=function($font$jscomp$47_fonts$jscomp$31$$,$selected$jscomp$156$$,$on_select$jscomp$3$$,$props$jscomp$305$$){var $key$jscomp$409$$=$props$jscomp$305$$.key,$style$jscomp$72$$=$props$jscomp$305$$.style;$font$jscomp$47_fonts$jscomp$31$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($font$jscomp$47_fonts$jscomp$31$$,$props$jscomp$305$$.index);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_item_STAR_$$,{font:$font$jscomp$47_fonts$jscomp$31$$,
style:$style$jscomp$72$$,onClick:$on_select$jscomp$3$$,isCurrent:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$47_fonts$jscomp$31$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$156$$))},$key$jscomp$409$$)};
$app$main$ui$workspace$sidebar$options$menus$typography$font_options$$=function($font_size$jscomp$12_on_font_select_props_76399$$){var $on_change$jscomp$42$$=$font_size$jscomp$12_on_font_select_props_76399$$["on-change"],$full_size_selector$$=$font_size$jscomp$12_on_font_select_props_76399$$["full-size-selector"],$on_blur$jscomp$11$$=$font_size$jscomp$12_on_font_select_props_76399$$["on-blur"],$show_recent$jscomp$1$$=$font_size$jscomp$12_on_font_select_props_76399$$["show-recent"],$font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$=
$APP.$cljs$core$__destructure_map$$($font_size$jscomp$12_on_font_select_props_76399$$.values),$font_id$jscomp$31_font_id__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$,$APP.$cljs$cst$1741$font_id$$);$font_size$jscomp$12_on_font_select_props_76399$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$,$APP.$cljs$cst$1744$font_size$$);$font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$,$APP.$cljs$cst$1743$font_variant_id$$);$font_id$jscomp$31_font_id__$1$$=$APP.$cljs$core$truth_$$($font_id$jscomp$31_font_id__$1$$)?$font_id$jscomp$31_font_id__$1$$:$APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$text$default_typography$$);var $font_size__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($font_size$jscomp$12_on_font_select_props_76399$$)?
$font_size$jscomp$12_on_font_select_props_76399$$:$APP.$cljs$cst$1744$font_size$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$text$default_typography$$),$font_variant_id__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$)?$font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$:$APP.$cljs$cst$1743$font_variant_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$text$default_typography$$),$fonts$jscomp$32$$=$APP.$rumext$v2$deref$$($APP.$app$main$fonts$fontsdb$$),
$font$jscomp$48$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fonts$jscomp$32$$,$font_id$jscomp$31_font_id__$1$$),$last_font$$=(0,$APP.$rumext$v2$use_ref$$)(null),$open_selector_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$change_font$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$42$$),$APP.$rumext$v2$adapt$$($fonts$jscomp$32$$)],function($G__76403_76422_new_font_id$$){var $map__76401_map__76401__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fonts$jscomp$32$$,$G__76403_76422_new_font_id$$);$map__76401_map__76401__$1$$=$APP.$cljs$core$__destructure_map$$($map__76401_map__76401__$1$$);var $family$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76401_map__76401__$1$$,$APP.$cljs$cst$2619$family$$),$id$jscomp$897_map__76402$$=$APP.$app$main$fonts$get_default_variant$$($map__76401_map__76401__$1$$),$map__76402__$1_style$jscomp$73$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$897_map__76402$$);
$id$jscomp$897_map__76402$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76402__$1_style$jscomp$73$$,$APP.$cljs$cst$266$id$$);var $name$jscomp$425$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76402__$1_style$jscomp$73$$,$APP.$cljs$cst$723$name$$),$weight$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76402__$1_style$jscomp$73$$,$APP.$cljs$cst$1981$weight$$);$map__76402__$1_style$jscomp$73$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76402__$1_style$jscomp$73$$,
$APP.$cljs$cst$1889$style$$);$G__76403_76422_new_font_id$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1741$font_id$$,$G__76403_76422_new_font_id$$,$APP.$cljs$cst$1742$font_family$$,$family$jscomp$7$$,$APP.$cljs$cst$1743$font_variant_id$$,$APP.$cljs$core$truth_$$($id$jscomp$897_map__76402$$)?$id$jscomp$897_map__76402$$:$name$jscomp$425$$,$APP.$cljs$cst$1745$font_weight$$,$weight$jscomp$8$$,$APP.$cljs$cst$1746$font_style$$,$map__76402__$1_style$jscomp$73$$],null);$on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$($G__76403_76422_new_font_id$$):$on_change$jscomp$42$$($G__76403_76422_new_font_id$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($last_font$$,$map__76401_map__76401__$1$$)}),$on_font_size_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$42$$)],function($G__76404_new_font_size$$){if($APP.$cuerdas$core$empty_QMARK_$$($G__76404_new_font_size$$))return null;$G__76404_new_font_size$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1744$font_size$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76404_new_font_size$$)],null);return $on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$($G__76404_new_font_size$$):$on_change$jscomp$42$$($G__76404_new_font_size$$)}),$on_font_variant_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font$jscomp$48$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$42$$)],function($new_variant_id$jscomp$2$$){var $G__76405_76423_variant$jscomp$22$$=
$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__76398_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_variant_id$jscomp$2$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76398_SHARP_$$))},$APP.$cljs$cst$2620$variants$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$48$$));$G__76405_76423_variant$jscomp$22$$!=null&&($G__76405_76423_variant$jscomp$22$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1741$font_id$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$48$$),$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$2619$family$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$48$$),$APP.$cljs$cst$1743$font_variant_id$$,$new_variant_id$jscomp$2$$,$APP.$cljs$cst$1745$font_weight$$,$APP.$cljs$cst$1981$weight$$.$cljs$core$IFn$_invoke$arity$1$($G__76405_76423_variant$jscomp$22$$),$APP.$cljs$cst$1746$font_style$$,$APP.$cljs$cst$1889$style$$.$cljs$core$IFn$_invoke$arity$1$($G__76405_76423_variant$jscomp$22$$)],
null),$on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$42$$.$cljs$core$IFn$_invoke$arity$1$($G__76405_76423_variant$jscomp$22$$):$on_change$jscomp$42$$($G__76405_76423_variant$jscomp$22$$));return $on_blur$jscomp$11$$!=null?$on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$11$$():null});$font_size$jscomp$12_on_font_select_props_76399$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_font$$)],
function($G__76406_76426_font_STAR_$$){$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font$jscomp$48$$,$G__76406_76426_font_STAR_$$)&&($G__76406_76426_font_STAR_$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($G__76406_76426_font_STAR_$$),$change_font$$.$cljs$core$IFn$_invoke$arity$1$?$change_font$$.$cljs$core$IFn$_invoke$arity$1$($G__76406_76426_font_STAR_$$):$change_font$$($G__76406_76426_font_STAR_$$));return $on_blur$jscomp$11$$!=null?$on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$?
$on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$11$$():null});$font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($open_selector_QMARK_$$,!1);$on_blur$jscomp$11$$!=null&&($on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$11$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$11$$());return $APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($last_font$$))?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$fonts$add_recent_font$$($APP.$rumext$v2$ref_val$$($last_font$$))):null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($open_selector_QMARK_$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_selector_STAR_$$,{currentFont:$font$jscomp$48$$,onClose:$font_variant_id$jscomp$18_map__76400__$1_on_font_selector_close$$,
onSelect:$font_size$jscomp$12_on_font_select_props_76399$$,fullSize:$full_size_selector$$,showRecent:$show_recent$jscomp$1$$}):null,(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.font-family"),onClick:function(){return $APP.$cljs$core$reset_BANG_$$($open_selector_QMARK_$$,!0)},className:"main_ui_workspace_sidebar_options_menus_typography__font-option",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$font_id$jscomp$31_font_id__$1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("mixed",$font_id$jscomp$31_font_id__$1$$)?"--":$font$jscomp$48$$!=null?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$48$$)}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__icon",
children:$APP.$app$main$ui$icons$arrow$$})]}):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("dashboard.fonts.deleted-placeholder")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-modifiers",children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.font-size"),className:"main_ui_workspace_sidebar_options_menus_typography__font-size-options",children:function(){var $size_options$jscomp$1_size_options__$1$$=
new $APP.$cljs$core$PersistentVector$$(null,12,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[8,9,10,11,12,14,16,18,24,36,48,72],null);$size_options$jscomp$1_size_options__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font_size__$1$jscomp$1$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[""],null),$size_options$jscomp$1_size_options__$1$$):$size_options$jscomp$1_size_options__$1$$;
return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$editable_select$editable_select$$,{min:3,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),value:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font_size__$1$jscomp$1$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$cst$1600$multiple$$:$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$($font_size__$1$jscomp$1$$),"on-blur":$on_blur$jscomp$11$$,type:"number","input-class":"main_ui_workspace_sidebar_options_menus_typography__numeric-input",
max:1E3,"class":"main_ui_workspace_sidebar_options_menus_typography__font-size-select",options:$size_options$jscomp$1_size_options__$1$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.font-size"),"on-change":$on_font_size_change$$})}()}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.font-style"),className:"main_ui_workspace_sidebar_options_menus_typography__font-variant-options",
children:function(){var $basic_variant_options_variant_options$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($variant$jscomp$23$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($variant$jscomp$23$$),$APP.$cljs$cst$300$key$$,$APP.$cljs$core$pr_str$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$variant$jscomp$23$$])),$APP.$cljs$cst$2245$label$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($variant$jscomp$23$$)],null)},$APP.$cljs$cst$2620$variants$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$48$$));$basic_variant_options_variant_options$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_id__$1$jscomp$1$$,$APP.$cljs$cst$1600$multiple$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_id__$1$jscomp$1$$,"mixed")?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($basic_variant_options_variant_options$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$300$key$$,$cljs$cst$5395$multiple_variants$$,$APP.$cljs$cst$2245$label$$,"--"],null)):$basic_variant_options_variant_options$$;var $font_variant_value_font_variant_value__$1$$=$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$($font_variant_id__$1$jscomp$1$$);$font_variant_value_font_variant_value__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($font_variant_value_font_variant_value__$1$$,
"mixed")?"":$font_variant_value_font_variant_value__$1$$;return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_sidebar_options_menus_typography__font-variant-select","default-value":$font_variant_value_font_variant_value__$1$$,options:$basic_variant_options_variant_options$$,"on-change":$on_font_variant_change$$,"on-blur":$on_blur$jscomp$11$$})}()})]})]})};
$app$main$ui$workspace$sidebar$options$menus$typography$spacing_options$$=function($line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$){function $handle_change$jscomp$3$$($G__76411_value$jscomp$780$$,$attr$jscomp$61$$){$G__76411_value$jscomp$780$$=$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$attr$jscomp$61$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76411_value$jscomp$780$$)]);return $on_change$jscomp$43$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$43$$.$cljs$core$IFn$_invoke$arity$1$($G__76411_value$jscomp$780$$):
$on_change$jscomp$43$$($G__76411_value$jscomp$780$$)}var $on_change$jscomp$43$$=$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$["on-change"],$on_blur$jscomp$12$$=$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$["on-blur"],$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$=$APP.$cljs$core$__destructure_map$$($line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$.values);$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$,
$APP.$cljs$cst$1749$line_height$$);$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$,$APP.$cljs$cst$1750$letter_spacing$$);$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$=$APP.$cljs$core$truth_$$($line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$)?$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$:"1.2";$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$=
$APP.$cljs$core$truth_$$($letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$)?$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$:"0";return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__spacing-options",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.line-height"),className:"main_ui_workspace_sidebar_options_menus_typography__line-height",children:[(0,$APP.$rumext$v2$jsx$$)("span",
{alt:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.line-height"),className:"main_ui_workspace_sidebar_options_menus_typography__icon",children:$APP.$app$main$ui$icons$text_lineheight$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:-200,onChange:function($p1__76407_SHARP_$$){return $handle_change$jscomp$3$$($p1__76407_SHARP_$$,$APP.$cljs$cst$1749$line_height$$)},"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.line-height"),
className:"main_ui_workspace_sidebar_options_menus_typography__line-height-input",placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",max:200,value:$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$($line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$),onBlur:$on_blur$jscomp$12$$,
nillable:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$line_height$jscomp$20_line_height__$1$jscomp$5_props_76409$$),defaultValue:"1.2",step:.1})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.letter-spacing"),className:"main_ui_workspace_sidebar_options_menus_typography__letter-spacing",children:[(0,$APP.$rumext$v2$jsx$$)("span",{alt:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.letter-spacing"),
className:"main_ui_workspace_sidebar_options_menus_typography__icon",children:$APP.$app$main$ui$icons$text_letterspacing$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:-200,onChange:function($p1__76408_SHARP_$$){return $handle_change$jscomp$3$$($p1__76408_SHARP_$$,$APP.$cljs$cst$1750$letter_spacing$$)},"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.letter-spacing"),className:"main_ui_workspace_sidebar_options_menus_typography__letter-spacing-input",
placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",max:200,value:$app$main$ui$workspace$sidebar$options$menus$typography$attr__GT_string$$($letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$),onBlur:$on_blur$jscomp$12$$,nillable:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$letter_spacing$jscomp$7_letter_spacing__$1_map__76410__$1$$),defaultValue:"0",step:.1})]})]})};
$app$main$ui$workspace$sidebar$options$menus$typography$text_transform_options$$=function($props_76412$$){var $on_change$jscomp$44$$=$props_76412$$["on-change"],$on_blur$jscomp$13$$=$props_76412$$["on-blur"],$values$jscomp$77$$=$props_76412$$.values,$text_transform$jscomp$6$$=function(){var $or__5025__auto__$jscomp$1063$$=$APP.$cljs$cst$1753$text_transform$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$77$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1063$$)?$or__5025__auto__$jscomp$1063$$:
"none"}(),$unset_value$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?"none":"unset";return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__text-transform",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$text_transform$jscomp$6$$,"on-change":function($G__76413_76428_G__76414_76429_type$jscomp$591$$){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($text_transform$jscomp$6$$,
$G__76413_76428_G__76414_76429_type$jscomp$591$$)?($G__76413_76428_G__76414_76429_type$jscomp$591$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1753$text_transform$$,$unset_value$$],null),$on_change$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$($G__76413_76428_G__76414_76429_type$jscomp$591$$):$on_change$jscomp$44$$($G__76413_76428_G__76414_76429_type$jscomp$591$$)):($G__76413_76428_G__76414_76429_type$jscomp$591$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1753$text_transform$$,$G__76413_76428_G__76414_76429_type$jscomp$591$$],null),$on_change$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$44$$.$cljs$core$IFn$_invoke$arity$1$($G__76413_76428_G__76414_76429_type$jscomp$591$$):$on_change$jscomp$44$$($G__76413_76428_G__76414_76429_type$jscomp$591$$));return $on_blur$jscomp$13$$!=null?$on_blur$jscomp$13$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$13$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$13$$():null},
name:"text-transform",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"text-uppercase",type:"checkbox",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.text-transform.uppercase"),value:"uppercase",id:"text-transform-uppercase"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"text-mixed",type:"checkbox",value:"capitalize",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.text-transform.capitalize"),
id:"text-transform-capitalize"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"text-lowercase",type:"checkbox",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.typography.text-transform.lowercase"),value:"lowercase",id:"text-transform-lowercase"})]})})};
$app$main$ui$workspace$sidebar$options$menus$typography$text_options$$=function($full_size_selector_QMARK__props_76415$$){var $on_change$jscomp$45_opts$jscomp$308$$=$full_size_selector_QMARK__props_76415$$["on-change"],$on_blur$jscomp$14$$=$full_size_selector_QMARK__props_76415$$["on-blur"],$show_recent$jscomp$2$$=$full_size_selector_QMARK__props_76415$$["show-recent"],$ids$jscomp$265$$=$full_size_selector_QMARK__props_76415$$.ids,$values$jscomp$78$$=$full_size_selector_QMARK__props_76415$$.values,
$editor$jscomp$7$$=$full_size_selector_QMARK__props_76415$$.editor;$full_size_selector_QMARK__props_76415$$=$APP.$cljs$core$truth_$$($show_recent$jscomp$2$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$((0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$sidebar$$),$APP.$cljs$cst$258$right$$):$show_recent$jscomp$2$$;$on_change$jscomp$45_opts$jscomp$308$$={editor:$editor$jscomp$7$$,ids:$ids$jscomp$265$$,values:$values$jscomp$78$$,"on-change":$on_change$jscomp$45_opts$jscomp$308$$,"on-blur":$on_blur$jscomp$14$$,
"show-recent":$show_recent$jscomp$2$$,"full-size-selector":$full_size_selector_QMARK__props_76415$$};return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__text-options "+($APP.$cljs$core$truth_$$($full_size_selector_QMARK__props_76415$$)?"main_ui_workspace_sidebar_options_menus_typography__text-options-full-size":""),children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_options$$,$on_change$jscomp$45_opts$jscomp$308$$),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__typography-variations",children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$typography$spacing_options$$,$on_change$jscomp$45_opts$jscomp$308$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$typography$text_transform_options$$,$on_change$jscomp$45_opts$jscomp$308$$)]})]})};
$app$main$ui$workspace$sidebar$options$menus$typography$typography_entry$$=function($on_detach$jscomp$1_props_76419$$){var $on_change$jscomp$47$$=$on_detach$jscomp$1_props_76419$$["on-change"],$selected_QMARK_$jscomp$4$$=$on_detach$jscomp$1_props_76419$$["selected?"],$editing_QMARK_$jscomp$6$$=$on_detach$jscomp$1_props_76419$$["editing?"],$focus_name_QMARK_$$=$on_detach$jscomp$1_props_76419$$["focus-name?"],$file_id$jscomp$357$$=$on_detach$jscomp$1_props_76419$$["file-id"],$external_open_STAR_$$=
$on_detach$jscomp$1_props_76419$$["external-open*"],$renaming_QMARK_$jscomp$2$$=$on_detach$jscomp$1_props_76419$$["renaming?"],$local_QMARK_$jscomp$8$$=$on_detach$jscomp$1_props_76419$$["local?"],$on_context_menu$jscomp$7$$=$on_detach$jscomp$1_props_76419$$["on-context-menu"],$on_click$jscomp$41$$=$on_detach$jscomp$1_props_76419$$["on-click"],$typography$jscomp$31$$=$on_detach$jscomp$1_props_76419$$.typography;$on_detach$jscomp$1_props_76419$$=$on_detach$jscomp$1_props_76419$$["on-detach"];var $name_input_ref$jscomp$1$$=
(0,$APP.$rumext$v2$use_ref$$)(),$editable_QMARK_$jscomp$9_read_only_QMARK_$jscomp$19$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);$editable_QMARK_$jscomp$9_read_only_QMARK_$jscomp$19$$=$APP.$cljs$core$truth_$$($local_QMARK_$jscomp$8$$)?$APP.$cljs$core$not$$($editable_QMARK_$jscomp$9_read_only_QMARK_$jscomp$19$$):$local_QMARK_$jscomp$8$$;var $open_STAR_$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($editing_QMARK_$jscomp$6$$),$open_QMARK_$jscomp$11$$=
$APP.$cljs$core$_deref$$($open_STAR_$jscomp$4$$),$font_data$jscomp$12$$=$APP.$app$main$fonts$get_font_data$$($APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$)),$name_only_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$12$$)),$on_name_blur$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$47$$)],
function($G__76420_76447_event$jscomp$419_name$jscomp$426$$){$G__76420_76447_event$jscomp$419_name$jscomp$426$$=(0,$APP.$app$util$dom$get_target_val$$)($G__76420_76447_event$jscomp$419_name$jscomp$426$$);if($APP.$cuerdas$core$blank_QMARK_$$($G__76420_76447_event$jscomp$419_name$jscomp$426$$))return null;$G__76420_76447_event$jscomp$419_name$jscomp$426$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$723$name$$,$G__76420_76447_event$jscomp$419_name$jscomp$426$$],null);$on_change$jscomp$47$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$47$$.$cljs$core$IFn$_invoke$arity$1$($G__76420_76447_event$jscomp$419_name$jscomp$426$$):$on_change$jscomp$47$$($G__76420_76447_event$jscomp$419_name$jscomp$426$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76418_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__76418_SHARP_$$,$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$core$dissoc$$,$cljs$cst$5402$rename_typography$$)})}),$on_open$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$4$$,
!0)}),$on_close$jscomp$28$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$4$$,!1)}),$navigate_to_library$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$357$$)],function(){return $APP.$cljs$core$truth_$$($file_id$jscomp$357$$)?$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$357$$]))):null}),$on_key_down$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$420_input_node$jscomp$6$$){var $enter_QMARK_$jscomp$2$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$420_input_node$jscomp$6$$),$esc_QMARK_$jscomp$3$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$420_input_node$jscomp$6$$);$event$jscomp$420_input_node$jscomp$6$$=$APP.$app$util$dom$get_target$$($event$jscomp$420_input_node$jscomp$6$$);$enter_QMARK_$jscomp$2$$&&
$APP.$app$util$dom$blur_BANG_$$($event$jscomp$420_input_node$jscomp$6$$);return $esc_QMARK_$jscomp$3$$?$APP.$app$util$dom$blur_BANG_$$($event$jscomp$420_input_node$jscomp$6$$):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$6$$)],function(){return $APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$6$$)?$APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$4$$,$editing_QMARK_$jscomp$6$$):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_QMARK_$jscomp$11$$)],
function(){return $external_open_STAR_$$!=null?$APP.$cljs$core$reset_BANG_$$($external_open_STAR_$$,$open_QMARK_$jscomp$11$$):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($focus_name_QMARK_$$)],function(){return $APP.$cljs$core$truth_$$($focus_name_QMARK_$$)?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $temp__5825__auto__$jscomp$340$$=$APP.$rumext$v2$ref_val$$($name_input_ref$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$340$$)?
($APP.$app$util$dom$focus_BANG_$$($temp__5825__auto__$jscomp$340$$),$APP.$app$util$dom$select_text_BANG_$$($temp__5825__auto__$jscomp$340$$)):null}):null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{style:{display:$open_QMARK_$jscomp$11$$?"none":null},className:"main_ui_workspace_sidebar_options_menus_typography__typography-entry "+($selected_QMARK_$jscomp$4$$?"main_ui_workspace_sidebar_options_menus_typography__selected":""),children:[$APP.$cljs$core$truth_$$($renaming_QMARK_$jscomp$2$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-name-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$)},className:"main_ui_workspace_sidebar_options_menus_typography__typography-sample-input",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.sample")}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$name_input_ref$jscomp$1$$,defaultValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),maxLength:255,onKeyDown:$on_key_down$jscomp$13$$,onBlur:$on_name_blur$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_typography__adv-typography-name"})]}):(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_click$jscomp$41$$,
onContextMenu:$on_context_menu$jscomp$7$$,className:"main_ui_workspace_sidebar_options_menus_typography__typography-selection-wrapper "+($on_click$jscomp$41$$?"main_ui_workspace_sidebar_options_menus_typography__is-selectable":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$)},
className:"main_ui_workspace_sidebar_options_menus_typography__typography-sample",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.sample")}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$),className:"main_ui_workspace_sidebar_options_menus_typography__typography-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$31$$)}),$name_only_QMARK_$jscomp$1$$?
null:(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$12$$),className:"main_ui_workspace_sidebar_options_menus_typography__typography-font",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$12$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__element-set-actions",children:[$on_detach$jscomp$1_props_76419$$?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_detach$jscomp$1_props_76419$$,
className:"main_ui_workspace_sidebar_options_menus_typography__element-set-actions-button",children:$APP.$app$main$ui$icons$detach$$}):null,(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_open$jscomp$2$$,className:"main_ui_workspace_sidebar_options_menus_typography__menu-btn",children:$APP.$app$main$ui$icons$menu$$})]})]}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$typography_advanced_options$$,{"navigate-to-library":$navigate_to_library$jscomp$1$$,"visible?":$open_QMARK_$jscomp$11$$,
"on-name-blur":$on_name_blur$jscomp$1$$,"on-close":$on_close$jscomp$28$$,"local?":$local_QMARK_$jscomp$8$$,"editable?":$editable_QMARK_$jscomp$9_read_only_QMARK_$jscomp$19$$,typography:$typography$jscomp$31$$,"name-input-ref":$name_input_ref$jscomp$1$$,"on-change":$on_change$jscomp$47$$,"on-key-down":$on_key_down$jscomp$13$$})]})};
$app$main$ui$workspace$sidebar$assets$typographies$typography_item$$=function($props_76421_typography_id$jscomp$6$$){var $selected_paths$jscomp$8$$=$props_76421_typography_id$jscomp$6$$["selected-paths"],$move_typography$$=$props_76421_typography_id$jscomp$6$$["move-typography"],$on_asset_click$jscomp$6$$=$props_76421_typography_id$jscomp$6$$["on-asset-click"],$selected_full$jscomp$8$$=$props_76421_typography_id$jscomp$6$$["selected-full"],$handle_change$jscomp$5_handle_change__$1$$=$props_76421_typography_id$jscomp$6$$["handle-change"],
$selected$jscomp$157$$=$props_76421_typography_id$jscomp$6$$.selected,$rename_QMARK_$jscomp$3$$=$props_76421_typography_id$jscomp$6$$["rename?"],$file_id$jscomp$358$$=$props_76421_typography_id$jscomp$6$$["file-id"],$local_QMARK_$jscomp$9$$=$props_76421_typography_id$jscomp$6$$["local?"],$on_context_menu$jscomp$8_on_context_menu__$1$jscomp$1$$=$props_76421_typography_id$jscomp$6$$["on-context-menu"],$editing_QMARK_$jscomp$7_editing_id$jscomp$1$$=$props_76421_typography_id$jscomp$6$$["editing-id"],
$typography$jscomp$32$$=$props_76421_typography_id$jscomp$6$$.typography,$open_STAR_$jscomp$5_renaming_id$$=$props_76421_typography_id$jscomp$6$$["renaming-id"],$item_ref$jscomp$6$$=(0,$APP.$rumext$v2$use_ref$$)();$props_76421_typography_id$jscomp$6$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$32$$);var $dragging_STAR_$jscomp$9$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$dragging_QMARK_$jscomp$7$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$9$$),
$read_only_QMARK_$jscomp$20$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);$editing_QMARK_$jscomp$7_editing_id$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editing_QMARK_$jscomp$7_editing_id$jscomp$1$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$32$$));var $renaming_QMARK_$jscomp$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($open_STAR_$jscomp$5_renaming_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$32$$));
$open_STAR_$jscomp$5_renaming_id$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($editing_QMARK_$jscomp$7_editing_id$jscomp$1$$);var $open_QMARK_$jscomp$12$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$5_renaming_id$$),$on_drop$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$32$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$9$$),$APP.$rumext$v2$adapt$$($selected$jscomp$157$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$8$$),
$APP.$rumext$v2$adapt$$($selected_paths$jscomp$8$$),$APP.$rumext$v2$adapt$$($move_typography$$)],function($event$jscomp$421$$){return $app$main$ui$workspace$sidebar$assets$common$on_drop_asset$$($event$jscomp$421$$,$typography$jscomp$32$$,$dragging_STAR_$jscomp$9$$,$selected$jscomp$157$$,$selected_full$jscomp$8$$,$selected_paths$jscomp$8$$,$move_typography$$)}),$on_drag_enter$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$32$$),$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$9$$),
$APP.$rumext$v2$adapt$$($selected$jscomp$157$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$8$$)],function($event$jscomp$422$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset$$($event$jscomp$422$$,$typography$jscomp$32$$,$dragging_STAR_$jscomp$9$$,$selected$jscomp$157$$,$selected_paths$jscomp$8$$)}),$on_drag_leave$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$9$$)],function($event$jscomp$423$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$423$$,
$dragging_STAR_$jscomp$9$$)}),$on_typography_drag_start$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$32$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$358$$),$APP.$rumext$v2$adapt$$($selected$jscomp$157$$),$APP.$rumext$v2$adapt$$($item_ref$jscomp$6$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$20$$),$APP.$rumext$v2$adapt$$($renaming_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($open_QMARK_$jscomp$12$$)],function($event$jscomp$424$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$20$$)?
$read_only_QMARK_$jscomp$20$$:$renaming_QMARK_$jscomp$3$$?$renaming_QMARK_$jscomp$3$$:$open_QMARK_$jscomp$12$$)?$APP.$app$util$dom$prevent_default$$($event$jscomp$424$$):$app$main$ui$workspace$sidebar$assets$common$on_asset_drag_start$$($event$jscomp$424$$,$file_id$jscomp$358$$,$typography$jscomp$32$$,$selected$jscomp$157$$,$item_ref$jscomp$6$$,$APP.$cljs$cst$2177$typographies$$,$APP.$cljs$core$identity$$)});$on_context_menu$jscomp$8_on_context_menu__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_context_menu$jscomp$8_on_context_menu__$1$jscomp$1$$),
$APP.$rumext$v2$adapt$$($props_76421_typography_id$jscomp$6$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_context_menu$jscomp$8_on_context_menu__$1$jscomp$1$$,$props_76421_typography_id$jscomp$6$$));$handle_change$jscomp$5_handle_change__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$32$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_change$jscomp$5_handle_change__$1$$,$typography$jscomp$32$$));
var $on_asset_click__$1$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$32$$),$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$6$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$20$$),$APP.$rumext$v2$adapt$$($local_QMARK_$jscomp$9$$)],function($JSCompiler_inline_result$jscomp$1740_event$jscomp$425$$){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$20$$))return null;$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,3,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"use-library-typography",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"sidebar",$APP.$cljs$cst$3773$external_library$$,$APP.$cljs$core$not$$($local_QMARK_$jscomp$9$$)],null)));var $G__76425$jscomp$inline_8546$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($typography$jscomp$32$$);$JSCompiler_inline_result$jscomp$1740_event$jscomp$425$$=$on_asset_click$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$?
$on_asset_click$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1740_event$jscomp$425$$,$G__76425$jscomp$inline_8546$$):$on_asset_click$jscomp$6$$($JSCompiler_inline_result$jscomp$1740_event$jscomp$425$$,$G__76425$jscomp$inline_8546$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1740_event$jscomp$425$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$apply_typography$cljs$0core$0IFn$0_invoke$0arity$03$$(null,
$typography$jscomp$32$$,$file_id$jscomp$358$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$6$$,onDragLeave:$on_drag_leave$jscomp$6$$,className:"main_ui_workspace_sidebar_assets_typographies__typography-item",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$typography_entry$$,{"editing?":$editing_QMARK_$jscomp$7_editing_id$jscomp$1$$,"focus-name?":$rename_QMARK_$jscomp$3$$,"external-open*":$open_STAR_$jscomp$5_renaming_id$$,
"file-id":$file_id$jscomp$358$$,"renaming?":$renaming_QMARK_$jscomp$3$$,"local?":$local_QMARK_$jscomp$9$$,"on-context-menu":$on_context_menu$jscomp$8_on_context_menu__$1$jscomp$1$$,"on-click":$on_asset_click__$1$jscomp$2$$,typography:$typography$jscomp$32$$,"on-change":$handle_change$jscomp$5_handle_change__$1$$,"selected?":$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$157$$,$props_76421_typography_id$jscomp$6$$)}),$dragging_QMARK_$jscomp$7$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_typographies__dragging"}):
null],onDrop:$on_drop$jscomp$9$$,onDragOver:$APP.$app$util$dom$prevent_default$$,draggable:$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$20$$)&&$APP.$cljs$core$not$$($open_QMARK_$jscomp$12$$),ref:$item_ref$jscomp$6$$,onDragStart:$on_typography_drag_start$$})};
$app$main$ui$workspace$sidebar$assets$typographies$typographies_section_STAR_$$=function($groups$jscomp$10_props_76446$$){function $handle_edit_typography_clicked$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76444_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__76444_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$cst$3756$edit_typography$$],null),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$)))})}function $handle_rename_typography_clicked$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76443_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__76443_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2148$workspace_global$$,$cljs$cst$5402$rename_typography$$],null),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$)))})}
var $on_asset_click$jscomp$8_on_asset_click__$1$jscomp$3$$=$groups$jscomp$10_props_76446$$.onAssetClick,$is_open$jscomp$5$$=$groups$jscomp$10_props_76446$$.isOpen,$open_status_ref$jscomp$2$$=$groups$jscomp$10_props_76446$$.openStatusRef,$on_assets_delete$jscomp$4$$=$groups$jscomp$10_props_76446$$.onAssetsDelete,$selected$jscomp$159_selected_full$jscomp$10$$=$groups$jscomp$10_props_76446$$.selected,$file_id$jscomp$360$$=$groups$jscomp$10_props_76446$$.fileId,$is_force_open$jscomp$3$$=$groups$jscomp$10_props_76446$$.isForceOpen,
$file$jscomp$159$$=$groups$jscomp$10_props_76446$$.file,$typographies$jscomp$8$$=$groups$jscomp$10_props_76446$$.typographies,$is_local$jscomp$4$$=$groups$jscomp$10_props_76446$$.isLocal,$on_clear_selection$jscomp$4$$=$groups$jscomp$10_props_76446$$.onClearSelection,$is_reverse_sort$jscomp$2$$=$groups$jscomp$10_props_76446$$.isReverseSort,$state$jscomp$1074$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5403$detail_open_QMARK_$$,
!1,$APP.$cljs$cst$266$id$$,null],null)),$local_data$jscomp$1$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$assets$typographies$lens_COLON_typography_section_state$$),$read_only_QMARK_$jscomp$21$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$menu_state$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$assets$common$initial_context_menu_state$$),$typographies__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies$jscomp$8$$)],
function(){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$libraries$extract_path_if_missing$$,$typographies$jscomp$8$$)});$groups$jscomp$10_props_76446$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($is_reverse_sort$jscomp$2$$)],function(){return $app$main$ui$workspace$sidebar$assets$groups$group_assets$$($typographies__$1$jscomp$1$$,$is_reverse_sort$jscomp$2$$)});
var $selected__$1$jscomp$17$$=$APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$159_selected_full$jscomp$10$$);$selected$jscomp$159_selected_full$jscomp$10$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected__$1$jscomp$17$$),$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76436_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$17$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76436_SHARP_$$))}),$typographies__$1$jscomp$1$$)});var $multi_typographies_QMARK_$$=$APP.$cljs$core$count$$($selected__$1$jscomp$17$$)>1,$multi_assets_QMARK_$jscomp$4$$=$APP.$cljs$core$seq$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$17$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2429$graphics$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$17$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($selected__$1$jscomp$17$$)),
$open_groups$jscomp$5_open_groups_ref$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_status_ref$jscomp$2$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4342$groups$$,$APP.$cljs$cst$2177$typographies$$],null)),$open_status_ref$jscomp$2$$)});$open_groups$jscomp$5_open_groups_ref$jscomp$2$$=
$APP.$rumext$v2$deref$$($open_groups$jscomp$5_open_groups_ref$jscomp$2$$);var $add_typography$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$360$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$360$$,$APP.$cljs$cst$2177$typographies$$,!0));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$add_typography$$($file_id$jscomp$360$$))}),
$handle_change$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$360$$)],function($typography$jscomp$34$$,$changes$jscomp$308$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$update_typography$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$typography$jscomp$34$$,$changes$jscomp$308$$])),$file_id$jscomp$360$$))}),
$create_group$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$17$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$4$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$360$$),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$)))],function($group_name$jscomp$4$$){$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?
$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$4$$();var $undo_id$jscomp$93$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$93$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76438_SHARP_$$){return $APP.$app$main$data$workspace$libraries$update_typography$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76438_SHARP_$$,
$APP.$cljs$cst$723$name$$,$app$main$ui$workspace$sidebar$assets$common$add_group$$($p1__76438_SHARP_$$,$group_name$jscomp$4$$)),$file_id$jscomp$360$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76437_SHARP_$$){return $multi_typographies_QMARK_$$?$APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$17$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76437_SHARP_$$)):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$)),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76437_SHARP_$$))},$typographies__$1$jscomp$1$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$93$$))}),$rename_group$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$)],function($path$jscomp$270$$,$last_path$jscomp$7$$){$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?
$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$4$$();var $undo_id$jscomp$94$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$94$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76440_SHARP_$$){return $APP.$app$main$data$workspace$libraries$update_typography$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76440_SHARP_$$,
$APP.$cljs$cst$723$name$$,$app$main$ui$workspace$sidebar$assets$common$rename_group$$($p1__76440_SHARP_$$,$path$jscomp$270$$,$last_path$jscomp$7$$)),$file_id$jscomp$360$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76439_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76439_SHARP_$$),$path$jscomp$270$$)},$typographies__$1$jscomp$1$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$94$$))}),
$on_group$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($selected__$1$jscomp$17$$),$APP.$rumext$v2$adapt$$($create_group$jscomp$2$$)],function($event$jscomp$429$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$429$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$922$accept$$,
$create_group$jscomp$2$$],null))}),$on_rename_group$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$)],function($event$jscomp$430$$,$path$jscomp$271$$,$last_path$jscomp$8$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$430$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5348$name_group_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$294$path$$,$path$jscomp$271$$,
$cljs$cst$5379$last_path$$,$last_path$jscomp$8$$,$APP.$cljs$cst$922$accept$$,$rename_group$jscomp$2$$],null))}),$on_ungroup$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typographies__$1$jscomp$1$$)],function($path$jscomp$272$$){$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$4$$();var $undo_id$jscomp$95$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$95$$));
$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$(function($p1__76442_SHARP_$$){return $APP.$app$main$data$workspace$libraries$rename_typography$$($file_id$jscomp$360$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76442_SHARP_$$),$app$main$ui$workspace$sidebar$assets$common$ungroup$$($p1__76442_SHARP_$$,$path$jscomp$272$$))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76441_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76441_SHARP_$$),
$path$jscomp$272$$)},$typographies__$1$jscomp$1$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$95$$))}),$on_context_menu$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected__$1$jscomp$17$$),$APP.$rumext$v2$adapt$$($on_clear_selection$jscomp$4$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$21$$)],function($id$jscomp$899$$,$event$jscomp$431_pos$jscomp$137$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$431_pos$jscomp$137$$);
$event$jscomp$431_pos$jscomp$137$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$431_pos$jscomp$137$$);return $APP.$cljs$core$not$$($read_only_QMARK_$jscomp$21$$)?($APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$17$$,$id$jscomp$899$$)||($on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_selection$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_selection$jscomp$4$$()),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1074$$,$APP.$cljs$core$assoc$$,
$APP.$cljs$cst$266$id$$,$id$jscomp$899$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($menu_state$jscomp$3$$,$app$main$ui$workspace$sidebar$assets$common$open_context_menu$$,$event$jscomp$431_pos$jscomp$137$$)):null}),$on_close_menu$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$2$($menu_state$jscomp$3$$,$app$main$ui$workspace$sidebar$assets$common$close_context_menu$$)}),$handle_delete_typography$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($state$jscomp$1074$$)),$APP.$rumext$v2$adapt$$($multi_typographies_QMARK_$$),$APP.$rumext$v2$adapt$$($multi_assets_QMARK_$jscomp$4$$)],function(){var $undo_id$jscomp$96$$=Symbol();return $multi_typographies_QMARK_$$||$multi_assets_QMARK_$jscomp$4$$?$on_assets_delete$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_assets_delete$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_assets_delete$jscomp$4$$():
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$96$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$libraries$delete_typography$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$))),$APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$360$$,$file_id$jscomp$360$$,
$APP.$cljs$cst$2177$typographies$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1074$$))),$APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$96$$)]))}),$editing_id$jscomp$3$$=$APP.$cljs$cst$3756$edit_typography$$.$cljs$core$IFn$_invoke$arity$1$($local_data$jscomp$1$$),$renaming_id$jscomp$2$$=$cljs$cst$5402$rename_typography$$.$cljs$core$IFn$_invoke$arity$1$($local_data$jscomp$1$$);$on_asset_click$jscomp$8_on_asset_click__$1$jscomp$3$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$10_props_76446$$),$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$8_on_asset_click__$1$jscomp$3$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$8_on_asset_click__$1$jscomp$3$$,$groups$jscomp$10_props_76446$$));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($local_data$jscomp$1$$)],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$3756$edit_typography$$.$cljs$core$IFn$_invoke$arity$1$($local_data$jscomp$1$$))?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76445_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__76445_SHARP_$$,$APP.$cljs$cst$2148$workspace_global$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$3756$edit_typography$$)}):null});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_STAR_$$,{fileId:$file_id$jscomp$360$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography"),
section:$APP.$cljs$cst$2177$typographies$$,assetsCount:$APP.$cljs$core$count$$($typographies__$1$jscomp$1$$),isOpen:$is_open$jscomp$5$$,children:[$APP.$cljs$core$truth_$$($is_local$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$cljs$cst$5347$title_button$$,children:$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$21$$)?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.add-typography"),onClick:$add_typography$$,icon:"add"})}):null,(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$assets$common$asset_section_block_STAR_$$,{role:$APP.$cljs$cst$1621$content$$,children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$typographies$typographies_group$$,{"selected-full":$selected$jscomp$159_selected_full$jscomp$10$$,"force-open?":$is_force_open$jscomp$3$$,
"handle-change":$handle_change$jscomp$7$$,selected:$selected__$1$jscomp$17$$,"file-id":$file_id$jscomp$360$$,"on-ungroup":$on_ungroup$jscomp$6$$,file:$file$jscomp$159$$,"local?":$is_local$jscomp$4$$,"on-context-menu":$on_context_menu$jscomp$10$$,state:$state$jscomp$1074$$,"local-data":$local_data$jscomp$1$$,"open-groups":$open_groups$jscomp$5_open_groups_ref$jscomp$2$$,prefix:"","editing-id":$editing_id$jscomp$3$$,"renaming-id":$renaming_id$jscomp$2$$,groups:$groups$jscomp$10_props_76446$$,"on-asset-click":$on_asset_click$jscomp$8_on_asset_click__$1$jscomp$3$$,
"on-rename-group":$on_rename_group$jscomp$5$$}),$APP.$cljs$core$truth_$$($is_local$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,{onClose:$on_close_menu$jscomp$4$$,state:$APP.$cljs$core$_deref$$($menu_state$jscomp$3$$),options:new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$multi_typographies_QMARK_$$||$multi_assets_QMARK_$jscomp$4$$?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,
[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.rename"),$APP.$cljs$cst$266$id$$,"assets-rename-typography",$APP.$cljs$cst$2359$handler$$,$handle_rename_typography_clicked$$],null),$multi_typographies_QMARK_$$||$multi_assets_QMARK_$jscomp$4$$?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.edit"),$APP.$cljs$cst$266$id$$,"assets-edit-typography",
$APP.$cljs$cst$2359$handler$$,$handle_edit_typography_clicked$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.delete"),$APP.$cljs$cst$266$id$$,"assets-delete-typography",$APP.$cljs$cst$2359$handler$$,$handle_delete_typography$$],null),$multi_assets_QMARK_$jscomp$4$$?null:new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.group"),
$APP.$cljs$cst$266$id$$,"assets-group-typography",$APP.$cljs$cst$2359$handler$$,$on_group$jscomp$5$$],null)],null)}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$assets_context_menu_STAR_$$,{onClose:$on_close_menu$jscomp$4$$,state:$APP.$cljs$core$_deref$$($menu_state$jscomp$3$$),options: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$$,"show info",$APP.$cljs$cst$266$id$$,
"assets-rename-typography",$APP.$cljs$cst$2359$handler$$,$handle_edit_typography_clicked$$],null)],null)})]})]})})};
$app$main$ui$workspace$sidebar$assets$file_library$create_file_ref$$=function($library_id$jscomp$58$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($state$jscomp$1075$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1075$$,$APP.$cljs$cst$1901$files$$),$library_id$jscomp$58$$),$APP.$cljs$cst$142$data$$)},$APP.$app$main$store$state$$)};
$app$main$ui$workspace$sidebar$assets$file_library$use_library_ref$$=function($file_id$jscomp$361$$){var $library_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$361$$)],function(){return $app$main$ui$workspace$sidebar$assets$file_library$create_file_ref$$($file_id$jscomp$361$$)});return $APP.$rumext$v2$deref$$($library_ref$$)};
$app$main$ui$workspace$sidebar$assets$file_library$use_selected$$=function($file_id$jscomp$362$$){var $selected_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$362$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$key$$($file_id$jscomp$362$$),$app$main$ui$workspace$sidebar$assets$file_library$ref_COLON_selected$$)});return $APP.$rumext$v2$deref$$($selected_ref$$)};
$app$main$ui$workspace$sidebar$assets$file_library$file_library_title_STAR_$$=function($file_name$jscomp$9_props_76451$$){var $is_open$jscomp$6$$=$file_name$jscomp$9_props_76451$$.isOpen,$file_id$jscomp$363$$=$file_name$jscomp$9_props_76451$$.fileId,$is_local$jscomp$5$$=$file_name$jscomp$9_props_76451$$.isLocal,$page_id$jscomp$392_url$jscomp$97$$=$file_name$jscomp$9_props_76451$$.pageId;$file_name$jscomp$9_props_76451$$=$file_name$jscomp$9_props_76451$$.fileName;var $router$jscomp$7_toggle_open$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$router$$),$on_click$jscomp$42_team_id$jscomp$137$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_team_id$$);$page_id$jscomp$392_url$jscomp$97$$=$APP.$app$main$router$resolve$cljs$0core$0IFn$0_invoke$0arity$03$$($router$jscomp$7_toggle_open$$,$APP.$cljs$cst$2489$workspace$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1912$team_id$$,$on_click$jscomp$42_team_id$jscomp$137$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$363$$,
$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$392_url$jscomp$97$$],null));$router$jscomp$7_toggle_open$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$363$$),$APP.$rumext$v2$adapt$$($is_open$jscomp$6$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_assets_section_open$$($file_id$jscomp$363$$,$APP.$cljs$cst$3405$library$$,$APP.$cljs$core$not$$($is_open$jscomp$6$$)))});$on_click$jscomp$42_team_id$jscomp$137$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($ev$jscomp$10$$){$APP.$app$util$dom$stop_propagation$$($ev$jscomp$10$$);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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"navigate-to-library-file"],null)))});return(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_assets_file_library__library-title "+($APP.$cljs$core$truth_$$($is_open$jscomp$6$$)?"main_ui_workspace_sidebar_assets_file_library__open":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($is_open$jscomp$6$$),allClickable:!0,onCollapsed:$router$jscomp$7_toggle_open$$,title:$APP.$cljs$core$truth_$$($is_local$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_file_library__special-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.local-library")}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_file_library__special-title",children:$file_name$jscomp$9_props_76451$$}),children:$is_local$jscomp$5$$?null:(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.open-library"),children:(0,$APP.$rumext$v2$jsx$$)("a",{href:["#",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$392_url$jscomp$97$$)].join(""),
target:"_blank",onClick:$on_click$jscomp$42_team_id$jscomp$137$$,className:"main_ui_workspace_sidebar_assets_file_library__file-link",children:$APP.$app$main$ui$icons$open_link$$})})})})};
$app$main$ui$workspace$sidebar$assets$file_library$extend_selected$$=function($first_index_ids$jscomp$266_selected$jscomp$160$$,$type$jscomp$592$$,$asset_groups_click_index$$,$asset_id$jscomp$16$$,$file_id$jscomp$364$$){var $selected_SINGLEQUOTE_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_index_ids$jscomp$266_selected$jscomp$160$$,$type$jscomp$592$$);if($APP.$cljs$core$count$$($selected_SINGLEQUOTE_$jscomp$1$$)===0)$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$select_single_asset$$($file_id$jscomp$364$$,
$asset_id$jscomp$16$$,$type$jscomp$592$$));else{var $all_assets$$=function $app$main$ui$workspace$sidebar$assets$file_library$extend_selected_$_flatten_groups$$($groups$jscomp$11$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$concat$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($groups$jscomp$11$$,"",$APP.$cljs$core$PersistentVector$EMPTY$$),$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$ui$workspace$sidebar$assets$file_library$extend_selected_$_flatten_groups$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76452_SHARP_$$){return $APP.$cljs$core$seq$$($APP.$cljs$core$first$$($p1__76452_SHARP_$$))},$groups$jscomp$11$$))])))],null))}($asset_groups_click_index$$);
$asset_groups_click_index$$=$APP.$app$common$data$index_of_pred$$($all_assets$$,function($p1__76453_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76453_SHARP_$$),$asset_id$jscomp$16$$)});$first_index_ids$jscomp$266_selected$jscomp$160$$=$APP.$cljs$core$first$$($cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($asset$jscomp$11$$){return $APP.$app$common$data$index_of_pred$$($all_assets$$,
function($p1__76454_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76454_SHARP_$$),$asset$jscomp$11$$)})},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_index_ids$jscomp$266_selected$jscomp$160$$,$type$jscomp$592$$))));var $min_index$$=$first_index_ids$jscomp$266_selected$jscomp$160$$<$asset_groups_click_index$$?$first_index_ids$jscomp$266_selected$jscomp$160$$:$asset_groups_click_index$$,$max_index$jscomp$1$$=
$first_index_ids$jscomp$266_selected$jscomp$160$$>$asset_groups_click_index$$?$first_index_ids$jscomp$266_selected$jscomp$160$$:$asset_groups_click_index$$;$first_index_ids$jscomp$266_selected$jscomp$160$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76455_SHARP_$$){return $min_index$$<=$APP.$cljs$core$first$$($p1__76455_SHARP_$$)&&
$APP.$cljs$core$first$$($p1__76455_SHARP_$$)<=$max_index$jscomp$1$$}),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$second$$))),$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($all_assets$$));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$select_assets$$($file_id$jscomp$364$$,$first_index_ids$jscomp$266_selected$jscomp$160$$,$type$jscomp$592$$))}};
$app$main$ui$workspace$sidebar$assets$file_library$file_library_content_STAR_$$=function($open_status_props_76460$$){var $open_status_ref$jscomp$3$$=$open_status_props_76460$$.openStatusRef,$filters$jscomp$7_listing_thumbs_QMARK_$$=$open_status_props_76460$$.filters,$count_variants$jscomp$2$$=$open_status_props_76460$$.countVariants,$file$jscomp$160$$=$open_status_props_76460$$.file,$colors$jscomp$23$$=$open_status_props_76460$$.colors,$is_loaded$$=$open_status_props_76460$$.isLoaded,$typographies$jscomp$9$$=
$open_status_props_76460$$.typographies,$is_local$jscomp$6$$=$open_status_props_76460$$.isLocal,$on_clear_selection$jscomp$5$$=$open_status_props_76460$$.onClearSelection,$components$jscomp$15$$=$open_status_props_76460$$.components;$open_status_props_76460$$=$APP.$rumext$v2$deref$$($open_status_ref$jscomp$3$$);var $file_id$jscomp$365$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$160$$),$filters_section_show_typography_QMARK_$$=$APP.$cljs$cst$1355$section$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$7_listing_thumbs_QMARK_$$),
$force_open_typographies_QMARK__has_filters_term_QMARK_$$=!$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$7_listing_thumbs_QMARK_$$)),$reverse_sort_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2656$desc$$,$cljs$cst$5345$ordering$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$7_listing_thumbs_QMARK_$$));$filters$jscomp$7_listing_thumbs_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5378$thumbs$$,
$APP.$cljs$cst$5404$list_style$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$7_listing_thumbs_QMARK_$$));var $selected$jscomp$161$$=$app$main$ui$workspace$sidebar$assets$file_library$use_selected$$($file_id$jscomp$365$$),$show_components_QMARK_$$=($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,"all")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,"components"))&&($APP.$cljs$core$count$$($components$jscomp$15$$)>
0||!$force_open_typographies_QMARK__has_filters_term_QMARK_$$),$show_colors_QMARK_$$=($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,"all")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,"colors"))&&($APP.$cljs$core$count$$($colors$jscomp$23$$)>0||!$force_open_typographies_QMARK__has_filters_term_QMARK_$$);$filters_section_show_typography_QMARK_$$=($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,
"all")||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($filters_section_show_typography_QMARK_$$,"typographies"))&&($APP.$cljs$core$count$$($typographies$jscomp$9$$)>0||!$force_open_typographies_QMARK__has_filters_term_QMARK_$$);var $force_open_components_QMARK_$$=$force_open_typographies_QMARK__has_filters_term_QMARK_$$?60>$APP.$cljs$core$count$$($components$jscomp$15$$):null,$force_open_colors_QMARK_$$=$force_open_typographies_QMARK__has_filters_term_QMARK_$$?60>$APP.$cljs$core$count$$($colors$jscomp$23$$):
null;$force_open_typographies_QMARK__has_filters_term_QMARK_$$=$force_open_typographies_QMARK__has_filters_term_QMARK_$$?60>$APP.$cljs$core$count$$($typographies$jscomp$9$$):null;var $on_asset_click$jscomp$9_on_typography_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$365$$),$APP.$rumext$v2$adapt$$($selected$jscomp$161$$)],function($asset_type$jscomp$14$$,$asset_groups$jscomp$1$$,$event$jscomp$432$$,$asset_id$jscomp$17$$){return $APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$432$$)?
($APP.$app$util$dom$stop_propagation$$($event$jscomp$432$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$toggle_selected_assets$$($file_id$jscomp$365$$,$asset_id$jscomp$17$$,$asset_type$jscomp$14$$)),!0):$event$jscomp$432$$.shiftKey?($APP.$app$util$dom$stop_propagation$$($event$jscomp$432$$),$app$main$ui$workspace$sidebar$assets$file_library$extend_selected$$($selected$jscomp$161$$,$asset_type$jscomp$14$$,$asset_groups$jscomp$1$$,$asset_id$jscomp$17$$,
$file_id$jscomp$365$$),!0):null}),$on_component_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$9_on_typography_click$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$9_on_typography_click$$,$APP.$cljs$cst$1622$components$$)),$on_colors_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$9_on_typography_click$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$9_on_typography_click$$,
$APP.$cljs$cst$2174$colors$$));$on_asset_click$jscomp$9_on_typography_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_asset_click$jscomp$9_on_typography_click$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_asset_click$jscomp$9_on_typography_click$$,$APP.$cljs$cst$2177$typographies$$));var $delete_component$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$15$$)],
function($component_id$jscomp$91$$){var $component$jscomp$124$$=$APP.$cljs$core$some$$(function($p1__76456_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76456_SHARP_$$),$component_id$jscomp$91$$)?$p1__76456_SHARP_$$:null},$components$jscomp$15$$);return $APP.$app$common$types$component$is_variant_QMARK_$$($component$jscomp$124$$)?$app$main$data$workspace$shapes$delete_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$124$$),
$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$124$$)])):$APP.$app$main$data$workspace$libraries$delete_component$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,$component_id$jscomp$91$$],null))}),$on_assets_delete$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$161$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$365$$)],
function(){var $undo_id$jscomp$97$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($undo_id$jscomp$97$$));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($delete_component$jscomp$1$$,$APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$)));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76457_SHARP_$$){return $app$main$data$workspace$libraries$delete_media$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$266$id$$,$p1__76457_SHARP_$$],null))},$APP.$cljs$cst$2429$graphics$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$)));$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76458_SHARP_$$){return $APP.$app$main$data$workspace$libraries$delete_color$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,$p1__76458_SHARP_$$],null))},$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$)));
$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76459_SHARP_$$){return $APP.$app$main$data$workspace$libraries$delete_typography$$($p1__76459_SHARP_$$)},$APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$)));($APP.$cljs$core$seq$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$))||$APP.$cljs$core$seq$$($APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$))||
$APP.$cljs$core$seq$$($APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$161$$)))&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$sync_file$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id$jscomp$365$$,$file_id$jscomp$365$$,null,null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($undo_id$jscomp$97$$))});return(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_assets_file_library__library-content",children:$APP.$cljs$core$not$$($is_loaded$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_file_library__loading",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.loading")}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$show_components_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$components$components_section_STAR_$$,
{isLocal:$is_local$jscomp$6$$,selected:$selected$jscomp$161$$,onAssetClick:$on_component_click$jscomp$1$$,onAssetsDelete:$on_assets_delete$jscomp$5$$,isForceOpen:$force_open_components_QMARK_$$,countVariants:$count_variants$jscomp$2$$,deleteComponent:$delete_component$jscomp$1$$,isListingThumbs:$filters$jscomp$7_listing_thumbs_QMARK_$$,onClearSelection:$on_clear_selection$jscomp$5$$,components:$components$jscomp$15$$,isOpen:$force_open_components_QMARK_$$||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_status_props_76460$$,
$APP.$cljs$cst$1622$components$$,!1),fileId:$file_id$jscomp$365$$,isReverseSort:$reverse_sort_QMARK_$jscomp$1$$,openStatusRef:$open_status_ref$jscomp$3$$}):null,$show_colors_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$colors$colors_section_STAR_$$,{isLocal:$is_local$jscomp$6$$,selected:$selected$jscomp$161$$,onAssetClick:$on_colors_click$$,onAssetsDelete:$on_assets_delete$jscomp$5$$,isForceOpen:$force_open_colors_QMARK_$$,onClearSelection:$on_clear_selection$jscomp$5$$,
isOpen:$force_open_colors_QMARK_$$||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_status_props_76460$$,$APP.$cljs$cst$2174$colors$$,!1),colors:$colors$jscomp$23$$,fileId:$file_id$jscomp$365$$,isReverseSort:$reverse_sort_QMARK_$jscomp$1$$,openStatusRef:$open_status_ref$jscomp$3$$}):null,$filters_section_show_typography_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$typographies$typographies_section_STAR_$$,{isLocal:$is_local$jscomp$6$$,selected:$selected$jscomp$161$$,
onAssetClick:$on_asset_click$jscomp$9_on_typography_click$$,onAssetsDelete:$on_assets_delete$jscomp$5$$,isForceOpen:$force_open_typographies_QMARK__has_filters_term_QMARK_$$,onClearSelection:$on_clear_selection$jscomp$5$$,typographies:$typographies$jscomp$9$$,file:$file$jscomp$160$$,isOpen:$force_open_typographies_QMARK__has_filters_term_QMARK_$$||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_status_props_76460$$,$APP.$cljs$cst$2177$typographies$$,!1),fileId:$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$160$$),
isReverseSort:$reverse_sort_QMARK_$jscomp$1$$,openStatusRef:$open_status_ref$jscomp$3$$}):null,$show_components_QMARK_$$||$show_colors_QMARK_$$||$filters_section_show_typography_QMARK_$$?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets_file_library__asset-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_file_library__no-found-icon",children:$APP.$app$main$ui$icons$search$$}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_assets_file_library__no-found-text",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.not-found")})]})]})})};
$app$main$ui$workspace$sidebar$assets$file_library$file_library_STAR_$$=function($is_local$jscomp$7_props_76462$$){var $is_default_open_open_QMARK_$jscomp$13$$=$is_local$jscomp$7_props_76462$$.isDefaultOpen,$filters$jscomp$8$$=$is_local$jscomp$7_props_76462$$.filters,$file$jscomp$161$$=$is_local$jscomp$7_props_76462$$.file;$is_local$jscomp$7_props_76462$$=$is_local$jscomp$7_props_76462$$.isLocal;var $file_id$jscomp$366$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$161$$),
$file_name$jscomp$10$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$161$$),$page_id$jscomp$393$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$161$$,$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2190$pages$$),0),$library$jscomp$39$$=$app$main$ui$workspace$sidebar$assets$file_library$use_library_ref$$($file_id$jscomp$366$$),$colors$jscomp$24$$=$APP.$cljs$cst$2174$colors$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$39$$),
$typographies$jscomp$10$$=$APP.$cljs$cst$2177$typographies$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$39$$),$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$=$APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$8$$),$is_loaded$jscomp$1$$=$library$jscomp$39$$!=null,$filtered_colors$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($filters$jscomp$8$$),$APP.$rumext$v2$adapt$$($colors$jscomp$24$$)],function(){return $app$main$ui$workspace$sidebar$assets$common$apply_filters$$($APP.$cljs$core$vals$$($colors$jscomp$24$$),
$filters$jscomp$8$$)}),$filtered_components$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($filters$jscomp$8$$),$APP.$rumext$v2$adapt$$($library$jscomp$39$$)],function(){var $$$jscomp$31_$__$1$jscomp$24$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$app$common$types$components_list$components_seq$$($library$jscomp$39$$));$$$jscomp$31_$__$1$jscomp$24$$=$app$main$ui$workspace$sidebar$assets$common$apply_filters$$($$$jscomp$31_$__$1$jscomp$24$$,
$filters$jscomp$8$$);return $APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76461_SHARP_$$){return $APP.$app$common$files$variant$is_secondary_variant_QMARK_$$($p1__76461_SHARP_$$,$library$jscomp$39$$)},$$$jscomp$31_$__$1$jscomp$24$$)}),$filtered_typographies$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($filters$jscomp$8$$),$APP.$rumext$v2$adapt$$($typographies$jscomp$10$$)],function(){return $app$main$ui$workspace$sidebar$assets$common$apply_filters$$($APP.$cljs$core$vals$$($typographies$jscomp$10$$),
$filters$jscomp$8$$)}),$open_status_ref$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$366$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$key$$($file_id$jscomp$366$$),$app$main$ui$workspace$sidebar$assets$file_library$ref_COLON_open_status$$)}),$open_status$jscomp$1_unselect_all$$=$APP.$rumext$v2$deref$$($open_status_ref$jscomp$4$$);$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$=
!$APP.$cuerdas$core$blank_QMARK_$$($count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$)&&(60>$APP.$cljs$core$count$$($filtered_colors$$)||60>$APP.$cljs$core$count$$($filtered_components$$)||60>$APP.$cljs$core$count$$($filtered_typographies$$));$is_default_open_open_QMARK_$jscomp$13$$=$APP.$cljs$cst$3405$library$$.$cljs$core$IFn$_invoke$arity$1$($open_status$jscomp$1_unselect_all$$)===!1?!1:$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$?$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$:
$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3405$library$$.$cljs$core$IFn$_invoke$arity$1$($open_status$jscomp$1_unselect_all$$),$is_default_open_open_QMARK_$jscomp$13$$);$open_status$jscomp$1_unselect_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$366$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$unselect_all_assets$cljs$0core$0IFn$0_invoke$0arity$01$$($file_id$jscomp$366$$))});
var $variants_counter$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($library$jscomp$39$$)],function(){return $APP.$cljs$core$update_vals$$($APP.$cljs$core$group_by$$($APP.$cljs$cst$1985$variant_id$$,$APP.$app$common$types$components_list$components_seq$$($library$jscomp$39$$)),$APP.$cljs$core$count$$)});$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variants_counter$$)],
function($variant_id$jscomp$48$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($variants_counter$$,$variant_id$jscomp$48$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{onContextMenu:$APP.$app$util$dom$prevent_default$$,onClick:$open_status$jscomp$1_unselect_all$$,className:"main_ui_workspace_sidebar_assets_file_library__tool-window",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$file_library$file_library_title_STAR_$$,{fileId:$file_id$jscomp$366$$,pageId:$page_id$jscomp$393$$,
fileName:$file_name$jscomp$10$$,isOpen:$is_default_open_open_QMARK_$jscomp$13$$,isLocal:$is_local$jscomp$7_props_76462$$}),$is_default_open_open_QMARK_$jscomp$13$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$file_library$file_library_content_STAR_$$,{isLocal:$is_local$jscomp$7_props_76462$$,isLoaded:$is_loaded$jscomp$1$$,countVariants:$count_variants$jscomp$3_filters_term_force_lib_open_QMARK_$$,filters:$filters$jscomp$8$$,onClearSelection:$open_status$jscomp$1_unselect_all$$,
typographies:$filtered_typographies$$,file:$file$jscomp$161$$,components:$filtered_components$$,colors:$filtered_colors$$,openStatusRef:$open_status_ref$jscomp$4$$}):null]})};
$app$main$ui$workspace$sidebar$assets$assets_local_library_STAR_$$=function($filters$jscomp$10_props_76480$$){$filters$jscomp$10_props_76480$$=$filters$jscomp$10_props_76480$$.filters;var $file$jscomp$165$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$assets$ref_COLON_local_library$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$file_library$file_library_STAR_$$,{file:$file$jscomp$165$$,isLocal:!0,isDefaultOpen:!0,filters:$filters$jscomp$10_props_76480$$})};
$app$main$ui$workspace$sidebar$debug$debug_panel_STAR_$$=function($class$$jscomp$60_props_76450$$){$class$$jscomp$60_props_76450$$=$class$$jscomp$60_props_76450$$.className;var $on_toggle_enabled$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$435$$,$option$jscomp$15$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$435$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$435$$);$APP.$app$util$debug$enabled_QMARK_$$($option$jscomp$15$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$debug$state$$,
$APP.$cljs$core$disj$$,$option$jscomp$15$$):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$debug$state$$,$APP.$cljs$core$conj$$,$option$jscomp$15$$);return $APP.$app$main$reinit$$(!0)}),$handle_close$$=$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$workspace$layout$remove_layout_flag$$($cljs$cst$5407$debug_panel$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:""+($class$$jscomp$60_props_76450$$??"")+" main_ui_workspace_sidebar_debug__debug-panel",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$panel_title$panel_title_STAR_$$,{className:"main_ui_workspace_sidebar_debug__debug-panel-title",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.debug.title"),onClose:$handle_close$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug__debug-panel-inner",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$163$$,
$option$jscomp$16$$){$out_arr__44057__auto__$jscomp$163$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug__checkbox-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{onClick:function($p1__76448_SHARP_$$){return $on_toggle_enabled$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_toggle_enabled$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($p1__76448_SHARP_$$,$option$jscomp$16$$):$on_toggle_enabled$jscomp$1$$($p1__76448_SHARP_$$,$option$jscomp$16$$)},className:"main_ui_workspace_sidebar_debug__checkbox-icon "+
($APP.$app$util$debug$enabled_QMARK_$$($option$jscomp$16$$)?"checked":""),children:$APP.$app$util$debug$enabled_QMARK_$$($option$jscomp$16$$)?$APP.$app$main$ui$icons$status_tick$$:null}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:$APP.$app$common$data$name$$($option$jscomp$16$$),onChange:function($p1__76449_SHARP_$$){return $on_toggle_enabled$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_toggle_enabled$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($p1__76449_SHARP_$$,$option$jscomp$16$$):
$on_toggle_enabled$jscomp$1$$($p1__76449_SHARP_$$,$option$jscomp$16$$)},checked:$APP.$app$util$debug$enabled_QMARK_$$($option$jscomp$16$$)},$APP.$app$common$data$name$$($option$jscomp$16$$)),(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:$APP.$app$common$data$name$$($option$jscomp$16$$),children:$APP.$app$common$data$name$$($option$jscomp$16$$)})]},$APP.$app$common$data$name$$($option$jscomp$16$$)));return $out_arr__44057__auto__$jscomp$163$$},[],$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$name$$,
$APP.$app$util$debug$options$$))})]})};
$app$main$ui$workspace$sidebar$debug_shape_info$get_attrs$$=function($shape$jscomp$953$$){var $shape_attrs$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$name$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$debug_shape_info$remove_attrs$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$set$$($app$main$ui$workspace$sidebar$debug_shape_info$display_attrs$$),$APP.$cljs$core$keys$$($shape$jscomp$953$$)))),$$__$1$jscomp$25$$=
$APP.$app$common$data$removev$$(function($p1__76463_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$953$$,$p1__76463_SHARP_$$)==null},$app$main$ui$workspace$sidebar$debug_shape_info$display_attrs$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($$__$1$jscomp$25$$,$shape_attrs$$)};
$app$main$ui$workspace$sidebar$debug_shape_info$shape_link$$=function($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$){$map__76465_map__76465__$1_objects$jscomp$746_props_76464$$=$APP.$rumext$v2$util$wrap_props$$($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$);$map__76465_map__76465__$1_objects$jscomp$746_props_76464$$=$APP.$cljs$core$__destructure_map$$($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$);var $id$jscomp$900$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$,
$APP.$cljs$cst$266$id$$);$map__76465_map__76465__$1_objects$jscomp$746_props_76464$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$,$APP.$cljs$cst$1615$objects$$);return(0,$APP.$rumext$v2$jsx$$)("a",{onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$900$$))},className:"main_ui_workspace_sidebar_debug_shape_info__shape-link",
children:""+($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76465_map__76465__$1_objects$jscomp$746_props_76464$$,$id$jscomp$900$$),$APP.$cljs$cst$723$name$$)??"")+" #"+($id$jscomp$900$$??"")})};
$app$main$ui$workspace$sidebar$debug_shape_info$cells_render$$=function($map__76470_map__76470__$1_props_76469$$){$map__76470_map__76470__$1_props_76469$$=$APP.$rumext$v2$util$wrap_props$$($map__76470_map__76470__$1_props_76469$$);$map__76470_map__76470__$1_props_76469$$=$APP.$cljs$core$__destructure_map$$($map__76470_map__76470__$1_props_76469$$);var $cells$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76470_map__76470__$1_props_76469$$,$APP.$cljs$cst$4357$cells$$),$objects$jscomp$747$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76470_map__76470__$1_props_76469$$,$APP.$cljs$cst$1615$objects$$);return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__cells-render",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$164$$,$cell$jscomp$45_p__76471$$){var $id$jscomp$901$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cell$jscomp$45_p__76471$$,0,null);$cell$jscomp$45_p__76471$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cell$jscomp$45_p__76471$$,1,null);$out_arr__44057__auto__$jscomp$164$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__cell-container",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__cell-position",children:"("+($APP.$cljs$cst$1640$row$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)??"")+", "+($APP.$cljs$cst$216$column$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)??
"")+") -\x3e ("+($APP.$cljs$cst$1640$row$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)+($APP.$cljs$cst$1641$row_span$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)-1)??"")+", "+($APP.$cljs$cst$216$column$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)+($APP.$cljs$cst$1642$column_span$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)-1)??"")+")"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__cell-shape",
children:$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$))?(0,$APP.$rumext$v2$jsx$$)("div",{children:"\x3cempty\x3e"}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$shape_link$$,{id:$APP.$cljs$core$first$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$45_p__76471$$)),objects:$objects$jscomp$747$$})})]},"cell-"+($id$jscomp$901$$??"")));return $out_arr__44057__auto__$jscomp$164$$},
[],$cells$jscomp$27$$)})};
$app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_attr$$=function($map__76481_props_76475_value$jscomp$782$$){$map__76481_props_76475_value$jscomp$782$$=$APP.$rumext$v2$util$wrap_props$$($map__76481_props_76475_value$jscomp$782$$);var $G__76482_map__76481__$1$$=$APP.$cljs$core$__destructure_map$$($map__76481_props_76475_value$jscomp$782$$),$attr$jscomp$62$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76482_map__76481__$1$$,$APP.$cljs$cst$2549$attr$$);$map__76481_props_76475_value$jscomp$782$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76482_map__76481__$1$$,$APP.$cljs$cst$260$value$$);var $objects$jscomp$748$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76482_map__76481__$1$$,$APP.$cljs$cst$1615$objects$$);$G__76482_map__76481__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$debug_shape_info$custom_renderer$$,$attr$jscomp$62$$);switch($G__76482_map__76481__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__76482_map__76481__$1$$.$fqn$:
null){case "shape-link":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$shape_link$$,{id:$map__76481_props_76475_value$jscomp$782$$,objects:$objects$jscomp$748$$});case "shape-list":return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__shape-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$165$$,$id$jscomp$902$$){$out_arr__44057__auto__$jscomp$165$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$shape_link$$,
{id:$id$jscomp$902$$,objects:$objects$jscomp$748$$},"child-"+($id$jscomp$902$$??"")));return $out_arr__44057__auto__$jscomp$165$$},[],$map__76481_props_76475_value$jscomp$782$$)});case "matrix-render":return(0,$APP.$rumext$v2$jsx$$)("div",{children:""+($APP.$app$common$geom$matrix$format_precision$$($map__76481_props_76475_value$jscomp$782$$,2)??"")});case "rect-render":return(0,$APP.$rumext$v2$jsx$$)("div",{children:"X:"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__76481_props_76475_value$jscomp$782$$)??
"")+" Y:"+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__76481_props_76475_value$jscomp$782$$)??"")+" W:"+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($map__76481_props_76475_value$jscomp$782$$)??"")+" H:"+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($map__76481_props_76475_value$jscomp$782$$)??"")});case "points-render":return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__point-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$166$$,
$p__76484_point$jscomp$79$$){var $idx$jscomp$116$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76484_point$jscomp$79$$,0,null);$p__76484_point$jscomp$79$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76484_point$jscomp$79$$,1,null);$out_arr__44057__auto__$jscomp$166$$.push((0,$APP.$rumext$v2$jsx$$)("div",{children:"("+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p__76484_point$jscomp$79$$)??"")+", "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p__76484_point$jscomp$79$$)??
"")+")"},"point-"+($idx$jscomp$116$$??"")));return $out_arr__44057__auto__$jscomp$166$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($map__76481_props_76475_value$jscomp$782$$))});case "cells-render":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$cells_render$$,{cells:$map__76481_props_76475_value$jscomp$782$$,objects:$objects$jscomp$748$$});default:return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__attrs-container-value",
children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__76481_props_76475_value$jscomp$782$$)})}};
$app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_info_STAR_$$=function(){var $objects$jscomp$749$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$selected$jscomp$162$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$749$$),$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$));return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__shape-info",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$panel_title$panel_title_STAR_$$,
{className:"main_ui_workspace_sidebar_debug_shape_info__shape-info-title",text:"Debug",onClose:function(){return $APP.$debug$disable_BANG_$$($APP.$cljs$cst$2933$shape_panel$$)}}),$APP.$cljs$core$empty_QMARK_$$($selected$jscomp$162$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__attrs-container",children:"No shapes selected"}):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$167$$,$p__76492$$){var $idx$jscomp$117$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76492$$,0,null),$current$jscomp$56$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76492$$,1,null);$out_arr__44057__auto__$jscomp$167$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__attrs-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__shape-title",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__shape-name",
children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($current$jscomp$56$$)}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$debug$dump_object$$(""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($current$jscomp$56$$)??""))},children:"object"}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$debug$dump_subtree$$.$cljs$core$IFn$_invoke$arity$2$(""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($current$jscomp$56$$)??""),!0)},
children:"tree"})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__shape-attrs",children:function(){var $attrs$jscomp$163$$=$app$main$ui$workspace$sidebar$debug_shape_info$get_attrs$$($current$jscomp$56$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$19$$,$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$){var $JSCompiler_temp_const$jscomp$1741$$=$out_arr__44057__auto____$1$jscomp$19$$.push,
$temp__5825__auto__$jscomp$inline_8560$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current$jscomp$56$$,$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$);$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$=$APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$inline_8560$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__attrs-container-attr "+($APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$)?
"main_ui_workspace_sidebar_debug_shape_info__vertical-layout":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_debug_shape_info__attrs-container-name",children:$APP.$app$common$data$name$$($JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_attr$$,{attr:$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$,value:$temp__5825__auto__$jscomp$inline_8560$$,objects:$objects$jscomp$749$$})]},
"att-"+($idx$jscomp$117$$??"")+"-"+($JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$??"")):null;$JSCompiler_temp_const$jscomp$1741$$.call($out_arr__44057__auto____$1$jscomp$19$$,$JSCompiler_inline_result$jscomp$1743_attr$jscomp$63$$);return $out_arr__44057__auto____$1$jscomp$19$$},[],$attrs$jscomp$163$$)}()})]},"shape"+($idx$jscomp$117$$??"")));return $out_arr__44057__auto__$jscomp$167$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($selected$jscomp$162$$))]})};
$app$main$ui$workspace$sidebar$history$get_object$$=function($id$jscomp$903$$,$entries$jscomp$35$$,$objects$jscomp$750_or__5025__auto__$jscomp$1067$$){function $search_deleted_shape$$($id__$1$jscomp$16$$,$entries__$1$jscomp$4_map__76476_map__76476__$1$$){function $search_delete_entry$$($or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$){var $map__76478__$1_redo_changes$jscomp$13$$=$APP.$cljs$core$__destructure_map$$($or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$);$or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76478__$1_redo_changes$jscomp$13$$,$APP.$cljs$cst$3089$undo_changes$$);$map__76478__$1_redo_changes$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76478__$1_redo_changes$jscomp$13$$,$APP.$cljs$cst$3086$redo_changes$$);$or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($search_obj$$,$or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$)?$or__5025__auto__$jscomp$1068_p__76477_undo_changes$jscomp$10$$:$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($search_obj$$,$map__76478__$1_redo_changes$jscomp$13$$)}function $search_obj$$($obj$jscomp$217$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($obj$jscomp$217$$),$APP.$cljs$cst$2560$add_obj$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($obj$jscomp$217$$),
$id__$1$jscomp$16$$)}$entries__$1$jscomp$4_map__76476_map__76476__$1$$=$search_delete_entry$$($APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($search_delete_entry$$,$entries__$1$jscomp$4_map__76476_map__76476__$1$$));$entries__$1$jscomp$4_map__76476_map__76476__$1$$=$APP.$cljs$core$__destructure_map$$($entries__$1$jscomp$4_map__76476_map__76476__$1$$);return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($entries__$1$jscomp$4_map__76476_map__76476__$1$$,$APP.$cljs$cst$2561$obj$$)}
$objects$jscomp$750_or__5025__auto__$jscomp$1067$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$750_or__5025__auto__$jscomp$1067$$,$id$jscomp$903$$);return $APP.$cljs$core$truth_$$($objects$jscomp$750_or__5025__auto__$jscomp$1067$$)?$objects$jscomp$750_or__5025__auto__$jscomp$1067$$:$search_deleted_shape$$($id$jscomp$903$$,$entries$jscomp$35$$)};
$app$main$ui$workspace$sidebar$history$extract_operation$$=function($G__76479_change$jscomp$33$$){$G__76479_change$jscomp$33$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__76479_change$jscomp$33$$);switch($G__76479_change$jscomp$33$$ instanceof $APP.$cljs$core$Keyword$$?$G__76479_change$jscomp$33$$.$fqn$:null){case "add-obj":case "add-page":case "add-color":case "add-media":case "add-component":case "add-typography":return $APP.$cljs$cst$3839$new$$;case "mod-obj":case "mod-page":case "mod-color":case "mod-media":case "mod-component":case "mod-typography":return $cljs$cst$5414$modify$$;
case "del-obj":case "del-page":case "del-color":case "del-media":case "del-component":case "del-typography":return $APP.$cljs$cst$4648$delete$$;case "mov-objects":return $APP.$cljs$cst$1782$move$$;default:return null}};
$app$main$ui$workspace$sidebar$history$parse_change$$=function($change$jscomp$34$$){function $r$jscomp$146$$($type$jscomp$593$$,$id$jscomp$904$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$type$jscomp$593$$,$cljs$cst$5415$operation$$,$app$main$ui$workspace$sidebar$history$extract_operation$$($change$jscomp$34$$),$APP.$cljs$cst$5087$detail$$,$APP.$cljs$cst$2563$operations$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$core$coll_QMARK_$$($id$jscomp$904$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($id$jscomp$904$$))?$APP.$cljs$core$first$$($id$jscomp$904$$):$APP.$cljs$core$coll_QMARK_$$($id$jscomp$904$$)?$APP.$cljs$cst$1600$multiple$$:$id$jscomp$904$$],null)}var $G__76483$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$);switch($G__76483$$ instanceof $APP.$cljs$core$Keyword$$?$G__76483$$.$fqn$:null){case "set-option":return $r$jscomp$146$$($APP.$cljs$cst$1608$page$$,$APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));
case "add-obj":case "mod-obj":case "del-obj":return $r$jscomp$146$$($APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));case "reg-objects":return null;case "mov-objects":return $r$jscomp$146$$($APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));case "add-page":case "mod-page":case "del-page":case "mov-page":return $r$jscomp$146$$($APP.$cljs$cst$1608$page$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));
case "add-color":case "mod-color":return $r$jscomp$146$$($APP.$cljs$cst$1284$color$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($change$jscomp$34$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$266$id$$],null)));case "del-color":return $r$jscomp$146$$($APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));case "add-recent-color":return null;case "add-media":case "mod-media":return $r$jscomp$146$$($APP.$cljs$cst$1623$media$$,
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($change$jscomp$34$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2160$object$$,$APP.$cljs$cst$266$id$$],null)));case "del-media":return $r$jscomp$146$$($APP.$cljs$cst$1623$media$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));case "add-component":case "mod-component":case "del-component":return $r$jscomp$146$$($APP.$cljs$cst$1609$component$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));
case "add-typography":case "mod-typography":return $r$jscomp$146$$($APP.$cljs$cst$1966$typography$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($change$jscomp$34$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1966$typography$$,$APP.$cljs$cst$266$id$$],null)));case "del-typography":return $r$jscomp$146$$($APP.$cljs$cst$1966$typography$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$34$$));default:return null}};
$app$main$ui$workspace$sidebar$history$resolve_shape_types$$=function($entries$jscomp$36$$,$objects$jscomp$751$$){function $map_fn$$($JSCompiler_temp$jscomp$1744_entry$jscomp$71$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1744_entry$jscomp$71$$),$APP.$cljs$cst$1795$shape$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1744_entry$jscomp$71$$),
$APP.$cljs$cst$1600$multiple$$)){var $JSCompiler_temp_const$jscomp$1746$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$,$JSCompiler_temp_const$jscomp$1745$$=$APP.$cljs$cst$139$type$$,$id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp$jscomp$1744_entry$jscomp$71$$);var $JSCompiler_inline_result$jscomp$1748_type$jscomp$inline_8564$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$,
$APP.$cljs$cst$139$type$$);$id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$,$APP.$cljs$cst$266$id$$);$JSCompiler_inline_result$jscomp$1748_type$jscomp$inline_8564$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1748_type$jscomp$inline_8564$$,$APP.$cljs$cst$1795$shape$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$,
$APP.$cljs$cst$1600$multiple$$)?$JSCompiler_inline_result$jscomp$1748_type$jscomp$inline_8564$$:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$workspace$sidebar$history$get_object$$($id$jscomp$inline_8565_map__76490__$1$jscomp$inline_8563$$,$entries$jscomp$36$$,$objects$jscomp$751$$));$JSCompiler_temp$jscomp$1744_entry$jscomp$71$$=$JSCompiler_temp_const$jscomp$1746$$.call($APP.$cljs$core$assoc$$,$JSCompiler_temp$jscomp$1744_entry$jscomp$71$$,$JSCompiler_temp_const$jscomp$1745$$,
$JSCompiler_inline_result$jscomp$1748_type$jscomp$inline_8564$$)}return $JSCompiler_temp$jscomp$1744_entry$jscomp$71$$}return function($entries__$1$jscomp$5$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($map_fn$$,$entries__$1$jscomp$5$$)}};
$app$main$ui$workspace$sidebar$history$entry__GT_message$$=function($G__76496_entry$jscomp$72$$){var $attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__76496_entry$jscomp$72$$);var $arity$jscomp$inline_12894_multiple_QMARK_$jscomp$inline_12893$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($G__76496_entry$jscomp$72$$));
$arity$jscomp$inline_12894_multiple_QMARK_$jscomp$inline_12893$$=$APP.$cljs$core$truth_$$($arity$jscomp$inline_12894_multiple_QMARK_$jscomp$inline_12893$$)?"multiple":"single";$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$=$APP.$cljs$core$name$$($APP.$cljs$core$truth_$$($attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$)?$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$:$APP.$cljs$cst$1600$multiple$$);$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$=
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$format$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.%s.%s",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$arity$jscomp$inline_12894_multiple_QMARK_$jscomp$inline_12893$$,$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$])));$G__76496_entry$jscomp$72$$=$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($G__76496_entry$jscomp$72$$);switch($G__76496_entry$jscomp$72$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76496_entry$jscomp$72$$.$fqn$:null){case "new":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.new",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$]));case "modify":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.modify",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$]));
case "delete":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.delete",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$]));case "move":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.move",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$]));
default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.undo.entry.unknown",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$attribute$jscomp$inline_12895_type$jscomp$inline_12892_value$jscomp$784$$]))}};
$app$main$ui$workspace$sidebar$history$entry__GT_icon$$=function($G__76499_map__76498__$1_p__76497$$){$G__76499_map__76498__$1_p__76497$$=$APP.$cljs$core$__destructure_map$$($G__76499_map__76498__$1_p__76497$$);$G__76499_map__76498__$1_p__76497$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76499_map__76498__$1_p__76497$$,$APP.$cljs$cst$139$type$$);switch($G__76499_map__76498__$1_p__76497$$ instanceof $APP.$cljs$core$Keyword$$?$G__76499_map__76498__$1_p__76497$$.$fqn$:null){case "page":return $APP.$app$main$ui$icons$document$$;
case "shape":return $APP.$app$main$ui$icons$svg$$;case "rect":return $APP.$app$main$ui$icons$rectangle$$;case "circle":return $APP.$app$main$ui$icons$elipse$$;case "text":return $APP.$app$main$ui$icons$text$$;case "path":return $APP.$app$main$ui$icons$path$$;case "frame":return $APP.$app$main$ui$icons$board$$;case "group":return $APP.$app$main$ui$icons$group$$;case "color":return $APP.$app$main$ui$icons$drop_icon$$;case "typography":return $APP.$app$main$ui$icons$text_palette$$;case "component":return $APP.$app$main$ui$icons$component$$;
case "media":return $APP.$app$main$ui$icons$img$$;case "image":return $APP.$app$main$ui$icons$img$$;default:return $APP.$app$main$ui$icons$svg$$}};
$app$main$ui$workspace$sidebar$history$is_shape_QMARK_$$=function($type$jscomp$597$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$1592$group$$,null,$APP.$cljs$cst$1590$frame$$,null,$APP.$cljs$cst$1406$circle$$,null,$APP.$cljs$cst$1795$shape$$,null,$APP.$cljs$cst$1595$rect$$,null,$APP.$cljs$cst$1572$text$$,null],null),null),$type$jscomp$597$$)};
$app$main$ui$workspace$sidebar$history$parse_entry$$=function($map__76501__$1_p__76500_redo_changes$jscomp$14$$){$map__76501__$1_p__76500_redo_changes$jscomp$14$$=$APP.$cljs$core$__destructure_map$$($map__76501__$1_p__76500_redo_changes$jscomp$14$$);$map__76501__$1_p__76500_redo_changes$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76501__$1_p__76500_redo_changes$jscomp$14$$,$APP.$cljs$cst$3086$redo_changes$$);return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$history$parse_change$$,
$map__76501__$1_p__76500_redo_changes$jscomp$14$$)};$app$main$ui$workspace$sidebar$history$safe_name$$=function($maybe_keyword$jscomp$1$$){return $maybe_keyword$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$APP.$cljs$core$name$$($maybe_keyword$jscomp$1$$):$maybe_keyword$jscomp$1$$};
$app$main$ui$workspace$sidebar$history$select_entry$$=function($candidates$jscomp$1$$){function $single_QMARK_$jscomp$13$$($coll$jscomp$1101$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($coll$jscomp$1101$$),1)}var $detail$jscomp$9_entries$jscomp$37$$=$APP.$cljs$core$group_by$$(function($p1__76502_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76502_SHARP_$$),
$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($p1__76502_SHARP_$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76502_SHARP_$$)],null)},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$nil_QMARK_$$,$candidates$jscomp$1$$)),$types$jscomp$6$$=$APP.$cljs$core$group_by$$($APP.$cljs$core$first$$,$APP.$cljs$core$keys$$($detail$jscomp$9_entries$jscomp$37$$)),$operations$jscomp$11$$=$APP.$cljs$core$group_by$$($APP.$cljs$core$second$$,$APP.$cljs$core$keys$$($detail$jscomp$9_entries$jscomp$37$$)),
$selected_entry$$=$single_QMARK_$jscomp$13$$($detail$jscomp$9_entries$jscomp$37$$)?$APP.$cljs$core$last$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($detail$jscomp$9_entries$jscomp$37$$,$APP.$cljs$core$first$$($APP.$cljs$core$keys$$($detail$jscomp$9_entries$jscomp$37$$)))):$single_QMARK_$jscomp$13$$($APP.$cljs$cst$3839$new$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$))?$APP.$cljs$core$last$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($detail$jscomp$9_entries$jscomp$37$$,
$APP.$cljs$core$first$$($APP.$cljs$cst$3839$new$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$)))):$single_QMARK_$jscomp$13$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76503_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1592$group$$,$APP.$cljs$core$first$$($p1__76503_SHARP_$$))},$APP.$cljs$cst$4648$delete$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$)))?$APP.$cljs$core$last$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($detail$jscomp$9_entries$jscomp$37$$,
$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76504_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1592$group$$,$APP.$cljs$core$first$$($p1__76504_SHARP_$$))},$APP.$cljs$cst$4648$delete$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$))))):$single_QMARK_$jscomp$13$$($APP.$cljs$cst$1782$move$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$))?$APP.$cljs$core$last$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($detail$jscomp$9_entries$jscomp$37$$,
$APP.$cljs$core$first$$($APP.$cljs$cst$1782$move$$.$cljs$core$IFn$_invoke$arity$1$($operations$jscomp$11$$)))):$single_QMARK_$jscomp$13$$($operations$jscomp$11$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$core$every_QMARK_$$($app$main$ui$workspace$sidebar$history$is_shape_QMARK_$$,$APP.$cljs$core$keys$$($types$jscomp$6$$))?$APP.$cljs$cst$1795$shape$$:$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1600$multiple$$,$cljs$cst$5415$operation$$,
$APP.$cljs$core$first$$($APP.$cljs$core$keys$$($operations$jscomp$11$$))],null):new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1600$multiple$$,$cljs$cst$5415$operation$$,$APP.$cljs$cst$1600$multiple$$],null);$detail$jscomp$9_entries$jscomp$37$$=function(){var $G__76508$$=$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($selected_entry$$);switch($G__76508$$ instanceof $APP.$cljs$core$Keyword$$?
$G__76508$$.$fqn$:null){case "new":return $APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($selected_entry$$);case "modify":return $APP.$app$common$data$mapm$cljs$0core$0IFn$0_invoke$0arity$02$$(function($_$jscomp$2865$$,$v$jscomp$661$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$nil_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$history$safe_name$$,
$APP.$cljs$cst$2549$attr$$),$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$5087$detail$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$v$jscomp$661$$])))))},$APP.$cljs$core$group_by$$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76505_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5414$modify$$,$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($p1__76505_SHARP_$$))},
$candidates$jscomp$1$$)));case "delete":return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76506_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4648$delete$$,$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($p1__76506_SHARP_$$))},$candidates$jscomp$1$$));default:return $candidates$jscomp$1$$}}();return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($selected_entry$$,
$APP.$cljs$cst$5087$detail$$,$detail$jscomp$9_entries$jscomp$37$$)};
$app$main$ui$workspace$sidebar$history$history_entry_details$$=function($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$){$map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$=$APP.$rumext$v2$util$wrap_props$$($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$);$map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$=$APP.$cljs$core$__destructure_map$$($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$);var $entry$jscomp$73$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$,$APP.$cljs$cst$366$entry$$);$map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$history$workspace_undo$$);$map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$=$APP.$cljs$core$__destructure_map$$($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$);var $entries$jscomp$39$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76510_map__76510__$1_map__76511_map__76511__$1_props_76509$$,
$APP.$cljs$cst$1822$items$$),$objects$jscomp$753$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$);return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_history__history-entry-detail",children:function(){var $G__76512$$=$cljs$cst$5415$operation$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$73$$);switch($G__76512$$ instanceof $APP.$cljs$core$Keyword$$?$G__76512$$.$fqn$:null){case "new":return $APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$workspace$sidebar$history$get_object$$($APP.$cljs$cst$5087$detail$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$73$$),
$entries$jscomp$39$$,$objects$jscomp$753$$));case "delete":return(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_history__history-entry-details-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$168$$,$JSCompiler_inline_result$jscomp$1751_id$jscomp$906$$){var $JSCompiler_temp_const$jscomp$1749$$=$out_arr__44057__auto__$jscomp$168$$.push,$shape_name$jscomp$inline_8567$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$workspace$sidebar$history$get_object$$($JSCompiler_inline_result$jscomp$1751_id$jscomp$906$$,
$entries$jscomp$39$$,$objects$jscomp$753$$));$JSCompiler_inline_result$jscomp$1751_id$jscomp$906$$=(0,$APP.$rumext$v2$jsx$$)("li",{children:$shape_name$jscomp$inline_8567$$},$JSCompiler_inline_result$jscomp$1751_id$jscomp$906$$);$JSCompiler_temp_const$jscomp$1749$$.call($out_arr__44057__auto__$jscomp$168$$,$JSCompiler_inline_result$jscomp$1751_id$jscomp$906$$);return $out_arr__44057__auto__$jscomp$168$$},[],$APP.$cljs$cst$5087$detail$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$73$$))});case "modify":return(0,$APP.$rumext$v2$jsx$$)("ul",
{className:"main_ui_workspace_sidebar_history__history-entry-details-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$169$$,$JSCompiler_temp_const$jscomp$1752_p__76513$$){var $JSCompiler_inline_result$jscomp$1754_id$jscomp$907$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1752_p__76513$$,0,null),$attributes$jscomp$74$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1752_p__76513$$,
1,null);$JSCompiler_temp_const$jscomp$1752_p__76513$$=$out_arr__44057__auto__$jscomp$169$$.push;var $shape_name$jscomp$inline_8569$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$workspace$sidebar$history$get_object$$($JSCompiler_inline_result$jscomp$1754_id$jscomp$907$$,$entries$jscomp$39$$,$objects$jscomp$753$$));$JSCompiler_inline_result$jscomp$1754_id$jscomp$907$$=(0,$APP.$rumext$v2$jsxs$$)("li",{children:[(0,$APP.$rumext$v2$jsx$$)("div",{children:$shape_name$jscomp$inline_8569$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$attributes$jscomp$74$$)})]},$JSCompiler_inline_result$jscomp$1754_id$jscomp$907$$);$JSCompiler_temp_const$jscomp$1752_p__76513$$.call($out_arr__44057__auto__$jscomp$169$$,$JSCompiler_inline_result$jscomp$1754_id$jscomp$907$$);return $out_arr__44057__auto__$jscomp$169$$},[],$APP.$cljs$cst$5087$detail$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$73$$))});default:return null}}()})};
$app$main$ui$workspace$sidebar$history$history_entry$$=function($entry$jscomp$74_props_76517$$){var $disabled_QMARK_$jscomp$5$$=$entry$jscomp$74_props_76517$$["disabled?"],$current_QMARK_$$=$entry$jscomp$74_props_76517$$["current?"],$idx_entry$$=$entry$jscomp$74_props_76517$$["idx-entry"];$entry$jscomp$74_props_76517$$=$entry$jscomp$74_props_76517$$.entry;var $hover_QMARK_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$show_detail_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$toggle_show_detail$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$436$$){var $has_entry_QMARK_$$=$APP.$cljs$core$parse_boolean$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$436$$),"has-entry"));$APP.$app$util$dom$stop_propagation$$($event$jscomp$436$$);return $APP.$cljs$core$truth_$$($has_entry_QMARK_$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($show_detail_QMARK_$$,$APP.$cljs$core$not$$):null});return(0,$APP.$rumext$v2$jsxs$$)("div",
{onPointerEnter:function(){return $APP.$cljs$core$reset_BANG_$$($hover_QMARK_$jscomp$6$$,!0)},onPointerLeave:function(){return $APP.$cljs$core$reset_BANG_$$($hover_QMARK_$jscomp$6$$,!1)},onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$undo_to_index$$($idx_entry$$))},className:"main_ui_workspace_sidebar_history__history-entry "+($APP.$cljs$core$truth_$$($disabled_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_history__disabled":
"")+" "+($APP.$cljs$core$truth_$$($current_QMARK_$$)?"main_ui_workspace_sidebar_history__current":"")+" "+($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover_QMARK_$jscomp$6$$))?"main_ui_workspace_sidebar_history__hover":"")+" "+($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($show_detail_QMARK_$$))?"main_ui_workspace_sidebar_history__show-detail":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_history__history-entry-summary",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_history__history-entry-summary-icon",children:$app$main$ui$workspace$sidebar$history$entry__GT_icon$$($entry$jscomp$74_props_76517$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_history__history-entry-summary-text",children:$app$main$ui$workspace$sidebar$history$entry__GT_message$$($entry$jscomp$74_props_76517$$)}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$5087$detail$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$74_props_76517$$))?
(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$toggle_show_detail$$,"data-has-entry":""+($APP.$cljs$cst$5087$detail$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$74_props_76517$$)!=null),className:"main_ui_workspace_sidebar_history__history-entry-summary-button "+($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($show_detail_QMARK_$$))?"main_ui_workspace_sidebar_history__button-opened":""),children:$APP.$app$main$ui$icons$arrow$$}):null]}),$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($show_detail_QMARK_$$))?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$history$history_entry_details$$,{entry:$entry$jscomp$74_props_76517$$}):null]})};
$app$main$ui$workspace$sidebar$history$history_toolbox_STAR_$$=function(){var $entries$jscomp$40_objects$jscomp$754$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$map__76519_map__76519__$1$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$history$workspace_undo$$);$map__76519_map__76519__$1$$=$APP.$cljs$core$__destructure_map$$($map__76519_map__76519__$1$$);var $items$jscomp$55$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76519_map__76519__$1$$,$APP.$cljs$cst$1822$items$$),
$index$jscomp$476$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76519_map__76519__$1$$,$APP.$cljs$cst$1779$index$$);$entries$jscomp$40_objects$jscomp$754$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$history$select_entry$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$history$resolve_shape_types$$($items$jscomp$55$$,$entries$jscomp$40_objects$jscomp$754$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$history$parse_entry$$,
$items$jscomp$55$$)));return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_history__history-toolbox",children:$APP.$cljs$core$empty_QMARK_$$($entries$jscomp$40_objects$jscomp$754$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_history__history-entry-empty",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"history",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.undo.empty")})}):
(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_history__history-entries",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$170$$,$entry$jscomp$75_p__76520$$){var $idx_entry$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($entry$jscomp$75_p__76520$$,0,null);$entry$jscomp$75_p__76520$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($entry$jscomp$75_p__76520$$,1,null);$out_arr__44057__auto__$jscomp$170$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$history$history_entry$$,
{entry:$entry$jscomp$75_p__76520$$,"idx-entry":$idx_entry$jscomp$1$$,"current?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx_entry$jscomp$1$$,$index$jscomp$476$$),"disabled?":$idx_entry$jscomp$1$$>$index$jscomp$476$$},["entry-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($idx_entry$jscomp$1$$)].join("")));return $out_arr__44057__auto__$jscomp$170$$},[],$APP.$cljs$core$reverse$$($APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$entries$jscomp$40_objects$jscomp$754$$)))})})};
$app$main$ui$workspace$sidebar$layers$frame_wrapper$$=function($props_76525_props__$1$jscomp$71$$){var $selected$jscomp$163$$=$props_76525_props__$1$jscomp$71$$.selected,$pending_selected$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$($selected$jscomp$163$$),$current_selected$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($selected$jscomp$163$$);$props_76525_props__$1$jscomp$71$$={...$props_76525_props__$1$jscomp$71$$,selected:$APP.$cljs$core$_deref$$($current_selected$$)};
var $set_selected$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$rxops$throttle_fn$$(50,function(){var $temp__5825__auto__$jscomp$342$$=$APP.$cljs$core$_deref$$($pending_selected$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$342$$)?$APP.$cljs$core$reset_BANG_$$($current_selected$$,$temp__5825__auto__$jscomp$342$$):null})});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$163$$),
$APP.$rumext$v2$adapt$$($set_selected$$)],function(){$APP.$cljs$core$reset_BANG_$$($pending_selected$$,$selected$jscomp$163$$);$set_selected$$.$cljs$core$IFn$_invoke$arity$0$?$set_selected$$.$cljs$core$IFn$_invoke$arity$0$():$set_selected$$();return function(){$APP.$cljs$core$reset_BANG_$$($pending_selected$$,null);return function(){return $APP.$beicon$v2$core$_dispose$$($set_selected$$)}}});return(0,$APP.$rumext$v2$create_element$$)($APP.$app$main$ui$workspace$sidebar$layer_item$layer_item$$,$props_76525_props__$1$jscomp$71$$)};
$app$main$ui$workspace$sidebar$layers$calc_reparented_objects$$=function($objects$jscomp$757_reparented_objects$$){$objects$jscomp$757_reparented_objects$$=$APP.$app$common$data$mapm$cljs$0core$0IFn$0_invoke$0arity$02$$(function($_$jscomp$2866$$,$val$jscomp$202$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($val$jscomp$202$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$app$common$uuid$zero$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1598$shapes$$,
null]))},$objects$jscomp$757_reparented_objects$$);var $reparented_shapes$$=$APP.$cljs$core$vec$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76543_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,$p1__76543_SHARP_$$)},$APP.$cljs$core$keys$$($objects$jscomp$757_reparented_objects$$)));return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($objects$jscomp$757_reparented_objects$$,$APP.$app$common$uuid$zero$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1598$shapes$$,$reparented_shapes$$)};
$app$main$ui$workspace$sidebar$layers$match_filters_QMARK_$$=function($filters$jscomp$12_state$jscomp$1076$$,$p__76544$$){var $and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76544$$,0,null),$shape$jscomp$954$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76544$$,1,null),$search$$=
$cljs$cst$5416$search_text$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$12_state$jscomp$1076$$);$filters$jscomp$12_state$jscomp$1076$$=$cljs$cst$5417$filters$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$12_state$jscomp$1076$$);var $filters__$1$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($filters$jscomp$12_state$jscomp$1076$$,$APP.$cljs$cst$1795$shape$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$variadic$($filters$jscomp$12_state$jscomp$1076$$,$APP.$cljs$cst$1595$rect$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1406$circle$$,
$APP.$cljs$cst$294$path$$,$APP.$cljs$cst$1594$bool$$])):$filters$jscomp$12_state$jscomp$1076$$;if($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,$and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$))return $and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$;
$and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=function(){var $and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$=$APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)),$APP.$cuerdas$core$lower$$($search$$));if($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$))return $and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$;
$and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$=$APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$1987$variant_name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)),$APP.$cuerdas$core$lower$$($search$$));if($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$))return $and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$;
$and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$=$APP.$cljs$core$_STAR_assert_STAR_$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$)?$APP.$cuerdas$core$includes_QMARK_$$(""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)??""),$APP.$cuerdas$core$lower$$($search$$)):$and__5023__auto__$jscomp$736_or__5025__auto____$1$jscomp$117_or__5025__auto____$2$jscomp$30$$}();
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$)?($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=$APP.$cljs$core$empty_QMARK_$$($filters__$1$jscomp$1$$))||($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=
$APP.$cljs$core$contains_QMARK_$$($filters__$1$jscomp$1$$,$APP.$cljs$cst$1609$component$$)&&$APP.$cljs$core$contains_QMARK_$$($shape$jscomp$954$$,$APP.$cljs$cst$1611$component_id$$))||($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=$APP.$cljs$core$contains_QMARK_$$($filters__$1$jscomp$1$$,$APP.$cljs$cst$1596$image$$)&&$APP.$app$common$types$shape$has_images_QMARK_$$($shape$jscomp$954$$)!=
null)?$and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$:($and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$=function(){var $direct_filters$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$1590$frame$$,null,$APP.$cljs$cst$1406$circle$$,null,$APP.$cljs$cst$1594$bool$$,null,$APP.$cljs$cst$1595$rect$$,null,$APP.$cljs$cst$1572$text$$,null],null),null)),$filters__$1$jscomp$1$$);return $APP.$cljs$core$contains_QMARK_$$($direct_filters$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$))}())?
$and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$:$APP.$cljs$core$contains_QMARK_$$($filters__$1$jscomp$1$$,$APP.$cljs$cst$1592$group$$)&&$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)&&!$APP.$cljs$core$contains_QMARK_$$($shape$jscomp$954$$,$APP.$cljs$cst$1611$component_id$$)&&(!$APP.$cljs$core$contains_QMARK_$$($shape$jscomp$954$$,
$APP.$cljs$cst$1593$masked_group$$)||$APP.$cljs$cst$1593$masked_group$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)===!1)||$APP.$cljs$core$contains_QMARK_$$($filters__$1$jscomp$1$$,$APP.$cljs$cst$2647$mask$$)&&$APP.$cljs$cst$1593$masked_group$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$954$$)===!0:$and__5023__auto__$jscomp$735_id$jscomp$910_or__5025__auto__$jscomp$1070_or__5025__auto____$1$jscomp$116_or__5025__auto____$2$jscomp$29_or__5025__auto____$3$jscomp$8_or__5025__auto____$4$jscomp$6$$};
$app$main$ui$workspace$sidebar$layers$use_search$$=function($page$jscomp$151$$,$objects$jscomp$758$$){var $state_STAR_$jscomp$13$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$5418$show_search$$,!1,$cljs$cst$5366$show_menu$$,!1,$cljs$cst$5416$search_text$$,"",$cljs$cst$5417$filters$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$,$cljs$cst$5419$num_items$$,100],null)}),$state$jscomp$1077$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$13$$),
$current_filters$$=$cljs$cst$5417$filters$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1077$$),$current_items$$=$cljs$cst$5419$num_items$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1077$$),$current_search$$=$cljs$cst$5416$search_text$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1077$$),$show_menu_QMARK_$jscomp$3$$=$cljs$cst$5366$show_menu$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1077$$),$show_search_QMARK_$$=$cljs$cst$5418$show_search$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1077$$),
$clear_search_text$$=$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$($state_STAR_$jscomp$13$$,$APP.$cljs$core$assoc$$,$cljs$cst$5416$search_text$$,"",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5419$num_items$$,100]))}),$toggle_filters$$=$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$($state_STAR_$jscomp$13$$,
$APP.$cljs$core$update$$,$cljs$cst$5366$show_menu$$,$APP.$cljs$core$not$$)}),$on_toggle_filters_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$437$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$437$$);return $toggle_filters$$.$cljs$core$IFn$_invoke$arity$0$?$toggle_filters$$.$cljs$core$IFn$_invoke$arity$0$():$toggle_filters$$()}),$hide_menu$$=$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$($state_STAR_$jscomp$13$$,
$APP.$cljs$core$assoc$$,$cljs$cst$5366$show_menu$$,!1)}),$on_key_down$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$438$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$438$$))?$hide_menu$$.$cljs$core$IFn$_invoke$arity$0$?$hide_menu$$.$cljs$core$IFn$_invoke$arity$0$():$hide_menu$$():null}),$update_search_text$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($value$jscomp$785$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$13$$,
$APP.$cljs$core$assoc$$,$cljs$cst$5416$search_text$$,$value$jscomp$785$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5419$num_items$$,100]))}),$toggle_search$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$439$$){$APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_current_target$$($event$jscomp$439$$));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($state_STAR_$jscomp$13$$,function($state__$1$jscomp$52$$){return $APP.$cljs$core$update$$.$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$52$$,
$cljs$cst$5416$search_text$$,""),$cljs$cst$5417$filters$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),$cljs$cst$5366$show_menu$$,!1),$cljs$cst$5419$num_items$$,100),$cljs$cst$5418$show_search$$,$APP.$cljs$core$not$$)})}),$remove_filter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$440$$){var $fkey$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$440$$),"filter"));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($state_STAR_$jscomp$13$$,
function($state__$1$jscomp$53$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state__$1$jscomp$53$$,$cljs$cst$5417$filters$$,$APP.$cljs$core$disj$$,$fkey$$),$cljs$cst$5419$num_items$$,100)})}),$add_filter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$441$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$441$$);var $key$jscomp$410$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$441$$),
"filter"));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($state_STAR_$jscomp$13$$,function($state__$1$jscomp$54$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state__$1$jscomp$54$$,$cljs$cst$5417$filters$$,$APP.$cljs$core$conj$$,$key$jscomp$410$$),$cljs$cst$5366$show_menu$$,$APP.$cljs$core$not$$),$cljs$cst$5419$num_items$$,100)})}),$active_QMARK_$jscomp$5$$=
$show_search_QMARK_$$&&($APP.$app$common$data$not_empty_QMARK_$$($current_search$$)||$APP.$app$common$data$not_empty_QMARK_$$($current_filters$$)),$filtered_objects_all$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_QMARK_$jscomp$5$$),$APP.$rumext$v2$adapt$$($objects$jscomp$758$$),$APP.$rumext$v2$adapt$$($state$jscomp$1077$$)],function(){return $active_QMARK_$jscomp$5$$?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$sidebar$layers$match_filters_QMARK_$$,$state$jscomp$1077$$)),$objects$jscomp$758$$):null}),$filtered_objects_total$$=$APP.$cljs$core$count$$($filtered_objects_all$$),$filtered_objects$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_QMARK_$jscomp$5$$),$APP.$rumext$v2$adapt$$($filtered_objects_all$$),$APP.$rumext$v2$adapt$$($current_items$$)],
function(){return $active_QMARK_$jscomp$5$$?$app$main$ui$workspace$sidebar$layers$calc_reparented_objects$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$1$($current_items$$),$filtered_objects_all$$)):null}),$handle_show_more$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($filtered_objects_total$$),$APP.$rumext$v2$adapt$$($current_items$$)],function(){return $current_items$$<=
$filtered_objects_total$$?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$13$$,$APP.$cljs$core$update$$,$cljs$cst$5419$num_items$$,$APP.$cljs$core$_PLUS_$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([100])):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $keys$jscomp$56$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$goog$events$listen$$($APP.$app$util$globals$document$$,
"keydown",$on_key_down$jscomp$14$$),$APP.$goog$events$listen$$($APP.$app$util$globals$document$$,"click",$hide_menu$$)],null);return function(){for(var $c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$=$APP.$cljs$core$seq$$($keys$jscomp$56$$),$G__76567_chunk__76550_seq__76549__$1$$=null,$G__76566_count__76551$$=0,$i__76552$$=0;;)if($i__76552$$<$G__76566_count__76551$$){var $G__76568_key$jscomp$411$$=$G__76567_chunk__76550_seq__76549__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,
$i__76552$$);$APP.$goog$events$unlistenByKey$$($G__76568_key$jscomp$411$$);$i__76552$$+=1}else if($c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$))$G__76567_chunk__76550_seq__76549__$1$$=$c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__76567_chunk__76550_seq__76549__$1$$)?($c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$=
$APP.$cljs$core$_chunked_first$$($G__76567_chunk__76550_seq__76549__$1$$),$G__76566_count__76551$$=$APP.$cljs$core$_chunked_rest$$($G__76567_chunk__76550_seq__76549__$1$$),$G__76567_chunk__76550_seq__76549__$1$$=$c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$,$G__76568_key$jscomp$411$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$),$c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$=$G__76566_count__76551$$,$G__76566_count__76551$$=
$G__76568_key$jscomp$411$$):($G__76568_key$jscomp$411$$=$APP.$cljs$core$first$$($G__76567_chunk__76550_seq__76549__$1$$),$APP.$goog$events$unlistenByKey$$($G__76568_key$jscomp$411$$),$c__5548__auto__$jscomp$42_seq__76549_temp__5825__auto__$jscomp$345$$=$APP.$cljs$core$next$$($G__76567_chunk__76550_seq__76549__$1$$),$G__76567_chunk__76550_seq__76549__$1$$=null,$G__76566_count__76551$$=0),$i__76552$$=0;else return null}});return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$filtered_objects$$,$handle_show_more$$,function(){return $APP.$cljs$core$truth_$$($show_search_QMARK_$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__tool-window-bar main_ui_workspace_sidebar_layers__search",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{onChange:$update_search_text$$,value:$current_search$$,onClear:$clear_search_text$$,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.search"),
children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_toggle_filters_click$$,className:"main_ui_workspace_sidebar_layers__filter-button "+($APP.$cljs$core$truth_$$($show_menu_QMARK_$jscomp$3$$)?"main_ui_workspace_sidebar_layers__opened":"")+" "+($active_QMARK_$jscomp$5$$?"main_ui_workspace_sidebar_layers__active":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"filter"})})}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),onClick:$toggle_search$$,icon:"close"})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_layers__active-filters",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$173$$,$fkey$jscomp$1$$){$out_arr__44057__auto__$jscomp$173$$.push(function(){var $fname$jscomp$3$$=$APP.$app$common$data$name$$($fkey$jscomp$1$$),$name$jscomp$427$$=
function(){switch($fkey$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$fkey$jscomp$1$$.$fqn$:null){case "frame":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.frames");case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.groups");case "mask":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.masks");case "component":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.components");
case "text":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.texts");case "image":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.images");case "shape":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.shapes");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$($fkey$jscomp$1$$)}}(),$filter_icon$$=$app$util$shape_icon$get_shape_icon_by_type$$($fkey$jscomp$1$$);
return(0,$APP.$rumext$v2$jsxs$$)("button",{"data-filter":$fname$jscomp$3$$,onClick:$remove_filter$$,className:"main_ui_workspace_sidebar_layers__layer-filter",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$filter_icon$$,size:"s",className:"main_ui_workspace_sidebar_layers__layer-filter-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__layer-filter-name",children:$name$jscomp$427$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"close-small",className:"main_ui_workspace_sidebar_layers__layer-filter-close"})]},$fname$jscomp$3$$)}());return $out_arr__44057__auto__$jscomp$173$$},[],$current_filters$$)}),$show_menu_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_sidebar_layers__filters-container",children:[(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"frame",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,
$APP.$cljs$cst$1590$frame$$)?"main_ui_workspace_sidebar_layers__selected":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"board",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.frames")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1590$frame$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"group",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1592$group$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"group",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.groups")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1592$group$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"mask",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$2647$mask$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"mask",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.masks")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$2647$mask$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"component",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1609$component$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"component",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.components")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1609$component$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"text",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1572$text$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"text",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.texts")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1572$text$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"image",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1596$image$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"img",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.images")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1596$image$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("li",{"data-filter":"shape",onClick:$add_filter$$,className:"main_ui_workspace_sidebar_layers__filter-menu-item "+($APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1795$shape$$)?"main_ui_workspace_sidebar_layers__selected":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"path",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-icon"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__filter-menu-item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers.shapes")})]}),
$APP.$cljs$core$contains_QMARK_$$($current_filters$$,$APP.$cljs$cst$1795$shape$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_sidebar_layers__filter-menu-item-tick"}):null]})]}):null]}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_layers__tool-window-bar",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!1,title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$151$$),
onBtnClick:$toggle_search$$,btnIcon:"search",btnTitle:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.search")})})}],null)};
$app$main$ui$workspace$sidebar$layers$on_scroll$$=function($event$jscomp$442_frames$jscomp$27$$){var $children$jscomp$300_is_children_shown_QMARK_$$=$goog$dom$getElementsByClass$$("sticky-children");if($children$jscomp$300_is_children_shown_QMARK_$$.length>0){var $target_top$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($event$jscomp$442_frames$jscomp$27$$)));$event$jscomp$442_frames$jscomp$27$$=$goog$dom$getElementsByClass$$("root-board");
var $last_hidden_frame$$=$APP.$cljs$core$last$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76554_SHARP_$$){return $APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($p1__76554_SHARP_$$))-$target_top$$<=0},$event$jscomp$442_frames$jscomp$27$$)),$frame_id$jscomp$131_sticky_QMARK_$$=$APP.$app$util$dom$get_attribute$$($last_hidden_frame$$,"id"),$children_frame_id_last_hidden_children$$=$APP.$cljs$core$last$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76555_SHARP_$$){return $APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($p1__76555_SHARP_$$))-
$target_top$$<0},$children$jscomp$300_is_children_shown_QMARK_$$));$children$jscomp$300_is_children_shown_QMARK_$$=$APP.$cljs$core$truth_$$($children_frame_id_last_hidden_children$$)?$APP.$cljs$cst$1547$bottom$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($children_frame_id_last_hidden_children$$))-$target_top$$>0:$children_frame_id_last_hidden_children$$;$children_frame_id_last_hidden_children$$=$APP.$app$util$dom$get_attribute$$($children_frame_id_last_hidden_children$$,
"data-id");$frame_id$jscomp$131_sticky_QMARK_$$=$APP.$cljs$core$truth_$$($last_hidden_frame$$)?$APP.$cljs$core$truth_$$($children$jscomp$300_is_children_shown_QMARK_$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$131_sticky_QMARK_$$,$children_frame_id_last_hidden_children$$):$children$jscomp$300_is_children_shown_QMARK_$$:$last_hidden_frame$$;$APP.$cljs$core$run_BANG_$$(function($p1__76556_SHARP_$$){return $p1__76556_SHARP_$$!=null?$p1__76556_SHARP_$$.classList.remove("sticky"):
null},$event$jscomp$442_frames$jscomp$27$$);return $APP.$cljs$core$truth_$$($frame_id$jscomp$131_sticky_QMARK_$$)?$APP.$app$util$dom$add_class_BANG_$$($last_hidden_frame$$,"sticky"):null}return null};
$app$main$ui$workspace$sidebar$options$drawing$frame$options_STAR_$$=function($props_76561_show_QMARK_$jscomp$5$$){var $drawing_state$jscomp$1$$=$props_76561_show_QMARK_$jscomp$5$$.drawingState,$show_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$props_76561_show_QMARK_$jscomp$5$$=$APP.$cljs$core$_deref$$($show_STAR_$$);var $selected_preset_name_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$selected_preset_name$$=$APP.$cljs$core$_deref$$($selected_preset_name_STAR_$$),
$on_open$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_STAR_$$,!0)}),$on_close$jscomp$29$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_STAR_$$,!1)}),$on_preset_selected$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$443_name$jscomp$428$$){var $height$jscomp$162_target$jscomp$143$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$443_name$jscomp$428$$);
$event$jscomp$443_name$jscomp$428$$=$APP.$app$util$dom$get_data$$($height$jscomp$162_target$jscomp$143$$,"name");var $width$jscomp$191$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($height$jscomp$162_target$jscomp$143$$,"width"));$height$jscomp$162_target$jscomp$143$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($height$jscomp$162_target$jscomp$143$$,"height"));$APP.$cljs$core$reset_BANG_$$($selected_preset_name_STAR_$$,$event$jscomp$443_name$jscomp$428$$);
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$drawing$set_default_size$$($width$jscomp$191$$,$height$jscomp$162_target$jscomp$143$$))}),$orientation$jscomp$7$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$1$$))?$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$1$$)>$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$1$$)?$APP.$cljs$cst$1894$horizontal$$:
$APP.$cljs$cst$1895$vertical$$:null,$on_orientation_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($orientation__$1_orientation__$2$$){$orientation__$1_orientation__$2$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($orientation__$1_orientation__$2$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$drawing$change_orientation$$($orientation__$1_orientation__$2$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_drawing_frame__presets",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$on_open$jscomp$3$$,className:"main_ui_workspace_sidebar_options_drawing_frame__presets-wrapper "+($APP.$cljs$core$truth_$$($props_76561_show_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_options_drawing_frame__opened":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__select-name",children:$APP.$cljs$core$truth_$$($selected_preset_name$$)?$selected_preset_name$$:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.size-presets")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__collapsed-icon",children:$APP.$app$main$ui$icons$arrow$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$props_76561_show_QMARK_$jscomp$5$$,"on-close":$on_close$jscomp$29$$,children:(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_options_drawing_frame__custom-select-dropdown",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$174$$,
$JSCompiler_temp$jscomp$1764_preset$$){var $JSCompiler_temp_const$jscomp$1762$$=$out_arr__44057__auto__$jscomp$174$$.push;if($APP.$cljs$core$not$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)))$JSCompiler_temp$jscomp$1764_preset$$=(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_sidebar_options_drawing_frame__dropdown-element main_ui_workspace_sidebar_options_drawing_frame__disabled",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__preset-name",
children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)})},$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$));else{var $preset_match$jscomp$inline_8581$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$),$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$1$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$),
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$1$$));$JSCompiler_temp$jscomp$1764_preset$$=(0,$APP.$rumext$v2$jsxs$$)("li",{"data-width":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)),"data-height":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)),"data-name":$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$),
onClick:$on_preset_selected$$,className:"main_ui_workspace_sidebar_options_drawing_frame__dropdown-element "+($preset_match$jscomp$inline_8581$$?"main_ui_workspace_sidebar_options_drawing_frame__match":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_drawing_frame__name-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__preset-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)}),
(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__preset-size",children:[$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)," x ",$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$)]})]}),$preset_match$jscomp$inline_8581$$?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_drawing_frame__check-icon",children:$APP.$app$main$ui$icons$tick$$}):
null]},$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1764_preset$$))}$JSCompiler_temp_const$jscomp$1762$$.call($out_arr__44057__auto__$jscomp$174$$,$JSCompiler_temp$jscomp$1764_preset$$);return $out_arr__44057__auto__$jscomp$174$$},[],$APP.$app$main$constants$size_presets$$)})})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:function(){var $or__5025__auto__$jscomp$1073$$=$APP.$app$common$data$name$$($orientation$jscomp$7$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1073$$)?$or__5025__auto__$jscomp$1073$$:""}(),"on-change":$on_orientation_change$$,name:"frame-orientation",wide:!0,"class":"main_ui_workspace_sidebar_options_drawing_frame__radio-buttons",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"size-vertical",value:"vertical",id:"size-vertical"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"size-horizontal",value:"horizontal",
id:"size-horizontal"})]})]})};
$app$main$ui$workspace$sidebar$options$menus$align$align_options_STAR_$$=function($disabled_align_props_76579$$){var $disabled_distribute_shapes$jscomp$194$$=$disabled_align_props_76579$$.shapes;$disabled_align_props_76579$$=!$APP.$app$main$data$workspace$can_align_QMARK_$$($disabled_distribute_shapes$jscomp$194$$,$disabled_align_props_76579$$.objects);$disabled_distribute_shapes$jscomp$194$$=!$APP.$app$main$data$workspace$can_distribute_QMARK_$$($disabled_distribute_shapes$jscomp$194$$);var $align_objects$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$444_value$jscomp$786$$){$event$jscomp$444_value$jscomp$786$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$444_value$jscomp$786$$),"value"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$align_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($event$jscomp$444_value$jscomp$786$$,
null))}),$distribute_objects$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$445_value$jscomp$787$$){$event$jscomp$445_value$jscomp$787$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$445_value$jscomp$787$$),"value"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$distribute_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($event$jscomp$445_value$jscomp$787$$,
null))});return $disabled_align_props_76579$$&&$disabled_distribute_shapes$jscomp$194$$?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_align__align-options",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_align__align-group-horizontal",children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.hleft",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4629$align_left$$)])),"data-value":"hleft",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_left$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.hcenter",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4679$align_hcenter$$)])),"data-value":"hcenter",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_horizontal_center$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.hright",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4678$align_right$$)])),"data-value":"hright",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_right$$}),
(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_distribute_shapes$jscomp$194$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.hdistribute",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4625$h_distribute$$)])),"data-value":"horizontal",onClick:$distribute_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_distribute_shapes$jscomp$194$$?
"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$distribute_horizontally$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_align__align-group-vertical",children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.vtop",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4689$align_top$$)])),
"data-value":"vtop",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_top$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.vcenter",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4696$align_vcenter$$)])),
"data-value":"vcenter",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_vertical_center$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$disabled_align_props_76579$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.vbottom",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4692$align_bottom$$)])),
"data-value":"vbottom",onClick:$align_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_align_props_76579$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$align_bottom$$}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.align.vdistribute",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4633$v_distribute$$)])),
disabled:$disabled_distribute_shapes$jscomp$194$$,"data-value":"vertical",onClick:$distribute_objects$$,className:"main_ui_workspace_sidebar_options_menus_align__align-button "+($disabled_distribute_shapes$jscomp$194$$?"main_ui_workspace_sidebar_options_menus_align__disabled":""),children:$APP.$app$main$ui$icons$distribute_vertical_spacing$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$bool$bool_options_STAR_$$=function($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$){var $disabled_bool_btns_shapes_with_children$$=$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$.shapesWithChildren,$total_selected$$=$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$.totalSelected;$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$=$APP.$cljs$core$first$$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$.shapes);
var $head_id$$=$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$,$APP.$cljs$cst$266$id$$),$is_group_QMARK_$jscomp$3$$=$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$),$is_bool_QMARK_$jscomp$2$$=$APP.$app$common$files$helpers$bool_shape_QMARK_$$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$),
$head_bool_type$$=$is_bool_QMARK_$jscomp$2$$?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$,$APP.$cljs$cst$1872$bool_type$$):$is_bool_QMARK_$jscomp$2$$;$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$=$app$main$features$use_feature$$("render-wasm/v1");var $has_invalid_shapes_QMARK_$$=$APP.$cljs$core$some$$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$?$APP.$app$common$files$helpers$frame_shape_QMARK_$$:
function($p1__76580_SHARP_$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($p1__76580_SHARP_$$)||$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($p1__76580_SHARP_$$)},$disabled_bool_btns_shapes_with_children$$),$head_not_group_like_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$total_selected$$)&&!$is_group_QMARK_$jscomp$3$$&&!$is_bool_QMARK_$jscomp$2$$;$disabled_bool_btns_shapes_with_children$$=function(){var $or__5025__auto__$jscomp$1074$$=
$total_selected$$===0;return $or__5025__auto__$jscomp$1074$$?$or__5025__auto__$jscomp$1074$$:$APP.$cljs$core$truth_$$($has_invalid_shapes_QMARK_$$)?$has_invalid_shapes_QMARK_$$:$head_not_group_like_QMARK_$$}();$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$=function(){var $or__5025__auto__$jscomp$1075$$=$total_selected$$===0;return $or__5025__auto__$jscomp$1075$$?$or__5025__auto__$jscomp$1075$$:$has_invalid_shapes_QMARK_$$}();var $on_change$jscomp$48$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($total_selected$$),
$APP.$rumext$v2$adapt$$($is_group_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($is_bool_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($head_id$$),$APP.$rumext$v2$adapt$$($head_bool_type$$)],function($bool_type$jscomp$10_bool_type__$1$$){$bool_type$jscomp$10_bool_type__$1$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($bool_type$jscomp$10_bool_type__$1$$);return $total_selected$$>1?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$bool$create_bool$$($bool_type$jscomp$10_bool_type__$1$$)):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($total_selected$$,1)&&$is_group_QMARK_$jscomp$3$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$bool$group_to_bool$$($head_id$$,$bool_type$jscomp$10_bool_type__$1$$)):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($total_selected$$,1)&&$is_bool_QMARK_$jscomp$2$$?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($head_bool_type$$,$bool_type$jscomp$10_bool_type__$1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$bool$bool_to_group$$($head_id$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$bool$change_bool_type$$($head_id$$,$bool_type$jscomp$10_bool_type__$1$$)):null}),$flatten_objects$$=$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$workspace$path$shapes_to_path$convert_selected_to_path$cljs$0core$0IFn$0_invoke$0arity$01$$(null))});return $APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($disabled_bool_btns_shapes_with_children$$)?
$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$:$disabled_bool_btns_shapes_with_children$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_bool__boolean-options",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_bool__bool-group",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($head_bool_type$$),"class":"main_ui_workspace_sidebar_options_menus_bool__boolean-radio-btn",
"on-change":$on_change$jscomp$48$$,name:"bool-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"boolean-union",value:"union",disabled:$disabled_bool_btns_shapes_with_children$$,title:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.union"))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4644$bool_union$$)),
")"].join(""),id:"bool-opt-union"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"boolean-difference",value:"difference",disabled:$disabled_bool_btns_shapes_with_children$$,title:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.difference"))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4646$bool_difference$$)),
")"].join(""),id:"bool-opt-differente"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"boolean-intersection",value:"intersection",disabled:$disabled_bool_btns_shapes_with_children$$,title:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.intersection"))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4610$bool_intersection$$)),
")"].join(""),id:"bool-opt-intersection"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"boolean-exclude",value:"exclude",disabled:$disabled_bool_btns_shapes_with_children$$,title:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.exclude"))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4665$bool_exclude$$)),
")"].join(""),id:"bool-opt-exclude"})]})}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.flatten"),disabled:$disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$,onClick:$flatten_objects$$,className:"main_ui_workspace_sidebar_options_menus_bool__flatten-button "+($APP.$cljs$core$truth_$$($disabled_flatten_head$jscomp$27_props_76581_render_wasm_enabled_QMARK_$$)?"main_ui_workspace_sidebar_options_menus_bool__disabled":
""),children:$app$main$ui$workspace$sidebar$options$menus$bool$flatten_icon$$})]}):null};
$app$main$ui$ds$controls$combobox$combobox_STAR_$$=function($empty_to_end__$1$jscomp$1_props_76583$$){var $listbox_id$jscomp$1_options$jscomp$607$$=void 0,$on_change$jscomp$49$$=void 0,$max_length$jscomp$5$$=void 0,$placeholder$jscomp$4$$=void 0,$disabled$jscomp$11$$=void 0,$has_error$$=void 0,$default_selected$jscomp$1$$=void 0,$empty_to_end$jscomp$2_set_option_ref$jscomp$1$$=void 0,$id$jscomp$911$$=void 0,$class$$jscomp$61$$=void 0;({options:$listbox_id$jscomp$1_options$jscomp$607$$,onChange:$on_change$jscomp$49$$,
maxLength:$max_length$jscomp$5$$,placeholder:$placeholder$jscomp$4$$,disabled:$disabled$jscomp$11$$,hasError:$has_error$$,defaultSelected:$default_selected$jscomp$1$$,emptyToEnd:$empty_to_end$jscomp$2_set_option_ref$jscomp$1$$,id:$id$jscomp$911$$,className:$class$$jscomp$61$$}=$empty_to_end__$1$jscomp$1_props_76583$$);var $options__$1$jscomp$80$$=$APP.$cljs$core$array_QMARK_$$($listbox_id$jscomp$1_options$jscomp$607$$)?$APP.$rumext$v2$util$bean$$($listbox_id$jscomp$1_options$jscomp$607$$):$listbox_id$jscomp$1_options$jscomp$607$$;
$empty_to_end__$1$jscomp$1_props_76583$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($empty_to_end$jscomp$2_set_option_ref$jscomp$1$$,!1);var $is_open_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$is_open$jscomp$7$$=$APP.$cljs$core$_deref$$($is_open_STAR_$jscomp$1$$),$selected_id_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($default_selected$jscomp$1$$),$selected_id$jscomp$6$$=$APP.$cljs$core$_deref$$($selected_id_STAR_$jscomp$1$$),
$filter_id_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),$filter_id$jscomp$9$$=$APP.$cljs$core$_deref$$($filter_id_STAR_$$),$focused_id_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$focused_id$jscomp$1$$=$APP.$cljs$core$_deref$$($focused_id_STAR_$jscomp$1$$),$combobox_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$input_ref$jscomp$8$$=(0,$APP.$rumext$v2$use_ref$$)(null),$nodes_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$options_ref$jscomp$1$$=
(0,$APP.$rumext$v2$use_ref$$)(null);$listbox_id$jscomp$1_options$jscomp$607$$=(0,$APP.$rumext$v2$use_id$$)();var $value_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$dropdown_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options__$1$jscomp$80$$),$APP.$rumext$v2$adapt$$($filter_id$jscomp$9$$)],function(){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$filterv$$(function($option$jscomp$17_option__$1$$){$option$jscomp$17_option__$1$$=$APP.$cuerdas$core$lower$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($option$jscomp$17_option__$1$$,
$APP.$cljs$cst$266$id$$));return $APP.$cuerdas$core$includes_QMARK_$$($option$jscomp$17_option__$1$$,$APP.$cuerdas$core$lower$$($filter_id$jscomp$9$$))},$options__$1$jscomp$80$$))});$empty_to_end$jscomp$2_set_option_ref$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($node$jscomp$405$$){var $state__$1$jscomp$55_state__$2$jscomp$6$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$2$$),{}),$id__$1$jscomp$17$$=$APP.$app$util$dom$get_data$$($node$jscomp$405$$,
"id");$state__$1$jscomp$55_state__$2$jscomp$6$$=$APP.$app$util$object$set_BANG_$$($state__$1$jscomp$55_state__$2$jscomp$6$$,$id__$1$jscomp$17$$,$node$jscomp$405$$);$APP.$rumext$v2$set_ref_val_BANG_$$($nodes_ref$jscomp$2$$,$state__$1$jscomp$55_state__$2$jscomp$6$$);return function(){var $state__$4$jscomp$2_state__$5$jscomp$2$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$2$$),{}),$id__$2$$=$APP.$app$util$dom$get_data$$($node$jscomp$405$$,
"id");$state__$4$jscomp$2_state__$5$jscomp$2$$=$APP.$app$util$object$unset_BANG_$$($state__$4$jscomp$2_state__$5$jscomp$2$$,$id__$2$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($nodes_ref$jscomp$2$$,$state__$4$jscomp$2_state__$5$jscomp$2$$)}});var $on_option_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$49$$)],function($event$jscomp$446_id__$1$jscomp$18$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$446_id__$1$jscomp$18$$);
$event$jscomp$446_id__$1$jscomp$18$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$446_id__$1$jscomp$18$$),"id");$APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$1$$,$event$jscomp$446_id__$1$jscomp$18$$);$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,!1);$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$1$$,null);return $APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$49$$)?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$446_id__$1$jscomp$18$$):
$on_change$jscomp$49$$($event$jscomp$446_id__$1$jscomp$18$$):null}),$on_click$jscomp$43$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disabled$jscomp$11$$)],function($event$jscomp$447$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$447$$);if($APP.$cljs$core$truth_$$($disabled$jscomp$11$$))return null;$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($is_open_STAR_$jscomp$1$$))||$APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$$,"");return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($is_open_STAR_$jscomp$1$$,
$APP.$cljs$core$not$$)}),$on_blur$jscomp$15$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$49$$)],function($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$){$APP.$app$util$dom$stop_propagation$$($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$);if($APP.$cljs$core$truth_$$($APP.$app$util$dom$is_child_QMARK_$$($APP.$rumext$v2$ref_val$$($combobox_ref$$),$G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$!=null?$G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$.relatedTarget:
null)))return null;$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,!1);$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$1$$,null);return $APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$49$$)&&($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$=$APP.$rumext$v2$ref_val$$($input_ref$jscomp$8$$),$APP.$cljs$core$truth_$$($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$))?($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$=$APP.$app$util$dom$get_input_value$$($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$),
$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$):$on_change$jscomp$49$$($G__76584_event$jscomp$448_temp__5825__auto__$jscomp$347$$)):null}),$on_input_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disabled$jscomp$11$$)],function($event$jscomp$449$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$449$$);if($APP.$cljs$core$truth_$$($disabled$jscomp$11$$))return null;
$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($is_open_STAR_$jscomp$1$$))||$APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$$,"");return $APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,!0)}),$on_input_focus$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$450$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$450$$);return $APP.$cljs$core$truth_$$($disabled$jscomp$11$$)?null:$APP.$app$util$dom$select_text_BANG_$$($event$jscomp$450$$.target)}),$on_input_key_down$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open$jscomp$7$$),$APP.$rumext$v2$adapt$$($focused_id$jscomp$1$$),$APP.$rumext$v2$adapt$$($disabled$jscomp$11$$)],function($event$jscomp$451$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$451$$);if($APP.$cljs$core$truth_$$($disabled$jscomp$11$$))return null;var $options__$2$jscomp$1$$=$APP.$rumext$v2$ref_val$$($options_ref$jscomp$1$$),$len$jscomp$76_new_index$jscomp$8$$=$APP.$cljs$core$count$$($options__$2$jscomp$1$$),
$index$jscomp$479_nodes$jscomp$43$$=$APP.$app$common$data$index_of_pred$$($options__$2$jscomp$1$$,function($p1__76582_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($focused_id$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__76582_SHARP_$$,$APP.$cljs$cst$266$id$$))}),$index__$1$jscomp$24$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$479_nodes$jscomp$43$$,-1);$index$jscomp$479_nodes$jscomp$43$$=$APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$2$$);
return $APP.$cljs$core$truth_$$($is_open$jscomp$7$$)?$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$home_QMARK_$$)($event$jscomp$451$$))?$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($options__$2$jscomp$1$$,$focused_id_STAR_$jscomp$1$$,0,$index$jscomp$479_nodes$jscomp$43$$):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$451$$))?($len$jscomp$76_new_index$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index__$1$jscomp$24$$,
-1)?$len$jscomp$76_new_index$jscomp$8$$-1:$APP.$cljs$core$mod$$($index__$1$jscomp$24$$-1,$len$jscomp$76_new_index$jscomp$8$$),$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($options__$2$jscomp$1$$,$focused_id_STAR_$jscomp$1$$,$len$jscomp$76_new_index$jscomp$8$$,$index$jscomp$479_nodes$jscomp$43$$)):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$451$$))?($len$jscomp$76_new_index$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index__$1$jscomp$24$$,
-1)?0:$APP.$cljs$core$mod$$($index__$1$jscomp$24$$+1,$len$jscomp$76_new_index$jscomp$8$$),$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($options__$2$jscomp$1$$,$focused_id_STAR_$jscomp$1$$,$len$jscomp$76_new_index$jscomp$8$$,$index$jscomp$479_nodes$jscomp$43$$)):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$451$$))?($APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$1$$,$focused_id$jscomp$1$$),$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,
!1),$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$1$$,null),$APP.$app$util$dom$blur_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$8$$)),$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$49$$)&&$focused_id$jscomp$1$$!=null?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$($focused_id$jscomp$1$$):$on_change$jscomp$49$$($focused_id$jscomp$1$$):null):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$451$$))?
($APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,!1),$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$1$$,null),$APP.$app$util$dom$blur_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$8$$))):null:$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$451$$))?$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$1$$,!0):$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1076$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$451$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1076$$)?$or__5025__auto__$jscomp$1076$$:(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$451$$)}())?$APP.$app$util$dom$blur_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$8$$)):null}),$on_input_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$452_value$jscomp$788$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$452_value$jscomp$788$$);$event$jscomp$452_value$jscomp$788$$=$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$452_value$jscomp$788$$));
$APP.$rumext$v2$set_ref_val_BANG_$$($value_ref$$,$event$jscomp$452_value$jscomp$788$$);$APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$1$$,$event$jscomp$452_value$jscomp$788$$);$APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$$,$event$jscomp$452_value$jscomp$788$$);return $APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$1$$,null)}),$icon$jscomp$20_selected_option$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options__$1$jscomp$80$$),
$APP.$rumext$v2$adapt$$($selected_id$jscomp$6$$)],function(){return $APP.$app$common$data$not_empty_QMARK_$$($options__$1$jscomp$80$$)?$APP.$app$main$ui$ds$controls$select$get_option$$($options__$1$jscomp$80$$,$selected_id$jscomp$6$$):null});$icon$jscomp$20_selected_option$jscomp$2$$=$APP.$cljs$core$truth_$$($icon$jscomp$20_selected_option$jscomp$2$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($icon$jscomp$20_selected_option$jscomp$2$$,$APP.$cljs$cst$1705$icon$$):null;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dropdown_options$$)],
function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($options_ref$jscomp$1$$,$dropdown_options$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($default_selected$jscomp$1$$)],function(){return $APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$1$$,$default_selected$jscomp$1$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$49$$)],function(){return function(){var $temp__5825__auto__$jscomp$348$$=
$APP.$rumext$v2$ref_val$$($value_ref$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$348$$)?($APP.$rumext$v2$set_ref_val_BANG_$$($value_ref$$,null),$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$49$$.$cljs$core$IFn$_invoke$arity$1$($temp__5825__auto__$jscomp$348$$):$on_change$jscomp$49$$($temp__5825__auto__$jscomp$348$$)):null}});return(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$combobox_ref$$,className:"main_ui_ds_controls_combobox__wrapper "+($APP.$cljs$core$truth_$$($has_error$$)?
"main_ui_ds_controls_combobox__has-error":"")+" "+($APP.$cljs$core$truth_$$($disabled$jscomp$11$$)?"main_ui_ds_controls_combobox__disabled":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onBlur:$on_blur$jscomp$15$$,onClick:$on_click$jscomp$43$$,className:($class$$jscomp$61$$??"")+" main_ui_ds_controls_combobox__combobox",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_ds_controls_combobox__header "+($icon$jscomp$20_selected_option$jscomp$2$$!=null?"main_ui_ds_controls_combobox__header-icon":
""),children:[$APP.$cljs$core$truth_$$($icon$jscomp$20_selected_option$jscomp$2$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$icon$jscomp$20_selected_option$jscomp$2$$,size:"s","aria-hidden":!0}):null,(0,$APP.$rumext$v2$jsx$$)("input",{role:"combobox",onChange:$on_input_change$$,"aria-expanded":$is_open$jscomp$7$$,className:"main_ui_ds_controls_combobox__input",placeholder:$placeholder$jscomp$4$$,"aria-autocomplete":"both",id:$id$jscomp$911$$,"data-testid":"combobox-input",
maxLength:$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($max_length$jscomp$5$$,255),value:$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($selected_id$jscomp$6$$,""),onFocus:$on_input_focus$$,autoComplete:"off",onClick:$on_input_click$$,"aria-controls":$listbox_id$jscomp$1_options$jscomp$607$$,type:"text",ref:$input_ref$jscomp$8$$,"aria-activedescendant":$focused_id$jscomp$1$$,onKeyDown:$on_input_key_down$$,disabled:$disabled$jscomp$11$$})]}),$APP.$app$common$data$not_empty_QMARK_$$($options__$1$jscomp$80$$)?
(0,$APP.$rumext$v2$jsx$$)("button",{type:"button",tabIndex:"-1","aria-expanded":$is_open$jscomp$7$$,"aria-controls":$listbox_id$jscomp$1_options$jscomp$607$$,onClick:$on_click$jscomp$43$$,className:"main_ui_ds_controls_combobox__button-toggle-list",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-down",className:"main_ui_ds_controls_combobox__arrow",size:"s","aria-hidden":!0,"data-testid":"combobox-open-button"})}):null]}),$is_open$jscomp$7$$&&
$dropdown_options$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$controls$shared$options_dropdown$options_dropdown_STAR_$$,{onClick:$on_option_click$jscomp$1$$,options:$dropdown_options$$,selected:$selected_id$jscomp$6$$,focused:$focused_id$jscomp$1$$,ref:$empty_to_end$jscomp$2_set_option_ref$jscomp$1$$,id:$listbox_id$jscomp$1_options$jscomp$607$$,emptyToEnd:$empty_to_end__$1$jscomp$1_props_76583$$,"data-testid":"combobox-options"}):null]})};
$app$main$ui$ds$controls$switch$0$switch_STAR_$$=function($has_label_QMARK__props_76585$$,$props__$1$jscomp$72_ref$jscomp$51$$){var $aria_label$jscomp$9$$=void 0,$on_change$jscomp$50$$=void 0,$disabled$jscomp$12_handle_keydown$jscomp$2$$=void 0,$default_checked$$=void 0,$label$jscomp$35$$=void 0,$id$jscomp$912$$=void 0,$class$$jscomp$62$$=void 0,$props$jscomp$310$$=void 0;({id:$id$jscomp$912$$,className:$class$$jscomp$62$$,label:$label$jscomp$35$$,"aria-label":$aria_label$jscomp$9$$,defaultChecked:$default_checked$$,
onChange:$on_change$jscomp$50$$,disabled:$disabled$jscomp$12_handle_keydown$jscomp$2$$,...$props$jscomp$310$$}=$has_label_QMARK__props_76585$$);var $checked_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($default_checked$$),$checked_QMARK_$jscomp$5$$=$APP.$cljs$core$_deref$$($checked_STAR_$$),$disabled_QMARK_$jscomp$6$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($disabled$jscomp$12_handle_keydown$jscomp$2$$,!1);$has_label_QMARK__props_76585$$=!$APP.$cuerdas$core$blank_QMARK_$$($label$jscomp$35$$);
var $handle_toggle$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$50$$),$APP.$rumext$v2$adapt$$($checked_QMARK_$jscomp$5$$),$APP.$rumext$v2$adapt$$($disabled_QMARK_$jscomp$6$$)],function(){if($APP.$cljs$core$truth_$$($disabled_QMARK_$jscomp$6$$))return null;var $updated_checked_QMARK_$$=$APP.$cljs$core$not$$($checked_QMARK_$jscomp$5$$);$APP.$cljs$core$reset_BANG_$$($checked_STAR_$$,$updated_checked_QMARK_$$);return $APP.$cljs$core$truth_$$($on_change$jscomp$50$$)?
$on_change$jscomp$50$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$50$$.$cljs$core$IFn$_invoke$arity$1$($updated_checked_QMARK_$$):$on_change$jscomp$50$$($updated_checked_QMARK_$$):null});$disabled$jscomp$12_handle_keydown$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($handle_toggle$$)],function($JSCompiler_temp$jscomp$1765_event$jscomp$453$$){$APP.$app$util$dom$prevent_default$$($JSCompiler_temp$jscomp$1765_event$jscomp$453$$);if($APP.$cljs$core$truth_$$($disabled_QMARK_$jscomp$6$$))$JSCompiler_temp$jscomp$1765_event$jscomp$453$$=
null;else{var $JSCompiler_inline_result$jscomp$1766_or__5025__auto__$jscomp$inline_8583$$=(0,$APP.$app$util$keyboard$space_QMARK_$$)($JSCompiler_temp$jscomp$1765_event$jscomp$453$$);$JSCompiler_inline_result$jscomp$1766_or__5025__auto__$jscomp$inline_8583$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1766_or__5025__auto__$jscomp$inline_8583$$)?$JSCompiler_inline_result$jscomp$1766_or__5025__auto__$jscomp$inline_8583$$:(0,$APP.$app$util$keyboard$enter_QMARK_$$)($JSCompiler_temp$jscomp$1765_event$jscomp$453$$);
$JSCompiler_temp$jscomp$1765_event$jscomp$453$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1766_or__5025__auto__$jscomp$inline_8583$$)?$handle_toggle$$.$cljs$core$IFn$_invoke$arity$1$?$handle_toggle$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1765_event$jscomp$453$$):$handle_toggle$$($JSCompiler_temp$jscomp$1765_event$jscomp$453$$):null}return $JSCompiler_temp$jscomp$1765_event$jscomp$453$$});$props__$1$jscomp$72_ref$jscomp$51$$={...$props$jscomp$310$$,role:"switch","aria-label":$has_label_QMARK__props_76585$$?
null:$aria_label$jscomp$9$$,tabIndex:$APP.$cljs$core$truth_$$($disabled_QMARK_$jscomp$6$$)?-1:0,className:($class$$jscomp$62$$??"")+" main_ui_ds_controls_switch__switch "+(($checked_QMARK_$jscomp$5$$===!1?"main_ui_ds_controls_switch__off":"")+" "+($checked_QMARK_$jscomp$5$$==null?"main_ui_ds_controls_switch__neutral":"")+" "+($checked_QMARK_$jscomp$5$$===!0?"main_ui_ds_controls_switch__on":"")),"aria-checked":$checked_QMARK_$jscomp$5$$,onClick:$handle_toggle$$,ref:$props__$1$jscomp$72_ref$jscomp$51$$,
onKeyDown:$disabled$jscomp$12_handle_keydown$jscomp$2$$,disabled:$disabled_QMARK_$jscomp$6$$};$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($default_checked$$)],function(){return $APP.$cljs$core$reset_BANG_$$($checked_STAR_$$,$default_checked$$)});return(0,$APP.$rumext$v2$create_element$$)("div",$props__$1$jscomp$72_ref$jscomp$51$$,(0,$APP.$rumext$v2$jsx$$)("div",{id:$id$jscomp$912$$,className:"main_ui_ds_controls_switch__switch-track",children:(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_ds_controls_switch__switch-thumb"})}),$has_label_QMARK__props_76585$$?(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:$id$jscomp$912$$,className:"main_ui_ds_controls_switch__switch-label",children:$label$jscomp$35$$}):null)};
$app$main$ui$ds$product$input_with_meta$input_with_meta_STAR_$$=function($props_76586_title$jscomp$36$$){var $max_length$jscomp$6_props__$1$jscomp$73$$=void 0,$meta$jscomp$87$$=void 0,$value$jscomp$790$$=void 0,$on_blur$jscomp$16$$=void 0,$editing_QMARK_$jscomp$8_is_editing$jscomp$1$$=void 0,$props$jscomp$311$$=void 0;({value:$value$jscomp$790$$,meta:$meta$jscomp$87$$,maxLength:$max_length$jscomp$6_props__$1$jscomp$73$$,isEditing:$editing_QMARK_$jscomp$8_is_editing$jscomp$1$$,onBlur:$on_blur$jscomp$16$$,
...$props$jscomp$311$$}=$props_76586_title$jscomp$36$$);$props_76586_title$jscomp$36$$=$APP.$cljs$core$truth_$$($meta$jscomp$87$$)?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$790$$),": ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($meta$jscomp$87$$)].join(""):$value$jscomp$790$$;var $editing_STAR_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($editing_QMARK_$jscomp$8_is_editing$jscomp$1$$,
!1));$editing_QMARK_$jscomp$8_is_editing$jscomp$1$$=$APP.$cljs$core$_deref$$($editing_STAR_$jscomp$3$$);var $input_ref$jscomp$9$$=(0,$APP.$rumext$v2$use_ref$$)(),$last_node_STAR_$$=(0,$APP.$rumext$v2$use_ref$$)(null),$ref_cb$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($node$jscomp$407$$){$APP.$rumext$v2$set_ref_val_BANG_$$($input_ref$jscomp$9$$,$node$jscomp$407$$);return $APP.$cljs$core$truth_$$($node$jscomp$407$$)?$APP.$rumext$v2$set_ref_val_BANG_$$($last_node_STAR_$$,
$node$jscomp$407$$):null}),$on_edit$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$454$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$454$$);$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$3$$,!0);return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$9$$))}),$on_stop_edit$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_blur$jscomp$16$$)],function($event$jscomp$455$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$455$$);
$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$3$$,!1);return $APP.$cljs$core$truth_$$($on_blur$jscomp$16$$)?$on_blur$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$455$$):$on_blur$jscomp$16$$($event$jscomp$455$$):null}),$on_focus$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$456$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$456$$);return $APP.$app$util$dom$select_text_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$456$$))}),
$handle_key_down$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$457_node$jscomp$408$$){var $enter_QMARK_$jscomp$3$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$457_node$jscomp$408$$),$esc_QMARK_$jscomp$4$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$457_node$jscomp$408$$);$event$jscomp$457_node$jscomp$408$$=$APP.$app$util$dom$get_target$$($event$jscomp$457_node$jscomp$408$$);$enter_QMARK_$jscomp$3$$&&$APP.$app$util$dom$blur_BANG_$$($event$jscomp$457_node$jscomp$408$$);
return $esc_QMARK_$jscomp$4$$?$APP.$app$util$dom$blur_BANG_$$($event$jscomp$457_node$jscomp$408$$):null});$max_length$jscomp$6_props__$1$jscomp$73$$={...$props$jscomp$311$$,ref:$ref_cb$$,defaultValue:$value$jscomp$790$$,maxLength:$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($max_length$jscomp$6_props__$1$jscomp$73$$,255),autoFocus:!0,onFocus:$on_focus$jscomp$8$$,onBlur:$on_stop_edit$jscomp$1$$,onKeyDown:$handle_key_down$jscomp$8$$};$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_blur$jscomp$16$$),
$APP.$rumext$v2$adapt$$($last_node_STAR_$$)],function(){return function(){var $input$jscomp$72$$=$APP.$rumext$v2$ref_val$$($last_node_STAR_$$),$fake_blur_event$$={type:"blur",target:$input$jscomp$72$$,currentTarget:$input$jscomp$72$$,stopPropagation:function(){return null},preventDefault:function(){return null}};return $APP.$cljs$core$truth_$$($input$jscomp$72$$)?$on_blur$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($fake_blur_event$$):$on_blur$jscomp$16$$($fake_blur_event$$):
null}});return $APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$8_is_editing$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_product_input_with_meta__input-with-meta-edit-container",children:(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$max_length$jscomp$6_props__$1$jscomp$73$$)}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$props_76586_title$jscomp$36$$,onClick:$on_edit$jscomp$6$$,className:"main_ui_ds_product_input_with_meta__input-with-meta-container",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_product_input_with_meta__input-with-meta-value",children:$value$jscomp$790$$}),$APP.$cljs$core$truth_$$($meta$jscomp$87$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_product_input_with_meta__input-with-meta-data",children:$meta$jscomp$87$$}):null]})};
$app$main$ui$ds$foundations$typography$heading$heading_STAR_$$=function($children$jscomp$301_props_76589$$){var $typography$jscomp$35$$,$props$jscomp$312$$;({level:$level$jscomp$62_or__5025__auto__$jscomp$inline_8585_tag$jscomp$91$$,typography:$typography$jscomp$35$$,className:$class$$jscomp$63_class$__$1$jscomp$9$$,children:$children$jscomp$301_props_76589$$,...$props$jscomp$312$$}=$children$jscomp$301_props_76589$$);var $level$jscomp$62_or__5025__auto__$jscomp$inline_8585_tag$jscomp$91$$="h"+(($APP.$cljs$core$truth_$$($level$jscomp$62_or__5025__auto__$jscomp$inline_8585_tag$jscomp$91$$)?
$level$jscomp$62_or__5025__auto__$jscomp$inline_8585_tag$jscomp$91$$:"1")??"");var $class$$jscomp$63_class$__$1$jscomp$9$$=""+($class$$jscomp$63_class$__$1$jscomp$9$$??"")+" "+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"display")?"main_ui_ds_foundations_typography_heading__display-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"title-large")?"main_ui_ds_foundations_typography_heading__title-large-typography":
"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"title-medium")?"main_ui_ds_foundations_typography_heading__title-medium-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"title-small")?"main_ui_ds_foundations_typography_heading__title-small-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"headline-large")?"main_ui_ds_foundations_typography_heading__headline-large-typography":
"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"headline-medium")?"main_ui_ds_foundations_typography_heading__headline-medium-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"headline-small")?"main_ui_ds_foundations_typography_heading__headline-small-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"body-large")?"main_ui_ds_foundations_typography_heading__body-large-typography":
"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"body-medium")?"main_ui_ds_foundations_typography_heading__body-medium-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"body-small")?"main_ui_ds_foundations_typography_heading__body-small-typography":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography$jscomp$35$$,"code-font")?"main_ui_ds_foundations_typography_heading__code-font-typography":
""));return(0,$APP.$rumext$v2$create_element$$)($level$jscomp$62_or__5025__auto__$jscomp$inline_8585_tag$jscomp$91$$,{...$props$jscomp$312$$,className:$class$$jscomp$63_class$__$1$jscomp$9$$},$children$jscomp$301_props_76589$$)};
$app$main$ui$workspace$sidebar$options$menus$variants_help_modal$variants_help_modal$$=function(){var $on_close$jscomp$30$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$hide_BANG_$$()}),$close_dialog_outside$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$458$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$dom$get_target$$($event$jscomp$458$$),$APP.$app$util$dom$get_current_target$$($event$jscomp$458$$))?
$APP.$app$main$data$modal$hide_BANG_$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$close_dialog_outside$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$on_close$jscomp$30$$,className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-close-btn",
icon:"close",variant:"action","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.title")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-content",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__help-text",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{typography:"body-large",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.intro")}),(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-list",children:[(0,$APP.$rumext$v2$jsxs$$)("li",
{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"text-mixed",size:"m","aria-hidden":!0})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-text",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-large",className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.rule1")})})]}),(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-icon",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"img",size:"m","aria-hidden":!0})}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{typography:"body-large",className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-text",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.rule2")}),
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.rule2.detail")]})]}),(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"folder",size:"m","aria-hidden":!0})}),
$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-text",typography:"body-large",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__rule-item-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.rule3")}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.rule3.detail")]})]})]}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{typography:"body-large",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.outro")})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__help-image",children:(0,$APP.$rumext$v2$jsx$$)("img",{src:"images/help-variant-connection.png",alt:""})})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__button-row",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",className:"main_ui_workspace_sidebar_options_menus_variants_help_modal__modal-accept-btn",onClick:$on_close$jscomp$30$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.confirm-ok")})})]})})};
$app$main$ui$workspace$sidebar$options$menus$component$component_annotation_STAR_$$=function($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$){var $component$jscomp$125_shape_id$jscomp$154$$=$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$.component,$rerender_fn$jscomp$4$$=$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$.rerenderFn,$id$jscomp$913_on_toggle_expand$$=$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$.id;$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$=
$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$.shape;var $main_instance_QMARK_$jscomp$4$$=$APP.$cljs$cst$2030$main_instance$$.$cljs$core$IFn$_invoke$arity$1$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$),$component_id$jscomp$92$$=$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$),$annotation$jscomp$6$$=$APP.$cljs$cst$2499$annotation$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$125_shape_id$jscomp$154$$);
$component$jscomp$125_shape_id$jscomp$154$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$);var $editing_STAR_$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$=$APP.$cljs$core$_deref$$($editing_STAR_$jscomp$4$$);var $invalid_text_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cuerdas$core$blank_QMARK_$$($annotation$jscomp$6$$)}),
$invalid_text_QMARK_$$=$APP.$cljs$core$_deref$$($invalid_text_STAR_$$),$size_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$count$$($annotation$jscomp$6$$)}),$size$jscomp$148$$=$APP.$cljs$core$_deref$$($size_STAR_$$),$textarea_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$state$jscomp$1079$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$options$menus$component$ref_COLON_annotations_state$$),$expanded_QMARK_$jscomp$2$$=$APP.$cljs$cst$3420$expanded$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1079$$),
$create_id$$=$APP.$cljs$cst$4371$id_for_create$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1079$$),$creating_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$913_on_toggle_expand$$,$create_id$$),$adjust_textarea_size$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $temp__5825__auto__$jscomp$349$$=$APP.$rumext$v2$ref_val$$($textarea_ref$$);if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$349$$)){var $text$jscomp$131$$=$APP.$app$util$dom$get_value$$($temp__5825__auto__$jscomp$349$$);
$APP.$cljs$core$reset_BANG_$$($invalid_text_STAR_$$,$APP.$cuerdas$core$blank_QMARK_$$($text$jscomp$131$$));$APP.$cljs$core$reset_BANG_$$($size_STAR_$$,$APP.$cljs$core$count$$($text$jscomp$131$$));return $temp__5825__auto__$jscomp$349$$.parentNode.dataset.replicatedValue=$text$jscomp$131$$}return null});$id$jscomp$913_on_toggle_expand$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($expanded_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$),
$APP.$rumext$v2$adapt$$($creating_QMARK_$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_expanded$$($APP.$cljs$core$not$$($expanded_QMARK_$jscomp$2$$)))});var $on_discard$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($adjust_textarea_size$$),$APP.$rumext$v2$adapt$$($creating_QMARK_$$)],function($event$jscomp$459_temp__5825__auto__$jscomp$350$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$459_temp__5825__auto__$jscomp$350$$);
$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$rerender_fn$jscomp$4$$();$event$jscomp$459_temp__5825__auto__$jscomp$350$$=$APP.$rumext$v2$ref_val$$($textarea_ref$$);return $APP.$cljs$core$truth_$$($event$jscomp$459_temp__5825__auto__$jscomp$350$$)?($app$util$dom$set_value_BANG_$$($event$jscomp$459_temp__5825__auto__$jscomp$350$$,$annotation$jscomp$6$$),$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$4$$,!1),$creating_QMARK_$$&&
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_id_for_create$$(null)),$adjust_textarea_size$$.$cljs$core$IFn$_invoke$arity$0$?$adjust_textarea_size$$.$cljs$core$IFn$_invoke$arity$0$():$adjust_textarea_size$$(),$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$rerender_fn$jscomp$4$$()):null}),$on_edit$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$460_temp__5825__auto__$jscomp$351$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$460_temp__5825__auto__$jscomp$351$$);
$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$rerender_fn$jscomp$4$$();return $main_instance_QMARK_$jscomp$4$$&&($event$jscomp$460_temp__5825__auto__$jscomp$351$$=$APP.$rumext$v2$ref_val$$($textarea_ref$$),$APP.$cljs$core$truth_$$($event$jscomp$460_temp__5825__auto__$jscomp$351$$))?($APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$4$$,!0),$APP.$app$util$dom$focus_BANG_$$($event$jscomp$460_temp__5825__auto__$jscomp$351$$),$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?
$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$rerender_fn$jscomp$4$$()):null}),$on_save$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($creating_QMARK_$$)],function($event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$);$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():
$rerender_fn$jscomp$4$$();$event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$=$APP.$rumext$v2$ref_val$$($textarea_ref$$);if($APP.$cljs$core$truth_$$($event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$)){$event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$=$APP.$app$util$dom$get_value$$($event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$);if($APP.$cuerdas$core$blank_QMARK_$$($event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$))return null;
$APP.$cljs$core$reset_BANG_$$($editing_STAR_$jscomp$4$$,!1);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$update_component_annotation$$($component_id$jscomp$92$$,$event$jscomp$461_temp__5825__auto__$jscomp$352_text$jscomp$132$$));$creating_QMARK_$$&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_id_for_create$$(null));return $rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():
$rerender_fn$jscomp$4$$()}return null}),$on_delete_annotation$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component$jscomp$125_shape_id$jscomp$154$$),$APP.$rumext$v2$adapt$$($component_id$jscomp$92$$),$APP.$rumext$v2$adapt$$($creating_QMARK_$$)],function($event$jscomp$462$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$462$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
5,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2430$confirm$$,$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-component-annotation.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-component-annotation.message"),$APP.$cljs$cst$2433$accept_label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.confirm-ok"),$APP.$cljs$cst$2436$on_accept$$,function(){$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?
$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$rerender_fn$jscomp$4$$();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($creating_QMARK_$$?$app$main$data$workspace$set_annotations_id_for_create$$(null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$update_component_annotation$$($component_id$jscomp$92$$,null),$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$rerender_fn$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():
$rerender_fn$jscomp$4$$()]))}],null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component$jscomp$125_shape_id$jscomp$154$$),$APP.$rumext$v2$adapt$$($state$jscomp$1079$$),$APP.$rumext$v2$adapt$$($create_id$$),$APP.$rumext$v2$adapt$$($creating_QMARK_$$)],function(){var $temp__5825__auto___76766$$=$APP.$rumext$v2$ref_val$$($textarea_ref$$);$APP.$cljs$core$truth_$$($temp__5825__auto___76766$$)&&($app$util$dom$set_value_BANG_$$($temp__5825__auto___76766$$,
$annotation$jscomp$6$$),$adjust_textarea_size$$.$cljs$core$IFn$_invoke$arity$0$?$adjust_textarea_size$$.$cljs$core$IFn$_invoke$arity$0$():$adjust_textarea_size$$());$creating_QMARK_$$||$create_id$$==null||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_id_for_create$$(null));return function(){return $creating_QMARK_$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_annotations_id_for_create$$(null)):
null}});return $APP.$cljs$core$truth_$$($creating_QMARK_$$?$creating_QMARK_$$:$annotation$jscomp$6$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__annotation "+($APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?"main_ui_workspace_sidebar_options_menus_component__editing":"")+" "+($creating_QMARK_$$?"main_ui_workspace_sidebar_options_menus_component__creating":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$id$jscomp$913_on_toggle_expand$$,
className:"main_ui_workspace_sidebar_options_menus_component__annotation-title "+($APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$:$creating_QMARK_$$)?"main_ui_workspace_sidebar_options_menus_component__expandeable":"")+" "+($APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$2$$)?"main_ui_workspace_sidebar_options_menus_component__expanded":""),children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?
$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$:$creating_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-name",children:$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.edit-annotation"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.create-annotation")}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$2$$)?"arrow-down":"arrow-right",className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-arrow",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.annotation")})]}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-actions",children:$main_instance_QMARK_$jscomp$4$$&&$expanded_QMARK_$jscomp$2$$?$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$||$creating_QMARK_$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$creating_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.create"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.save"),
onClick:$on_save$$,className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-action",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-ok "+($APP.$cljs$core$truth_$$($invalid_text_QMARK_$$)?"main_ui_workspace_sidebar_options_menus_component__disabled":"")})}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.discard"),
onClick:$on_discard$$,className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-action",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"close",className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-nok"})})]}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.edit"),onClick:$on_edit$jscomp$7$$,
className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-action",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"curve",className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-ok"})}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete"),onClick:$on_delete_annotation$$,className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-action",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"delete",className:"main_ui_workspace_sidebar_options_menus_component__annotation-title-icon-nok"})})]}):null})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:$APP.$cljs$core$not$$($expanded_QMARK_$jscomp$2$$)?"main_ui_workspace_sidebar_options_menus_component__annotation-body-hidden":"",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__annotation-body",
children:(0,$APP.$rumext$v2$jsx$$)("textarea",{"data-debug":$annotation$jscomp$6$$,onInput:$adjust_textarea_size$$,className:"main_ui_workspace_sidebar_options_menus_component__annotation-textarea",id:"annotation-textarea",maxLength:300,readOnly:$APP.$cljs$core$not$$($creating_QMARK_$$?$creating_QMARK_$$:$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$),ref:$textarea_ref$$,defaultValue:$annotation$jscomp$6$$,autoFocus:$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?
$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$:$creating_QMARK_$$})}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$)?$editing_QMARK_$jscomp$9_props_76606_shape$jscomp$955$$:$creating_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__annotation-counter",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$148$$),"/300"].join("")}):null]})]}):null};
$app$main$ui$workspace$sidebar$options$menus$component$get_variant_malformed_warning_message$$=function($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$),1)&&$APP.$cljs$core$first$$($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$)!=
null)$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.single.one");else if($APP.$cljs$core$seq$$($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$)&&$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$some_QMARK_$$,$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$))$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$=
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.single.all");else{var $and__5023__auto__$jscomp$inline_8587$$=$APP.$cljs$core$seq$$($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$);$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$=$and__5023__auto__$jscomp$inline_8587$$?$APP.$cljs$core$some$$($APP.$cljs$core$some_QMARK_$$,
$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$):$and__5023__auto__$jscomp$inline_8587$$;$JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.single.some"):
null}return $JSCompiler_inline_result$jscomp$1770_JSCompiler_temp$jscomp$1768_JSCompiler_temp$jscomp$1769_malformed_list$$};
$app$main$ui$workspace$sidebar$options$menus$component$get_variant_duplicated_warning_message$$=function($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$),1)&&$APP.$cljs$core$first$$($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$)!=
null)$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.single.one");else if($APP.$cljs$core$seq$$($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$)&&$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$some_QMARK_$$,$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$))$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$=
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.single.all");else{var $and__5023__auto__$jscomp$inline_8589$$=$APP.$cljs$core$seq$$($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$);$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$=$and__5023__auto__$jscomp$inline_8589$$?$APP.$cljs$core$some$$($APP.$cljs$core$some_QMARK_$$,
$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$):$and__5023__auto__$jscomp$inline_8589$$;$JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.single.some"):
null}return $JSCompiler_inline_result$jscomp$1773_JSCompiler_temp$jscomp$1771_JSCompiler_temp$jscomp$1772_duplicated_list$$};
$app$main$ui$workspace$sidebar$options$menus$component$get_components_with_duplicated_variant_props_and_values$$=function($components$jscomp$17$$){var $duplicated_props$$=$APP.$cljs$core$set$$($APP.$cljs$core$keys$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76609_SHARP_$$){return $APP.$cljs$core$_val$$($p1__76609_SHARP_$$)>1},$APP.$cljs$core$frequencies$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1986$variant_properties$$,$components$jscomp$17$$)))));
return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($G__76611_p1__76610_SHARP_$$){$G__76611_p1__76610_SHARP_$$=$APP.$cljs$cst$1986$variant_properties$$.$cljs$core$IFn$_invoke$arity$1$($G__76611_p1__76610_SHARP_$$);return $duplicated_props$$.$cljs$core$IFn$_invoke$arity$1$?$duplicated_props$$.$cljs$core$IFn$_invoke$arity$1$($G__76611_p1__76610_SHARP_$$):$duplicated_props$$($G__76611_p1__76610_SHARP_$$)},$components$jscomp$17$$)};
$app$main$ui$workspace$sidebar$options$menus$component$get_main_ids_with_duplicated_variant_props_and_values$$=function($components$jscomp$18$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2045$main_instance_id$$,$app$main$ui$workspace$sidebar$options$menus$component$get_components_with_duplicated_variant_props_and_values$$($components$jscomp$18$$))};
$app$main$ui$workspace$sidebar$options$menus$component$get_variant_options$$=function($prop_name$jscomp$1$$,$prop_vals$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($val$jscomp$203$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$266$id$$,$val$jscomp$203$$,$APP.$cljs$cst$2245$label$$,$APP.$cuerdas$core$blank_QMARK_$$($val$jscomp$203$$)?["(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.empty")),
")"].join(""):$val$jscomp$203$$],null)},$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76612_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76612_SHARP_$$),$prop_name$jscomp$1$$)},$prop_vals$$))))};
$app$main$ui$workspace$sidebar$options$menus$component$component_variant_property_STAR_$$=function($dprops$jscomp$3_on_drop$jscomp$11_props_76613$$){var $options$jscomp$608$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.options,$on_prop_value_change$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.onPropValueChange,$pos$jscomp$138$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.pos,$on_reorder$jscomp$1$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.onReorder,$on_prop_name_blur$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.onPropNameBlur,
$prop$jscomp$32$$=$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$.prop;$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($relative_pos$jscomp$1_to_space_between_pos$jscomp$11$$,$data$jscomp$465_from_pos$jscomp$11$$){$data$jscomp$465_from_pos$jscomp$11$$=$cljs$cst$5422$from_pos$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$465_from_pos$jscomp$11$$);$relative_pos$jscomp$1_to_space_between_pos$jscomp$11$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($relative_pos$jscomp$1_to_space_between_pos$jscomp$11$$,
$APP.$cljs$cst$2636$bot$$)?$pos$jscomp$138$$+1:$pos$jscomp$138$$;return $on_reorder$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$465_from_pos$jscomp$11$$,$relative_pos$jscomp$1_to_space_between_pos$jscomp$11$$):$on_reorder$jscomp$1$$($data$jscomp$465_from_pos$jscomp$11$$,$relative_pos$jscomp$1_to_space_between_pos$jscomp$11$$)});var $on_prop_value_change__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_prop_value_change$$),
$APP.$rumext$v2$adapt$$($pos$jscomp$138$$)],function($value$jscomp$793$$){return $on_prop_value_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_prop_value_change$$.$cljs$core$IFn$_invoke$arity$2$($pos$jscomp$138$$,$value$jscomp$793$$):$on_prop_value_change$$($pos$jscomp$138$$,$value$jscomp$793$$)}),$dref$jscomp$3_vec__76614$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,
"penpot/variant-property",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$,$APP.$cljs$cst$2643$draggable_QMARK_$$,!0,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5422$from_pos$$,$pos$jscomp$138$$],null)]));$dprops$jscomp$3_on_drop$jscomp$11_props_76613$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$3_vec__76614$$,0,null);$dref$jscomp$3_vec__76614$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$3_vec__76614$$,
1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$3_on_drop$jscomp$11_props_76613$$),$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_options_menus_component__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$3_on_drop$jscomp$11_props_76613$$),
$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_options_menus_component__dnd-over-bot":""),children:[$on_reorder$jscomp$1$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,{ref:$dref$jscomp$3_vec__76614$$}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-container",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-name-wrapper",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$input_with_meta$input_with_meta_STAR_$$,{value:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$32$$),isEditing:$APP.$cljs$cst$3392$editing_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($prop$jscomp$32$$)),maxLength:60,"data-position":$pos$jscomp$138$$,onBlur:$on_prop_name_blur$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-value-wrapper",
children:function(){var $mixed_value_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$32$$),!1);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$combobox$combobox_STAR_$$,{id:["variant-prop-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$138$$)].join(""),placeholder:$mixed_value_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",defaultSelected:$mixed_value_QMARK_$$?
"":$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$32$$),options:$options$jscomp$608$$,emptyToEnd:!0,maxLength:60,onChange:$on_prop_value_change__$1$$})}()})]})]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_variant_STAR_$$=function($component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$){var $data$jscomp$466$$=$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$.data,$malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$=$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$.shapes,$components$jscomp$19$$=$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$.components;
$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$=$APP.$cljs$core$first$$($components$jscomp$19$$);var $variant_id$jscomp$49$$=$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$),$objects$jscomp$761$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($data$jscomp$466$$,$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$)),
$APP.$cljs$cst$1615$objects$$);$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1986$variant_properties$$,$components$jscomp$19$$);var $component_ids$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($components$jscomp$19$$)],function(){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$components$jscomp$19$$)});$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$=
$APP.$cljs$core$count$$($component_ids$jscomp$7$$)>1?$app$common$types$variant$compare_properties$cljs$0core$0IFn$0_invoke$0arity$02$$($component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$):$APP.$cljs$core$first$$($component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$);$malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1988$variant_error$$,$malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$);
$malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$=$app$main$ui$workspace$sidebar$options$menus$component$get_variant_malformed_warning_message$$($malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$);var $duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$=$APP.$cljs$core$set$$($app$main$ui$workspace$sidebar$options$menus$component$get_main_ids_with_duplicated_variant_props_and_values$$($APP.$app$common$files$variant$find_variant_components$cljs$0core$0IFn$0_invoke$0arity$03$$($data$jscomp$466$$,
$objects$jscomp$761$$,$variant_id$jscomp$49$$)));$duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2045$main_instance_id$$,$components$jscomp$19$$));$duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$=$app$main$ui$workspace$sidebar$options$menus$component$get_variant_duplicated_warning_message$$($duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$);
var $prop_vals$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$466$$),$APP.$rumext$v2$adapt$$($objects$jscomp$761$$),$APP.$rumext$v2$adapt$$($variant_id$jscomp$49$$)],function(){return $APP.$app$common$files$variant$extract_properties_values$$($data$jscomp$466$$,$objects$jscomp$761$$,$variant_id$jscomp$49$$)}),$get_options$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($prop_vals$jscomp$1$$)],function($prop_name$jscomp$2$$){return $app$main$ui$workspace$sidebar$options$menus$component$get_variant_options$$($prop_name$jscomp$2$$,
$prop_vals$jscomp$1$$)}),$update_property_value$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component_ids$jscomp$7$$)],function($pos$jscomp$139$$,$value$jscomp$794_value__$1$jscomp$45$$){$value$jscomp$794_value__$1$jscomp$45$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$794_value__$1$jscomp$45$$),"");for(var $c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$=
$APP.$cljs$core$seq$$($component_ids$jscomp$7$$),$G__76782_chunk__76624_seq__76623__$1$$=null,$G__76781_count__76625$$=0,$i__76626$$=0;;)if($i__76626$$<$G__76781_count__76625$$){var $G__76783_id$jscomp$914$$=$G__76782_chunk__76624_seq__76623__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__76626$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"variant-edit-property-value",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:combo-design-tab"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$update_property_value$$($G__76783_id$jscomp$914$$,$pos$jscomp$139$$,$value$jscomp$794_value__$1$jscomp$45$$)]));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$update_error$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76783_id$jscomp$914$$,
null));$i__76626$$+=1}else if($c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$))$G__76782_chunk__76624_seq__76623__$1$$=$c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__76782_chunk__76624_seq__76623__$1$$)?($c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$=$APP.$cljs$core$_chunked_first$$($G__76782_chunk__76624_seq__76623__$1$$),
$G__76781_count__76625$$=$APP.$cljs$core$_chunked_rest$$($G__76782_chunk__76624_seq__76623__$1$$),$G__76782_chunk__76624_seq__76623__$1$$=$c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$,$G__76783_id$jscomp$914$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$),$c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$=$G__76781_count__76625$$,$G__76781_count__76625$$=$G__76783_id$jscomp$914$$):($G__76783_id$jscomp$914$$=
$APP.$cljs$core$first$$($G__76782_chunk__76624_seq__76623__$1$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"variant-edit-property-value",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:combo-design-tab"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$update_property_value$$($G__76783_id$jscomp$914$$,
$pos$jscomp$139$$,$value$jscomp$794_value__$1$jscomp$45$$)])),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$update_error$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76783_id$jscomp$914$$,null)),$c__5548__auto__$jscomp$43_seq__76623_temp__5825__auto__$jscomp$353$$=$APP.$cljs$core$next$$($G__76782_chunk__76624_seq__76623__$1$$),$G__76782_chunk__76624_seq__76623__$1$$=null,$G__76781_count__76625$$=0),$i__76626$$=0;else return null}),$update_property_name$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$49$$)],function($event$jscomp$463_pos$jscomp$140$$){var $value$jscomp$795$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$463_pos$jscomp$140$$));$event$jscomp$463_pos$jscomp$140$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$463_pos$jscomp$140$$),"position")|0;return $APP.$cljs$core$seq$$($value$jscomp$795$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$update_property_name$$($variant_id$jscomp$49$$,$event$jscomp$463_pos$jscomp$140$$,$value$jscomp$795$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4269$trigger$$,"workspace:design-tab-variant"],null))):null}),$reorder_properties$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$49$$)],function($from_pos$jscomp$12$$,$to_space_between_pos$jscomp$12$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$variants$reorder_variant_poperties$$($variant_id$jscomp$49$$,
$from_pos$jscomp$12$$,$to_space_between_pos$jscomp$12$$))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$175$$,$p__76631_prop$jscomp$33$$){var $pos$jscomp$141$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76631_prop$jscomp$33$$,
0,null);$p__76631_prop$jscomp$33$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76631_prop$jscomp$33$$,1,null);var $JSCompiler_temp_const$jscomp$1774$$=$out_arr__44057__auto__$jscomp$175$$.push;var $G__76635$jscomp$inline_8591_JSCompiler_inline_result$jscomp$1776$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p__76631_prop$jscomp$33$$);$G__76635$jscomp$inline_8591_JSCompiler_inline_result$jscomp$1776$$=$get_options$$.$cljs$core$IFn$_invoke$arity$1$?$get_options$$.$cljs$core$IFn$_invoke$arity$1$($G__76635$jscomp$inline_8591_JSCompiler_inline_result$jscomp$1776$$):
$get_options$$($G__76635$jscomp$inline_8591_JSCompiler_inline_result$jscomp$1776$$);$JSCompiler_temp_const$jscomp$1774$$.call($out_arr__44057__auto__$jscomp$175$$,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_variant_property_STAR_$$,{pos:$pos$jscomp$141$$,prop:$p__76631_prop$jscomp$33$$,options:$G__76635$jscomp$inline_8591_JSCompiler_inline_result$jscomp$1776$$,onPropNameBlur:$update_property_name$$,onPropValueChange:$update_property_value$$,onReorder:$reorder_properties$$},
[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($variant_id$jscomp$49$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$141$$)].join("")));return $out_arr__44057__auto__$jscomp$175$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$component$jscomp$126_properties$jscomp$106_props_76617_props_list$jscomp$2$$))})}),$APP.$cljs$core$truth_$$($malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$)?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($malformed_list$jscomp$1_malformed_msg_shapes$jscomp$196$$),
" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.structure.title"))].join("")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.structure.example")})]}):$APP.$cljs$core$truth_$$($duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($duplicated_ids$jscomp$1_duplicated_list$jscomp$1_duplicated_msg$$)})]}):
null]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_variant_copy_STAR_$$=function($component$jscomp$127_props_76639_select_duplicated_comps$$){var $shapes$jscomp$197$$=$component$jscomp$127_props_76639_select_duplicated_comps$$.shapes,$component_file_data$jscomp$1$$=$component$jscomp$127_props_76639_select_duplicated_comps$$.componentFileData,$components$jscomp$20_props_first$$=$component$jscomp$127_props_76639_select_duplicated_comps$$.components,$current_file_id$jscomp$16$$=$component$jscomp$127_props_76639_select_duplicated_comps$$.currentFileId;
$component$jscomp$127_props_76639_select_duplicated_comps$$=$APP.$cljs$core$first$$($components$jscomp$20_props_first$$);var $shape$jscomp$956$$=$APP.$cljs$core$first$$($shapes$jscomp$197$$),$properties$jscomp$107$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1986$variant_properties$$,$components$jscomp$20_props_first$$);$components$jscomp$20_props_first$$=$APP.$cljs$cst$1986$variant_properties$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$127_props_76639_select_duplicated_comps$$);
var $variant_id$jscomp$50$$=$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$127_props_76639_select_duplicated_comps$$),$component_page_objects$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($component_file_data$jscomp$1$$,$APP.$cljs$cst$2046$main_instance_page$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$127_props_76639_select_duplicated_comps$$)),$APP.$cljs$cst$1615$objects$$),$variant_comps$jscomp$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component_file_data$jscomp$1$$),$APP.$rumext$v2$adapt$$($component_page_objects$jscomp$1$$),$APP.$rumext$v2$adapt$$($variant_id$jscomp$50$$)],function(){return $APP.$app$common$files$variant$find_variant_components$cljs$0core$0IFn$0_invoke$0arity$03$$($component_file_data$jscomp$1$$,$component_page_objects$jscomp$1$$,$variant_id$jscomp$50$$)}),$duplicated_comps$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_comps$jscomp$1$$)],
function(){return $app$main$ui$workspace$sidebar$options$menus$component$get_components_with_duplicated_variant_props_and_values$$($variant_comps$jscomp$1$$)}),$malformed_comps$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_comps$jscomp$1$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76636_SHARP_$$){return $APP.$cljs$cst$1988$variant_error$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($component_page_objects$jscomp$1$$,
$APP.$cljs$cst$2045$main_instance_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76636_SHARP_$$)))},$variant_comps$jscomp$1$$)}),$prop_vals$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($component_file_data$jscomp$1$$),$APP.$rumext$v2$adapt$$($component_page_objects$jscomp$1$$),$APP.$rumext$v2$adapt$$($variant_id$jscomp$50$$)],function(){return $APP.$app$common$files$variant$extract_properties_values$$($component_file_data$jscomp$1$$,$component_page_objects$jscomp$1$$,
$variant_id$jscomp$50$$)}),$get_options$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($prop_vals$jscomp$2$$)],function($prop_name$jscomp$3$$){return $app$main$ui$workspace$sidebar$options$menus$component$get_variant_options$$($prop_name$jscomp$3$$,$prop_vals$jscomp$2$$)});$component$jscomp$127_props_76639_select_duplicated_comps$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_file_id$jscomp$16$$),$APP.$rumext$v2$adapt$$($shape$jscomp$956$$),
$APP.$rumext$v2$adapt$$($duplicated_comps$$)],function(){var $ids$jscomp$267$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$duplicated_comps$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_file_id$jscomp$16$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$956$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$go_to_local_component$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$266$id$$,$APP.$cljs$core$first$$($ids$jscomp$267$$),$APP.$cljs$cst$3779$additional_ids$$,$APP.$cljs$core$rest$$($ids$jscomp$267$$)],null)]))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$go_to_component_file$$($APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$956$$),$APP.$cljs$core$first$$($duplicated_comps$$),!1))});var $select_malformed_comps$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_file_id$jscomp$16$$),
$APP.$rumext$v2$adapt$$($shape$jscomp$956$$),$APP.$rumext$v2$adapt$$($malformed_comps$$)],function(){var $ids$jscomp$268$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$malformed_comps$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_file_id$jscomp$16$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$956$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$go_to_local_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$266$id$$,
$APP.$cljs$core$first$$($ids$jscomp$268$$),$APP.$cljs$cst$3779$additional_ids$$,$APP.$cljs$core$rest$$($ids$jscomp$268$$)]))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$libraries$go_to_component_file$$($APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$956$$),$APP.$cljs$core$first$$($malformed_comps$$),!1))}),$key_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$uuid$next$$()),$key$jscomp$412$$=
$APP.$cljs$core$_deref$$($key_STAR_$$),$mixed_label$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),$switch_component$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$197$$)],function($pos$jscomp$142$$,$val$jscomp$204$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($val$jscomp$204$$,$mixed_label$$))return $APP.$cljs$core$reset_BANG_$$($key_STAR_$$,$APP.$app$common$uuid$next$$());var $error_msg$$=$APP.$cljs$core$count$$($shapes$jscomp$197$$)>
1?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.component.switch.loop-error-multi"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.component.swap.loop-error");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$variants_switch$$($APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1598$shapes$$,$shapes$jscomp$197$$,$APP.$cljs$cst$1395$pos$$,$pos$jscomp$142$$,
$APP.$cljs$cst$108$val$$,$val$jscomp$204$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1281$on_error$$,function(){$APP.$cljs$core$reset_BANG_$$($key_STAR_$$,$APP.$app$common$uuid$next$$());return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$warn$cljs$0core$0IFn$0_invoke$0arity$02$$($error_msg$$))}],null))))}),$switch_component_toggle$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$197$$)],
function($pos$jscomp$143$$,$boolean_pair_inverted_boolean_pair$$,$val$jscomp$205_val__$1$jscomp$16$$){$boolean_pair_inverted_boolean_pair$$=$app$common$data$invert_map$$($boolean_pair_inverted_boolean_pair$$);$val$jscomp$205_val__$1$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($boolean_pair_inverted_boolean_pair$$,$val$jscomp$205_val__$1$jscomp$16$$);return $switch_component$$.$cljs$core$IFn$_invoke$arity$2$?$switch_component$$.$cljs$core$IFn$_invoke$arity$2$($pos$jscomp$143$$,
$val$jscomp$205_val__$1$jscomp$16$$):$switch_component$$($pos$jscomp$143$$,$val$jscomp$205_val__$1$jscomp$16$$)});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$176$$,$p__76644$$){var $pos$jscomp$144$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76644$$,
0,null),$prop$jscomp$34$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76644$$,1,null);$out_arr__44057__auto__$jscomp$176$$.push(function(){var $mixed_value_QMARK_$jscomp$1$$=$cljs$core$not_every_QMARK_$$(function($p1__76638_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$),$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($p1__76638_SHARP_$$,
$pos$jscomp$144$$)))},$properties$jscomp$107$$),$options$jscomp$609_options__$1$jscomp$81$$=function(){var $G__76649$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$);return $get_options$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$get_options$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__76649$$):$get_options$jscomp$1$$($G__76649$$)}(),$boolean_pair$jscomp$1$$=$app$common$types$variant$find_boolean_pair$$($APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,
$options$jscomp$609_options__$1$jscomp$81$$));$options$jscomp$609_options__$1$jscomp$81$$=$mixed_value_QMARK_$jscomp$1$$?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($options$jscomp$609_options__$1$jscomp$81$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,$mixed_label$$,$APP.$cljs$cst$2245$label$$,$mixed_label$$,$APP.$cljs$cst$5066$dimmed$$,!0],null)):$options$jscomp$609_options__$1$jscomp$81$$;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-container",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$),className:"main_ui_workspace_sidebar_options_menus_component__variant-property-name-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$)})}),$APP.$cljs$core$truth_$$($boolean_pair$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-value-switch-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$switch$0$switch_STAR_$$,{defaultChecked:$mixed_value_QMARK_$jscomp$1$$?null:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($boolean_pair$jscomp$1$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$)),onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($switch_component_toggle$$,$pos$jscomp$144$$,
$boolean_pair$jscomp$1$$)},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$412$$)].join(""))}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-value-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$controls$select$select_STAR_$$,{defaultSelected:$mixed_value_QMARK_$jscomp$1$$?
$mixed_label$$:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$),options:$options$jscomp$609_options__$1$jscomp$81$$,emptyToEnd:!0,onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($switch_component$$,$pos$jscomp$144$$)},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prop$jscomp$34$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$412$$)].join(""))})]},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$144$$),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($mixed_value_QMARK_$jscomp$1$$)].join(""))}());return $out_arr__44057__auto__$jscomp$176$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$components$jscomp$20_props_first$$))}),$APP.$cljs$core$seq$$($malformed_comps$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.copy")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$select_malformed_comps$$,className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-button",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.locate")})]}):$APP.$cljs$core$seq$$($duplicated_comps$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.copy.title")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$component$jscomp$127_props_76639_select_duplicated_comps$$,className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.copy.locate")})]}):
null]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_swap_item_STAR_$$=function($component_id$jscomp$93_props_76653$$){var $is_search$$=$component_id$jscomp$93_props_76653$$.isSearch,$shapes$jscomp$198$$=$component_id$jscomp$93_props_76653$$.shapes,$listing_thumbs$$=$component_id$jscomp$93_props_76653$$.listingThumbs,$file_id$jscomp$369$$=$component_id$jscomp$93_props_76653$$.fileId,$root_shape$jscomp$12$$=$component_id$jscomp$93_props_76653$$.rootShape,$num_variants$jscomp$1$$=$component_id$jscomp$93_props_76653$$.numVariants,
$item$jscomp$125$$=$component_id$jscomp$93_props_76653$$.item,$loop$$=$component_id$jscomp$93_props_76653$$.loop,$container$jscomp$86$$=$component_id$jscomp$93_props_76653$$.container;$component_id$jscomp$93_props_76653$$=$component_id$jscomp$93_props_76653$$.componentId;var $on_select$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$198$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$369$$),$APP.$rumext$v2$adapt$$($item$jscomp$125$$)],function(){return $APP.$cljs$core$truth_$$($loop$$)?
null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$libraries$component_multi_swap$$($shapes$jscomp$198$$,$file_id$jscomp$369$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$specialized_panel$clear_specialized_panel$$()]))}),$item_ref$jscomp$7$$=(0,$APP.$rumext$v2$use_ref$$)(),$visible_QMARK_$jscomp$2$$=$APP.$app$main$ui$hooks$use_visible$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($item_ref$jscomp$7$$);
return(0,$APP.$rumext$v2$jsxs$$)("button",{ref:$item_ref$jscomp$7$$,onClick:$on_select$jscomp$4$$,disabled:$loop$$,className:($APP.$cljs$core$not$$($listing_thumbs$$)?"main_ui_workspace_sidebar_options_menus_component__swap-item-list":"")+" "+($APP.$cljs$core$truth_$$($listing_thumbs$$)?"main_ui_workspace_sidebar_options_menus_component__swap-item-grid":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$),$component_id$jscomp$93_props_76653$$)?
"main_ui_workspace_sidebar_options_menus_component__selected":""),children:[$APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$common$component_item_thumbnail_STAR_$$,{fileId:$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$),className:"main_ui_workspace_sidebar_options_menus_component__swap-item-thumbnail",rootShape:$root_shape$jscomp$12$$,component:$item$jscomp$125$$,container:$container$jscomp$86$$}):
null,(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$core$truth_$$($is_search$$)?$cljs$cst$5423$full_name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$),className:"main_ui_workspace_sidebar_options_menus_component__swap-item-name",children:$APP.$cljs$core$truth_$$($is_search$$)?$cljs$cst$5423$full_name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$)}),
$APP.$app$common$types$component$is_variant_QMARK_$$($item$jscomp$125$$)?(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.assets.components.num-variants",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$num_variants$jscomp$1$$])),className:"main_ui_workspace_sidebar_options_menus_component__swap-item-variant-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"variant",
size:"s"})}):null]},["swap-item-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$125$$))].join(""))};
$app$main$ui$workspace$sidebar$options$menus$component$component_swap_group_title_STAR_$$=function($props_76658$$){var $on_enter_group$$=$props_76658$$.onEnterGroup,$group_name$jscomp$5$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($props_76658$$.item);return(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:function(){return $on_enter_group$$.$cljs$core$IFn$_invoke$arity$1$?$on_enter_group$$.$cljs$core$IFn$_invoke$arity$1$($group_name$jscomp$5$$):$on_enter_group$$($group_name$jscomp$5$$)},title:$group_name$jscomp$5$$,
className:"main_ui_workspace_sidebar_options_menus_component__swap-group",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_component__swap-group-name",children:$APP.$cljs$core$last$$($APP.$app$common$path_names$split_path$$($group_name$jscomp$5$$))}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_component__swap-group-icon",variant:"ghost",iconId:"arrow-right",size:"s"})]})};
$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$01$$=function($components$jscomp$21_paths$jscomp$6$$){$components$jscomp$21_paths$jscomp$6$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$path_names$split_path$$,$APP.$cljs$cst$294$path$$),$components$jscomp$21_paths$jscomp$6$$);return $app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$03$$($components$jscomp$21_paths$jscomp$6$$,
$APP.$cljs$core$PersistentVector$EMPTY$$,0)};
$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$03$$=function($paths$jscomp$7$$,$path$jscomp$273$$,$n$jscomp$301$$){var $current$jscomp$57$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$first$$($paths$jscomp$7$$),$n$jscomp$301$$,null);return $current$jscomp$57$$!=null&&$APP.$cljs$core$every_QMARK_$$(function($p1__76659_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current$jscomp$57$$,$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p1__76659_SHARP_$$,
$n$jscomp$301$$,null))},$paths$jscomp$7$$)?$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$03$$($paths$jscomp$7$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$273$$,$current$jscomp$57$$),$n$jscomp$301$$+1):$path$jscomp$273$$};
$app$main$ui$workspace$sidebar$options$menus$component$same_component_file_QMARK_$$=function($shape_a$$,$shape_b$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape_a$$),$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape_b$$))};
$app$main$ui$workspace$sidebar$options$menus$component$same_component_QMARK_$$=function($shape_a$jscomp$1$$,$shape_b$jscomp$1$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_a$jscomp$1$$),$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($shape_b$jscomp$1$$))};
$app$main$ui$workspace$sidebar$options$menus$component$component_swap_STAR_$$=function($current_file_id$jscomp$17_current_lib_name_props_76678$$){var $shapes$jscomp$199$$=$current_file_id$jscomp$17_current_lib_name_props_76678$$.shapes,$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($shapes$jscomp$199$$)),$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$=$APP.$cljs$core$first$$($shapes$jscomp$199$$);
$current_file_id$jscomp$17_current_lib_name_props_76678$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);var $libraries$jscomp$139$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$libraries$$),$objects$jscomp$762$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$=$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$sidebar$options$menus$component$same_component_file_QMARK_$$,
$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$),$shapes$jscomp$199$$),$component_id$jscomp$94$$=$APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$sidebar$options$menus$component$same_component_QMARK_$$,$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$),$shapes$jscomp$199$$)?$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$):
null;$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$=$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$?$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$):$current_file_id$jscomp$17_current_lib_name_props_76678$$;var $components$jscomp$22_on_library_change$jscomp$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76668_SHARP_$$){return $APP.$app$common$types$file$get_component$$($libraries$jscomp$139$$,
$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($p1__76668_SHARP_$$),$APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76668_SHARP_$$))},$shapes$jscomp$199$$);$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$=$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$?$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($components$jscomp$22_on_library_change$jscomp$1$$)):$APP.$app$common$path_names$join_path$$($components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$?
$app$main$ui$workspace$sidebar$options$menus$component$find_common_path$cljs$0core$0IFn$0_invoke$0arity$01$$($components$jscomp$22_on_library_change$jscomp$1$$):"");var $filters_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2470$term$$,"",$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$,$APP.$cljs$cst$294$path$$,$APP.$cljs$core$truth_$$($groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$)?
$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$:"",$cljs$cst$5424$listing_thumbs_QMARK_$$,!1],null)),$filters$jscomp$13$$=$APP.$cljs$core$_deref$$($filters_STAR_$jscomp$1$$),$search_QMARK_$$=!$APP.$cuerdas$core$blank_QMARK_$$($APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$)),$current_library_id$$=$APP.$cljs$core$contains_QMARK_$$($libraries$jscomp$139$$,$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?
$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$):$current_file_id$jscomp$17_current_lib_name_props_76678$$;$current_file_id$jscomp$17_current_lib_name_props_76678$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_library_id$$,$current_file_id$jscomp$17_current_lib_name_props_76678$$)?$APP.$cuerdas$core$upper$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.local-library")):$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$139$$,
$current_library_id$$),$APP.$cljs$cst$723$name$$);var $current_lib_data$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($libraries$jscomp$139$$),$APP.$rumext$v2$adapt$$($current_library_id$$)],function(){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$139$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$current_library_id$$,$APP.$cljs$cst$142$data$$],null))}),$current_lib_counts$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_lib_data$$)],function(){return $APP.$cljs$core$update_vals$$($APP.$cljs$core$group_by$$($APP.$cljs$cst$1985$variant_id$$,$APP.$app$common$types$components_list$components_seq$$($current_lib_data$$)),$APP.$cljs$core$count$$)});$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76671_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76671_SHARP_$$,
$cljs$cst$5423$full_name$$,$app$common$path_names$merge_path_item_with_dot$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76671_SHARP_$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76671_SHARP_$$)))},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76670_SHARP_$$){return $APP.$app$common$files$variant$is_secondary_variant_QMARK_$$($p1__76670_SHARP_$$,$current_lib_data$$)},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76669_SHARP_$$){return $APP.$cljs$cst$2498$deleted$$.$cljs$core$IFn$_invoke$arity$1$($p1__76669_SHARP_$$)===
!0},$APP.$cljs$core$vals$$($APP.$cljs$cst$1622$components$$.$cljs$core$IFn$_invoke$arity$1$($current_lib_data$$)))));$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$),$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($path__$1$jscomp$10_split_path$jscomp$1$$){$path__$1$jscomp$10_split_path$jscomp$1$$=$APP.$app$common$path_names$split_path$$($path__$1$jscomp$10_split_path$jscomp$1$$);
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$145$$,$dir$jscomp$5$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$145$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$last$$($acc$jscomp$145$$))," / ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($dir$jscomp$5$$)].join(""))},new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($path__$1$jscomp$10_split_path$jscomp$1$$)],
null),$APP.$cljs$core$rest$$($path__$1$jscomp$10_split_path$jscomp$1$$))}),$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$empty_QMARK_$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$nil_QMARK_$$),$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$0$(),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76672_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($app$common$path_names$butlast_path$$($p1__76672_SHARP_$$),
$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))})]));$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$=$search_QMARK_$$?null:$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($name$jscomp$429$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$723$name$$,$name$jscomp$429$$],null)},$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$,
$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$)));$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$=$search_QMARK_$$?$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76673_SHARP_$$){return $APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($cljs$cst$5423$full_name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76673_SHARP_$$)),$APP.$cuerdas$core$lower$$($APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$)))},
$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$):$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76674_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($p1__76674_SHARP_$$),$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))},$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$);$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$=
$APP.$cljs$core$truth_$$($search_QMARK_$$?$search_QMARK_$$:$cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5423$full_name$$,$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$):$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$,
$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$));$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$762$$)],function($shape__$1$jscomp$104$$){return $APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$nil_QMARK_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1611$component_id$$,$APP.$app$common$files$helpers$get_parents$$($objects$jscomp$762$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$104$$))))});var $parent_components$jscomp$1$$=$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$shapes$jscomp$199$$]));$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($library$jscomp$40$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$40$$),$APP.$cljs$cst$2245$label$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($library$jscomp$40$$)],null)},$APP.$cljs$core$vals$$($libraries$jscomp$139$$));$components$jscomp$22_on_library_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$915$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($filters_STAR_$jscomp$1$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1628$file_id$$,$id$jscomp$915$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2470$term$$,"",$APP.$cljs$cst$294$path$$,""]))});var $on_search_term_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($term$jscomp$10$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$jscomp$1$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2470$term$$,$term$jscomp$10$$)}),$on_search_clear_click$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$jscomp$1$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2470$term$$,"")}),$on_go_back$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$jscomp$1$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$294$path$$,$app$common$path_names$butlast_path$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$)))}),$on_enter_group$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76675_SHARP_$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$jscomp$1$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$294$path$$,$p1__76675_SHARP_$$)}),$toggle_list_style$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($style$jscomp$74$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$jscomp$1$$,
$APP.$cljs$core$assoc$$,$cljs$cst$5424$listing_thumbs_QMARK_$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($style$jscomp$74$$,"grid"))}),$filter_path_with_dots$$=$app$common$path_names$join_path_with_dot$$($APP.$app$common$path_names$split_path$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$)));return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-title",
children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.swap")})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-filters",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{id:"swap-component-search-filter",
iconId:"search",value:$APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$),placeholder:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.search"))," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$139$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$current_library_id$$,
$APP.$cljs$cst$723$name$$],null)))].join(""),onChange:$on_search_term_change$jscomp$1$$,onClear:$on_search_clear_click$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$current_library_id$$,options:$file_id$jscomp$370_find_parent_components_libraries_options_shape$jscomp$957$$,"on-change":$components$jscomp$22_on_library_change$jscomp$1$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-library",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__swap-library-title",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-library-name",children:$current_file_id$jscomp$17_current_lib_name_props_76678$$}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$cljs$core$truth_$$($cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?"grid":"list",
"on-change":$toggle_list_style$jscomp$3$$,name:"swap-listing-style",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"view-as-list",value:"list",id:"swap-opt-list"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"flex-grid",value:"grid",id:"swap-opt-grid"})]})]}),$search_QMARK_$$||$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?null:(0,$APP.$rumext$v2$jsxs$$)("button",
{onClick:$on_go_back$$,title:$filter_path_with_dots$$,className:"main_ui_workspace_sidebar_options_menus_component__swap-library-back",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-left",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_component__swap-library-back-name",children:$filter_path_with_dots$$})]}),$APP.$cljs$core$empty_QMARK_$$($components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$)?
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__swap-library-empty",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.swap.empty")}):null,$APP.$cljs$core$truth_$$($cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$177$$,$item$jscomp$127$$){$out_arr__44057__auto__$jscomp$177$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_swap_group_title_STAR_$$,
{item:$item$jscomp$127$$,onEnterGroup:$on_enter_group$jscomp$1$$}));return $out_arr__44057__auto__$jscomp$177$$},[],$groups$jscomp$12_path$jscomp$274_single_QMARK_$jscomp$14_xform$jscomp$41$$)}):null,(0,$APP.$rumext$v2$jsx$$)("div",{className:($APP.$cljs$core$truth_$$($cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?"main_ui_workspace_sidebar_options_menus_component__swap-library-grid":"")+" "+($APP.$cljs$core$not$$($cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$))?
"main_ui_workspace_sidebar_options_menus_component__swap-library-list":""),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$178$$,$item$jscomp$128$$){$out_arr__44057__auto__$jscomp$178$$.push($APP.$cljs$core$truth_$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$128$$))?function(){var $data$jscomp$467_root_shape$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$139$$,
$current_library_id$$),$APP.$cljs$cst$142$data$$),$container$jscomp$87$$=$APP.$app$common$types$file$get_component_page$$($data$jscomp$467_root_shape$jscomp$13$$,$item$jscomp$128$$);$data$jscomp$467_root_shape$jscomp$13$$=$APP.$app$common$types$file$get_component_root$$($data$jscomp$467_root_shape$jscomp$13$$,$item$jscomp$128$$);var $components__$3$$=$APP.$cljs$core$set$$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1611$component_id$$,$APP.$app$common$files$helpers$get_children_with_self$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$87$$),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$467_root_shape$jscomp$13$$)))),$loop_QMARK_$$=$APP.$cljs$core$some$$(function($p1__76677_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($components__$3$$,$p1__76677_SHARP_$$)},$parent_components$jscomp$1$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_swap_item_STAR_$$,{loop:$loop_QMARK_$$,isSearch:$search_QMARK_$$,componentId:$component_id$jscomp$94$$,listingThumbs:$cljs$cst$5424$listing_thumbs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$13$$),
numVariants:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_lib_counts$$,$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$128$$)),rootShape:$data$jscomp$467_root_shape$jscomp$13$$,shapes:$shapes$jscomp$199$$,item:$item$jscomp$128$$,fileId:$current_library_id$$,container:$container$jscomp$87$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$128$$)??""))}():(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_swap_group_title_STAR_$$,
{item:$item$jscomp$128$$,onEnterGroup:$on_enter_group$jscomp$1$$},$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$128$$)));return $out_arr__44057__auto__$jscomp$178$$},[],$components__$1_components__$2_every_same_file_QMARK__items$jscomp$56$$)})]})]})]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_pill_STAR_$$=function($props_76680_subtext$$){function $do_action$$($action$jscomp$4$$,$event$jscomp$465$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$465$$);$action$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$action$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$action$jscomp$4$$();return $on_menu_close$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$?$on_menu_close$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$():$on_menu_close$jscomp$2$$()}
var $text$jscomp$133$$=$props_76680_subtext$$.text,$disabled$jscomp$13$$=$props_76680_subtext$$.disabled,$menu_entries$jscomp$1$$=$props_76680_subtext$$.menuEntries,$icon$jscomp$21$$=$props_76680_subtext$$.icon,$on_click$jscomp$44$$=$props_76680_subtext$$.onClick;$props_76680_subtext$$=$props_76680_subtext$$.subtext;var $menu_open_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$menu_open_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($menu_open_STAR_$$),$menu_entries_QMARK_$$=
$APP.$cljs$core$seq$$($menu_entries$jscomp$1$$),$on_menu_click$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($menu_open_STAR_$$),$APP.$rumext$v2$adapt$$($menu_open_QMARK_$jscomp$1$$)],function($event$jscomp$464$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$464$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$464$$);return $APP.$cljs$core$reset_BANG_$$($menu_open_STAR_$$,$APP.$cljs$core$not$$($menu_open_QMARK_$jscomp$1$$))}),$on_menu_close$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($menu_open_STAR_$$)],function(){return $APP.$cljs$core$reset_BANG_$$($menu_open_STAR_$$,!1)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill",children:[(0,$APP.$rumext$v2$jsxs$$)("button",{"data-testid":"component-pill-button",onClick:$on_click$jscomp$44$$,disabled:$disabled$jscomp$13$$,className:"main_ui_workspace_sidebar_options_menus_component__pill-btn "+
($menu_entries_QMARK_$$?"main_ui_workspace_sidebar_options_menus_component__with-menu":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill-btn-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{size:"s",iconId:$icon$jscomp$21$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill-btn-name",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill-btn-text",
children:$text$jscomp$133$$}),$APP.$cljs$core$truth_$$($props_76680_subtext$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill-btn-subtext",children:$props_76680_subtext$$}):null]})]}),$menu_entries_QMARK_$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__pill-actions",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_menu_click$jscomp$3$$,className:"main_ui_workspace_sidebar_options_menus_component__pill-actions-btn "+
($APP.$cljs$core$truth_$$($menu_open_QMARK_$jscomp$1$$)?"main_ui_workspace_sidebar_options_menus_component__selected":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"menu"})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$menu_open_QMARK_$jscomp$1$$,"on-close":$on_menu_close$jscomp$2$$,children:(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_options_menus_component__pill-actions-dropdown "+($APP.$cljs$core$truth_$$($props_76680_subtext$$)?
"main_ui_workspace_sidebar_options_menus_component__extended":""),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$179$$,$p__76683_title$jscomp$37$$){var $action$jscomp$5_map__76685__$1$$=$APP.$cljs$core$__destructure_map$$($p__76683_title$jscomp$37$$);$p__76683_title$jscomp$37$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$5_map__76685__$1$$,$APP.$cljs$cst$937$title$$);$action$jscomp$5_map__76685__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$5_map__76685__$1$$,
$APP.$cljs$cst$2627$action$$);$out_arr__44057__auto__$jscomp$179$$.push($p__76683_title$jscomp$37$$!=null?(0,$APP.$rumext$v2$jsx$$)("li",{onClick:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($do_action$$,$action$jscomp$5_map__76685__$1$$),className:"main_ui_workspace_sidebar_options_menus_component__pill-actions-dropdown-item",children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$p__76683_title$jscomp$37$$})},$p__76683_title$jscomp$37$$):null);return $out_arr__44057__auto__$jscomp$179$$},
[],$menu_entries$jscomp$1$$)})})]}):null]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_menu_STAR_$$=function($current_file_id$jscomp$18_props_76689$$){var $shapes$jscomp$200_shapes__$1$jscomp$29$$=$current_file_id$jscomp$18_props_76689$$.shapes,$is_swap_opened$$=$current_file_id$jscomp$18_props_76689$$.isSwapOpened;$current_file_id$jscomp$18_props_76689$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);var $libraries$jscomp$140$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$current_file$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$140$$,$current_file_id$jscomp$18_props_76689$$),$state_STAR_$jscomp$14$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1860$show_content$$,!0,$APP.$cljs$cst$4738$menu_open$$,!1],null)}),$open_QMARK_$jscomp$14_state$jscomp$1080$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$14$$);$open_QMARK_$jscomp$14_state$jscomp$1080$$=$APP.$cljs$cst$1860$show_content$$.$cljs$core$IFn$_invoke$arity$1$($open_QMARK_$jscomp$14_state$jscomp$1080$$);
$shapes$jscomp$200_shapes__$1$jscomp$29$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$component$instance_head_QMARK_$$,$shapes$jscomp$200_shapes__$1$jscomp$29$$);var $multi$jscomp$6$$=$APP.$cljs$core$count$$($shapes$jscomp$200_shapes__$1$jscomp$29$$)>1,$copies$jscomp$3$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$component$in_component_copy_QMARK_$$,$shapes$jscomp$200_shapes__$1$jscomp$29$$),$can_swap_QMARK_$$=$APP.$cljs$core$boolean$0$$($APP.$cljs$core$seq$$($copies$jscomp$3$$)),
$all_main_QMARK_$jscomp$5$$=$APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$component$main_instance_QMARK_$$,$shapes$jscomp$200_shapes__$1$jscomp$29$$),$any_variant_QMARK_$jscomp$3$$=$APP.$cljs$core$some$$($APP.$app$common$types$component$is_variant_QMARK_$$,$shapes$jscomp$200_shapes__$1$jscomp$29$$),$components$jscomp$23$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76687_SHARP_$$){return $APP.$app$common$types$file$resolve_component$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($p1__76687_SHARP_$$,
$current_file$jscomp$1$$,$libraries$jscomp$140$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2497$include_deleted_QMARK_$$,!0],null)]))},$shapes$jscomp$200_shapes__$1$jscomp$29$$),$same_variant_QMARK_$jscomp$1$$=$app$common$types$variant$same_variant_QMARK_$$($components$jscomp$23$$),$shape$jscomp$958$$=$APP.$cljs$core$first$$($shapes$jscomp$200_shapes__$1$jscomp$29$$),$id$jscomp$916$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$958$$),
$shape_name$jscomp$4$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$958$$),$component$jscomp$129$$=$APP.$cljs$core$first$$($components$jscomp$23$$),$data$jscomp$468$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$140$$,$APP.$cljs$cst$1627$component_file$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$958$$)),$APP.$cljs$cst$142$data$$),$is_variant_QMARK_$jscomp$3$$=$APP.$app$common$types$component$is_variant_QMARK_$$($component$jscomp$129$$),
$main_instance_QMARK_$jscomp$5$$=$APP.$app$common$types$component$main_instance_QMARK_$$($shape$jscomp$958$$),$toggle_content$$=$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$($state_STAR_$jscomp$14$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$1860$show_content$$,$APP.$cljs$core$not$$)}),$on_click_variant_title_help$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$cljs$cst$5421$variants_help_modal$$],null));return $app$main$data$modal$allow_click_outside_BANG_$$()}),$on_component_back$$=$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.$cljs$cst$3485$app_DOT_main_DOT_data_DOT_workspace_DOT_specialized_panel_SLASH_interrupt$$)}),$open_component_panel$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_swap_QMARK_$$),
$APP.$rumext$v2$adapt$$($shapes$jscomp$200_shapes__$1$jscomp$29$$)],function(){$can_swap_QMARK_$$&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$specialized_panel$open_specialized_panel$$());return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$focus_BANG_$$($APP.$goog$dom$getElement$$("swap-component-search-filter"))})}),$transform_into_variant$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$916$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$transform_in_variant$cljs$0core$0IFn$0_invoke$0arity$01$$($id$jscomp$916$$))}),$create_variant$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$916$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"add-new-variant",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:button-design-tab-variant"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$916$$)]))}),$add_new_property$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$958$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-new-property",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:button-design-tab-variant"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_property$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$958$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$3394$property_value$$,"Value 1",$APP.$cljs$cst$3392$editing_QMARK_$$,!0],null)]))]))}),$on_combine_as_variants$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$workspace$variants$combine_selected_as_variants$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4269$trigger$$,"workspace:button-design-tab"],null)))}),$rerender_fn$jscomp$5$$=$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$($state_STAR_$jscomp$14$$,
$APP.$cljs$core$update$$,$cljs$cst$5425$render$$,$APP.$cljs$core$inc$$)}),$menu_entries$jscomp$2$$=$app$main$ui$workspace$sidebar$assets$common$generate_components_menu_entries$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shapes$jscomp$200_shapes__$1$jscomp$29$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5349$for_design_tab_QMARK_$$,!0],null)])),$path$jscomp$275$$=$app$common$path_names$join_path_with_dot$$($APP.$app$common$path_names$split_path$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$129$$)));
return $APP.$cljs$core$seq$$($shapes$jscomp$200_shapes__$1$jscomp$29$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-title",children:$APP.$cljs$core$truth_$$($is_swap_opened$$)?(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$on_component_back$$,className:"main_ui_workspace_sidebar_options_menus_component__component-title-swap",
children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-left",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component")})]}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$14_state$jscomp$1080$$),onCollapsed:$toggle_content$$,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component"),className:"main_ui_workspace_sidebar_options_menus_component__component-title-bar",titleClass:"main_ui_workspace_sidebar_options_menus_component__component-title-bar-title",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_component__component-title-bar-type",children:$main_instance_QMARK_$jscomp$5$$?$is_variant_QMARK_$jscomp$3$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.variant"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.main"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.copy")})}),$is_variant_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.title"),onClick:$on_click_variant_title_help$$,icon:"help"}):
null,$main_instance_QMARK_$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant"),onClick:$is_variant_QMARK_$jscomp$3$$?$create_variant$$:$transform_into_variant$$,icon:"variant"}):null]})}),$APP.$cljs$core$truth_$$($open_QMARK_$jscomp$14_state$jscomp$1080$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-content",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-pill",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_pill_STAR_$$,{icon:$main_instance_QMARK_$jscomp$5$$?$is_variant_QMARK_$jscomp$3$$?"variant":"component":"component-copy",text:$multi$jscomp$6$$&&$APP.$cljs$core$not$$($same_variant_QMARK_$jscomp$1$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):
$APP.$cljs$core$last$$($APP.$app$common$path_names$split_path$$($shape_name$jscomp$4$$)),subtext:$APP.$cljs$core$truth_$$(function(){if($can_swap_QMARK_$$){var $or__5025__auto__$jscomp$1087$$=!$multi$jscomp$6$$;return $or__5025__auto__$jscomp$1087$$?$or__5025__auto__$jscomp$1087$$:$same_variant_QMARK_$jscomp$1$$}return $can_swap_QMARK_$$}())?$APP.$cljs$core$truth_$$($APP.$cljs$cst$2498$deleted$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$129$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.unlinked"):
$app$common$path_names$merge_path_item_with_dot$$($path$jscomp$275$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$129$$)):null,onClick:$open_component_panel$$,disabled:$APP.$cljs$core$truth_$$($is_swap_opened$$)?$is_swap_opened$$:!$can_swap_QMARK_$$,menuEntries:$menu_entries$jscomp$2$$}),$is_variant_QMARK_$jscomp$3$$&&$main_instance_QMARK_$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant-property"),
onClick:$add_new_property$$,icon:"add"}):null]}),$APP.$cljs$core$truth_$$($is_swap_opened$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_swap_STAR_$$,{shapes:$copies$jscomp$3$$}):null,$APP.$cljs$core$truth_$$(function(){if($is_variant_QMARK_$jscomp$3$$){var $and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$=!$main_instance_QMARK_$jscomp$5$$;return $and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$?
($and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$=$APP.$cljs$core$not$$($APP.$cljs$cst$2498$deleted$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$129$$)))?($and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$=$APP.$cljs$core$not$$($is_swap_opened$$))?($and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$=
!$multi$jscomp$6$$)?$and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$:$same_variant_QMARK_$jscomp$1$$:$and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$:$and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$:$and__5023__auto____$1$jscomp$128_and__5023__auto____$2$jscomp$40_and__5023__auto____$3$jscomp$6_or__5025__auto__$jscomp$1089$$}return $is_variant_QMARK_$jscomp$3$$}())?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_variant_copy_STAR_$$,{currentFileId:$current_file_id$jscomp$18_props_76689$$,components:$components$jscomp$23$$,shapes:$shapes$jscomp$200_shapes__$1$jscomp$29$$,componentFileData:$data$jscomp$468$$}):null,$APP.$cljs$core$truth_$$($is_variant_QMARK_$jscomp$3$$?$main_instance_QMARK_$jscomp$5$$?$APP.$cljs$core$truth_$$($same_variant_QMARK_$jscomp$1$$)?$APP.$cljs$core$not$$($is_swap_opened$$):$same_variant_QMARK_$jscomp$1$$:
$main_instance_QMARK_$jscomp$5$$:$is_variant_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_variant_STAR_$$,{components:$components$jscomp$23$$,shapes:$shapes$jscomp$200_shapes__$1$jscomp$29$$,data:$data$jscomp$468$$}):null,$APP.$cljs$core$not$$($is_swap_opened$$)&&!$multi$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_annotation_STAR_$$,{id:$id$jscomp$916$$,shape:$shape$jscomp$958$$,
component:$component$jscomp$129$$,rerenderFn:$rerender_fn$jscomp$5$$}):null,$multi$jscomp$6$$&&$all_main_QMARK_$jscomp$5$$&&$APP.$cljs$core$not$$($any_variant_QMARK_$jscomp$3$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",className:"main_ui_workspace_sidebar_options_menus_component__component-combine",onClick:$on_combine_as_variants$jscomp$1$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.combine-as-variants")}):
null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2931$display_touched$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{children:[":touched ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1610$touched$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$958$$))]}):null]}):null]}):null};
$app$main$ui$workspace$sidebar$options$menus$component$move_empty_items_to_end$$=function($v$jscomp$662$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$empty_QMARK_$$),$v$jscomp$662$$),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$empty_QMARK_$$),$v$jscomp$662$$)};
$app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_property_STAR_$$=function($is_remove_disabled_props_76729$$){var $on_remove$jscomp$1$$=$is_remove_disabled_props_76729$$.onRemove,$property$jscomp$82$$=$is_remove_disabled_props_76729$$.property,$on_blur$jscomp$17$$=$is_remove_disabled_props_76729$$.onBlur,$pos$jscomp$145$$=$is_remove_disabled_props_76729$$.pos,$on_reorder$jscomp$2$$=$is_remove_disabled_props_76729$$.onReorder;$is_remove_disabled_props_76729$$=$is_remove_disabled_props_76729$$.isRemoveDisabled;
var $values$jscomp$79$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$replace$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,["","--"],null),$app$main$ui$workspace$sidebar$options$menus$component$move_empty_items_to_end$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($property$jscomp$82$$)))),$dprops$jscomp$4_on_drop$jscomp$12$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($relative_pos$jscomp$2_to_space_between_pos$jscomp$13$$,
$data$jscomp$469_from_pos$jscomp$13$$){$data$jscomp$469_from_pos$jscomp$13$$=$cljs$cst$5422$from_pos$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$469_from_pos$jscomp$13$$);$relative_pos$jscomp$2_to_space_between_pos$jscomp$13$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($relative_pos$jscomp$2_to_space_between_pos$jscomp$13$$,$APP.$cljs$cst$2636$bot$$)?$pos$jscomp$145$$+1:$pos$jscomp$145$$;return $on_reorder$jscomp$2$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder$jscomp$2$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$469_from_pos$jscomp$13$$,
$relative_pos$jscomp$2_to_space_between_pos$jscomp$13$$):$on_reorder$jscomp$2$$($data$jscomp$469_from_pos$jscomp$13$$,$relative_pos$jscomp$2_to_space_between_pos$jscomp$13$$)}),$dref$jscomp$4_vec__76733$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/variant-main-property",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$4_on_drop$jscomp$12$$,$APP.$cljs$cst$2643$draggable_QMARK_$$,
!0,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5422$from_pos$$,$pos$jscomp$145$$],null)]));$dprops$jscomp$4_on_drop$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$4_vec__76733$$,0,null);$dref$jscomp$4_vec__76733$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$4_vec__76733$$,1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property "+
($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$4_on_drop$jscomp$12$$),$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_options_menus_component__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$4_on_drop$jscomp$12$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_options_menus_component__dnd-over-bot":""),
children:[$on_reorder$jscomp$2$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,{ref:$dref$jscomp$4_vec__76733$$}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$input_with_meta$input_with_meta_STAR_$$,{value:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($property$jscomp$82$$),"data-position":$pos$jscomp$145$$,
meta:$values$jscomp$79$$,isEditing:$APP.$cljs$cst$3392$editing_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($property$jscomp$82$$)),maxLength:60,onBlur:$on_blur$jscomp$17$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",icon:"remove","data-position":$pos$jscomp$145$$,"aria-label":$APP.$cljs$core$truth_$$($is_remove_disabled_props_76729$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.remove-variant-property.last-property"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.remove-variant-property"),onClick:$on_remove$jscomp$1$$,disabled:$is_remove_disabled_props_76729$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_STAR_$$=function($props_76740_shapes$jscomp$201$$){$props_76740_shapes$jscomp$201$$=$props_76740_shapes$jscomp$201$$.shapes;var $multi_QMARK_$jscomp$1$$=$APP.$cljs$core$count$$($props_76740_shapes$jscomp$201$$)>1,$shape$jscomp$959$$=$APP.$cljs$core$first$$($props_76740_shapes$jscomp$201$$),$shape_name$jscomp$5$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$959$$),$libraries$jscomp$141_malformed_QMARK_$$=
$APP.$cljs$core$_deref$$($APP.$app$main$refs$libraries$$),$current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),$current_page_id$jscomp$3_open_QMARK_$jscomp$15$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_page_id$$),$data$jscomp$470$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$141_malformed_QMARK_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$,$APP.$cljs$cst$142$data$$],null)),$objects$jscomp$763$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($data$jscomp$470$$,$current_page_id$jscomp$3_open_QMARK_$jscomp$15$$),$APP.$cljs$cst$1615$objects$$),$variants$jscomp$9$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76738_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$763$$,
$p1__76738_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$959$$)),$variant_id$jscomp$51$$=$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($variants$jscomp$9$$));$current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$=$APP.$app$common$files$variant$find_variant_components$cljs$0core$0IFn$0_invoke$0arity$03$$($data$jscomp$470$$,$objects$jscomp$763$$,$variant_id$jscomp$51$$);var $malformed_ids$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,
$APP.$cljs$core$filterv$$(function($p1__76739_SHARP_$$){return $APP.$cljs$cst$1988$variant_error$$.$cljs$core$IFn$_invoke$arity$1$($p1__76739_SHARP_$$)!=null},$variants$jscomp$9$$));$libraries$jscomp$141_malformed_QMARK_$$=$APP.$app$common$data$not_empty_QMARK_$$($malformed_ids$$);var $duplicated_ids$jscomp$2$$=$app$main$ui$workspace$sidebar$options$menus$component$get_main_ids_with_duplicated_variant_props_and_values$$($current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$);$current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$=
$APP.$app$common$data$not_empty_QMARK_$$($duplicated_ids$jscomp$2$$);var $properties$jscomp$108$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$470$$),$APP.$rumext$v2$adapt$$($objects$jscomp$763$$),$APP.$rumext$v2$adapt$$($variant_id$jscomp$51$$)],function(){return $APP.$app$common$files$variant$extract_properties_values$$($data$jscomp$470$$,$objects$jscomp$763$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$959$$))}),$single_property_QMARK_$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($properties$jscomp$108$$),1),$open_STAR_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$current_page_id$jscomp$3_open_QMARK_$jscomp$15$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$6$$);var $menu_entries$jscomp$3_show_in_assets_panel$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variants$jscomp$9$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$show_component_in_assets$$($APP.$cljs$cst$1611$component_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($variants$jscomp$9$$))))}),
$create_variant$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$959$$)],function($trigger$jscomp$4$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-new-variant",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$trigger$jscomp$4$$],null)),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$959$$))]))}),$add_new_property$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$51$$)],function($trigger$jscomp$5$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"add-new-property",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,$trigger$jscomp$5$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$add_new_property$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($variant_id$jscomp$51$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3394$property_value$$,
"Value 1",$APP.$cljs$cst$3392$editing_QMARK_$$,!0],null)]))]))});$menu_entries$jscomp$3_show_in_assets_panel$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.show-in-assets"),$APP.$cljs$cst$2627$action$$,$menu_entries$jscomp$3_show_in_assets_panel$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant"),$APP.$cljs$cst$2627$action$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($create_variant$jscomp$1$$,"workspace:design-tab-menu-component")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant-property"),$APP.$cljs$cst$2627$action$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($add_new_property$jscomp$1$$,
"workspace:design-tab-menu-component")],null)],null);var $toggle_content$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$2$($open_STAR_$jscomp$6$$,$APP.$cljs$core$not$$)}),$on_click_variant_title_help$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,
$cljs$cst$5421$variants_help_modal$$],null));return $app$main$data$modal$allow_click_outside_BANG_$$()}),$update_property_name$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$51$$)],function($event$jscomp$466_pos$jscomp$146$$){var $value$jscomp$796$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$466_pos$jscomp$146$$);$event$jscomp$466_pos$jscomp$146$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$466_pos$jscomp$146$$),
"position")|0;return $APP.$cljs$core$seq$$($value$jscomp$796$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$update_property_name$$($variant_id$jscomp$51$$,$event$jscomp$466_pos$jscomp$146$$,$value$jscomp$796$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$4269$trigger$$,"workspace:design-tab-component"],null))):null}),$remove_property$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$51$$),
$APP.$rumext$v2$adapt$$($properties$jscomp$108$$)],function($event$jscomp$467_pos$jscomp$147$$){$event$jscomp$467_pos$jscomp$147$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$467_pos$jscomp$147$$),"position")|0;return $APP.$cljs$core$count$$($properties$jscomp$108$$)>1?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$event$event$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,
"variant-remove-property",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:button-design-tab"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$variants$remove_property$$($variant_id$jscomp$51$$,$event$jscomp$467_pos$jscomp$147$$)])):null}),$reorder_properties$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($variant_id$jscomp$51$$)],function($from_pos$jscomp$14$$,$to_space_between_pos$jscomp$14$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$variants$reorder_variant_poperties$$($variant_id$jscomp$51$$,
$from_pos$jscomp$14$$,$to_space_between_pos$jscomp$14$$))}),$select_shapes_with_malformed$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($malformed_ids$$)],function(){var $JSCompiler_temp_const$jscomp$1558$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$1560_param70633$jscomp$inline_8593$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),
$malformed_ids$$);$JSCompiler_inline_result$jscomp$1560_param70633$jscomp$inline_8593$$=$APP.$app$main$data$workspace$selection$select_shapes$$($JSCompiler_inline_result$jscomp$1560_param70633$jscomp$inline_8593$$);return $JSCompiler_temp_const$jscomp$1558$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1560_param70633$jscomp$inline_8593$$)}),$select_shapes_with_duplicated$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($duplicated_ids$jscomp$2$$)],
function(){var $JSCompiler_temp_const$jscomp$1561$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$1563_param70633$jscomp$inline_8595$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),$duplicated_ids$jscomp$2$$);$JSCompiler_inline_result$jscomp$1563_param70633$jscomp$inline_8595$$=$APP.$app$main$data$workspace$selection$select_shapes$$($JSCompiler_inline_result$jscomp$1563_param70633$jscomp$inline_8595$$);
return $JSCompiler_temp_const$jscomp$1561$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1563_param70633$jscomp$inline_8595$$)});return $APP.$cljs$core$seq$$($props_76740_shapes$jscomp$201$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-title",children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($current_page_id$jscomp$3_open_QMARK_$jscomp$15$$),onCollapsed:$toggle_content$jscomp$1$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component"),className:"main_ui_workspace_sidebar_options_menus_component__component-title-bar",titleClass:"main_ui_workspace_sidebar_options_menus_component__component-title-bar-title",children:(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_sidebar_options_menus_component__component-title-bar-type",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.main")})}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variants-help-modal.title"),onClick:$on_click_variant_title_help$jscomp$1$$,icon:"help"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant"),onClick:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($create_variant$jscomp$1$$,"workspace:button-design-tab-component"),icon:"variant"})]})}),$APP.$cljs$core$truth_$$($current_page_id$jscomp$3_open_QMARK_$jscomp$15$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__component-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__component-pill",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_pill_STAR_$$,{icon:"component",text:$multi_QMARK_$jscomp$1$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):$APP.$cljs$core$last$$($APP.$app$common$path_names$split_path$$($shape_name$jscomp$5$$)),disabled:!0,menuEntries:$menu_entries$jscomp$3_show_in_assets_panel$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-variant-property"),onClick:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($add_new_property$jscomp$1$$,"workspace:button-design-tab-component"),icon:"add"})]}),$multi_QMARK_$jscomp$1$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-property-list",
children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$180$$,$p__76744_property$jscomp$83$$){var $pos$jscomp$148$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76744_property$jscomp$83$$,0,null);$p__76744_property$jscomp$83$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76744_property$jscomp$83$$,1,null);$out_arr__44057__auto__$jscomp$180$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_property_STAR_$$,
{pos:$pos$jscomp$148$$,property:$p__76744_property$jscomp$83$$,isRemoveDisabled:$single_property_QMARK_$$,onRemove:$remove_property$$,onBlur:$update_property_name$jscomp$1$$,onReorder:$reorder_properties$jscomp$1$$},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$959$$)),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($pos$jscomp$148$$)].join("")));return $out_arr__44057__auto__$jscomp$180$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,
$properties$jscomp$108$$))})}),$libraries$jscomp$141_malformed_QMARK_$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.group.title")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$select_shapes_with_malformed$$,className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.malformed.group.locate")})]}):$current_file_id$jscomp$19_duplicated_QMARK__variant_components$jscomp$2$$?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"msg-neutral",className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-darken"}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-highlight",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.group.title")}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$select_shapes_with_duplicated$$,className:"main_ui_workspace_sidebar_options_menus_component__variant-warning-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.component.variant.duplicated.group.locate")})]}):null]}):null]}):null};
$app$main$ui$workspace$sidebar$options$menus$grid_cell$set_self_alignment$$=function($is_col_QMARK__map__76592_props_76591$$){$is_col_QMARK__map__76592_props_76591$$=$APP.$rumext$v2$util$wrap_props$$($is_col_QMARK__map__76592_props_76591$$);var $alignment__$1_map__76592__$1$$=$APP.$cljs$core$__destructure_map$$($is_col_QMARK__map__76592_props_76591$$);$is_col_QMARK__map__76592_props_76591$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alignment__$1_map__76592__$1$$,$cljs$cst$5426$is_col_QMARK_$$);
var $alignment$jscomp$1_type$jscomp$598$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alignment__$1_map__76592__$1$$,$APP.$cljs$cst$4705$alignment$$),$set_alignment$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($alignment__$1_map__76592__$1$$,$cljs$cst$5427$set_alignment$$);$alignment__$1_map__76592__$1$$=$APP.$cljs$core$truth_$$($alignment$jscomp$1_type$jscomp$598$$)?$alignment$jscomp$1_type$jscomp$598$$:$APP.$cljs$cst$1656$auto$$;$alignment$jscomp$1_type$jscomp$598$$=$APP.$cljs$core$truth_$$($is_col_QMARK__map__76592_props_76591$$)?
"col":"row";var $handle_set_alignment$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($set_alignment$$)],function($G__76593_value$jscomp$797$$){$G__76593_value$jscomp$797$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__76593_value$jscomp$797$$);return $set_alignment$$.$cljs$core$IFn$_invoke$arity$1$?$set_alignment$$.$cljs$core$IFn$_invoke$arity$1$($G__76593_value$jscomp$797$$):$set_alignment$$($G__76593_value$jscomp$797$$)});return(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_grid_cell__self-align-menu",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($alignment__$1_map__76592__$1$$),"on-change":$handle_set_alignment$$,"allow-empty":!0,name:"flex-align-items-"+($alignment$jscomp$1_type$jscomp$598$$??""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$APP.$cljs$core$truth_$$($is_col_QMARK__map__76592_props_76591$$)?
"align-self-row-left":"align-self-column-top",title:"Align self start",id:"align-self-start-"+($alignment$jscomp$1_type$jscomp$598$$??"")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$APP.$cljs$core$truth_$$($is_col_QMARK__map__76592_props_76591$$)?"align-self-row-center":"align-self-column-center",title:"Align self center",id:"align-self-center-"+($alignment$jscomp$1_type$jscomp$598$$??"")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"end",icon:$APP.$cljs$core$truth_$$($is_col_QMARK__map__76592_props_76591$$)?"align-self-row-right":"align-self-column-bottom",title:"Align self end",id:"align-self-end-"+($alignment$jscomp$1_type$jscomp$598$$??"")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"stretch",icon:$APP.$cljs$core$truth_$$($is_col_QMARK__map__76592_props_76591$$)?"align-self-row-stretch":"align-self-column-stretch",title:"Align self stretch",id:"align-self-stretch-"+($alignment$jscomp$1_type$jscomp$598$$??
"")})]})})};
$app$main$ui$ds$controls$checkbox$checkbox_STAR_$$=function($props_76607_props__$1$jscomp$75$$){var $on_change$jscomp$51$$=void 0,$disabled$jscomp$14$$=void 0,$label$jscomp$36$$=void 0,$id$jscomp$917$$=void 0,$class$$jscomp$64$$=void 0,$checked$$=void 0,$props$jscomp$315$$=void 0;({id:$id$jscomp$917$$,className:$class$$jscomp$64$$,label:$label$jscomp$36$$,checked:$checked$$,onChange:$on_change$jscomp$51$$,disabled:$disabled$jscomp$14$$,...$props$jscomp$315$$}=$props_76607_props__$1$jscomp$75$$);$props_76607_props__$1$jscomp$75$$=
{...$props$jscomp$315$$,type:"checkbox",className:"main_ui_ds_controls_checkbox__checkbox-input",id:$id$jscomp$917$$,checked:$checked$$,onChange:$on_change$jscomp$51$$,disabled:$disabled$jscomp$14$$};return(0,$APP.$rumext$v2$jsx$$)("div",{className:($class$$jscomp$64$$??"")+" main_ui_ds_controls_checkbox__checkbox",children:(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:$id$jscomp$917$$,className:"main_ui_ds_controls_checkbox__checkbox-label",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_checkbox__checkbox-box "+
($APP.$cljs$core$truth_$$($checked$$)?"main_ui_ds_controls_checkbox__checked":"")+" "+($APP.$cljs$core$truth_$$($disabled$jscomp$14$$)?"main_ui_ds_controls_checkbox__disabled":""),children:$APP.$cljs$core$truth_$$($checked$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s"}):null}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_checkbox__checkbox-text",children:$label$jscomp$36$$}),(0,$APP.$rumext$v2$create_element$$)("input",
$props_76607_props__$1$jscomp$75$$)]})})};
$app$main$ui$ds$controls$utilities$token_field$token_field_STAR_$$=function($on_token_key_down_props_76608$$){var $detach_token$jscomp$2$$=$on_token_key_down_props_76608$$.detachToken,$disabled$jscomp$15$$=$on_token_key_down_props_76608$$.disabled,$property$jscomp$85$$=$on_token_key_down_props_76608$$.property,$on_focus$jscomp$9$$=$on_token_key_down_props_76608$$.onFocus,$value$jscomp$802$$=$on_token_key_down_props_76608$$.value,$on_blur$jscomp$18$$=$on_token_key_down_props_76608$$.onBlur,$token_detach_btn_ref$$=
$on_token_key_down_props_76608$$.tokenDetachBtnRef,$on_click$jscomp$45$$=$on_token_key_down_props_76608$$.onClick,$content$jscomp$237_label$jscomp$37$$=$on_token_key_down_props_76608$$.label,$id$jscomp$918_id__$1$jscomp$19$$=$on_token_key_down_props_76608$$.id,$class$$jscomp$65$$=$on_token_key_down_props_76608$$.className,$token_wrapper_ref$$=$on_token_key_down_props_76608$$.tokenWrapperRef,$slot_start$jscomp$1$$=$on_token_key_down_props_76608$$.slotStart;$on_token_key_down_props_76608$$=$on_token_key_down_props_76608$$.onTokenKeyDown;
var $set_active_QMARK_$$=$id$jscomp$918_id__$1$jscomp$19$$!=null;$content$jscomp$237_label$jscomp$37$$=$set_active_QMARK_$$?$content$jscomp$237_label$jscomp$37$$:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.token-field.no-active-token-option");var $default_id$$=(0,$APP.$rumext$v2$use_id$$)();$id$jscomp$918_id__$1$jscomp$19$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$918_id__$1$jscomp$19$$,$default_id$$);var $pill_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),
$focus_wrapper$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disabled$jscomp$15$$)],function($event$jscomp$469$$){if($disabled$jscomp$15$$)return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$469$$);return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($token_wrapper_ref$$))});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$tooltip$tooltip$tooltip_STAR_$$,{content:$property$jscomp$85$$,className:"main_ui_ds_controls_utilities_token_field__token-field-wrapper",
triggerRef:$token_wrapper_ref$$,id:""+($default_id$$??"")+"-input",children:(0,$APP.$rumext$v2$jsxs$$)("div",{"aria-labelledby":""+($default_id$$??"")+"-input",tabIndex:$APP.$cljs$core$truth_$$($disabled$jscomp$15$$)?-1:0,className:($class$$jscomp$65$$??"")+" main_ui_ds_controls_utilities_token_field__token-field "+(($slot_start$jscomp$1$$!=null?"main_ui_ds_controls_utilities_token_field__with-icon":"")+" "+($APP.$cljs$core$truth_$$($disabled$jscomp$15$$)?"main_ui_ds_controls_utilities_token_field__token-field-disabled":
"")),children:[$slot_start$jscomp$1$$!=null?$slot_start$jscomp$1$$:null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_utilities_token_field__content-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$tooltip$tooltip$tooltip_STAR_$$,{content:$content$jscomp$237_label$jscomp$37$$,triggerRef:$pill_ref$$,id:""+($id$jscomp$918_id__$1$jscomp$19$$??"")+"-pill",children:(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$on_click$jscomp$45$$,ref:$pill_ref$$,disabled:$disabled$jscomp$15$$,
"aria-labelledby":""+($id$jscomp$918_id__$1$jscomp$19$$??"")+"-pill",onKeyDown:$on_token_key_down_props_76608$$,className:"main_ui_ds_controls_utilities_token_field__pill "+($set_active_QMARK_$$?"":"main_ui_ds_controls_utilities_token_field__no-set-pill")+" "+($APP.$cljs$core$truth_$$($disabled$jscomp$15$$)?"main_ui_ds_controls_utilities_token_field__pill-disabled":""),children:[$value$jscomp$802$$,$set_active_QMARK_$$?null:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_utilities_token_field__pill-dot"})]})})}),
$disabled$jscomp$15$$?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",className:"main_ui_ds_controls_utilities_token_field__invisible-button",tooltipClass:"main_ui_ds_controls_utilities_token_field__button-tooltip",icon:"broken-link",ref:$token_detach_btn_ref$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.token-field.detach-token"),onClick:$detach_token$jscomp$2$$})],onFocus:$on_focus$jscomp$9$$,onBlur:$on_blur$jscomp$18$$,
onClick:$focus_wrapper$$,ref:$token_wrapper_ref$$,onKeyDown:$on_token_key_down_props_76608$$,disabled:$disabled$jscomp$15$$})})};
$app$main$ui$ds$controls$numeric_input$parse_value$$=function($G__76619$jscomp$inline_12897_raw_value$$,$last_value_new_value$jscomp$22$$,$G__76618_min_value$jscomp$3$$,$max_value$jscomp$5$$,$nillable$$){$last_value_new_value$jscomp$22$$=$app$util$simple_math$expr_eval$$($APP.$cuerdas$core$strip_suffix$$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76619$jscomp$inline_12897_raw_value$$),"."),$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($last_value_new_value$jscomp$22$$));
return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($nillable$$)?$G__76619$jscomp$inline_12897_raw_value$$==null:$nillable$$)?null:$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($last_value_new_value$jscomp$22$$))?($G__76619$jscomp$inline_12897_raw_value$$=Math.min(Math.max($last_value_new_value$jscomp$22$$,-1073741824),1.0737418235E9),$G__76618_min_value$jscomp$3$$=$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($G__76618_min_value$jscomp$3$$))?Math.max($G__76619$jscomp$inline_12897_raw_value$$,
$G__76618_min_value$jscomp$3$$):$G__76619$jscomp$inline_12897_raw_value$$,$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($max_value$jscomp$5$$))?Math.min($G__76618_min_value$jscomp$3$$,$max_value$jscomp$5$$):$G__76618_min_value$jscomp$3$$):null};
$app$main$ui$ds$controls$numeric_input$get_option_by_name$$=function($options$jscomp$610_options__$1$jscomp$82$$,$name$jscomp$430$$){$options$jscomp$610_options__$1$jscomp$82$$=$APP.$cljs$core$delay_QMARK_$$($options$jscomp$610_options__$1$jscomp$82$$)?$APP.$cljs$core$_deref$$($options$jscomp$610_options__$1$jscomp$82$$):$options$jscomp$610_options__$1$jscomp$82$$;return $APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__76620_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$430$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__76620_SHARP_$$,$APP.$cljs$cst$723$name$$))},$options$jscomp$610_options__$1$jscomp$82$$)};
$app$main$ui$ds$controls$numeric_input$get_token_op$$=function($tokens$jscomp$40_tokens__$1$$,$name$jscomp$431$$){$tokens$jscomp$40_tokens__$1$$=$APP.$cljs$core$delay_QMARK_$$($tokens$jscomp$40_tokens__$1$$)?$APP.$cljs$core$_deref$$($tokens$jscomp$40_tokens__$1$$):$tokens$jscomp$40_tokens__$1$$;var $xform$jscomp$42$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__76621_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76621_SHARP_$$),$name$jscomp$431$$)});
return $APP.$cljs$core$reduce_kv$$(function($result$jscomp$348$$,$_$jscomp$2869$$,$tokens__$2$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($result$jscomp$348$$,$xform$jscomp$42$$,$tokens__$2$$)},$APP.$cljs$core$PersistentVector$EMPTY$$,$tokens$jscomp$40_tokens__$1$$)};
$app$main$ui$ds$controls$numeric_input$clean_token_name$$=function($G__76622__$1_s$jscomp$569$$){$G__76622__$1_s$jscomp$569$$=$G__76622__$1_s$jscomp$569$$==null?null:$APP.$cuerdas$core$replace$$($G__76622__$1_s$jscomp$569$$,/^\{/,"");return $G__76622__$1_s$jscomp$569$$==null?null:$APP.$cuerdas$core$replace$$($G__76622__$1_s$jscomp$569$$,/\}$/,"")};
$app$main$ui$ds$controls$numeric_input$token__GT_dropdown_option$$=function($token$jscomp$116$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$266$id$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$116$$,$APP.$cljs$cst$266$id$$)),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1134$token$$,$APP.$cljs$cst$4441$resolved_value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$116$$,$APP.$cljs$cst$4441$resolved_value$$),
$APP.$cljs$cst$723$name$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$116$$,$APP.$cljs$cst$723$name$$)],null)};
$app$main$ui$ds$controls$numeric_input$generate_dropdown_options$$=function($tokens$jscomp$41$$,$no_sets$$){return $APP.$cljs$core$empty_QMARK_$$($tokens$jscomp$41$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$487$empty$$,$APP.$cljs$cst$2245$label$$,$APP.$cljs$core$truth_$$($no_sets$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.numeric-input.no-applicable-tokens"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.numeric-input.no-matches")],null)],null):$APP.$cljs$core$not_empty$$($APP.$cljs$core$vec$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$concat$$,$APP.$cljs$core$interpose$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1461$separator$$,!0,$APP.$cljs$cst$266$id$$,
"separator",$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1461$separator$$],null)],null),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($items$jscomp$57_p__76627$$){var $type$jscomp$600$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($items$jscomp$57_p__76627$$,0,null);$items$jscomp$57_p__76627$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($items$jscomp$57_p__76627$$,1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1592$group$$,
!0,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1592$group$$,$APP.$cljs$cst$266$id$$,"group-"+($APP.$cljs$core$name$$($type$jscomp$600$$)??""),$APP.$cljs$cst$723$name$$,$APP.$cljs$core$name$$($type$jscomp$600$$)],null),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$ds$controls$numeric_input$token__GT_dropdown_option$$,$items$jscomp$57_p__76627$$))},$tokens$jscomp$41$$)))))};
$app$main$ui$ds$controls$numeric_input$filter_token_groups_by_name$$=function($tokens$jscomp$42$$,$filter_text$$){var $lc_filter$$=$APP.$cuerdas$core$lower$$($filter_text$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$){var $group$jscomp$48$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$,
0,null);$filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$,1,null);$filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76637_SHARP_$$){return $APP.$cuerdas$core$includes_QMARK_$$($APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76637_SHARP_$$)),$lc_filter$$)},$filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$);
return $APP.$cljs$core$seq$$($filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$group$jscomp$48$$,$filtered$jscomp$2_p__76640_tokens__$1$jscomp$1$$],null):null}),$tokens$jscomp$42$$)};
$app$main$ui$ds$controls$numeric_input$focusable_option_QMARK_$$=function($option$jscomp$18$$){var $and__5023__auto__$jscomp$750$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$18$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$750$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1592$group$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$18$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1461$separator$$,
$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$18$$)):$and__5023__auto__$jscomp$750$$};$app$main$ui$ds$controls$numeric_input$first_focusable_id$$=function($options$jscomp$611$$){return $APP.$cljs$core$some$$(function($p1__76648_SHARP_$$){return $APP.$cljs$core$truth_$$($app$main$ui$ds$controls$numeric_input$focusable_option_QMARK_$$($p1__76648_SHARP_$$))?$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76648_SHARP_$$):null},$options$jscomp$611$$)};
$app$main$ui$ds$controls$numeric_input$next_focus_index$$=function($indices$jscomp$1_options$jscomp$612$$,$focused_id$jscomp$2$$,$direction$jscomp$25$$){var $options__$1$jscomp$83$$=$APP.$cljs$core$delay_QMARK_$$($indices$jscomp$1_options$jscomp$612$$)?$APP.$cljs$core$_deref$$($indices$jscomp$1_options$jscomp$612$$):$indices$jscomp$1_options$jscomp$612$$,$len$jscomp$77$$=$APP.$cljs$core$count$$($options__$1$jscomp$83$$),$start_index$jscomp$4$$=function(){var $or__5025__auto__$jscomp$1093$$=$APP.$app$common$data$index_of_pred$$($options__$1$jscomp$83$$,
function($p1__76651_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($focused_id$jscomp$2$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76651_SHARP_$$))});return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1093$$)?$or__5025__auto__$jscomp$1093$$:-1}();$indices$jscomp$1_options$jscomp$612$$=function(){var $G__76652__$1$$=$direction$jscomp$25$$ instanceof $APP.$cljs$core$Keyword$$?$direction$jscomp$25$$.$fqn$:null;switch($G__76652__$1$$){case "down":return $APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$($start_index$jscomp$4$$+
1,$len$jscomp$77$$+$start_index$jscomp$4$$);case "up":return $APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$03$$($start_index$jscomp$4$$-1,$start_index$jscomp$4$$-$len$jscomp$77$$,-1);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76652__$1$$)].join(""));}}();return $APP.$cljs$core$some$$(function($i$jscomp$525_j$jscomp$121$$){$i$jscomp$525_j$jscomp$121$$=$APP.$cljs$core$mod$$($i$jscomp$525_j$jscomp$121$$,$len$jscomp$77$$);return $APP.$cljs$core$truth_$$($app$main$ui$ds$controls$numeric_input$focusable_option_QMARK_$$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($options__$1$jscomp$83$$,
$i$jscomp$525_j$jscomp$121$$)))?$i$jscomp$525_j$jscomp$121$$:null},$indices$jscomp$1_options$jscomp$612$$)};
$app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens$$=function($groups__GT_tokens$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($cljs$core$sorted_map$$(),function(){return function $app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens_$_iter__76654$$($s__76655$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__76655__$2_temp__5825__auto__$jscomp$355$$=$APP.$cljs$core$seq$$($s__76655$$);if($s__76655__$2_temp__5825__auto__$jscomp$355$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__76655__$2_temp__5825__auto__$jscomp$355$$)){var $JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$=
$APP.$cljs$core$_chunked_first$$($s__76655__$2_temp__5825__auto__$jscomp$355$$),$size__5502__auto__$jscomp$45$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$),$b__76657_group$jscomp$49$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$45$$);a:{for(var $i__76656$jscomp$inline_8599$$=0;;)if($i__76656$jscomp$inline_8599$$<$size__5502__auto__$jscomp$45$$){var $b$jscomp$inline_12899_vec__76662$jscomp$inline_8600$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$,
$i__76656$jscomp$inline_8599$$),$group$jscomp$inline_8601_x$jscomp$inline_12900$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12899_vec__76662$jscomp$inline_8600$$,0,null),$tokens$jscomp$inline_8602$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12899_vec__76662$jscomp$inline_8600$$,1,null);$b$jscomp$inline_12899_vec__76662$jscomp$inline_8600$$=$b__76657_group$jscomp$49$$;$group$jscomp$inline_8601_x$jscomp$inline_12900$$=new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$group$jscomp$inline_8601_x$jscomp$inline_12900$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$tokens$jscomp$inline_8602$$)],null);$b$jscomp$inline_12899_vec__76662$jscomp$inline_8600$$.add($group$jscomp$inline_8601_x$jscomp$inline_12900$$);$i__76656$jscomp$inline_8599$$+=1}else{$JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$=!0;break a}$JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$=
void 0}return $JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__76657_group$jscomp$49$$),$app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens_$_iter__76654$$($APP.$cljs$core$_chunked_rest$$($s__76655__$2_temp__5825__auto__$jscomp$355$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__76657_group$jscomp$49$$),null)}$JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$=
$APP.$cljs$core$first$$($s__76655__$2_temp__5825__auto__$jscomp$355$$);$b__76657_group$jscomp$49$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$,0,null);$JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$,
1,null);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$b__76657_group$jscomp$49$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$JSCompiler_inline_result$jscomp$1777_c__5501__auto__$jscomp$45_tokens$jscomp$43_vec__76665$$)],null),$app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens_$_iter__76654$$($APP.$cljs$core$rest$$($s__76655__$2_temp__5825__auto__$jscomp$355$$)))}return null}},
null,null)}($groups__GT_tokens$$)}())};
$app$main$ui$ds$controls$numeric_input$numeric_input_STAR_$$=function($max_length__$1$jscomp$1_props_76679$$){var $on_change$jscomp$52$$=void 0,$step$jscomp$33$$=void 0,$inner_class$$=void 0,$align$jscomp$3_open_dropdown_ref_token_props$$=void 0,$min$jscomp$70$$=void 0,$max_length$jscomp$7_on_key_down$jscomp$15$$=void 0,$input_props_placeholder$jscomp$5$$=void 0,$disabled$jscomp$16_open_dropdown$jscomp$4$$=void 0,$ref$jscomp$52$$=void 0,$property$jscomp$86$$=void 0,$default$$jscomp$91$$=void 0,$on_focus$jscomp$10$$=
void 0,$value$jscomp$803$$=void 0,$name$jscomp$432$$=void 0,$on_blur$jscomp$19$$=void 0,$icon$jscomp$22$$=void 0,$applied_token$jscomp$5$$=void 0,$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$=void 0,$text_icon$$=void 0,$id$jscomp$919_id__$1$jscomp$20$$=void 0,$class$$jscomp$66$$=void 0,$max$jscomp$83$$=void 0,$on_detach$jscomp$2$$=void 0,$tokens$jscomp$45$$=void 0,$nillable$jscomp$1$$=void 0,$is_selected_on_focus$$=void 0,$props$jscomp$316$$=void 0;({onChange:$on_change$jscomp$52$$,
step:$step$jscomp$33$$,innerClass:$inner_class$$,align:$align$jscomp$3_open_dropdown_ref_token_props$$,min:$min$jscomp$70$$,maxLength:$max_length$jscomp$7_on_key_down$jscomp$15$$,placeholder:$input_props_placeholder$jscomp$5$$,disabled:$disabled$jscomp$16_open_dropdown$jscomp$4$$,ref:$ref$jscomp$52$$,property:$property$jscomp$86$$,"default":$default$$jscomp$91$$,onFocus:$on_focus$jscomp$10$$,value:$value$jscomp$803$$,name:$name$jscomp$432$$,onBlur:$on_blur$jscomp$19$$,icon:$icon$jscomp$22$$,appliedToken:$applied_token$jscomp$5$$,
emptyToEnd:$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$,textIcon:$text_icon$$,id:$id$jscomp$919_id__$1$jscomp$20$$,className:$class$$jscomp$66$$,max:$max$jscomp$83$$,onDetach:$on_detach$jscomp$2$$,tokens:$tokens$jscomp$45$$,nillable:$nillable$jscomp$1$$,isSelectedOnFocus:$is_selected_on_focus$$,...$props$jscomp$316$$}=$max_length__$1$jscomp$1_props_76679$$);var $tokens__$1$jscomp$2$$=$APP.$cljs$core$object_QMARK_$$($tokens$jscomp$45$$)?$APP.$rumext$v2$util$bean$$($tokens$jscomp$45$$):
$tokens$jscomp$45$$,$value__$1$jscomp$47$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$applied_token$jscomp$5$$)?$APP.$cljs$cst$1600$multiple$$:$value$jscomp$803$$,$is_multiple_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$value__$1$jscomp$47$$),$value__$2$jscomp$8$$=$is_multiple_QMARK_$$?null:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$751$$=$nillable$jscomp$1$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$751$$)?
$value__$1$jscomp$47$$==null:$and__5023__auto__$jscomp$751$$}())?null:$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($value__$1$jscomp$47$$,$default$$jscomp$91$$),$nillable__$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($nillable$jscomp$1$$,!1),$disabled__$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($disabled$jscomp$16_open_dropdown$jscomp$4$$,!1),$select_on_focus$jscomp$3$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($is_selected_on_focus$$,
!0),$default$__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($default$$jscomp$91$$),$APP.$rumext$v2$adapt$$($nillable__$1$$)],function(){return $APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($default$$jscomp$91$$,$APP.$cljs$core$truth_$$($nillable__$1$$)?null:0)}),$step__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($step$jscomp$33$$)],function(){return $APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($step$jscomp$33$$,
1)}),$min__$1$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($min$jscomp$70$$)],function(){return $APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($min$jscomp$70$$,-2147483648)}),$max__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max$jscomp$83$$)],function(){return $APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($max$jscomp$83$$,2147483647)});$max_length__$1$jscomp$1_props_76679$$=
$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($max_length$jscomp$7_on_key_down$jscomp$15$$,255);var $empty_to_end__$1$jscomp$2$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$,!1);$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$=(0,$APP.$rumext$v2$use_id$$)();$id$jscomp$919_id__$1$jscomp$20$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$919_id__$1$jscomp$20$$,$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$);
var $listbox_id$jscomp$2$$=(0,$APP.$rumext$v2$use_id$$)(),$align__$1$jscomp$2$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($align$jscomp$3_open_dropdown_ref_token_props$$,$APP.$cljs$cst$257$left$$),$is_open_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$is_open$jscomp$8$$=$APP.$cljs$core$_deref$$($is_open_STAR_$jscomp$2$$),$token_applied_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($applied_token$jscomp$5$$),$token_applied$$=
$APP.$cljs$core$_deref$$($token_applied_STAR_$$),$focused_id_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$focused_id$jscomp$3$$=$APP.$cljs$core$_deref$$($focused_id_STAR_$jscomp$2$$),$filter_id_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),$filter_id$jscomp$10$$=$APP.$cljs$core$_deref$$($filter_id_STAR_$jscomp$1$$),$raw_value_STAR_$$=(0,$APP.$rumext$v2$use_ref$$)(null),$last_value_STAR_$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),
$wrapper_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$nodes_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(null),$options_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$token_wrapper_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$internal_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$ref__$1$jscomp$1$$=function(){var $or__5025__auto__$jscomp$1094$$=$ref$jscomp$52$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1094$$)?$or__5025__auto__$jscomp$1094$$:$internal_ref$$}(),$dirty_ref$jscomp$2$$=
(0,$APP.$rumext$v2$use_ref$$)(!1);$align$jscomp$3_open_dropdown_ref_token_props$$=(0,$APP.$rumext$v2$use_ref$$)(null);var $token_detach_btn_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$dropdown_options$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($filter_id$jscomp$10$$)],function(){return new $APP.$cljs$core$Delay$$(function(){var $sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$=$APP.$cljs$core$delay_QMARK_$$($tokens__$1$jscomp$2$$)?
$APP.$cljs$core$_deref$$($tokens__$1$jscomp$2$$):$tokens__$1$jscomp$2$$;$sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$=$app$main$ui$ds$controls$numeric_input$sort_groups_and_tokens$$($sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$);var $options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$=$APP.$cuerdas$core$last_index_of$cljs$0core$0IFn$0_invoke$0arity$02$$($filter_id$jscomp$10$$,"{");$options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$=$APP.$cljs$core$truth_$$($options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$)?
$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($filter_id$jscomp$10$$,$options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$+1):null;$options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$=$APP.$cljs$core$seq$$($options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$)?$app$main$ui$ds$controls$numeric_input$filter_token_groups_by_name$$($sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$,$options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$):$sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$;
return $app$main$ui$ds$controls$numeric_input$generate_dropdown_options$$($options$jscomp$613_partial_temp__5825__auto__$jscomp$inline_8605$$,$sorted_tokens$jscomp$1_tokens__$2$jscomp$1$$==null)})}),$selected_id_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$truth_$$($applied_token$jscomp$5$$)?$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$ds$controls$numeric_input$get_option_by_name$$($dropdown_options$jscomp$1$$,
$applied_token$jscomp$5$$)):null}),$selected_id$jscomp$7$$=$APP.$cljs$core$_deref$$($selected_id_STAR_$jscomp$2$$),$set_option_ref$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($node$jscomp$409$$){var $state__$1$jscomp$56_state__$2$jscomp$7$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$3$$),{}),$id__$2$jscomp$1$$=$APP.$app$util$dom$get_data$$($node$jscomp$409$$,"id");$state__$1$jscomp$56_state__$2$jscomp$7$$=
$APP.$app$util$object$set_BANG_$$($state__$1$jscomp$56_state__$2$jscomp$7$$,$id__$2$jscomp$1$$,$node$jscomp$409$$);$APP.$rumext$v2$set_ref_val_BANG_$$($nodes_ref$jscomp$3$$,$state__$1$jscomp$56_state__$2$jscomp$7$$);return function(){var $state__$4$jscomp$3_state__$5$jscomp$3$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$3$$),{}),$id__$3$$=$APP.$app$util$dom$get_data$$($node$jscomp$409$$,"id");$state__$4$jscomp$3_state__$5$jscomp$3$$=$APP.$app$util$object$unset_BANG_$$($state__$4$jscomp$3_state__$5$jscomp$3$$,
$id__$3$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($nodes_ref$jscomp$3$$,$state__$4$jscomp$3_state__$5$jscomp$3$$)}}),$update_input$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($new_value$jscomp$23$$){var $temp__5825__auto__$jscomp$356$$=$APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$356$$)?$app$util$dom$set_value_BANG_$$($temp__5825__auto__$jscomp$356$$,$new_value$jscomp$23$$):null}),$apply_value$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$52$$),$APP.$rumext$v2$adapt$$($update_input$jscomp$2$$),$APP.$rumext$v2$adapt$$($value__$2$jscomp$8$$),$APP.$rumext$v2$adapt$$($nillable__$1$$),$APP.$rumext$v2$adapt$$($min__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($max__$1$jscomp$1$$)],function($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$){var $G__76682_76790_temp__5823__auto__$jscomp$222$$=$app$main$ui$ds$controls$numeric_input$parse_value$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$,
$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$),$min__$1$jscomp$2$$,$max__$1$jscomp$1$$,$nillable__$1$$);if($APP.$cljs$core$truth_$$($G__76682_76790_temp__5823__auto__$jscomp$222$$)){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__76682_76790_temp__5823__auto__$jscomp$222$$,$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$)))return null;$APP.$rumext$v2$set_ref_val_BANG_$$($last_value_STAR_$jscomp$1$$,$G__76682_76790_temp__5823__auto__$jscomp$222$$);$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,
null);$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$52$$)&&($on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$($G__76682_76790_temp__5823__auto__$jscomp$222$$):$on_change$jscomp$52$$($G__76682_76790_temp__5823__auto__$jscomp$222$$));$APP.$rumext$v2$set_ref_val_BANG_$$($raw_value_STAR_$$,$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76682_76790_temp__5823__auto__$jscomp$222$$));$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$=
$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76682_76790_temp__5823__auto__$jscomp$222$$);return $update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$):$update_input$jscomp$2$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$)}if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($nillable__$1$$)?
$APP.$cljs$core$empty_QMARK_$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$):$nillable__$1$$))return $APP.$rumext$v2$set_ref_val_BANG_$$($last_value_STAR_$jscomp$1$$,null),$APP.$rumext$v2$set_ref_val_BANG_$$($raw_value_STAR_$$,""),$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,null),$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$(""):$update_input$jscomp$2$$(""),$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$52$$)?
$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$(null):$on_change$jscomp$52$$(null):null;$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$=$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$);$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$=$APP.$cljs$core$truth_$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$)?$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$:
$default$__$1$jscomp$1$$;$APP.$rumext$v2$set_ref_val_BANG_$$($raw_value_STAR_$$,$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$);$APP.$rumext$v2$set_ref_val_BANG_$$($last_value_STAR_$jscomp$1$$,$G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$);$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,null);$G__76682_76790_temp__5823__auto__$jscomp$222$$=$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$);
$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76682_76790_temp__5823__auto__$jscomp$222$$):$update_input$jscomp$2$$($G__76682_76790_temp__5823__auto__$jscomp$222$$);return $APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$52$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($value__$2$jscomp$8$$))?
$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$):$on_change$jscomp$52$$($G__76681_fallback_value_or__5025__auto__$jscomp$inline_12902_raw_value$jscomp$1$$):null}),$apply_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($min__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($max__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($nillable__$1$$),
$APP.$rumext$v2$adapt$$($on_change$jscomp$52$$),$APP.$rumext$v2$adapt$$($tokens__$1$jscomp$2$$)],function($parsed$jscomp$5_value__$3$$,$G__76684_name__$1$jscomp$19$$){$parsed$jscomp$5_value__$3$$=$app$main$ui$ds$controls$numeric_input$parse_value$$($parsed$jscomp$5_value__$3$$,$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$),$min__$1$jscomp$2$$,$max__$1$jscomp$1$$,$nillable__$1$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($parsed$jscomp$5_value__$3$$,$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$)))return null;
$APP.$rumext$v2$set_ref_val_BANG_$$($last_value_STAR_$jscomp$1$$,$parsed$jscomp$5_value__$3$$);return $APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$52$$)?($G__76684_name__$1$jscomp$19$$=$app$main$ui$ds$controls$numeric_input$get_token_op$$($tokens__$1$jscomp$2$$,$G__76684_name__$1$jscomp$19$$),$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$52$$.$cljs$core$IFn$_invoke$arity$1$($G__76684_name__$1$jscomp$19$$):$on_change$jscomp$52$$($G__76684_name__$1$jscomp$19$$)):null});$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$470_text$jscomp$134$$){$event$jscomp$470_text$jscomp$134$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$470_text$jscomp$134$$);$APP.$rumext$v2$set_ref_val_BANG_$$($raw_value_STAR_$$,$event$jscomp$470_text$jscomp$134$$);return $APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$jscomp$1$$,$event$jscomp$470_text$jscomp$134$$)});var $on_token_apply$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($apply_token$$)],
function($id__$2$jscomp$2$$,$value__$3$jscomp$1$$,$name__$1$jscomp$20$$){$APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$2$$,$id__$2$jscomp$2$$);$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$2$$,null);$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$2$$,!1);$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,$name__$1$jscomp$20$$);$apply_token$$.$cljs$core$IFn$_invoke$arity$2$?$apply_token$$.$cljs$core$IFn$_invoke$arity$2$($value__$3$jscomp$1$$,$name__$1$jscomp$20$$):$apply_token$$($value__$3$jscomp$1$$,
$name__$1$jscomp$20$$);return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$truth_$$($token_wrapper_ref$jscomp$1$$)?$APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($token_wrapper_ref$jscomp$1$$)):null})}),$on_option_click$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_token_apply$$)],function($event$jscomp$471_id__$2$jscomp$3$$){$event$jscomp$471_id__$2$jscomp$3$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$471_id__$2$jscomp$3$$),
"id");var $options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$=$APP.$rumext$v2$ref_val$$($options_ref$jscomp$2$$);$options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$=$APP.$cljs$core$delay_QMARK_$$($options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$)?$APP.$cljs$core$_deref$$($options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$):$options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$;var $name__$1$jscomp$21_option$jscomp$19$$=$APP.$app$main$ui$ds$controls$select$get_option$$($options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$,
$event$jscomp$471_id__$2$jscomp$3$$);$options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($name__$1$jscomp$21_option$jscomp$19$$,$APP.$cljs$cst$4441$resolved_value$$);$name__$1$jscomp$21_option$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($name__$1$jscomp$21_option$jscomp$19$$,$APP.$cljs$cst$723$name$$);$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$?$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$471_id__$2$jscomp$3$$,
$options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$,$name__$1$jscomp$21_option$jscomp$19$$):$on_token_apply$$($event$jscomp$471_id__$2$jscomp$3$$,$options$jscomp$614_options__$1$jscomp$84_value__$3$jscomp$2$$,$name__$1$jscomp$21_option$jscomp$19$$);return $APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$jscomp$1$$,"")}),$on_option_enter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($focused_id$jscomp$3$$),$APP.$rumext$v2$adapt$$($on_token_apply$$)],
function(){var $options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$=$APP.$rumext$v2$ref_val$$($options_ref$jscomp$2$$);$options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$=$APP.$cljs$core$delay_QMARK_$$($options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$)?$APP.$cljs$core$_deref$$($options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$):$options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$;var $name__$1$jscomp$22_option$jscomp$20$$=$APP.$app$main$ui$ds$controls$select$get_option$$($options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$,
$focused_id$jscomp$3$$);$options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($name__$1$jscomp$22_option$jscomp$20$$,$APP.$cljs$cst$4441$resolved_value$$);$name__$1$jscomp$22_option$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($name__$1$jscomp$22_option$jscomp$20$$,$APP.$cljs$cst$723$name$$);$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$?$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$($focused_id$jscomp$3$$,$options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$,
$name__$1$jscomp$22_option$jscomp$20$$):$on_token_apply$$($focused_id$jscomp$3$$,$options$jscomp$615_options__$1$jscomp$85_value__$3$jscomp$3$$,$name__$1$jscomp$22_option$jscomp$20$$);return $APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$jscomp$1$$,"")}),$on_blur__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($apply_value$jscomp$2$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$19$$)],function($event$jscomp$472$$){$APP.$cljs$core$truth_$$($APP.$app$util$dom$is_child_QMARK_$$($APP.$rumext$v2$ref_val$$($wrapper_ref$jscomp$2$$),
$event$jscomp$472$$!=null?$event$jscomp$472$$.relatedTarget:null))||($APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$jscomp$1$$,""),$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$2$$,null),$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$2$$,!1));if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dirty_ref$jscomp$2$$))){var $G__76695_76793$$=$APP.$rumext$v2$ref_val$$($raw_value_STAR_$$);$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76695_76793$$):
$apply_value$jscomp$2$$($G__76695_76793$$)}return $APP.$cljs$core$fn_QMARK_$$($on_blur$jscomp$19$$)?$on_blur$jscomp$19$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur$jscomp$19$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$472$$):$on_blur$jscomp$19$$($event$jscomp$472$$):null});$max_length$jscomp$7_on_key_down$jscomp$15$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open$jscomp$8$$),$APP.$rumext$v2$adapt$$($apply_value$jscomp$2$$),$APP.$rumext$v2$adapt$$($update_input$jscomp$2$$),
$APP.$rumext$v2$adapt$$($is_open$jscomp$8$$),$APP.$rumext$v2$adapt$$($focused_id$jscomp$3$$),$APP.$rumext$v2$adapt$$($APP.$app$main$ui$ds$controls$select$handle_focus_change$$)],function($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$){$APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$jscomp$2$$,!0);var $up_QMARK_$jscomp$4$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),
$down_QMARK_$jscomp$4$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),$enter_QMARK_$jscomp$4$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),$esc_QMARK_$jscomp$5$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),
$new_index$jscomp$9_node$jscomp$412_option_id$$=$APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$),$open_tokens$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$.key,"{"),$close_tokens$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$.key,
"}"),$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$rumext$v2$ref_val$$($options_ref$jscomp$2$$);$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$cljs$core$delay_QMARK_$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$)?$APP.$cljs$core$_deref$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$):
$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$;if($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$!=null&&$open_tokens$$)return $APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$2$$,!0);if($close_tokens$$){$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=
$app$main$ui$ds$controls$numeric_input$clean_token_name$$($APP.$rumext$v2$ref_val$$($raw_value_STAR_$$));$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$app$main$ui$ds$controls$numeric_input$get_option_by_name$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);
if($APP.$cljs$core$truth_$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$))return $G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$),$apply_token$$.$cljs$core$IFn$_invoke$arity$2$?
$apply_token$$.$cljs$core$IFn$_invoke$arity$2$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$apply_token$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);
$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$);return $apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$apply_value$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$)}if($APP.$cljs$core$truth_$$($enter_QMARK_$jscomp$4$$)){if($APP.$cljs$core$truth_$$($is_open$jscomp$8$$)){$APP.$app$util$dom$prevent_default$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);
if($APP.$cljs$core$truth_$$($focused_id$jscomp$3$$))return $on_option_enter$$.$cljs$core$IFn$_invoke$arity$1$?$on_option_enter$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$on_option_enter$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);$new_index$jscomp$9_node$jscomp$412_option_id$$=
$app$main$ui$ds$controls$numeric_input$first_focusable_id$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$);$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=$APP.$app$main$ui$ds$controls$select$get_option$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,
$new_index$jscomp$9_node$jscomp$412_option_id$$);$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$,$APP.$cljs$cst$4441$resolved_value$$);$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$,$APP.$cljs$cst$723$name$$);$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$?$on_token_apply$$.$cljs$core$IFn$_invoke$arity$3$($new_index$jscomp$9_node$jscomp$412_option_id$$,$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):
$on_token_apply$$($new_index$jscomp$9_node$jscomp$412_option_id$$,$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);return $APP.$cljs$core$reset_BANG_$$($filter_id_STAR_$jscomp$1$$,"")}return $on_blur__$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur__$1$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):
$on_blur__$1$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$)}if($APP.$cljs$core$truth_$$($esc_QMARK_$jscomp$5$$))return $G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$)),$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?
$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$update_input$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$2$$,!1),$APP.$app$util$dom$blur_BANG_$$($new_index$jscomp$9_node$jscomp$412_option_id$$);if($APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$home_QMARK_$$)($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$)))return $APP.$app$main$ui$ds$controls$select$handle_focus_change$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,
$focused_id_STAR_$jscomp$2$$,0,$APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$3$$));if($APP.$cljs$core$truth_$$($up_QMARK_$jscomp$4$$)){if($APP.$cljs$core$truth_$$($is_open$jscomp$8$$))return $new_index$jscomp$9_node$jscomp$412_option_id$$=$app$main$ui$ds$controls$numeric_input$next_focus_index$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$focused_id$jscomp$3$$,$APP.$cljs$cst$1939$up$$),$APP.$app$util$dom$prevent_default$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),
$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$focused_id_STAR_$jscomp$2$$,$new_index$jscomp$9_node$jscomp$412_option_id$$,$APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$3$$));var $parsed$jscomp$6$$=$app$main$ui$ds$controls$numeric_input$parse_value$$($APP.$rumext$v2$ref_val$$($raw_value_STAR_$$),$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$),$min__$1$jscomp$2$$,
$max__$1$jscomp$1$$,$nillable__$1$$);$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=function(){var $or__5025__auto__$jscomp$1096$$=$parsed$jscomp$6$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1096$$)?$or__5025__auto__$jscomp$1096$$:$default$__$1$jscomp$1$$}();$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$app$common$math$clamp$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$+
$step__$1$$,$min__$1$jscomp$2$$,$max__$1$jscomp$1$$);$APP.$app$util$dom$prevent_default$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$);
$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$update_input$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=
""+($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$??"");return $apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$apply_value$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$)}if($APP.$cljs$core$truth_$$($down_QMARK_$jscomp$4$$)){if($APP.$cljs$core$truth_$$($is_open$jscomp$8$$))return $new_index$jscomp$9_node$jscomp$412_option_id$$=
$app$main$ui$ds$controls$numeric_input$next_focus_index$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,$focused_id$jscomp$3$$,$APP.$cljs$cst$1938$down$$),$APP.$app$util$dom$prevent_default$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$),$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$,
$focused_id_STAR_$jscomp$2$$,$new_index$jscomp$9_node$jscomp$412_option_id$$,$APP.$rumext$v2$ref_val$$($nodes_ref$jscomp$3$$));$parsed$jscomp$6$$=$app$main$ui$ds$controls$numeric_input$parse_value$$($APP.$rumext$v2$ref_val$$($raw_value_STAR_$$),$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$),$min__$1$jscomp$2$$,$max__$1$jscomp$1$$,$nillable__$1$$);$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=function(){var $or__5025__auto__$jscomp$1097$$=
$parsed$jscomp$6$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1097$$)?$or__5025__auto__$jscomp$1097$$:$default$__$1$jscomp$1$$}();$G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$=$APP.$app$common$math$clamp$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$-$step__$1$$,$min__$1$jscomp$2$$,$max__$1$jscomp$1$$);$APP.$app$util$dom$prevent_default$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);
$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$);$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):
$update_input$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$);$G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$=""+($G__76697_current_value$jscomp$7_new_val$jscomp$6_options$jscomp$616_options__$1$jscomp$86_token$jscomp$117_value__$3$jscomp$4$$??"");return $apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?
$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$):$apply_value$jscomp$2$$($G__76698_G__76699_G__76702_76796_G__76709_76797_G__76712_G__76714_76816_G__76715_event$jscomp$473_name__$1$jscomp$23_option$jscomp$21$$)}return null});var $on_focus__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$10$$),$APP.$rumext$v2$adapt$$($select_on_focus$jscomp$3$$)],
function($event$jscomp$474_target$jscomp$145$$){$APP.$cljs$core$fn_QMARK_$$($on_focus$jscomp$10$$)&&($on_focus$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$474_target$jscomp$145$$):$on_focus$jscomp$10$$($event$jscomp$474_target$jscomp$145$$));$event$jscomp$474_target$jscomp$145$$=$APP.$app$util$dom$get_target$$($event$jscomp$474_target$jscomp$145$$);return $APP.$cljs$core$truth_$$($select_on_focus$jscomp$3$$)?($APP.$app$util$dom$select_text_BANG_$$($event$jscomp$474_target$jscomp$145$$),
$event$jscomp$474_target$jscomp$145$$.addEventListener("mouseup",$APP.$app$util$dom$prevent_default$$,{once:!0})):null}),$on_mouse_wheel$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($apply_value$jscomp$2$$),$APP.$rumext$v2$adapt$$($app$main$ui$ds$controls$numeric_input$parse_value$$),$APP.$rumext$v2$adapt$$($min__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($max__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($nillable__$1$$),$APP.$rumext$v2$adapt$$($ref__$1$jscomp$1$$),
$APP.$rumext$v2$adapt$$($default$__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($step__$1$$),$APP.$rumext$v2$adapt$$($min__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($max__$1$jscomp$1$$)],function($G__76722_event$jscomp$475$$){var $inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$=$APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$);if($APP.$cljs$core$truth_$$($inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$)&&$APP.$cljs$core$truth_$$($inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$!=
null?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$globals$document$$.activeElement,$inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$):null)){$inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($app$util$dom$get_delta_position$$($G__76722_event$jscomp$475$$))<0;var $current_value$jscomp$8_parsed$jscomp$7$$=$app$main$ui$ds$controls$numeric_input$parse_value$$($APP.$rumext$v2$ref_val$$($raw_value_STAR_$$),
$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$),$min__$1$jscomp$2$$,$max__$1$jscomp$1$$,$nillable__$1$$);$current_value$jscomp$8_parsed$jscomp$7$$=$APP.$cljs$core$truth_$$($current_value$jscomp$8_parsed$jscomp$7$$)?$current_value$jscomp$8_parsed$jscomp$7$$:$default$__$1$jscomp$1$$;$inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$=$inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$?$APP.$app$common$math$clamp$$($current_value$jscomp$8_parsed$jscomp$7$$+$step__$1$$,$min__$1$jscomp$2$$,
$max__$1$jscomp$1$$):$APP.$app$common$math$clamp$$($current_value$jscomp$8_parsed$jscomp$7$$-$step__$1$$,$min__$1$jscomp$2$$,$max__$1$jscomp$1$$);$APP.$app$util$dom$prevent_default$$($G__76722_event$jscomp$475$$);$APP.$app$util$dom$stop_propagation$$($G__76722_event$jscomp$475$$);$G__76722_event$jscomp$475$$=""+($inc_QMARK__new_val$jscomp$7_temp__5825__auto__$jscomp$357$$??"");return $apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$apply_value$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__76722_event$jscomp$475$$):
$apply_value$jscomp$2$$($G__76722_event$jscomp$475$$)}return null});$disabled$jscomp$16_open_dropdown$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disabled__$1$$),$APP.$rumext$v2$adapt$$($ref__$1$jscomp$1$$)],function($event$jscomp$476$$){if($APP.$cljs$core$truth_$$($disabled__$1$$))return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$476$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($is_open_STAR_$jscomp$2$$,$APP.$cljs$core$not$$);
return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$))});var $open_dropdown_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($disabled__$1$$),$APP.$rumext$v2$adapt$$($token_wrapper_ref$jscomp$1$$)],function($event$jscomp$477$$){if($APP.$cljs$core$truth_$$($disabled__$1$$))return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$477$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($is_open_STAR_$jscomp$2$$,
$APP.$cljs$core$not$$);return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($token_wrapper_ref$jscomp$1$$))}),$detach_token$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach$jscomp$2$$),$APP.$rumext$v2$adapt$$($tokens__$1$jscomp$2$$),$APP.$rumext$v2$adapt$$($disabled__$1$$),$APP.$rumext$v2$adapt$$($token_applied$$)],function($event$jscomp$478$$){if($APP.$cljs$core$truth_$$($disabled__$1$$))return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$478$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$478$$);$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,null);$APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$2$$,null);$APP.$cljs$core$reset_BANG_$$($focused_id_STAR_$jscomp$2$$,null);$APP.$cljs$core$truth_$$($on_detach$jscomp$2$$)&&($on_detach$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_detach$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($token_applied$$):$on_detach$jscomp$2$$($token_applied$$));return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$))})}),
$on_token_key_down$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($detach_token$jscomp$3$$),$APP.$rumext$v2$adapt$$($is_open$jscomp$8$$)],function($event$jscomp$479$$){var $esc_QMARK_$jscomp$6_new_index$jscomp$10$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$479$$),$delete_QMARK_$$=(0,$APP.$app$util$keyboard$delete_QMARK_$$)($event$jscomp$479$$),$backspace_QMARK_$$=(0,$APP.$app$util$keyboard$backspace_QMARK_$$)($event$jscomp$479$$),$enter_QMARK_$jscomp$5$$=
(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$479$$),$up_QMARK_$jscomp$5$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$479$$),$down_QMARK_$jscomp$5$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$479$$),$options$jscomp$617_options__$1$jscomp$87$$=$APP.$rumext$v2$ref_val$$($options_ref$jscomp$2$$);$options$jscomp$617_options__$1$jscomp$87$$=$APP.$cljs$core$delay_QMARK_$$($options$jscomp$617_options__$1$jscomp$87$$)?$APP.$cljs$core$_deref$$($options$jscomp$617_options__$1$jscomp$87$$):
$options$jscomp$617_options__$1$jscomp$87$$;var $detach_btn$$=$APP.$rumext$v2$ref_val$$($token_detach_btn_ref$jscomp$1$$),$target$jscomp$146$$=$APP.$app$util$dom$get_target$$($event$jscomp$479$$);if($APP.$cljs$core$truth_$$($disabled__$1$$))return null;if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($delete_QMARK_$$)?$delete_QMARK_$$:$backspace_QMARK_$$))return $APP.$app$util$dom$prevent_default$$($event$jscomp$479$$),$detach_token$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$detach_token$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$479$$):
$detach_token$jscomp$3$$($event$jscomp$479$$),$APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$));if($APP.$cljs$core$truth_$$($enter_QMARK_$jscomp$5$$))return $APP.$cljs$core$truth_$$($is_open$jscomp$8$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$479$$),$APP.$app$util$dom$stop_propagation$$($event$jscomp$479$$),$on_option_enter$$.$cljs$core$IFn$_invoke$arity$1$?$on_option_enter$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$479$$):$on_option_enter$$($event$jscomp$479$$)):
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($target$jscomp$146$$,$detach_btn$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$479$$),$APP.$cljs$core$reset_BANG_$$($is_open_STAR_$jscomp$2$$,!0)):null;if($APP.$cljs$core$truth_$$($esc_QMARK_$jscomp$6_new_index$jscomp$10$$))return $APP.$app$util$dom$blur_BANG_$$($APP.$rumext$v2$ref_val$$($token_wrapper_ref$jscomp$1$$));if($APP.$cljs$core$truth_$$($up_QMARK_$jscomp$5$$)){if($APP.$cljs$core$truth_$$($is_open$jscomp$8$$))return $esc_QMARK_$jscomp$6_new_index$jscomp$10$$=
$app$main$ui$ds$controls$numeric_input$next_focus_index$$($options$jscomp$617_options__$1$jscomp$87$$,$focused_id$jscomp$3$$,$APP.$cljs$cst$1939$up$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$479$$),$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($options$jscomp$617_options__$1$jscomp$87$$,$focused_id_STAR_$jscomp$2$$,$esc_QMARK_$jscomp$6_new_index$jscomp$10$$,$nodes_ref$jscomp$3$$)}else if($APP.$cljs$core$truth_$$($down_QMARK_$jscomp$5$$)&&$APP.$cljs$core$truth_$$($is_open$jscomp$8$$))return $esc_QMARK_$jscomp$6_new_index$jscomp$10$$=
$app$main$ui$ds$controls$numeric_input$next_focus_index$$($options$jscomp$617_options__$1$jscomp$87$$,$focused_id$jscomp$3$$,$APP.$cljs$cst$1938$down$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$479$$),$APP.$app$main$ui$ds$controls$select$handle_focus_change$$($options$jscomp$617_options__$1$jscomp$87$$,$focused_id_STAR_$jscomp$2$$,$esc_QMARK_$jscomp$6_new_index$jscomp$10$$,$nodes_ref$jscomp$3$$);return null});$input_props_placeholder$jscomp$5$$={...$props$jscomp$316$$,onChange:$empty_to_end$jscomp$3_internal_id$jscomp$3_store_raw_value$$,
"aria-label":$property$jscomp$86$$,className:$inner_class$$,placeholder:$is_multiple_QMARK_$$?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.mixed-values"):$input_props_placeholder$jscomp$5$$,id:$id$jscomp$919_id__$1$jscomp$20$$,maxLength:$max_length__$1$jscomp$1_props_76679$$,slotStart:$APP.$cljs$core$truth_$$($text_icon$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_numeric_input__text-icon",children:$text_icon$$}):null,onFocus:$on_focus__$1$$,onBlur:$on_blur__$1$$,
type:"text",ref:$ref__$1$jscomp$1$$,slotEnd:$APP.$cljs$core$truth_$$($disabled__$1$$)?null:$tokens__$1$jscomp$2$$!=null?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",icon:"tokens",tooltipClass:"main_ui_ds_controls_numeric_input__button-tooltip",className:"main_ui_ds_controls_numeric_input__invisible-button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("ds.inputs.numeric-input.open-token-list-dropdown"),ref:$align$jscomp$3_open_dropdown_ref_token_props$$,
onClick:$disabled$jscomp$16_open_dropdown$jscomp$4$$}):null,defaultValue:function(){var $or__5025__auto__$jscomp$1100$$=$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1100$$)?$or__5025__auto__$jscomp$1100$$:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($value__$2$jscomp$8$$)}(),onKeyDown:$max_length$jscomp$7_on_key_down$jscomp$15$$,disabled:$disabled__$1$$,variant:"comfortable",icon:$icon$jscomp$22$$};
$align$jscomp$3_open_dropdown_ref_token_props$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($token_applied$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$token_applied$$):$token_applied$$)?function(){var $token$jscomp$118$$=$app$main$ui$ds$controls$numeric_input$get_option_by_name$$($dropdown_options$jscomp$1$$,$token_applied$$),$id__$2$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$118$$,$APP.$cljs$cst$266$id$$),
$label$jscomp$38$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$118$$,$APP.$cljs$cst$723$name$$),$token_value$jscomp$6_token_value__$1$$=function(){var $or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$118$$,$APP.$cljs$cst$4441$resolved_value$$);if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$))return $or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$;
$or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$=$APP.$rumext$v2$ref_val$$($last_value_STAR_$jscomp$1$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$)?$or__5025__auto__$jscomp$1101_or__5025__auto____$1$jscomp$119$$:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($value__$2$jscomp$8$$)}();$token_value$jscomp$6_token_value__$1$$=$id__$2$jscomp$4$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$432$$,
$APP.$cljs$cst$1718$opacity$$)?100*$token_value$jscomp$6_token_value__$1$$:$token_value$jscomp$6_token_value__$1$$;return{...$props$jscomp$316$$,onTokenKeyDown:$on_token_key_down$jscomp$1$$,detachToken:$detach_token$jscomp$3$$,tokenDetachBtnRef:$token_detach_btn_ref$jscomp$1$$,className:$inner_class$$,label:$label$jscomp$38$$,id:$id__$2$jscomp$4$$,value:$token_value$jscomp$6_token_value__$1$$,slotStart:$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1102$$=$icon$jscomp$22$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1102$$)?
$or__5025__auto__$jscomp$1102$$:$text_icon$$}())?$APP.$cljs$core$truth_$$($icon$jscomp$22$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$icon$jscomp$22$$,size:"s",className:"main_ui_ds_controls_numeric_input__icon"}):$APP.$cljs$core$truth_$$($text_icon$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_controls_numeric_input__text-icon",children:$text_icon$$}):null:null,onFocus:$on_focus__$1$$,property:$property$jscomp$86$$,onBlur:$on_blur__$1$$,
onClick:$open_dropdown_token$$,tokenWrapperRef:$token_wrapper_ref$jscomp$1$$,disabled:$disabled__$1$$}}():null;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value__$2$jscomp$8$$),$APP.$rumext$v2$adapt$$($default$__$1$jscomp$1$$),$APP.$rumext$v2$adapt$$($applied_token$jscomp$5$$)],function(){var $value_SINGLEQUOTE_$jscomp$2$$=$is_multiple_QMARK_$$?"":$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($nillable__$1$$)?$value__$2$jscomp$8$$==null:$nillable__$1$$)?
"":$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($value__$2$jscomp$8$$,$default$__$1$jscomp$1$$));$APP.$rumext$v2$set_ref_val_BANG_$$($raw_value_STAR_$$,$value_SINGLEQUOTE_$jscomp$2$$);$APP.$rumext$v2$set_ref_val_BANG_$$($last_value_STAR_$jscomp$1$$,$value_SINGLEQUOTE_$jscomp$2$$);$APP.$cljs$core$reset_BANG_$$($token_applied_STAR_$$,$applied_token$jscomp$5$$);if($APP.$cljs$core$truth_$$($applied_token$jscomp$5$$)){var $temp__5825__auto__$jscomp$358_token_id_76824$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($app$main$ui$ds$controls$numeric_input$get_option_by_name$$($dropdown_options$jscomp$1$$,$applied_token$jscomp$5$$));$APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$2$$,$temp__5825__auto__$jscomp$358_token_id_76824$$)}else $APP.$cljs$core$reset_BANG_$$($selected_id_STAR_$jscomp$2$$,null);$temp__5825__auto__$jscomp$358_token_id_76824$$=$APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$358_token_id_76824$$)?
$app$util$dom$set_value_BANG_$$($temp__5825__auto__$jscomp$358_token_id_76824$$,$value_SINGLEQUOTE_$jscomp$2$$):null});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_mouse_wheel$jscomp$1$$)],function(){var $temp__5825__auto__$jscomp$359$$=$APP.$rumext$v2$ref_val$$($ref__$1$jscomp$1$$);if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$359$$)){var $key$jscomp$413$$=$APP.$goog$events$listen$$($temp__5825__auto__$jscomp$359$$,"wheel",$on_mouse_wheel$jscomp$1$$,
{passive:!1});return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$413$$)}}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dropdown_options$jscomp$1$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($options_ref$jscomp$2$$,$dropdown_options$jscomp$1$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$wrapper_ref$jscomp$2$$,className:($class$$jscomp$66$$??"")+" main_ui_ds_controls_numeric_input__input-wrapper",children:[$token_applied$$!=
null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$token_applied$$)?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$utilities$token_field$token_field_STAR_$$,$align$jscomp$3_open_dropdown_ref_token_props$$):(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$utilities$input_field$input_field_STAR_$$,$input_props_placeholder$jscomp$5$$),$is_open$jscomp$8$$?function(){var $options$jscomp$618$$=$APP.$cljs$core$delay_QMARK_$$($dropdown_options$jscomp$1$$)?
$APP.$cljs$core$_deref$$($dropdown_options$jscomp$1$$):$dropdown_options$jscomp$1$$;return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$controls$shared$options_dropdown$options_dropdown_STAR_$$,{onClick:$on_option_click$jscomp$2$$,id:$listbox_id$jscomp$2$$,options:$options$jscomp$618$$,selected:$selected_id$jscomp$7$$,focused:$focused_id$jscomp$3$$,align:$align__$1$jscomp$2$$,emptyToEnd:$empty_to_end__$1$jscomp$2$$,ref:$set_option_ref$jscomp$2$$})}():null]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$event_type_name$$=function($interaction$jscomp$50$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1924$click$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-on-click"),$APP.$cljs$cst$1923$mouse_enter$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-mouse-enter"),$APP.$cljs$cst$1921$mouse_leave$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-mouse-leave"),$APP.$cljs$cst$1920$after_delay$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-after-delay")],null),$APP.$cljs$cst$1541$event_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$50$$),"--")};
$app$main$ui$workspace$sidebar$options$menus$interactions$action_summary$$=function($G__76774_interaction$jscomp$51$$,$destination$jscomp$13$$){$G__76774_interaction$jscomp$51$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($G__76774_interaction$jscomp$51$$);switch($G__76774_interaction$jscomp$51$$ instanceof $APP.$cljs$core$Keyword$$?$G__76774_interaction$jscomp$51$$.$fqn$:null){case "navigate":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.interaction-navigate-to-dest",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($destination$jscomp$13$$,$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-none"))]));case "open-overlay":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.interaction-open-overlay-dest",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($destination$jscomp$13$$,
$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-none"))]));case "toggle-overlay":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.interaction-toggle-overlay-dest",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($destination$jscomp$13$$,$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-none"))]));
case "close-overlay":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.interaction-close-overlay-dest",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($destination$jscomp$13$$,$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-self"))]));case "prev-screen":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-prev-screen");
case "open-url":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-open-url");default:return"--"}};
$app$main$ui$workspace$sidebar$options$menus$interactions$get_frames_options$$=function($frames$jscomp$28$$,$shape$jscomp$961$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($frame$jscomp$65$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$65$$)),$APP.$cljs$cst$2245$label$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$65$$)],
null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76775_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__76775_SHARP_$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$961$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76775_SHARP_$$),$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$961$$))},
$frames$jscomp$28$$))};
$app$main$ui$workspace$sidebar$options$menus$interactions$get_shared_frames_options$$=function($shared_frames$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($frame$jscomp$66$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$66$$)),$APP.$cljs$cst$2245$label$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$66$$)],null)},
$shared_frames$$)};
$app$main$ui$workspace$sidebar$options$menus$interactions$prototype_pill_STAR_$$=function($left_button_tooltip_props_76789$$,$external_ref$jscomp$4_handle_focus$jscomp$4$$){var $on_change$jscomp$53$$=$left_button_tooltip_props_76789$$.onChange,$is_left_button_active$$=$left_button_tooltip_props_76789$$.isLeftButtonActive,$description$jscomp$16$$=$left_button_tooltip_props_76789$$.description,$is_right_button_active$$=$left_button_tooltip_props_76789$$.isRightButtonActive,$is_editable$$=$left_button_tooltip_props_76789$$.isEditable,
$right_button_icon_id$$=$left_button_tooltip_props_76789$$.rightButtonIconId,$on_right_button_click$$=$left_button_tooltip_props_76789$$.onRightButtonClick,$left_button_icon_id$$=$left_button_tooltip_props_76789$$.leftButtonIconId,$right_button_tooltip$$=$left_button_tooltip_props_76789$$.rightButtonTooltip,$title$jscomp$38$$=$left_button_tooltip_props_76789$$.title,$on_left_button_click$$=$left_button_tooltip_props_76789$$.onLeftButtonClick;$left_button_tooltip_props_76789$$=$left_button_tooltip_props_76789$$.leftButtonTooltip;
var $handle_key_down$jscomp$9_local_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(),$ref$jscomp$53$$=$APP.$cljs$core$truth_$$($external_ref$jscomp$4_handle_focus$jscomp$4$$)?$external_ref$jscomp$4_handle_focus$jscomp$4$$:$handle_key_down$jscomp$9_local_ref$jscomp$4$$;$external_ref$jscomp$4_handle_focus$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$select_text_BANG_$$($APP.$rumext$v2$ref_val$$($ref$jscomp$53$$))});$handle_key_down$jscomp$9_local_ref$jscomp$4$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$){var $input_node$jscomp$9$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$53$$),$value$jscomp$804$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$))),$or__5025__auto__$jscomp$inline_8607$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$);
$JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8607$$)?$or__5025__auto__$jscomp$inline_8607$$:(0,$APP.$app$util$keyboard$enter_QMARK_$$)($JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1778_event$jscomp$480$$)?($APP.$app$util$dom$blur_BANG_$$($input_node$jscomp$9$$),$on_change$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$804$$):
$on_change$jscomp$53$$($value$jscomp$804$$)):null});var $handle_blur$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$481_value$jscomp$805$$){$event$jscomp$481_value$jscomp$805$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$481_value$jscomp$805$$)));return $on_change$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$481_value$jscomp$805$$):
$on_change$jscomp$53$$($event$jscomp$481_value$jscomp$805$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill "+($description$jscomp$16$$!=null?"main_ui_workspace_sidebar_options_menus_interactions__double":""),children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary",className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-button main_ui_workspace_sidebar_options_menus_interactions__left",
"aria-pressed":$is_left_button_active$$,icon:$left_button_icon_id$$,"aria-label":$left_button_tooltip_props_76789$$,onClick:$on_left_button_click$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-main",children:[$APP.$cljs$core$truth_$$($is_editable$$)?(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$ref$jscomp$53$$,defaultValue:$title$jscomp$38$$,onFocus:$external_ref$jscomp$4_handle_focus$jscomp$4$$,onKeyDown:$handle_key_down$jscomp$9_local_ref$jscomp$4$$,
onBlur:$handle_blur$jscomp$5$$,className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-input"}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-center",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-info",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-name",children:$title$jscomp$38$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-description",children:$description$jscomp$16$$})]})}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary",className:"main_ui_workspace_sidebar_options_menus_interactions__prototype-pill-button main_ui_workspace_sidebar_options_menus_interactions__right","aria-pressed":$is_right_button_active$$,icon:$right_button_icon_id$$,"aria-label":$right_button_tooltip$$,
onClick:$on_right_button_click$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$flow_item_STAR_$$=function($props_76795_start_flow$$){var $flow$jscomp$8$$=$props_76795_start_flow$$.flow;$props_76795_start_flow$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($flow$jscomp$8$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_viewer$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$1355$section$$,"interactions",$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$2038$starting_frame$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$8$$)],null)])))});var $rename_flow$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($flow$jscomp$8$$)],function($value$jscomp$806$$){return $APP.$cuerdas$core$empty_QMARK_$$($value$jscomp$806$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$rename_flow$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$8$$),
$value$jscomp$806$$))}),$remove_flow$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($flow$jscomp$8$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$remove_flow$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$8$$)))});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$prototype_pill_STAR_$$,
{onChange:$rename_flow$$,leftButtonTooltip:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.flows.flow-start"),leftButtonIconId:"play",onRightButtonClick:$remove_flow$$,onLeftButtonClick:$props_76795_start_flow$$,rightButtonTooltip:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.remove"),isEditable:!0,rightButtonIconId:"remove",title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($flow$jscomp$8$$,"")})};
$app$main$ui$workspace$sidebar$options$menus$interactions$interaction_item_STAR_$$=function($destination$jscomp$14_props_76819$$){var $update_interaction$$=$destination$jscomp$14_props_76819$$.updateInteraction,$index$jscomp$480$$=$destination$jscomp$14_props_76819$$.index,$interaction$jscomp$52$$=$destination$jscomp$14_props_76819$$.interaction,$remove_interaction$$=$destination$jscomp$14_props_76819$$.removeInteraction,$shape$jscomp$962$$=$destination$jscomp$14_props_76819$$.shape,$objects$jscomp$764$$=
$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);$destination$jscomp$14_props_76819$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$764$$,$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$));var $frames$jscomp$29$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$764$$)],function(){return $APP.$app$common$types$shape_tree$get_viewer_frames$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$764$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2070$all_frames_QMARK_$$,!0],null))}),$shape_parent_ids$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$764$$)],function(){return $APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$764$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$))}),$relative_to_opts_shape_parents$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frames$jscomp$29$$),
$APP.$rumext$v2$adapt$$($shape$jscomp$962$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$set$$($shape_parent_ids$$),$APP.$cljs$cst$266$id$$),$frames$jscomp$29$$)}),$overlay_pos_type$jscomp$4$$=$APP.$cljs$cst$1956$overlay_pos_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),$close_click_outside_QMARK_$$=$APP.$cljs$cst$1957$close_click_outside$$.$cljs$core$IFn$_invoke$arity$2$($interaction$jscomp$52$$,
!1),$background_overlay_QMARK_$$=$APP.$cljs$cst$1958$background_overlay$$.$cljs$core$IFn$_invoke$arity$2$($interaction$jscomp$52$$,!1),$preserve_scroll_QMARK_$$=$APP.$cljs$cst$1953$preserve_scroll$$.$cljs$core$IFn$_invoke$arity$2$($interaction$jscomp$52$$,!1),$way$jscomp$1$$=$APP.$cljs$cst$1947$way$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),$direction$jscomp$26$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),
$open_extended_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$open_extended_QMARK_$$=$APP.$cljs$core$_deref$$($open_extended_STAR_$$),$ext_delay_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$ext_duration_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$toggle_extended$$=$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$($open_extended_STAR_$$,$APP.$cljs$core$not$$)}),$change_event_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),
$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$482$$){function $G__76880$$($JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$){a:if(!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1541$event_type$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$),$value$jscomp$807$$))switch($value$jscomp$807$$ instanceof $APP.$cljs$core$Keyword$$?$value$jscomp$807$$.$fqn$:null){case "after-delay":$JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$,$APP.$cljs$cst$1541$event_type$$,$value$jscomp$807$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1311$delay$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$,$APP.$cljs$cst$1311$delay$$,600)]));break a;default:$JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$,
$APP.$cljs$cst$1541$event_type$$,$value$jscomp$807$$)}return $JSCompiler_inline_result$jscomp$1473_p1__76798_SHARP_$$}var $value$jscomp$807$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$482$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76880$$):$update_interaction$$($index$jscomp$480$$,$G__76880$$)}),$change_action_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),
$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$483$$){function $G__76882$$($p1__76799_SHARP_$$){return $app$common$types$shape$interactions$set_action_type$$($p1__76799_SHARP_$$,$value$jscomp$808$$)}var $value$jscomp$808$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$483$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76882$$):$update_interaction$$($index$jscomp$480$$,
$G__76882$$)}),$change_delay$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($value$jscomp$809$$){function $G__76884$$($p1__76800_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76800_SHARP_$$,$APP.$cljs$cst$1311$delay$$,$value$jscomp$809$$)}return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,
$G__76884$$):$update_interaction$$($index$jscomp$480$$,$G__76884$$)}),$change_destination$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$484$$){function $G__76886$$($p1__76801_SHARP_$$){return $app$common$types$shape$interactions$set_destination$$($p1__76801_SHARP_$$,$value__$1$jscomp$48$$)}var $value__$1$jscomp$48$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$484$$,
"")?$APP.$app$common$uuid$parse$$($event$jscomp$484$$):null;return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76886$$):$update_interaction$$($index$jscomp$480$$,$G__76886$$)}),$change_position_relative_to$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$485$$){function $G__76889$$($p1__76802_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76802_SHARP_$$,
$APP.$cljs$cst$1959$position_relative_to$$,$value$jscomp$811$$)}var $value$jscomp$811$$=$APP.$app$common$uuid$parse_STAR_$$($event$jscomp$485$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76889$$):$update_interaction$$($index$jscomp$480$$,$G__76889$$)}),$change_preserve_scroll$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],
function($event$jscomp$486$$){function $G__76891$$($p1__76803_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76803_SHARP_$$,$APP.$cljs$cst$1953$preserve_scroll$$,$value$jscomp$812$$)}var $value$jscomp$812$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$486$$));return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76891$$):$update_interaction$$($index$jscomp$480$$,
$G__76891$$)}),$change_url$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($G__76893_event$jscomp$487_target$jscomp$149$$){$G__76893_event$jscomp$487_target$jscomp$149$$=$APP.$app$util$dom$get_target$$($G__76893_event$jscomp$487_target$jscomp$149$$);var $value$jscomp$813$$=$APP.$app$util$dom$get_value$$($G__76893_event$jscomp$487_target$jscomp$149$$),$has_prefix_QMARK_$$=$APP.$cuerdas$core$starts_with_QMARK_$$($value$jscomp$813$$,
"http://")||$APP.$cuerdas$core$starts_with_QMARK_$$($value$jscomp$813$$,"https://"),$value__$1$jscomp$49$$=$has_prefix_QMARK_$$?$value$jscomp$813$$:["http://",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$813$$)].join("");$has_prefix_QMARK_$$||$app$util$dom$set_value_BANG_$$($G__76893_event$jscomp$487_target$jscomp$149$$,$value__$1$jscomp$49$$);return $APP.$cljs$core$truth_$$($app$util$dom$valid_QMARK_$$($G__76893_event$jscomp$487_target$jscomp$149$$))?($G__76893_event$jscomp$487_target$jscomp$149$$!=
null&&$G__76893_event$jscomp$487_target$jscomp$149$$.classList.remove("error"),$G__76893_event$jscomp$487_target$jscomp$149$$=function($p1__76804_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76804_SHARP_$$,$APP.$cljs$cst$1960$url$$,$value__$1$jscomp$49$$)},$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76893_event$jscomp$487_target$jscomp$149$$):$update_interaction$$($index$jscomp$480$$,
$G__76893_event$jscomp$487_target$jscomp$149$$)):$APP.$app$util$dom$add_class_BANG_$$($G__76893_event$jscomp$487_target$jscomp$149$$,"error")}),$change_overlay_pos_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$962$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($value$jscomp$814$$){function $G__76895_76967$$($p1__76805_SHARP_$$){var $JSCompiler_temp_const$jscomp$inline_12908$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$;
var $G__48895$jscomp$inline_12910_JSCompiler_inline_result$jscomp$inline_12909$$=$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__76805_SHARP_$$);$G__48895$jscomp$inline_12910_JSCompiler_inline_result$jscomp$inline_12909$$=$app$common$types$shape$interactions$calc_overlay_pos_initial$$.$cljs$core$IFn$_invoke$arity$4$?$app$common$types$shape$interactions$calc_overlay_pos_initial$$.$cljs$core$IFn$_invoke$arity$4$($G__48895$jscomp$inline_12910_JSCompiler_inline_result$jscomp$inline_12909$$,
$shape$jscomp$962$$,$objects$jscomp$764$$,$value$jscomp$814$$):$app$common$types$shape$interactions$calc_overlay_pos_initial$$($G__48895$jscomp$inline_12910_JSCompiler_inline_result$jscomp$inline_12909$$,$shape$jscomp$962$$,$objects$jscomp$764$$,$value$jscomp$814$$);return $JSCompiler_temp_const$jscomp$inline_12908$$.call($APP.$cljs$core$assoc$$,$p1__76805_SHARP_$$,$APP.$cljs$cst$1956$overlay_pos_type$$,$value$jscomp$814$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1955$overlay_position$$,
$G__48895$jscomp$inline_12910_JSCompiler_inline_result$jscomp$inline_12909$$]))}var $shape_id$jscomp$155$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$);$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76895_76967$$):$update_interaction$$($index$jscomp$480$$,$G__76895_76967$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$814$$,$APP.$cljs$cst$1657$manual$$)){var $G__76897$$=
function($p1__76806_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76806_SHARP_$$,$APP.$cljs$cst$1959$position_relative_to$$,$shape_id$jscomp$155$$)};return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76897$$):$update_interaction$$($index$jscomp$480$$,$G__76897$$)}return null}),$toggle_overlay_pos_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),
$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$488$$){function $G__76899$$($p1__76807_SHARP_$$){var $new_pos_type$jscomp$inline_12916$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1956$overlay_pos_type$$.$cljs$core$IFn$_invoke$arity$1$($p1__76807_SHARP_$$),$pos_type$$)?$APP.$cljs$cst$1657$manual$$:$pos_type$$,$JSCompiler_temp_const$jscomp$inline_12917$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$;var $G__48899$jscomp$inline_12919_JSCompiler_inline_result$jscomp$inline_12918$$=
$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__76807_SHARP_$$);$G__48899$jscomp$inline_12919_JSCompiler_inline_result$jscomp$inline_12918$$=$app$common$types$shape$interactions$calc_overlay_pos_initial$$.$cljs$core$IFn$_invoke$arity$4$?$app$common$types$shape$interactions$calc_overlay_pos_initial$$.$cljs$core$IFn$_invoke$arity$4$($G__48899$jscomp$inline_12919_JSCompiler_inline_result$jscomp$inline_12918$$,$shape$jscomp$962$$,$objects$jscomp$764$$,$new_pos_type$jscomp$inline_12916$$):
$app$common$types$shape$interactions$calc_overlay_pos_initial$$($G__48899$jscomp$inline_12919_JSCompiler_inline_result$jscomp$inline_12918$$,$shape$jscomp$962$$,$objects$jscomp$764$$,$new_pos_type$jscomp$inline_12916$$);return $JSCompiler_temp_const$jscomp$inline_12917$$.call($APP.$cljs$core$assoc$$,$p1__76807_SHARP_$$,$APP.$cljs$cst$1956$overlay_pos_type$$,$new_pos_type$jscomp$inline_12916$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1955$overlay_position$$,$G__48899$jscomp$inline_12919_JSCompiler_inline_result$jscomp$inline_12918$$]))}
var $pos_type$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$488$$),"value"));return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76899$$):$update_interaction$$($index$jscomp$480$$,$G__76899$$)}),$change_close_click_outside$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),
$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$489$$){function $G__76901$$($p1__76808_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76808_SHARP_$$,$APP.$cljs$cst$1957$close_click_outside$$,$value$jscomp$815$$)}var $value$jscomp$815$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$489$$));return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,
$G__76901$$):$update_interaction$$($index$jscomp$480$$,$G__76901$$)}),$change_background_overlay$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$490$$){function $G__76908$$($p1__76809_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76809_SHARP_$$,$APP.$cljs$cst$1958$background_overlay$$,$value$jscomp$816$$)}var $value$jscomp$816$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$490$$));
return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76908$$):$update_interaction$$($index$jscomp$480$$,$G__76908$$)}),$change_animation_type$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$491$$){function $G__76910$$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$){if(!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$)),
$value$jscomp$817$$))if($value$jscomp$817$$==null)$JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,$APP.$cljs$cst$1954$animation$$);else{var $G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,$APP.$cljs$cst$1954$animation$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1944$animation_type$$,$value$jscomp$817$$);$G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$817$$,$APP.$cljs$cst$1942$dissolve$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$,$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,
$APP.$cljs$cst$1945$duration$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1945$duration$$],null),300),$APP.$cljs$cst$1946$easing$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1946$easing$$],null),$APP.$cljs$cst$285$linear$$)])):$G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$;$G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$817$$,$APP.$cljs$cst$1943$slide$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$,
$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1945$duration$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1945$duration$$],null),300),$APP.$cljs$cst$1946$easing$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1946$easing$$],null),$APP.$cljs$cst$285$linear$$),$APP.$cljs$cst$1947$way$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1947$way$$],null),$APP.$cljs$cst$295$in$$),
$APP.$cljs$cst$1948$direction$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1948$direction$$],null),$APP.$cljs$cst$258$right$$),$APP.$cljs$cst$1949$offset_effect$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1949$offset_effect$$],null),!1)])):$G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$;$JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$817$$,$APP.$cljs$cst$1941$push$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$,
$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1945$duration$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1945$duration$$],null),300),$APP.$cljs$cst$1946$easing$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1946$easing$$],null),$APP.$cljs$cst$285$linear$$),$APP.$cljs$cst$1948$direction$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1954$animation$$,$APP.$cljs$cst$1948$direction$$],null),
$APP.$cljs$cst$258$right$$)])):$G__48932__$1$jscomp$inline_8614_G__48932__$2$jscomp$inline_8615_G__48932__$3$jscomp$inline_8616$$}return $JSCompiler_inline_result$jscomp$1474_p1__76810_SHARP_$$}var $value$jscomp$817$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("",$event$jscomp$491$$)?null:$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$491$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,
$G__76910$$):$update_interaction$$($index$jscomp$480$$,$G__76910$$)}),$change_duration$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($value$jscomp$818$$){function $G__76912$$($p1__76811_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__76811_SHARP_$$,$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1945$duration$$,$value$jscomp$818$$)}
return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76912$$):$update_interaction$$($index$jscomp$480$$,$G__76912$$)}),$change_easing$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$492$$){function $G__76918$$($p1__76812_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__76812_SHARP_$$,
$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1946$easing$$,$value$jscomp$819$$)}var $value$jscomp$819$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$492$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76918$$):$update_interaction$$($index$jscomp$480$$,$G__76918$$)}),$change_way$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),
$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$493$$){function $G__76920$$($p1__76813_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__76813_SHARP_$$,$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1947$way$$,$value$jscomp$820$$)}var $value$jscomp$820$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$493$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,
$G__76920$$):$update_interaction$$($index$jscomp$480$$,$G__76920$$)}),$change_direction$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$494$$){function $G__76922$$($p1__76814_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__76814_SHARP_$$,$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1948$direction$$,$value$jscomp$821$$)}
var $value$jscomp$821$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$494$$);return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76922$$):$update_interaction$$($index$jscomp$480$$,$G__76922$$)}),$change_offset_effect$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$480$$),$APP.$rumext$v2$adapt$$($update_interaction$$)],function($event$jscomp$495$$){function $G__76924$$($p1__76815_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($p1__76815_SHARP_$$,
$APP.$cljs$cst$1954$animation$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1949$offset_effect$$,$value$jscomp$822$$)}var $value$jscomp$822$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$495$$));return $update_interaction$$.$cljs$core$IFn$_invoke$arity$2$?$update_interaction$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$480$$,$G__76924$$):$update_interaction$$($index$jscomp$480$$,$G__76924$$)}),$event_type_options$$=function(){var $G__76926$$=new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1924$click$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-on-click")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1923$mouse_enter$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-mouse-enter")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1921$mouse_leave$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-mouse-leave")],null)],null);return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($G__76926$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
$APP.$cljs$cst$1920$after_delay$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-after-delay")],null)):$G__76926$$}(),$action_type_options$$=new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1926$navigate$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-navigate-to")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1931$open_overlay$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-open-overlay")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1929$toggle_overlay$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-toggle-overlay")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1927$close_overlay$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-close-overlay")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1928$prev_screen$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-prev-screen")],null),
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1930$open_url$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-open-url")],null)],null),$frames_opts$$=$app$main$ui$workspace$sidebar$options$menus$interactions$get_frames_options$$($frames$jscomp$29$$,$shape$jscomp$962$$),$default_opts$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),
$APP.$cljs$cst$1927$close_overlay$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-self")],null):new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-none")],null)],null),$destination_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frames_opts$$),
$APP.$rumext$v2$adapt$$($default_opts$$)],function(){var $sorted_frames_opts$$=$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2245$label$$,$frames_opts$$);return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($default_opts$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$sorted_frames_opts$$]))}),$shape_parents_opts$$=$app$main$ui$workspace$sidebar$options$menus$interactions$get_shared_frames_options$$($relative_to_opts_shape_parents$jscomp$1$$);
$relative_to_opts_shape_parents$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_parents_opts$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1956$overlay_pos_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),$APP.$cljs$cst$1657$manual$$)?$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-auto")],null)],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$shape_parents_opts$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$)),
$APP.$cljs$cst$2245$label$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-self")),")"].join("")],null)],null)])):new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$)),$APP.$cljs$cst$2245$label$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$962$$))," (",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-self")),")"].join("")],null)],null)});var $overlay_position_opts$$=
new $APP.$cljs$core$PersistentVector$$(null,8,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1657$manual$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-manual")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1651$center$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-center")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1867$top_left$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-left")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1868$top_right$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-right")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1932$top_center$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-center")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1870$bottom_left$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-left")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,
[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1869$bottom_right$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-right")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1933$bottom_center$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-center")],null)],null),$basic_animation_opts$$=new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-animation-none")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1942$dissolve$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-animation-dissolve")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1943$slide$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-animation-slide")],null)],null),$animation_opts$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($basic_animation_opts$$)],function(){var $action_type$jscomp$inline_8618$$=$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$);
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1926$navigate$$,$action_type$jscomp$inline_8618$$)?$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($basic_animation_opts$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1941$push$$,$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-animation-push")],null)],null)])):$basic_animation_opts$$}),$easing_options$$=new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1705$icon$$,$cljs$cst$5436$easing_linear$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$285$linear$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing-linear")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1705$icon$$,$cljs$cst$5437$easing_ease$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1936$ease$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing-ease")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1705$icon$$,$cljs$cst$5438$easing_ease_in$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1935$ease_in$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing-ease-in")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1705$icon$$,$cljs$cst$5439$easing_ease_out$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1937$ease_out$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing-ease-out")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1705$icon$$,$cljs$cst$5440$easing_ease_in_out$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1934$ease_in_out$$,$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing-ease-in-out")],null)],null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-item",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$prototype_pill_STAR_$$,{isLeftButtonActive:$open_extended_QMARK_$$,leftButtonTooltip:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.options"),leftButtonIconId:"hsva",
onRightButtonClick:function(){return $remove_interaction$$.$cljs$core$IFn$_invoke$arity$1$?$remove_interaction$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$480$$):$remove_interaction$$($index$jscomp$480$$)},onLeftButtonClick:$toggle_extended$$,rightButtonTooltip:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.remove"),rightButtonIconId:"remove",title:$app$main$ui$workspace$sidebar$options$menus$interactions$event_type_name$$($interaction$jscomp$52$$),description:$app$main$ui$workspace$sidebar$options$menus$interactions$action_summary$$($interaction$jscomp$52$$,
$destination$jscomp$14_props_76819$$)}),$APP.$cljs$core$truth_$$($open_extended_QMARK_$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("label",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-trigger")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$cst$1541$event_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),options:$event_type_options$$,"on-change":$change_event_type$$})})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1541$event_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),
$APP.$cljs$cst$1920$after_delay$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-delay")})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$numeric_input$numeric_input_STAR_$$,{ref:$ext_delay_ref$$,icon:"character-m",property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-ms"),onChange:$change_delay$$,value:$APP.$cljs$cst$1311$delay$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)})})]}):null,(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-action")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),options:$action_type_options$$,"on-change":$change_action_type$$})})]}),$APP.$cljs$core$truth_$$($APP.$app$common$types$shape$interactions$has_destination$$($interaction$jscomp$52$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-destination")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"default-value":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),options:$destination_options$$,"on-change":$change_destination$$})})]}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),$APP.$cljs$cst$1926$navigate$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",
children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-checkbox",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$checkbox$checkbox_STAR_$$,{id:["preserve-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$480$$)].join(""),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-preserve-scroll"),checked:$preserve_scroll_QMARK_$$,onChange:$change_preserve_scroll$$})})}):
null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),$APP.$cljs$cst$1930$open_url$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-url")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$input$input_STAR_$$,{type:"url",placeholder:"http://example.com",defaultValue:$APP.$cljs$cst$1960$url$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),onBlur:$change_url$$})})]}):null,$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$has_overlay_opts$$($interaction$jscomp$52$$))?
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-relative-to")})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1959$position_relative_to$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),options:$relative_to_opts_shape_parents$jscomp$1$$,"on-change":$change_position_relative_to$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-position")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$cst$1956$overlay_pos_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$),options:$overlay_position_opts$$,"on-change":$change_overlay_pos_type$$})})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-position",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__center",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1651$center$$),"data-value":"center",icon:"corner-center","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-center"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__top-left",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1867$top_left$$),"data-value":"top-left",icon:"corner-top-left","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-left"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__top-right",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1868$top_right$$),"data-value":"top-right",icon:"corner-top-right","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-right"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__top-center",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1932$top_center$$),"data-value":"top-center",icon:"corner-top","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-top-center"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__bottom-left",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1870$bottom_left$$),"data-value":"bottom-left",icon:"corner-bottom-left","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-left"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__bottom-right",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1869$bottom_right$$),"data-value":"bottom-right",icon:"corner-bottom-right","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-right"),
onClick:$toggle_overlay_pos_type$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__bottom-center",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary","aria-pressed":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($overlay_pos_type$jscomp$4$$,$APP.$cljs$cst$1933$bottom_center$$),"data-value":"bottom-center",icon:"corner-bottom","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-pos-bottom-center"),
onClick:$toggle_overlay_pos_type$$})})]})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-checkbox",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$checkbox$checkbox_STAR_$$,{id:["close-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$480$$)].join(""),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-close-outside"),
checked:$close_click_outside_QMARK_$$,onChange:$change_close_click_outside$$})})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-checkbox",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$checkbox$checkbox_STAR_$$,{id:["background-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$480$$)].join(""),
label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-background"),checked:$background_overlay_QMARK_$$,onChange:$change_background_overlay$$})})})]}):null,$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$has_animation_QMARK_$$($interaction$jscomp$52$$))?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-animation")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"class":"main_ui_workspace_sidebar_options_menus_interactions__animation-select","default-value":function(){var $or__5025__auto__$jscomp$1105$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1105$$)?$or__5025__auto__$jscomp$1105$$:""}(),options:$animation_opts$$,"on-change":$change_animation_type$$})})]}),$app$common$types$shape$interactions$has_way_QMARK_$$($interaction$jscomp$52$$)?
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-radio",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($way$jscomp$1$$),"on-change":$change_way$$,name:"animation-way",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"in",id:"animation-way-in"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{id:"animation-way-out",value:"out"})]})})}):null,$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$has_direction_QMARK_$$($interaction$jscomp$52$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-radio",
children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($direction$jscomp$26$$),"on-change":$change_direction$$,name:"animation-direction",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"row","icon-class":"main_ui_workspace_sidebar_options_menus_interactions__right",value:"right",id:"animation-right"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{icon:"row-reverse","icon-class":"main_ui_workspace_sidebar_options_menus_interactions__left",id:"animation-left",value:"left"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"column","icon-class":"main_ui_workspace_sidebar_options_menus_interactions__down",id:"animation-down",value:"down"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"column-reverse","icon-class":"main_ui_workspace_sidebar_options_menus_interactions__up",
id:"animation-up",value:"up"})]})})}):null,$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$has_duration_QMARK_$$($interaction$jscomp$52$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-duration")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$numeric_input$numeric_input_STAR_$$,{ref:$ext_duration_ref$$,icon:"character-m",property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-ms"),onChange:$change_duration$$,
value:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$))})})]}):null,$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$has_easing_QMARK_$$($interaction$jscomp$52$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-label",
children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-easing")})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_sidebar_options_menus_interactions__easing-select",
"dropdown-class":"main_ui_workspace_sidebar_options_menus_interactions__dropdown-upwards","default-value":$APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),options:$easing_options$$,"on-change":$change_easing$$})})]}):null,$app$common$types$shape$interactions$has_offset_effect_QMARK_$$($interaction$jscomp$52$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row",
children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__interaction-row-checkbox",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$checkbox$checkbox_STAR_$$,{id:["offset-effect-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$480$$)].join(""),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interaction-offset-effect"),checked:$APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$52$$)),
onChange:$change_offset_effect$$})})}):null]}):null]}):null]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$page_flows_STAR_$$=function($flows$jscomp$9_props_76944$$){$flows$jscomp$9_props_76944$$=$flows$jscomp$9_props_76944$$.flows;var $show_content_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$show_content_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($show_content_STAR_$$),$toggle_content$jscomp$2$$=$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$($show_content_STAR_$$,$APP.$cljs$core$not$$)});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$APP.$cljs$core$count$$($flows$jscomp$9_props_76944$$)>0,collapsed:$APP.$cljs$core$not$$($show_content_QMARK_$jscomp$1$$),onCollapsed:$toggle_content$jscomp$2$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.flows.flow-starts"),
className:"main_ui_workspace_sidebar_options_menus_interactions__title-bar"})}),$APP.$cljs$core$truth_$$($show_content_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__content",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$181$$,$flow$jscomp$9_p__76949$$){var $id$jscomp$920$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($flow$jscomp$9_p__76949$$,0,null);$flow$jscomp$9_p__76949$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($flow$jscomp$9_p__76949$$,1,null);$out_arr__44057__auto__$jscomp$181$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$flow_item_STAR_$$,{flow:$flow$jscomp$9_p__76949$$},$id$jscomp$920$$));return $out_arr__44057__auto__$jscomp$181$$},[],$flows$jscomp$9_props_76944$$)}):null]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$shape_flows_STAR_$$=function($props_76953_show_content_QMARK_$jscomp$2$$){var $flow$jscomp$10_flows$jscomp$10$$=$props_76953_show_content_QMARK_$jscomp$2$$.flows,$shape$jscomp$963_toggle_content$jscomp$3$$=$props_76953_show_content_QMARK_$jscomp$2$$.shape,$show_content_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$props_76953_show_content_QMARK_$jscomp$2$$=$APP.$cljs$core$_deref$$($show_content_STAR_$jscomp$1$$);
$flow$jscomp$10_flows$jscomp$10$$=$APP.$app$common$types$page$get_frame_flow$$($flow$jscomp$10_flows$jscomp$10$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$963_toggle_content$jscomp$3$$));$shape$jscomp$963_toggle_content$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$($show_content_STAR_$jscomp$1$$,$APP.$cljs$core$not$$)});var $add_flow$$=$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$workspace$interactions$add_flow_selected_frame$$())});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$flow$jscomp$10_flows$jscomp$10$$!=null,collapsed:$APP.$cljs$core$not$$($props_76953_show_content_QMARK_$jscomp$2$$),onCollapsed:$shape$jscomp$963_toggle_content$jscomp$3$$,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.flows.flow"),className:"main_ui_workspace_sidebar_options_menus_interactions__title-bar",children:$flow$jscomp$10_flows$jscomp$10$$==null?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.flows.add-flow-start"),onClick:$add_flow$$,icon:"add"}):null})}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($props_76953_show_content_QMARK_$jscomp$2$$)?
$flow$jscomp$10_flows$jscomp$10$$!=null:$props_76953_show_content_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__content",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$flow_item_STAR_$$,{flow:$flow$jscomp$10_flows$jscomp$10$$},$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$10_flows$jscomp$10$$))}):null]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$interactions_STAR_$$=function($props_76954_show_content_QMARK_$jscomp$3$$){var $interactions$jscomp$22$$=$props_76954_show_content_QMARK_$jscomp$3$$.interactions,$shape$jscomp$964$$=$props_76954_show_content_QMARK_$jscomp$3$$.shape,$show_content_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$props_76954_show_content_QMARK_$jscomp$3$$=$APP.$cljs$core$_deref$$($show_content_STAR_$jscomp$2$$);var $toggle_content$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$2$($show_content_STAR_$jscomp$2$$,$APP.$cljs$core$not$$)}),$add_interaction$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$964$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$add_new_interaction$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$964$$,
null))}),$remove_interaction$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$964$$)],function($index$jscomp$481$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$interactions$remove_interaction$cljs$0core$0IFn$0_invoke$0arity$03$$($shape$jscomp$964$$,$index$jscomp$481$$))}),$update_interaction$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$964$$)],
function($index$jscomp$482$$,$update_fn$jscomp$43$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$interactions$update_interaction$cljs$0core$0IFn$0_invoke$0arity$04$$($shape$jscomp$964$$,$index$jscomp$482$$,$update_fn$jscomp$43$$,null))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__title",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$APP.$cljs$core$count$$($interactions$jscomp$22$$)>0,collapsed:$APP.$cljs$core$not$$($props_76954_show_content_QMARK_$jscomp$3$$),onCollapsed:$toggle_content$jscomp$4$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interactions"),className:"main_ui_workspace_sidebar_options_menus_interactions__title-bar",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.interactions.add-interaction"),onClick:$add_interaction$$,icon:"add"})})}),$APP.$cljs$core$truth_$$($props_76954_show_content_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__content main_ui_workspace_sidebar_options_menus_interactions__content-interactions",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$182$$,
$interaction$jscomp$53_p__76958$$){var $index$jscomp$483$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($interaction$jscomp$53_p__76958$$,0,null);$interaction$jscomp$53_p__76958$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($interaction$jscomp$53_p__76958$$,1,null);$out_arr__44057__auto__$jscomp$182$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$interaction_item_STAR_$$,{index:$index$jscomp$483$$,shape:$shape$jscomp$964$$,interaction:$interaction$jscomp$53_p__76958$$,
updateInteraction:$update_interaction$jscomp$1$$,removeInteraction:$remove_interaction$jscomp$1$$},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$964$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$483$$)].join("")));return $out_arr__44057__auto__$jscomp$182$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($interactions$jscomp$22$$))}):null]})};
$app$main$ui$workspace$sidebar$options$menus$interactions$interactions_menu_STAR_$$=function($props_76962_shape$jscomp$965$$){$props_76962_shape$jscomp$965$$=$props_76962_shape$jscomp$965$$.shape;var $interactions$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($props_76962_shape$jscomp$965$$,$APP.$cljs$cst$2036$interactions$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$flows$jscomp$11$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_flows$$),$framed_shape_QMARK_$$=$APP.$cljs$core$truth_$$($props_76962_shape$jscomp$965$$)?
!$app$common$files$helpers$unframed_shape_QMARK_$$($props_76962_shape$jscomp$965$$):$props_76962_shape$jscomp$965$$;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__wrapper",children:[$APP.$cljs$core$truth_$$($props_76962_shape$jscomp$965$$)?$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($props_76962_shape$jscomp$965$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$shape_flows_STAR_$$,
{flows:$flows$jscomp$11$$,shape:$props_76962_shape$jscomp$965$$}):null:$APP.$cljs$core$truth_$$($flows$jscomp$11$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$page_flows_STAR_$$,{flows:$flows$jscomp$11$$}):null,$APP.$cljs$core$truth_$$($framed_shape_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$interactions_STAR_$$,{interactions:$interactions$jscomp$23$$,shape:$props_76962_shape$jscomp$965$$}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($interactions$jscomp$23$$),
0)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__section",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__content",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_interactions__empty",children:[$APP.$cljs$core$truth_$$($framed_shape_QMARK_$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"add",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.add-interaction")}):
null,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"interaction",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.select-a-shape")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"play",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.use-play-button")})]})})}):null]})};
$app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$=function($props_76769_tokens__$1$jscomp$3$$){var $attr$jscomp$64$$=void 0,$align$jscomp$4_props__$1$jscomp$76$$=void 0,$placeholder$jscomp$6$$=void 0,$value$jscomp$823$$=void 0,$applied_token$jscomp$6$$=void 0,$input_type$jscomp$1$$=void 0,$class$$jscomp$67$$=void 0,$on_detach$jscomp$3$$=void 0,$props$jscomp$317$$=void 0;({value:$value$jscomp$823$$,attr:$attr$jscomp$64$$,appliedToken:$applied_token$jscomp$6$$,
align:$align$jscomp$4_props__$1$jscomp$76$$,onDetach:$on_detach$jscomp$3$$,placeholder:$placeholder$jscomp$6$$,inputType:$input_type$jscomp$1$$,className:$class$$jscomp$67$$,...$props$jscomp$317$$}=$props_76769_tokens__$1$jscomp$3$$);var $tokens$jscomp$46$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$active_tokens_by_type$$);$props_76769_tokens__$1$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens$jscomp$46$$),$APP.$rumext$v2$adapt$$($input_type$jscomp$1$$)],
function(){return new $APP.$cljs$core$Delay$$(function(){var $JSCompiler_temp_const$jscomp$1779$$=$APP.$cljs$core$_deref$$($tokens$jscomp$46$$),$or__5025__auto__$jscomp$inline_8620$$=$input_type$jscomp$1$$;return $APP.$cljs$core$not_empty$$($APP.$cljs$core$select_keys$$($JSCompiler_temp_const$jscomp$1779$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$token$tokens_by_input$$,$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8620$$)?$or__5025__auto__$jscomp$inline_8620$$:
$attr$jscomp$64$$)))})});var $on_detach_attr$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach$jscomp$3$$),$APP.$rumext$v2$adapt$$($attr$jscomp$64$$)],function($p1__76768_SHARP_$$){return $on_detach$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach$jscomp$3$$.$cljs$core$IFn$_invoke$arity$2$($p1__76768_SHARP_$$,$attr$jscomp$64$$):$on_detach$jscomp$3$$($p1__76768_SHARP_$$,$attr$jscomp$64$$)});$align$jscomp$4_props__$1$jscomp$76$$={...$props$jscomp$317$$,
placeholder:function(){var $or__5025__auto__$jscomp$1107$$=$placeholder$jscomp$6$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1107$$)?$or__5025__auto__$jscomp$1107$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$value$jscomp$823$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--"}(),className:($class$$jscomp$67$$??"")+" main_ui_workspace_sidebar_options_menus_input_wrapper_tokens__numeric-input-wrapper",appliedToken:$applied_token$jscomp$6$$,
tokens:$APP.$cljs$core$delay_QMARK_$$($props_76769_tokens__$1$jscomp$3$$)?$APP.$cljs$core$_deref$$($props_76769_tokens__$1$jscomp$3$$):$props_76769_tokens__$1$jscomp$3$$,align:$align$jscomp$4_props__$1$jscomp$76$$,onDetach:$on_detach_attr$$,name:$attr$jscomp$64$$,value:$value$jscomp$823$$};return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$numeric_input$numeric_input_STAR_$$,$align$jscomp$4_props__$1$jscomp$76$$)};
$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$=function($G__76794__$1_val$jscomp$208$$){$G__76794__$1_val$jscomp$208$$=$G__76794__$1_val$jscomp$208$$ instanceof $APP.$cljs$core$Keyword$$?$G__76794__$1_val$jscomp$208$$.$fqn$:null;switch($G__76794__$1_val$jscomp$208$$){case "row":return"grid-row";case "row-reverse":return"row-reverse";case "column":return"column";case "column-reverse":return"column-reverse";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76794__$1_val$jscomp$208$$)].join(""));
}};
$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$=function($G__76820__$1_type$jscomp$601$$,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$,$column_QMARK_$$){$G__76820__$1_type$jscomp$601$$=$G__76820__$1_type$jscomp$601$$ instanceof $APP.$cljs$core$Keyword$$?$G__76820__$1_type$jscomp$601$$.$fqn$:null;switch($G__76820__$1_type$jscomp$601$$){case "align-items":if($column_QMARK_$$)switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"align-items-column-start";case "end":return"align-items-column-end";case "center":return"align-items-column-center";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));
}else switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof $APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"align-items-row-start";
case "end":return"align-items-row-end";case "center":return"align-items-row-center";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}break;case "justify-content":if($column_QMARK_$$)switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"justify-content-column-start";case "end":return"justify-content-column-end";case "center":return"justify-content-column-center";case "space-around":return"justify-content-column-around";case "space-evenly":return"justify-content-column-evenly";
case "space-between":return"justify-content-column-between";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}else switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"justify-content-row-start";case "end":return"justify-content-row-end";case "center":return"justify-content-row-center";case "space-around":return"justify-content-row-around";case "space-evenly":return"justify-content-row-evenly";
case "space-between":return"justify-content-row-between";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}break;case "align-content":if($column_QMARK_$$)switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"align-content-column-start";case "end":return"align-content-column-end";case "center":return"align-content-column-center";case "space-around":return"align-content-column-around";case "space-evenly":return"align-content-column-evenly";
case "space-between":return"align-content-column-between";case "stretch":return null;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}else switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "start":return"align-content-row-start";case "end":return"align-content-row-end";case "center":return"align-content-row-center";case "space-around":return"align-content-row-around";case "space-evenly":return"align-content-row-evenly";
case "space-between":return"align-content-row-between";case "stretch":return null;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}break;case "align-self":if($column_QMARK_$$)switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "auto":return"remove";case "start":return"align-self-row-left";case "end":return"align-self-row-right";case "center":return"align-self-row-center";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));
}else switch($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$=$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$ instanceof $APP.$cljs$core$Keyword$$?$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$.$fqn$:null,$G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$){case "auto":return"remove";
case "start":return"align-self-column-top";case "end":return"align-self-column-bottom";case "center":return"align-self-column-center";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76821__$1_G__76822__$1_G__76823__$1_G__76825__$1_G__76826__$1_G__76828__$1_G__76829__$1_G__76830__$1_val$jscomp$209$$)].join(""));}break;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76820__$1_type$jscomp$601$$)].join(""));
}};
$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$=function($G__76832__$1_type$jscomp$602$$,$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$,$column_QMARK_$jscomp$1$$){$G__76832__$1_type$jscomp$602$$=$G__76832__$1_type$jscomp$602$$ instanceof $APP.$cljs$core$Keyword$$?$G__76832__$1_type$jscomp$602$$.$fqn$:null;switch($G__76832__$1_type$jscomp$602$$){case "align-items":if($column_QMARK_$jscomp$1$$)switch($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$=$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$ instanceof
$APP.$cljs$core$Keyword$$?$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$.$fqn$:null,$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$){case "auto":return"remove";case "start":return"align-self-row-left";case "end":return"align-self-row-right";case "center":return"align-self-row-center";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$)].join(""));
}else switch($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$=$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$ instanceof $APP.$cljs$core$Keyword$$?$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$.$fqn$:null,$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$){case "auto":return"remove";case "start":return"align-self-column-top";case "end":return"align-self-column-bottom";case "center":return"align-self-column-center";
default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$)].join(""));}break;case "justify-items":if($column_QMARK_$jscomp$1$$)switch($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$=$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$ instanceof $APP.$cljs$core$Keyword$$?$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$.$fqn$:null,
$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$){case "start":return"align-content-row-start";case "center":return"align-content-row-center";case "end":return"align-content-row-end";case "space-around":return"align-content-row-around";case "space-between":return"align-content-row-between";case "stretch":return"align-content-row-stretch";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$)].join(""));
}else switch($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$=$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$ instanceof $APP.$cljs$core$Keyword$$?$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$.$fqn$:null,$G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$){case "start":return"align-content-column-start";case "center":return"align-content-column-center";case "end":return"align-content-column-end";case "space-around":return"align-content-column-around";
case "space-between":return"align-content-column-between";case "stretch":return"align-content-column-stretch";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76833__$1_G__76834__$1_G__76836__$1_G__76837__$1_val$jscomp$210$$)].join(""));}break;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76832__$1_type$jscomp$602$$)].join(""));}};
$app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_flex$$=function($props_76838$$){var $on_change$jscomp$54$$=$props_76838$$["on-change"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__direction-row-flex",selected:$APP.$app$common$data$name$$($props_76838$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$54$$,name:"flex-direction",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"row",id:"flex-direction-row",title:"Row",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$1640$row$$)}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"row-reverse",id:"flex-direction-row-reverse",title:"Row reverse",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$1645$row_reverse$$)}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"column",id:"flex-direction-column",title:"Column",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$216$column$$)}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"column-reverse",id:"flex-direction-column-reverse",title:"Column reverse",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$1646$column_reverse$$)})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$wrap_row$$=function($props_76843_wrap_type$jscomp$2$$){var $on_click$jscomp$46$$=$props_76843_wrap_type$jscomp$2$$["on-click"];$props_76843_wrap_type$jscomp$2$$=$props_76843_wrap_type$jscomp$2$$["wrap-type"];return(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$894$wrap$$,$props_76843_wrap_type$jscomp$2$$)?"No wrap":"Wrap",onClick:$on_click$jscomp$46$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__wrap-button "+
($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_76843_wrap_type$jscomp$2$$,$APP.$cljs$cst$894$wrap$$)?"main_ui_workspace_sidebar_options_menus_layout_container__selected":""),children:$APP.$app$main$ui$icons$wrap$$})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$align_row$$=function($props_76844$$){var $on_change$jscomp$55$$=$props_76844$$["on-change"],$is_column$$=$props_76844$$["is-column"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__align-row",selected:$APP.$app$common$data$name$$($props_76844$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$55$$,name:"flex-align-items",
children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3973$align_items$$,$APP.$cljs$cst$1278$start$$,$is_column$$),title:"Align items start",id:"align-items-start"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3973$align_items$$,
$APP.$cljs$cst$1651$center$$,$is_column$$),title:"Align items center",id:"align-items-center"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3973$align_items$$,$APP.$cljs$cst$1279$end$$,$is_column$$),title:"Align items end",id:"align-items-end"})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$align_content_row$$=function($props_76845$$){var $on_change$jscomp$56$$=$props_76845$$["on-change"],$is_column$jscomp$1$$=$props_76845$$["is-column"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__align-content-row",selected:$APP.$app$common$data$name$$($props_76845$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$56$$,
name:"flex-align-content",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,$APP.$cljs$cst$1278$start$$,$is_column$jscomp$1$$),title:"Align content start",id:"align-content-start"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,
$APP.$cljs$cst$1651$center$$,$is_column$jscomp$1$$),title:"Align content center",id:"align-content-center"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,$APP.$cljs$cst$1279$end$$,$is_column$jscomp$1$$),title:"Align content end",id:"align-content-end"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"space-between",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,$APP.$cljs$cst$1652$space_between$$,$is_column$jscomp$1$$),title:"Align content space-between",id:"align-content-space-between"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-around",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,
$APP.$cljs$cst$1649$space_around$$,$is_column$jscomp$1$$),title:"Align content space-around",id:"align-content-space-around"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-evenly",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3974$align_content$$,$APP.$cljs$cst$1650$space_evenly$$,$is_column$jscomp$1$$),title:"Align content space-evenly",id:"align-content-space-evenly"})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$justify_content_row$$=function($props_76846$$){var $on_change$jscomp$57$$=$props_76846$$["on-change"],$is_column$jscomp$2$$=$props_76846$$["is-column"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__justify-content-row",selected:$APP.$app$common$data$name$$($props_76846$$["justify-content"]),"on-change":$on_change$jscomp$57$$,name:"flex-justify",
children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,$APP.$cljs$cst$1278$start$$,$is_column$jscomp$2$$),title:"Justify content start",id:"justify-content-start"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,
$APP.$cljs$cst$1651$center$$,$is_column$jscomp$2$$),title:"Justify content center",id:"justify-content-center"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,$APP.$cljs$cst$1279$end$$,$is_column$jscomp$2$$),title:"Justify content end",id:"justify-content-end"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"space-between",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,$APP.$cljs$cst$1652$space_between$$,$is_column$jscomp$2$$),title:"Justify content space-between",id:"justify-content-space-between"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-around",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,
$APP.$cljs$cst$1649$space_around$$,$is_column$jscomp$2$$),title:"Justify content space-around",id:"justify-content-space-around"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-evenly",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$3976$justify_content$$,$APP.$cljs$cst$1650$space_evenly$$,$is_column$jscomp$2$$),title:"Justify content space-evenly",id:"justify-content-space-evenly"})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$=function(){return $app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$(!1,!1,!1,!1)};
$app$main$ui$workspace$sidebar$options$menus$layout_container$simple_padding_selection_STAR_$$=function($props_76872_token_numeric_inputs$$){var $on_change$jscomp$58$$=$props_76872_token_numeric_inputs$$.onChange,$p2__$1$jscomp$2_value$jscomp$827$$=$props_76872_token_numeric_inputs$$.value,$ids$jscomp$269$$=$props_76872_token_numeric_inputs$$.ids,$applied_to_p1__$1_applied_tokens$jscomp$6$$=$props_76872_token_numeric_inputs$$.appliedTokens;$props_76872_token_numeric_inputs$$=$app$main$features$use_feature$$("tokens/numeric-input");
var $p1$jscomp$82_p1__$1$jscomp$4$$=$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($p2__$1$jscomp$2_value$jscomp$827$$),$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$=$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($p2__$1$jscomp$2_value$jscomp$827$$),$applied_to_p3_on_focus_p1_p3$jscomp$23$$=$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($p2__$1$jscomp$2_value$jscomp$827$$),$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$=$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($p2__$1$jscomp$2_value$jscomp$827$$);
$p1$jscomp$82_p1__$1$jscomp$4$$=!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p2__$1$jscomp$2_value$jscomp$827$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1$jscomp$82_p1__$1$jscomp$4$$,$applied_to_p3_on_focus_p1_p3$jscomp$23$$)?$p1$jscomp$82_p1__$1$jscomp$4$$:null;$p2__$1$jscomp$2_value$jscomp$827$$=!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p2__$1$jscomp$2_value$jscomp$827$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$,
$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$)?$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$:null;$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$=$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p1__$1_applied_tokens$jscomp$6$$);$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$=$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p1__$1_applied_tokens$jscomp$6$$);$applied_to_p3_on_focus_p1_p3$jscomp$23$$=$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p1__$1_applied_tokens$jscomp$6$$);
var $applied_to_p4_on_focus_p2$$=$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p1__$1_applied_tokens$jscomp$6$$);$applied_to_p1__$1_applied_tokens$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$,$applied_to_p3_on_focus_p1_p3$jscomp$23$$)?$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$:null;$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$,
$applied_to_p4_on_focus_p2$$)?$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$:null;var $on_change_SINGLEQUOTE_$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$58$$),$APP.$rumext$v2$adapt$$($ids$jscomp$269$$)],function($value__$1$jscomp$50$$,$attr$jscomp$65$$,$event$jscomp$496$$){return typeof $value__$1$jscomp$50$$==="string"||typeof $value__$1$jscomp$50$$==="number"?$on_change$jscomp$58$$.$cljs$core$IFn$_invoke$arity$4$?$on_change$jscomp$58$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$1647$simple$$,
$attr$jscomp$65$$,$value__$1$jscomp$50$$,$event$jscomp$496$$):$on_change$jscomp$58$$($APP.$cljs$cst$1647$simple$$,$attr$jscomp$65$$,$value__$1$jscomp$50$$,$event$jscomp$496$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value__$1$jscomp$50$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1091$p1$$,
$attr$jscomp$65$$)?new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1671$p3$$,null,$APP.$cljs$cst$1091$p1$$,null],null),null):new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1089$p2$$,null,$APP.$cljs$cst$1672$p4$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$269$$],null)))});$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$269$$)],
function($token_name$jscomp$16$$,$attr$jscomp$66$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$16$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$66$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$269$$],null)))});var $on_focus$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$)],
function($G__76873_76998__$1_attr$jscomp$67$$,$event$jscomp$497$$){$G__76873_76998__$1_attr$jscomp$67$$=$G__76873_76998__$1_attr$jscomp$67$$ instanceof $APP.$cljs$core$Keyword$$?$G__76873_76998__$1_attr$jscomp$67$$.$fqn$:null;switch($G__76873_76998__$1_attr$jscomp$67$$){case "p1":$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$(!0,!1,!0,!1);break;case "p2":$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$(!1,
!0,!1,!0);break;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76873_76998__$1_attr$jscomp$67$$)].join(""));}return $app$util$dom$select_target$$($event$jscomp$497$$)});$applied_to_p3_on_focus_p1_p3$jscomp$23$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$11$$)],function(){return $on_focus$jscomp$11$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$11$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1091$p1$$):
$on_focus$jscomp$11$$($APP.$cljs$cst$1091$p1$$)});$applied_to_p4_on_focus_p2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$11$$)],function(){return $on_focus$jscomp$11$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$11$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1089$p2$$):$on_focus$jscomp$11$$($APP.$cljs$cst$1089$p2$$)});var $on_p1_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$5$$)],
function($p1__76870_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$($p1__76870_SHARP_$$,$APP.$cljs$cst$1091$p1$$):$on_change_SINGLEQUOTE_$jscomp$5$$($p1__76870_SHARP_$$,$APP.$cljs$cst$1091$p1$$)}),$on_p2_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$5$$)],function($p1__76871_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change_SINGLEQUOTE_$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$($p1__76871_SHARP_$$,$APP.$cljs$cst$1089$p2$$):$on_change_SINGLEQUOTE_$jscomp$5$$($p1__76871_SHARP_$$,$APP.$cljs$cst$1089$p2$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__paddings-simple",children:[$props_76872_token_numeric_inputs$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_p1_change$$,
placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$applied_to_p1__$1_applied_tokens$jscomp$6$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p1$jscomp$82_p1__$1$jscomp$4$$)||$p1$jscomp$82_p1__$1$jscomp$4$$==null?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",inputType:$APP.$cljs$cst$1970$vertical_padding$$,attr:$APP.$cljs$cst$1091$p1$$,appliedToken:$applied_to_p1__$1_applied_tokens$jscomp$6$$,
value:$p1$jscomp$82_p1__$1$jscomp$4$$,onFocus:$applied_to_p3_on_focus_p1_p3$jscomp$23$$,onDetach:$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.vertical"),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,nillable:!0,icon:"padding-top-bottom"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.vertical"),
className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-simple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_top_bottom$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p1_change$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.vertical"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),value:$p1$jscomp$82_p1__$1$jscomp$4$$,onFocus:$applied_to_p3_on_focus_p1_p3$jscomp$23$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,nillable:!0})]}),$props_76872_token_numeric_inputs$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_p2_change$$,
placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p2__$1$jscomp$2_value$jscomp$827$$)||$p2__$1$jscomp$2_value$jscomp$827$$==null?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",inputType:$APP.$cljs$cst$1976$horizontal_padding$$,attr:$APP.$cljs$cst$1089$p2$$,appliedToken:$applied_to_p2_applied_to_p2__$1_p2$jscomp$63$$,
value:$p2__$1$jscomp$2_value$jscomp$827$$,onFocus:$applied_to_p4_on_focus_p2$$,onDetach:$applied_to_p1_on_detach_token$jscomp$2_p4$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.horizontal"),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,nillable:!0,icon:"padding-left-right"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.horizontal"),
className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-simple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_left_right$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p2_change$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.horizontal"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),value:$p2__$1$jscomp$2_value$jscomp$827$$,onFocus:$applied_to_p4_on_focus_p2$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,nillable:!0})]})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$multiple_padding_selection_STAR_$$=function($props_76878_token_numeric_inputs$jscomp$1$$){var $on_change$jscomp$59$$=$props_76878_token_numeric_inputs$jscomp$1$$.onChange,$p4$jscomp$10_value$jscomp$828$$=$props_76878_token_numeric_inputs$jscomp$1$$.value,$ids$jscomp$270$$=$props_76878_token_numeric_inputs$jscomp$1$$.ids,$applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$=$props_76878_token_numeric_inputs$jscomp$1$$.appliedTokens;$props_76878_token_numeric_inputs$jscomp$1$$=
$app$main$features$use_feature$$("tokens/numeric-input");var $p1$jscomp$83$$=$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($p4$jscomp$10_value$jscomp$828$$),$p2$jscomp$64$$=$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($p4$jscomp$10_value$jscomp$828$$),$p3$jscomp$24$$=$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($p4$jscomp$10_value$jscomp$828$$);$p4$jscomp$10_value$jscomp$828$$=$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($p4$jscomp$10_value$jscomp$828$$);
var $applied_to_p1$jscomp$1$$=$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$),$applied_to_p2$jscomp$1$$=$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$),$applied_to_p3$jscomp$1$$=$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$);$applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$=$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$);
var $on_change_SINGLEQUOTE_$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$59$$),$APP.$rumext$v2$adapt$$($ids$jscomp$270$$)],function($value__$1$jscomp$51$$,$attr$jscomp$68$$,$event$jscomp$498$$){return typeof $value__$1$jscomp$51$$==="string"||typeof $value__$1$jscomp$51$$==="number"?$on_change$jscomp$59$$.$cljs$core$IFn$_invoke$arity$4$?$on_change$jscomp$59$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$cst$1600$multiple$$,$attr$jscomp$68$$,
$value__$1$jscomp$51$$,$event$jscomp$498$$):$on_change$jscomp$59$$($APP.$cljs$cst$1600$multiple$$,$attr$jscomp$68$$,$value__$1$jscomp$51$$,$event$jscomp$498$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value__$1$jscomp$51$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$68$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$270$$],null)))}),$on_focus$jscomp$12$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$)],function($attr$jscomp$69$$,$event$jscomp$499$$){$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$1$($attr$jscomp$69$$);return $app$util$dom$select_target$$($event$jscomp$499$$)}),$on_detach_token$jscomp$3$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$270$$)],function($token$jscomp$119$$,$attr$jscomp$70$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token$jscomp$119$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$70$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$270$$],null)))}),$on_p1_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$6$$)],function($p1__76874_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$($p1__76874_SHARP_$$,$APP.$cljs$cst$1091$p1$$):$on_change_SINGLEQUOTE_$jscomp$6$$($p1__76874_SHARP_$$,$APP.$cljs$cst$1091$p1$$)}),
$on_p2_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$6$$)],function($p1__76875_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$($p1__76875_SHARP_$$,$APP.$cljs$cst$1089$p2$$):$on_change_SINGLEQUOTE_$jscomp$6$$($p1__76875_SHARP_$$,$APP.$cljs$cst$1089$p2$$)}),$on_p3_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$6$$)],
function($p1__76876_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$($p1__76876_SHARP_$$,$APP.$cljs$cst$1671$p3$$):$on_change_SINGLEQUOTE_$jscomp$6$$($p1__76876_SHARP_$$,$APP.$cljs$cst$1671$p3$$)}),$on_p4_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$6$$)],function($p1__76877_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change_SINGLEQUOTE_$jscomp$6$$.$cljs$core$IFn$_invoke$arity$2$($p1__76877_SHARP_$$,$APP.$cljs$cst$1672$p4$$):$on_change_SINGLEQUOTE_$jscomp$6$$($p1__76877_SHARP_$$,$APP.$cljs$cst$1672$p4$$)}),$on_focus_p1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$12$$)],function(){return $on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1091$p1$$):$on_focus$jscomp$12$$($APP.$cljs$cst$1091$p1$$)}),
$on_focus_p2$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$12$$)],function(){return $on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1089$p2$$):$on_focus$jscomp$12$$($APP.$cljs$cst$1089$p2$$)}),$on_focus_p3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$12$$)],function(){return $on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$?
$on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1671$p3$$):$on_focus$jscomp$12$$($APP.$cljs$cst$1671$p3$$)}),$on_focus_p4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$12$$)],function(){return $on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$12$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1672$p4$$):$on_focus$jscomp$12$$($APP.$cljs$cst$1672$p4$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__paddings-multiple",
children:[$props_76878_token_numeric_inputs$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_p1_change$jscomp$1$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$applied_to_p1$jscomp$1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p1$jscomp$83$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):
"--",inputType:$APP.$cljs$cst$1970$vertical_padding$$,attr:$APP.$cljs$cst$1091$p1$$,appliedToken:$applied_to_p1$jscomp$1$$,value:$p1$jscomp$83$$,onFocus:$on_focus_p1$jscomp$1$$,onDetach:$on_detach_token$jscomp$3$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.top"),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,icon:"padding-top"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.top"),
className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_top$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p1_change$jscomp$1$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.top"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",
placeholder:"--",value:$p1$jscomp$83$$,onFocus:$on_focus_p1$jscomp$1$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,"data-attr":"p1"})]}),$props_76878_token_numeric_inputs$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_p2_change$jscomp$1$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$applied_to_p2$jscomp$1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p2$jscomp$64$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",inputType:$APP.$cljs$cst$1976$horizontal_padding$$,attr:$APP.$cljs$cst$1089$p2$$,appliedToken:$applied_to_p2$jscomp$1$$,value:$p2$jscomp$64$$,onFocus:$on_focus_p2$jscomp$1$$,onDetach:$on_detach_token$jscomp$3$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.right"),
onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,icon:"padding-right"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.right"),className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_right$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p2_change$jscomp$1$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.right"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",placeholder:"--",value:$p2$jscomp$64$$,onFocus:$on_focus_p2$jscomp$1$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,"data-attr":"p2"})]}),
$props_76878_token_numeric_inputs$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_p3_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$applied_to_p3$jscomp$1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p3$jscomp$24$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):
"--",inputType:$APP.$cljs$cst$1970$vertical_padding$$,attr:$APP.$cljs$cst$1671$p3$$,appliedToken:$applied_to_p3$jscomp$1$$,value:$p3$jscomp$24$$,onFocus:$on_focus_p3$$,onDetach:$on_detach_token$jscomp$3$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.bottom"),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,icon:"padding-bottom"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.bottom"),
className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_bottom$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p3_change$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.bottom"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",
placeholder:"--",value:$p3$jscomp$24$$,onFocus:$on_focus_p3$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,"data-attr":"p3"})]}),$props_76878_token_numeric_inputs$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_p4_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$p4$jscomp$10_value$jscomp$828$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",inputType:$APP.$cljs$cst$1976$horizontal_padding$$,attr:$APP.$cljs$cst$1672$p4$$,appliedToken:$applied_to_p4$jscomp$1_applied_tokens$jscomp$7$$,value:$p4$jscomp$10_value$jscomp$828$$,onFocus:$on_focus_p4$$,onDetach:$on_detach_token$jscomp$3$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.left"),
onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,icon:"padding-left"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.left"),className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$padding_left$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:0,onChange:$on_p4_change$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.left"),className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",placeholder:"--",value:$p4$jscomp$10_value$jscomp$828$$,onFocus:$on_focus_p4$$,onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$,"data-attr":"p4"})]})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$padding_section_STAR_$$=function($props_76887_props__$1$jscomp$77$$){var $on_change$jscomp$60$$=$props_76887_props__$1$jscomp$77$$.onChange,$type$jscomp$603$$=$props_76887_props__$1$jscomp$77$$.type,$on_type_change$jscomp$1$$=$props_76887_props__$1$jscomp$77$$.onTypeChange,$on_type_change_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_type_change$jscomp$1$$)],function($event$jscomp$500_type__$1$jscomp$15_type__$2$$){$event$jscomp$500_type__$1$jscomp$15_type__$2$$=
$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$500_type__$1$jscomp$15_type__$2$$),"type");$event$jscomp$500_type__$1$jscomp$15_type__$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$500_type__$1$jscomp$15_type__$2$$,"multiple")?$APP.$cljs$cst$1647$simple$$:$APP.$cljs$cst$1600$multiple$$;return $on_type_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_type_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$500_type__$1$jscomp$15_type__$2$$):
$on_type_change$jscomp$1$$($event$jscomp$500_type__$1$jscomp$15_type__$2$$)});$props_76887_props__$1$jscomp$77$$={...$props_76887_props__$1$jscomp$77$$,onChange:$on_change$jscomp$60$$};$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return function(){return $app$main$ui$workspace$sidebar$options$menus$layout_container$on_padding_blur$$(null)}});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-group",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-inputs",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$603$$,$APP.$cljs$cst$1647$simple$$)?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$simple_padding_selection_STAR_$$,$props_76887_props__$1$jscomp$77$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$603$$,$APP.$cljs$cst$1600$multiple$$)?
(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$multiple_padding_selection_STAR_$$,$props_76887_props__$1$jscomp$77$$):null}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.expand"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.padding.expand"),"data-type":$APP.$app$common$data$name$$($type$jscomp$603$$),
onClick:$on_type_change_SINGLEQUOTE_$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-toggle "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$603$$,$APP.$cljs$cst$1600$multiple$$)?"main_ui_workspace_sidebar_options_menus_layout_container__selected":""),children:$APP.$app$main$ui$icons$padding_extended$$})]})};$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_focus$$=function($type$jscomp$604$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_gap_selected$$($type$jscomp$604$$))};
$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_gap_selected$$(null))};
$app$main$ui$workspace$sidebar$options$menus$layout_container$gap_section_STAR_$$=function($applied_tokens$jscomp$8_props_76906$$){var $on_change$jscomp$61$$=$applied_tokens$jscomp$8_props_76906$$.onChange,$col_gap_disabled_QMARK__is_column$jscomp$3$$=$applied_tokens$jscomp$8_props_76906$$.isColumn,$value$jscomp$830$$=$applied_tokens$jscomp$8_props_76906$$.value,$ids$jscomp$271$$=$applied_tokens$jscomp$8_props_76906$$.ids,$wrap_type$jscomp$3$$=$applied_tokens$jscomp$8_props_76906$$.wrapType;$applied_tokens$jscomp$8_props_76906$$=
$applied_tokens$jscomp$8_props_76906$$.appliedTokens;var $token_numeric_inputs$jscomp$2$$=$app$main$features$use_feature$$("tokens/numeric-input"),$nowrap_QMARK__on_detach_token$jscomp$4$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1648$nowrap$$,$wrap_type$jscomp$3$$),$row_gap_disabled_QMARK_$$=$nowrap_QMARK__on_detach_token$jscomp$4$$&&!$col_gap_disabled_QMARK__is_column$jscomp$3$$;$col_gap_disabled_QMARK__is_column$jscomp$3$$=$nowrap_QMARK__on_detach_token$jscomp$4$$&&
$col_gap_disabled_QMARK__is_column$jscomp$3$$;var $on_change_SINGLEQUOTE_$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$61$$),$APP.$rumext$v2$adapt$$($wrap_type$jscomp$3$$),$APP.$rumext$v2$adapt$$($ids$jscomp$271$$)],function($value__$1$jscomp$52$$,$event$jscomp$501$$,$attr$jscomp$71$$){if(typeof $value__$1$jscomp$52$$==="string"||typeof $value__$1$jscomp$52$$==="number"){var $G__76913$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("nowrap",
$wrap_type$jscomp$3$$);return $on_change$jscomp$61$$.$cljs$core$IFn$_invoke$arity$4$?$on_change$jscomp$61$$.$cljs$core$IFn$_invoke$arity$4$($G__76913$$,$attr$jscomp$71$$,$value__$1$jscomp$52$$,$event$jscomp$501$$):$on_change$jscomp$61$$($G__76913$$,$attr$jscomp$71$$,$value__$1$jscomp$52$$,$event$jscomp$501$$)}return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,
$APP.$cljs$core$first$$($value__$1$jscomp$52$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("nowrap",$wrap_type$jscomp$3$$)?new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5441$colum_gap$$,null,$APP.$cljs$cst$1665$row_gap$$,null],null),null):$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$71$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$271$$],null)))});$nowrap_QMARK__on_detach_token$jscomp$4$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$271$$)],function($token$jscomp$120$$,$attr$jscomp$72$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token$jscomp$120$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$72$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$271$$],null)))});var $on_row_gap_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$7$$)],function($p1__76902_SHARP_$$,$p2__76903_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$?$on_change_SINGLEQUOTE_$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$($p1__76902_SHARP_$$,$p2__76903_SHARP_$$,$APP.$cljs$cst$1665$row_gap$$):$on_change_SINGLEQUOTE_$jscomp$7$$($p1__76902_SHARP_$$,
$p2__76903_SHARP_$$,$APP.$cljs$cst$1665$row_gap$$)}),$on_column_gap_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$7$$)],function($p1__76904_SHARP_$$,$p2__76905_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$?$on_change_SINGLEQUOTE_$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$($p1__76904_SHARP_$$,$p2__76905_SHARP_$$,$APP.$cljs$cst$1666$column_gap$$):$on_change_SINGLEQUOTE_$jscomp$7$$($p1__76904_SHARP_$$,
$p2__76905_SHARP_$$,$APP.$cljs$cst$1666$column_gap$$)}),$on_focus_row_gap$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_focus$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_gap_selected$$($APP.$cljs$cst$1665$row_gap$$))}),$on_focus_column_gap$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_focus$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_gap_selected$$($APP.$cljs$cst$1666$column_gap$$))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return function(){return $app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$(null)}});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__gap-group",children:[$token_numeric_inputs$jscomp$2$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{values:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1665$row_gap$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$)],null),min:0,onChange:$on_row_gap_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$8_props_76906$$))||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",attr:$APP.$cljs$cst$1665$row_gap$$,appliedToken:$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$8_props_76906$$),value:$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$),onFocus:$on_focus_row_gap$$,
onDetach:$nowrap_QMARK__on_detach_token$jscomp$4$$,property:"Row gap",onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$,nillable:!0,disabled:$row_gap_disabled_QMARK_$$,icon:"gap-vertical"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Row gap",className:"main_ui_workspace_sidebar_options_menus_layout_container__row-gap "+($row_gap_disabled_QMARK_$$?"main_ui_workspace_sidebar_options_menus_layout_container__disabled":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",
children:$APP.$app$main$ui$icons$gap_vertical$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,min:0,onChange:$on_row_gap_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",placeholder:"--",value:$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$),onFocus:$on_focus_row_gap$$,"data-wrap-type":$APP.$app$common$data$name$$($wrap_type$jscomp$3$$),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$,
"data-type":"row-gap",nillable:!0,disabled:$row_gap_disabled_QMARK_$$})]}),$token_numeric_inputs$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_column_gap_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$8_props_76906$$))||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",attr:$APP.$cljs$cst$1666$column_gap$$,appliedToken:$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$8_props_76906$$),value:$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$),
onFocus:$on_focus_column_gap$$,onDetach:$nowrap_QMARK__on_detach_token$jscomp$4$$,property:"Column gap",onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$,nillable:!0,disabled:$col_gap_disabled_QMARK__is_column$jscomp$3$$,icon:"gap-horizontal"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Column gap",className:"main_ui_workspace_sidebar_options_menus_layout_container__column-gap "+($col_gap_disabled_QMARK__is_column$jscomp$3$$?"main_ui_workspace_sidebar_options_menus_layout_container__disabled":
""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_container__icon",children:$APP.$app$main$ui$icons$gap_horizontal$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,min:0,onChange:$on_column_gap_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__numeric-input",placeholder:"--",value:$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$830$$),
onFocus:$on_focus_column_gap$$,"data-wrap-type":$APP.$app$common$data$name$$($wrap_type$jscomp$3$$),onBlur:$app$main$ui$workspace$sidebar$options$menus$layout_container$on_gap_blur$$,"data-type":"column-gap",nillable:!0,disabled:$col_gap_disabled_QMARK__is_column$jscomp$3$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_grid$$=function($props_76925$$){var $on_change$jscomp$62$$=$props_76925$$["on-change"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__direction-row-grid",selected:$APP.$app$common$data$name$$($props_76925$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$62$$,name:"grid-direction",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"row",id:"grid-direction-row",title:"Row",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$1640$row$$)}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"column",id:"grid-direction-column",title:"Column",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$dir_icons_refactor$$($APP.$cljs$cst$216$column$$)})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_edit_mode$$=function($edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$){var $id$jscomp$921$$=$edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$.id;$edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_edition$$);var $active_QMARK_$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$921$$,$edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$);
$edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$921$$),$APP.$rumext$v2$adapt$$($edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$)],function(){return $active_QMARK_$jscomp$6$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3430$interrupt$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$edition$start_edition_mode$$($id$jscomp$921$$))});
return(0,$APP.$rumext$v2$jsx$$)("button",{alt:"Grid edit mode",onClick:$edition$jscomp$5_props_76927_toggle_edit_mode$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__edit-mode-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.options.edit-grid")})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$=function($props_76928$$){var $on_change$jscomp$63$$=$props_76928$$["on-change"],$is_column$jscomp$4$$=$props_76928$$["is-column"],$type$jscomp$605$$=$is_column$jscomp$4$$?"column":"row";return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__align-grid-row",selected:$APP.$app$common$data$name$$($props_76928$$.value),"decode-fn":$APP.$cljs$core$keyword$$,
"on-change":$on_change$jscomp$63$$,name:"flex-align-items-"+($type$jscomp$605$$??""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3973$align_items$$,$APP.$cljs$cst$1278$start$$,$is_column$jscomp$4$$),title:"Align items start",id:"align-items-start-"+($type$jscomp$605$$??"")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3973$align_items$$,$APP.$cljs$cst$1651$center$$,$is_column$jscomp$4$$),title:"Align items center",id:"align-items-center-"+($type$jscomp$605$$??"")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3973$align_items$$,$APP.$cljs$cst$1279$end$$,
$is_column$jscomp$4$$),title:"Align items end",id:"align-items-end-"+($type$jscomp$605$$??"")})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$=function($props_76929$$){var $on_change$jscomp$64$$=$props_76929$$["on-change"],$is_column$jscomp$5$$=$props_76929$$["is-column"],$type$jscomp$606$$=$is_column$jscomp$5$$?"column":"row";return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__justify-grid-row",selected:$APP.$app$common$data$name$$($props_76929$$.value),
"on-change":$on_change$jscomp$64$$,"decode-fn":$APP.$cljs$core$keyword$$,name:"grid-justify-items-"+($type$jscomp$606$$??""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,$APP.$cljs$cst$1278$start$$,$is_column$jscomp$5$$),title:"Justify items start",id:"justify-items-start-"+($type$jscomp$606$$??"")},"justify-item-start"),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,$APP.$cljs$cst$1651$center$$,$is_column$jscomp$5$$),title:"Justify items center",id:"justify-items-center-"+($type$jscomp$606$$??"")},"justify-item-center"),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,
$APP.$cljs$cst$1279$end$$,$is_column$jscomp$5$$),title:"Justify items end",id:"justify-items-end-"+($type$jscomp$606$$??"")},"justify-item-end"),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-around",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,$APP.$cljs$cst$1649$space_around$$,$is_column$jscomp$5$$),title:"Justify items space-around",id:"justify-items-space-around-"+($type$jscomp$606$$??
"")},"justify-item-space-around"),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"space-between",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,$APP.$cljs$cst$1652$space_between$$,$is_column$jscomp$5$$),title:"Justify items space-between",id:"justify-items-space-between-"+($type$jscomp$606$$??"")},"justify-item-space-between"),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"stretch",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_grid_icon$$($APP.$cljs$cst$3975$justify_items$$,$APP.$cljs$cst$1653$stretch$$,$is_column$jscomp$5$$),title:"Justify items stretch",id:"justify-items-stretch-"+($type$jscomp$606$$??"")},"justify-item-stretch")]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$manage_values$$=function($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$){$map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$=$APP.$cljs$core$__destructure_map$$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$);var $map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$,
$APP.$cljs$cst$139$type$$);$map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$,$APP.$cljs$cst$260$value$$);switch($map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$ instanceof $APP.$cljs$core$Keyword$$?$map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$.$fqn$:null){case "auto":return"auto";
case "percent":return $APP.$app$main$ui$formats$format_percent$cljs$0core$0IFn$0_invoke$0arity$02$$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$/100,null);case "flex":return $map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$=$APP.$cljs$core$__destructure_map$$(null),$map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$,
$APP.$cljs$cst$267$precision$$,2),$map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$=typeof $map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$==="string"?$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$):$map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$,$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$))?
""+($APP.$app$common$math$precision$$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$,$map__53179__$1$jscomp$inline_12922_precision$jscomp$inline_12923_type$jscomp$607$$)??"")+"fr":null;case "fixed":return $APP.$app$main$ui$formats$format_pixels$$.$cljs$core$IFn$_invoke$arity$1$($map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$);default:return $map__76931__$1_p__76930_value$jscomp$834_value__$1$jscomp$inline_12924$$}};
$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_track_info$$=function($pointer_enter_props_76935$$){var $remove_element$$=$pointer_enter_props_76935$$["remove-element"],$set_column_type$$=$pointer_enter_props_76935$$["set-column-type"],$on_select_track$$=$pointer_enter_props_76935$$["on-select-track"],$is_column$jscomp$6$$=$pointer_enter_props_76935$$["is-column"],$index$jscomp$484$$=$pointer_enter_props_76935$$.index,$hover_track$$=$pointer_enter_props_76935$$["hover-track"],$type$jscomp$608$$=
$pointer_enter_props_76935$$.type,$set_column_value$$=$pointer_enter_props_76935$$["set-column-value"],$column$jscomp$43$$=$pointer_enter_props_76935$$.column,$reorder_track$$=$pointer_enter_props_76935$$["reorder-track"],$dprops$jscomp$5_drop_track$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$608$$),$APP.$rumext$v2$adapt$$($reorder_track$$),$APP.$rumext$v2$adapt$$($index$jscomp$484$$)],function($G__76941_drop_position$$,$G__76940_data$jscomp$471$$,
$G__76942_event$jscomp$502$$){$G__76940_data$jscomp$471$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($G__76940_data$jscomp$471$$);$G__76941_drop_position$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1546$top$$,$G__76941_drop_position$$)?$index$jscomp$484$$-1:$index$jscomp$484$$;$G__76942_event$jscomp$502$$=!$APP.$app$util$keyboard$mod_QMARK_$$($G__76942_event$jscomp$502$$);return $reorder_track$$.$cljs$core$IFn$_invoke$arity$4$?$reorder_track$$.$cljs$core$IFn$_invoke$arity$4$($type$jscomp$608$$,
$G__76940_data$jscomp$471$$,$G__76941_drop_position$$,$G__76942_event$jscomp$502$$):$reorder_track$$($type$jscomp$608$$,$G__76940_data$jscomp$471$$,$G__76941_drop_position$$,$G__76942_event$jscomp$502$$)});$pointer_enter_props_76935$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$608$$),$APP.$rumext$v2$adapt$$($hover_track$$),$APP.$rumext$v2$adapt$$($index$jscomp$484$$)],function(){return $hover_track$$.$cljs$core$IFn$_invoke$arity$3$?$hover_track$$.$cljs$core$IFn$_invoke$arity$3$($type$jscomp$608$$,
$index$jscomp$484$$,!0):$hover_track$$($type$jscomp$608$$,$index$jscomp$484$$,!0)});var $pointer_leave$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$608$$),$APP.$rumext$v2$adapt$$($hover_track$$),$APP.$rumext$v2$adapt$$($index$jscomp$484$$)],function(){return $hover_track$$.$cljs$core$IFn$_invoke$arity$3$?$hover_track$$.$cljs$core$IFn$_invoke$arity$3$($type$jscomp$608$$,$index$jscomp$484$$,!1):$hover_track$$($type$jscomp$608$$,$index$jscomp$484$$,
!1)}),$handle_select_track$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_select_track$$),$APP.$rumext$v2$adapt$$($type$jscomp$608$$),$APP.$rumext$v2$adapt$$($index$jscomp$484$$)],function(){return $APP.$cljs$core$truth_$$($on_select_track$$)?$on_select_track$$.$cljs$core$IFn$_invoke$arity$2$?$on_select_track$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$608$$,$index$jscomp$484$$):$on_select_track$$($type$jscomp$608$$,$index$jscomp$484$$):null}),$dref$jscomp$5_vec__76936$$=
$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/grid-track",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$5_drop_track$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5442$is_column$$,$is_column$jscomp$6$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$484$$,$APP.$cljs$cst$216$column$$,$column$jscomp$43$$],null),$APP.$cljs$cst$2643$draggable_QMARK_$$,
!0]));$dprops$jscomp$5_drop_track$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$5_vec__76936$$,0,null);$dref$jscomp$5_vec__76936$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$5_vec__76936$$,1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$dref$jscomp$5_vec__76936$$,onPointerEnter:$pointer_enter_props_76935$$,onPointerLeave:$pointer_leave$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__track-info "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$5_drop_track$$),
$APP.$cljs$cst$1546$top$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$5_drop_track$$),$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_sidebar_options_menus_layout_container__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$5_drop_track$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_options_menus_layout_container__dnd-over-bot":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__track-info-container",children:[(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$handle_select_track$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__track-info-dir-icon",children:$APP.$cljs$core$truth_$$($is_column$jscomp$6$$)?$APP.$app$main$ui$icons$flex_vertical$$:$APP.$app$main$ui$icons$flex_horizontal$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__track-info-value",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,value:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($column$jscomp$43$$),onChange:function($p1__76933_SHARP_$$){return $set_column_value$$.$cljs$core$IFn$_invoke$arity$3$?$set_column_value$$.$cljs$core$IFn$_invoke$arity$3$($type$jscomp$608$$,$index$jscomp$484$$,$p1__76933_SHARP_$$):$set_column_value$$($type$jscomp$608$$,$index$jscomp$484$$,$p1__76933_SHARP_$$)},placeholder:"--",
min:0,disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1656$auto$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($column$jscomp$43$$))})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__track-info-unit",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_sidebar_options_menus_layout_container__track-info-unit-selector","default-value":$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($column$jscomp$43$$),
options:new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1644$flex$$,$APP.$cljs$cst$2245$label$$,"FR"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1656$auto$$,$APP.$cljs$cst$2245$label$$,"AUTO"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1655$fixed$$,$APP.$cljs$cst$2245$label$$,
"PX"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1654$percent$$,$APP.$cljs$cst$2245$label$$,"%"],null)],null),"on-change":function($p1__76934_SHARP_$$){return $set_column_type$$.$cljs$core$IFn$_invoke$arity$3$?$set_column_type$$.$cljs$core$IFn$_invoke$arity$3$($type$jscomp$608$$,$index$jscomp$484$$,$p1__76934_SHARP_$$):$set_column_type$$($type$jscomp$608$$,$index$jscomp$484$$,$p1__76934_SHARP_$$)}})})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.delete"),onClick:$remove_element$$,"data-type":$type$jscomp$608$$,"data-index":$index$jscomp$484$$,icon:"remove"})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_columns_row$$=function($column_num$jscomp$1_props_76943_track_name$$){var $remove_element$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["remove-element"],$set_column_type$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["set-column-type"],$column_values$$=$column_num$jscomp$1_props_76943_track_name$$["column-values"],$on_select_track$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["on-select-track"],$is_column$jscomp$7$$=
$column_num$jscomp$1_props_76943_track_name$$["is-column"],$expanded_QMARK_$jscomp$3$$=$column_num$jscomp$1_props_76943_track_name$$["expanded?"],$hover_track$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["hover-track"],$toggle$$=$column_num$jscomp$1_props_76943_track_name$$.toggle,$add_new_element$$=$column_num$jscomp$1_props_76943_track_name$$["add-new-element"],$set_column_value$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["set-column-value"],$reorder_track$jscomp$1$$=$column_num$jscomp$1_props_76943_track_name$$["reorder-track"];
$column_num$jscomp$1_props_76943_track_name$$=$APP.$cljs$core$count$$($column_values$$);$column_num$jscomp$1_props_76943_track_name$$=($column_num$jscomp$1_props_76943_track_name$$>1?$is_column$jscomp$7$$?"Columns ":"Rows ":$is_column$jscomp$7$$?"Column ":"Row ")+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($column_num$jscomp$1_props_76943_track_name$$,0)?" - empty":$column_num$jscomp$1_props_76943_track_name$$)??"");var $track_detail$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$options$menus$layout_container$manage_values$$,$column_values$$)),$type$jscomp$609$$=$APP.$cljs$core$truth_$$($is_column$jscomp$7$$)?$APP.$cljs$cst$216$column$$:$APP.$cljs$cst$1640$row$$;return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":$APP.$cljs$core$not$$($is_column$jscomp$7$$)?"inspect-layout-rows":null,className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-tracks",children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-track-header",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__expand-icon",children:$APP.$app$main$ui$icons$menu$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$toggle$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__track-title",children:[(0,$APP.$rumext$v2$jsx$$)("div",{title:$column_num$jscomp$1_props_76943_track_name$$,
className:"main_ui_workspace_sidebar_options_menus_layout_container__track-name",children:$column_num$jscomp$1_props_76943_track_name$$}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$track_detail$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__track-detail",children:$track_detail$$})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){$APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$3$$)||($toggle$$.$cljs$core$IFn$_invoke$arity$0$?$toggle$$.$cljs$core$IFn$_invoke$arity$0$():
$toggle$$());return $add_new_element$$.$cljs$core$IFn$_invoke$arity$2$?$add_new_element$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$609$$,$APP.$app$common$types$shape$layout$default_track_value$$):$add_new_element$$($type$jscomp$609$$,$APP.$app$common$types$shape$layout$default_track_value$$)},className:"main_ui_workspace_sidebar_options_menus_layout_container__add-column",children:$APP.$app$main$ui$icons$add$$})]}),$APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,
{children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-tracks-info-container",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$183$$,$column$jscomp$44_p__76945$$){var $index$jscomp$485$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$44_p__76945$$,0,null);$column$jscomp$44_p__76945$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column$jscomp$44_p__76945$$,
1,null);$out_arr__44057__auto__$jscomp$183$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$grid_track_info$$,{"is-column":$is_column$jscomp$7$$,index:$index$jscomp$485$$,"hover-track":$hover_track$jscomp$1$$,type:$type$jscomp$609$$,"set-column-value":$set_column_value$jscomp$1$$,column:$column$jscomp$44_p__76945$$,"reorder-track":$reorder_track$jscomp$1$$,"remove-element":$remove_element$jscomp$1$$,"set-column-type":$set_column_type$jscomp$1$$,"on-select-track":$on_select_track$jscomp$1$$},
""+($index$jscomp$485$$??"")+"-"+($APP.$app$common$data$name$$($type$jscomp$609$$)??"")));return $out_arr__44057__auto__$jscomp$183$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($column_values$$))})}):null]})};$app$main$ui$workspace$sidebar$options$menus$layout_container$open_flex_help$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$config$flex_help_uri$$))};
$app$main$ui$workspace$sidebar$options$menus$layout_container$open_grid_help$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$config$grid_help_uri$$))};
$app$main$ui$workspace$sidebar$options$menus$blur$create_blur$$=function(){var $id$jscomp$922$$=$APP.$app$common$uuid$next$$();return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$266$id$$,$id$jscomp$922$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1893$layer_blur$$,$APP.$cljs$cst$260$value$$,4,$APP.$cljs$cst$1604$hidden$$,!1],null)};
$app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$=function($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$){$blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$=$APP.$rumext$v2$util$wrap_props$$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$);$blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$=$APP.$cljs$core$__destructure_map$$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$);
var $ids$jscomp$274$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$,$APP.$cljs$cst$1707$ids$$),$type$jscomp$625$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$,$APP.$cljs$cst$139$type$$);$blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$,
$APP.$cljs$cst$299$values$$);$blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$=$APP.$cljs$cst$1637$blur$$.$cljs$core$IFn$_invoke$arity$1$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$);var $has_value_QMARK_$$=$blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$!=null,$state_STAR_$jscomp$16$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1860$show_content$$,
!0,$cljs$cst$5444$show_more_options$$,!1],null)),$more_options_QMARK__state$jscomp$1082$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$16$$),$open_QMARK_$jscomp$18$$=$APP.$cljs$cst$1860$show_content$$.$cljs$core$IFn$_invoke$arity$1$($more_options_QMARK__state$jscomp$1082$$);$more_options_QMARK__state$jscomp$1082$$=$cljs$cst$5444$show_more_options$$.$cljs$core$IFn$_invoke$arity$1$($more_options_QMARK__state$jscomp$1082$$);var $toggle_content$jscomp$5$$=$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$($state_STAR_$jscomp$16$$,
$APP.$cljs$core$update$$,$APP.$cljs$cst$1860$show_content$$,$APP.$cljs$core$not$$)}),$toggle_more_options$$=$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$($state_STAR_$jscomp$16$$,$APP.$cljs$core$update$$,$cljs$cst$5444$show_more_options$$,$APP.$cljs$core$not$$)}),$hidden_QMARK_$jscomp$5$$=$APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$),
$change_BANG_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$274$$)],function($update_fn$jscomp$44$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$274$$,$update_fn$jscomp$44$$))}),$handle_add$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_BANG_$$),$APP.$rumext$v2$adapt$$($ids$jscomp$274$$)],
function(){function $G__76700$$($p1__76690_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76690_SHARP_$$,$APP.$cljs$cst$1637$blur$$,$app$main$ui$workspace$sidebar$options$menus$blur$create_blur$$())}$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$274$$));return $change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($G__76700$$):
$change_BANG_$$($G__76700$$)}),$handle_delete$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_BANG_$$),$APP.$rumext$v2$adapt$$($ids$jscomp$274$$)],function(){function $G__76707$$($p1__76691_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__76691_SHARP_$$,$APP.$cljs$cst$1637$blur$$)}$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$274$$));
return $change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($G__76707$$):$change_BANG_$$($G__76707$$)}),$handle_change$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_BANG_$$),$APP.$rumext$v2$adapt$$($ids$jscomp$274$$)],function($value$jscomp$849$$){function $G__76708$$($G__76710__$1_p1__76692_SHARP_$$){$G__76710__$1_p1__76692_SHARP_$$=$APP.$cljs$core$contains_QMARK_$$($G__76710__$1_p1__76692_SHARP_$$,
$APP.$cljs$cst$1637$blur$$)?$G__76710__$1_p1__76692_SHARP_$$:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__76710__$1_p1__76692_SHARP_$$,$APP.$cljs$cst$1637$blur$$,$app$main$ui$workspace$sidebar$options$menus$blur$create_blur$$());return $APP.$cljs$core$assoc_in$$($G__76710__$1_p1__76692_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$260$value$$],null),$value$jscomp$849$$)}$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$274$$));
return $change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($G__76708$$):$change_BANG_$$($G__76708$$)}),$handle_toggle_visibility$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_BANG_$$),$APP.$rumext$v2$adapt$$($ids$jscomp$274$$)],function(){function $G__76713$$($p1__76693_SHARP_$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($p1__76693_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1604$hidden$$],null),$APP.$cljs$core$not$$)}$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$274$$));return $change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($G__76713$$):$change_BANG_$$($G__76713$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__element-set",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_value_QMARK_$$,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$18$$),onCollapsed:$toggle_content$jscomp$5$$,title:function(){switch($type$jscomp$625$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$625$$.$fqn$:null){case "multiple":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.title.multiple");
case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.title.group");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.title")}}(),className:$has_value_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_blur__title-spacing-blur",children:$has_value_QMARK_$$?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.add-blur"),
onClick:$handle_add$$,icon:"add","data-testid":"add-blur"})})}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($open_QMARK_$jscomp$18$$)?$has_value_QMARK_$$:$open_QMARK_$jscomp$18$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__element-set-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__first-row "+($APP.$cljs$core$truth_$$($hidden_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_options_menus_blur__hidden":
""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__blur-info",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle_more_options$$,className:"main_ui_workspace_sidebar_options_menus_blur__show-more "+($APP.$cljs$core$truth_$$($more_options_QMARK__state$jscomp$1082$$)?"main_ui_workspace_sidebar_options_menus_blur__selected":""),children:$APP.$app$main$ui$icons$menu$$}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_blur__label",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.title")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.toggle-blur"),onClick:$handle_toggle_visibility$$,icon:$APP.$cljs$core$truth_$$($hidden_QMARK_$jscomp$5$$)?
"hide":"shown"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.blur-options.remove-blur"),onClick:$handle_delete$$,icon:"remove"})]})]}),$APP.$cljs$core$truth_$$($more_options_QMARK__state$jscomp$1082$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_blur__second-row",children:[(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"blur-input-sidebar",
className:"main_ui_workspace_sidebar_options_menus_blur__label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.blur.value")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_blur__numeric-input",placeholder:"--",id:"blur-input-sidebar",min:"0",onChange:$handle_change$jscomp$8$$,value:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($blur$jscomp$12_map__76696_map__76696__$1_props_76694_values$jscomp$82$$)})]}):
null]}):null]})};
$app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$=function($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$){$map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$=$APP.$rumext$v2$util$wrap_props$$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$);$map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$=$APP.$cljs$core$__destructure_map$$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$);var $ids$jscomp$275$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$,
$APP.$cljs$cst$1707$ids$$),$values$jscomp$83$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$,$APP.$cljs$cst$299$values$$),$state_STAR_$jscomp$17$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$17$$);var $toggle_content$jscomp$6$$=$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$($state_STAR_$jscomp$17$$,
$APP.$cljs$core$not$$)}),$in_frame_QMARK__old_shapes$jscomp$2$$=$APP.$cljs$core$_deref$$($app$main$refs$objects_by_id$$($ids$jscomp$275$$)),$first_level_QMARK__frames$jscomp$30$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76701_SHARP_$$){return $APP.$cljs$core$deref$$($app$main$refs$object_by_id$$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76701_SHARP_$$)))},$in_frame_QMARK__old_shapes$jscomp$2$$),$shapes$jscomp$202$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$geom$shapes$translate_to_frame$$,
$in_frame_QMARK__old_shapes$jscomp$2$$,$first_level_QMARK__frames$jscomp$30$$),$values__$1$jscomp$4$$=function(){var $G__76719__$1_map__76718_x$jscomp$1243$$=$APP.$app$common$geom$rect$points__GT_rect$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes$jscomp$202$$))),$map__76718__$1_y$jscomp$466$$=$APP.$cljs$core$__destructure_map$$($G__76719__$1_map__76718_x$jscomp$1243$$);$G__76719__$1_map__76718_x$jscomp$1243$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76718__$1_y$jscomp$466$$,
$APP.$cljs$cst$1499$x$$);$map__76718__$1_y$jscomp$466$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76718__$1_y$jscomp$466$$,$APP.$cljs$cst$1500$y$$);$G__76719__$1_map__76718_x$jscomp$1243$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$83$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($values$jscomp$83$$,$APP.$cljs$cst$1499$x$$,$G__76719__$1_map__76718_x$jscomp$1243$$):
$values$jscomp$83$$;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$83$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__76719__$1_map__76718_x$jscomp$1243$$,$APP.$cljs$cst$1500$y$$,$map__76718__$1_y$jscomp$466$$):$G__76719__$1_map__76718_x$jscomp$1243$$}(),$values__$2$$=function(){var $G__76721__$1_map__76720_width$jscomp$192$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes$jscomp$202$$)),
$height$jscomp$163_map__76720__$1$$=$APP.$cljs$core$__destructure_map$$($G__76721__$1_map__76720_width$jscomp$192$$);$G__76721__$1_map__76720_width$jscomp$192$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$163_map__76720__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$163_map__76720__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$163_map__76720__$1$$,$APP.$cljs$cst$1511$height$$);$G__76721__$1_map__76720_width$jscomp$192$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$1$jscomp$4$$),
$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($values__$1$jscomp$4$$,$APP.$cljs$cst$288$width$$,$G__76721__$1_map__76720_width$jscomp$192$$):$values__$1$jscomp$4$$;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$1$jscomp$4$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__76721__$1_map__76720_width$jscomp$192$$,$APP.$cljs$cst$1511$height$$,
$height$jscomp$163_map__76720__$1$$):$G__76721__$1_map__76720_width$jscomp$192$$}();$first_level_QMARK__frames$jscomp$30$$=($in_frame_QMARK__old_shapes$jscomp$2$$=$ids$jscomp$275$$!=null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$),$APP.$app$common$uuid$zero$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$),$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$));
var $constraints_h$jscomp$2$$=function(){var $or__5025__auto__$jscomp$1108$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$$,$APP.$cljs$cst$1856$constraints_h$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1108$$)?$or__5025__auto__$jscomp$1108$$:$APP.$app$common$geom$shapes$constraints$default_constraints_h$$($values__$2$$)}(),$constraints_v$jscomp$2$$=function(){var $or__5025__auto__$jscomp$1109$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$$,
$APP.$cljs$cst$1855$constraints_v$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1109$$)?$or__5025__auto__$jscomp$1109$$:$APP.$app$common$geom$shapes$constraints$default_constraints_v$$($values__$2$$)}(),$on_constraint_button_clicked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$275$$),$APP.$rumext$v2$adapt$$($values__$2$$)],function($event$jscomp$505_vec__76723$$){var $button$jscomp$2$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$505_vec__76723$$),
"value")),$constraints_h__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($values__$2$$,$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1887$scale$$),$constraints_v__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($values__$2$$,$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1887$scale$$);$event$jscomp$505_vec__76723$$=function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1546$top$$,$button$jscomp$2$$))switch($constraints_v__$1$$ instanceof
$APP.$cljs$core$Keyword$$?$constraints_v__$1$$.$fqn$:null){case "top":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1887$scale$$],null);case "topbottom":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1547$bottom$$],null);case "bottom":return new $APP.$cljs$core$PersistentVector$$(null,2,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1886$topbottom$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1546$top$$],null)}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1547$bottom$$,$button$jscomp$2$$))switch($constraints_v__$1$$ instanceof $APP.$cljs$core$Keyword$$?$constraints_v__$1$$.$fqn$:
null){case "bottom":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1887$scale$$],null);case "topbottom":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1546$top$$],null);case "top":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,
$APP.$cljs$cst$1886$topbottom$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1547$bottom$$],null)}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$257$left$$,$button$jscomp$2$$))switch($constraints_h__$1$$ instanceof $APP.$cljs$core$Keyword$$?$constraints_h__$1$$.$fqn$:null){case "left":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1887$scale$$],null);case "leftright":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$258$right$$],null);case "right":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1885$leftright$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$257$left$$],null)}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$258$right$$,$button$jscomp$2$$))switch($constraints_h__$1$$ instanceof $APP.$cljs$core$Keyword$$?$constraints_h__$1$$.$fqn$:null){case "right":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1887$scale$$],
null);case "leftright":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$257$left$$],null);case "left":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1885$leftright$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,
$APP.$cljs$cst$258$right$$],null)}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5445$centerv$$,$button$jscomp$2$$))switch($constraints_v__$1$$ instanceof $APP.$cljs$core$Keyword$$?$constraints_v__$1$$.$fqn$:null){case "center":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1887$scale$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1651$center$$],null)}else if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5446$centerh$$,$button$jscomp$2$$))switch($constraints_h__$1$$ instanceof $APP.$cljs$core$Keyword$$?$constraints_h__$1$$.$fqn$:null){case "center":return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1887$scale$$],null);default:return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1651$center$$],null)}else{if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(null,$button$jscomp$2$$))return $APP.$cljs$core$List$EMPTY$$;throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($button$jscomp$2$$)].join(""));}}();var $constraint$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$505_vec__76723$$,0,null),$new_value$jscomp$24$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$505_vec__76723$$,1,null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$275$$,function($p1__76703_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76703_SHARP_$$,$constraint$jscomp$3$$,$new_value$jscomp$24$$)}))}),$on_constraint_h_select_changed$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$275$$)],
function($value$jscomp$850$$){return $APP.$cuerdas$core$empty_QMARK_$$($value$jscomp$850$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$275$$,function($p1__76704_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76704_SHARP_$$,$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$850$$))}))}),
$on_constraint_v_select_changed$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$275$$)],function($value$jscomp$851$$){return $APP.$cuerdas$core$empty_QMARK_$$($value$jscomp$851$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$275$$,function($p1__76705_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76705_SHARP_$$,
$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$851$$))}))}),$on_fixed_scroll_clicked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$275$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$275$$,function($p1__76706_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($p1__76706_SHARP_$$,
$APP.$cljs$cst$1629$fixed_scroll$$,$APP.$cljs$core$not$$)}))}),$options_h$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($constraints_h$jscomp$2$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$1600$multiple$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"left",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.left")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"right",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.right")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"leftright",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.leftright")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
"center",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.center")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"scale",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.scale")],null)],null)]))}),$options_v$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($constraints_v$jscomp$2$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,
$APP.$cljs$cst$1600$multiple$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,"top",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.top")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"bottom",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.bottom")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"topbottom",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.topbottom")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"center",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.center")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"scale",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.scale")],null)],null)]))});return $in_frame_QMARK__old_shapes$jscomp$2$$?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_constraints__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$),onCollapsed:$toggle_content$jscomp$6$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints")})}),
$APP.$cljs$core$truth_$$($map__76716_map__76716__$1_open_QMARK_$jscomp$19_props_76711$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__element-set-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-widget",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-top",children:(0,$APP.$rumext$v2$jsx$$)("button",
{"data-value":"top",onClick:$on_constraint_button_clicked$$,className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1546$top$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1886$topbottom$$)?"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-left",children:(0,$APP.$rumext$v2$jsx$$)("button",{"data-value":"left",onClick:$on_constraint_button_clicked$$,className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn main_ui_workspace_sidebar_options_menus_constraints__constraint-btn-rotated "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$257$left$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,
$APP.$cljs$cst$1885$leftright$$)?"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-center",children:[(0,$APP.$rumext$v2$jsx$$)("button",{"data-value":"centerv",onClick:$on_constraint_button_clicked$$,className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn "+
($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})}),(0,$APP.$rumext$v2$jsx$$)("button",{"data-value":"centerh",onClick:$on_constraint_button_clicked$$,className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn-special main_ui_workspace_sidebar_options_menus_constraints__constraint-btn-rotated "+
($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-right",children:(0,$APP.$rumext$v2$jsx$$)("button",{"data-value":"right",onClick:$on_constraint_button_clicked$$,
className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn main_ui_workspace_sidebar_options_menus_constraints__constraint-btn-rotated "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$258$right$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$1885$leftright$$)?"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-bottom",children:(0,$APP.$rumext$v2$jsx$$)("button",{"data-value":"bottom",onClick:$on_constraint_button_clicked$$,className:"main_ui_workspace_sidebar_options_menus_constraints__constraint-btn "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1547$bottom$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1886$topbottom$$)?
"main_ui_workspace_sidebar_options_menus_constraints__active":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__resalted-area"})})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__constraints-selects",children:[(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"constraint-h-select",className:"main_ui_workspace_sidebar_options_menus_constraints__horizontal-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"default-value":$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_h$jscomp$2$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$name$$($constraints_h$jscomp$2$$),"scale"):"",options:$options_h$$,"on-change":$on_constraint_h_select_changed$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"constraint-v-select",className:"main_ui_workspace_sidebar_options_menus_constraints__vertical-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"default-value":$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($constraints_v$jscomp$2$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$name$$($constraints_v$jscomp$2$$),"scale"):"",options:$options_v$$,"on-change":$on_constraint_v_select_changed$$})}),$first_level_QMARK__frames$jscomp$30$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_constraints__checkbox",children:(0,$APP.$rumext$v2$jsxs$$)("label",
{htmlFor:"fixed-on-scroll",className:$APP.$cljs$core$truth_$$($APP.$cljs$cst$1629$fixed_scroll$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$))?"main_ui_workspace_sidebar_options_menus_constraints__checked":"",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_constraints__check-mark "+($APP.$cljs$core$truth_$$($APP.$cljs$cst$1629$fixed_scroll$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$))?"main_ui_workspace_sidebar_options_menus_constraints__checked":
""),children:$APP.$cljs$core$truth_$$($APP.$cljs$cst$1629$fixed_scroll$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$))?$APP.$app$main$ui$icons$status_tick$$:null}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.constraints.fix-when-scrolling"),(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"fixed-on-scroll",checked:$APP.$cljs$cst$1629$fixed_scroll$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$$),onChange:$on_fixed_scroll_clicked$$})]})}):null]})]}):null]}):null};
$app$main$ui$workspace$sidebar$options$menus$layer$opacity__GT_string$$=function($opacity$jscomp$49$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($opacity$jscomp$49$$,$APP.$cljs$cst$1600$multiple$$)?""+$APP.$app$common$data$coalesce$$($opacity$jscomp$49$$)*100:$APP.$cljs$cst$1600$multiple$$};
$app$main$ui$workspace$sidebar$options$menus$layer$on_change$$=function($ids$jscomp$278$$,$prop$jscomp$37$$,$value$jscomp$856$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$278$$,function($p1__76827_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__76827_SHARP_$$,$prop$jscomp$37$$,$value$jscomp$856$$)}))};
$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$=function($m1_QMARK_$$,$m2_QMARK_$$,$m3_QMARK_$$,$m4_QMARK_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_margins_selected$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1684$m1$$,$m1_QMARK_$$,$APP.$cljs$cst$1685$m2$$,$m2_QMARK_$$,$APP.$cljs$cst$1686$m3$$,$m3_QMARK_$$,$APP.$cljs$cst$1687$m4$$,$m4_QMARK_$$],null)))};
$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margin$$=function($prop$jscomp$38$$){return $app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$38$$,$APP.$cljs$cst$1684$m1$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$38$$,$APP.$cljs$cst$1685$m2$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$38$$,$APP.$cljs$cst$1686$m3$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$38$$,
$APP.$cljs$cst$1687$m4$$))};
$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_simple_STAR_$$=function($props_77007_token_numeric_inputs$jscomp$4$$){var $on_change$jscomp$67$$=$props_77007_token_numeric_inputs$jscomp$4$$.onChange,$m2_placeholder_value$jscomp$861$$=$props_77007_token_numeric_inputs$jscomp$4$$.value,$on_blur$jscomp$21$$=$props_77007_token_numeric_inputs$jscomp$4$$.onBlur,$ids$jscomp$280$$=$props_77007_token_numeric_inputs$jscomp$4$$.ids,$applied_tokens$jscomp$13_token_applied_m2__$1$$=$props_77007_token_numeric_inputs$jscomp$4$$.appliedTokens;
$props_77007_token_numeric_inputs$jscomp$4$$=$app$main$features$use_feature$$("tokens/numeric-input");var $m1$jscomp$18_m1__$1$jscomp$1$$=$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($m2_placeholder_value$jscomp$861$$),$m2$jscomp$15_m2__$1$jscomp$1$$=$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($m2_placeholder_value$jscomp$861$$),$m1_placeholder_m3$jscomp$2$$=$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($m2_placeholder_value$jscomp$861$$),$m4$jscomp$2_on_detach_horizontal$$=
$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($m2_placeholder_value$jscomp$861$$);$m1$jscomp$18_m1__$1$jscomp$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2_placeholder_value$jscomp$861$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m1$jscomp$18_m1__$1$jscomp$1$$,$m1_placeholder_m3$jscomp$2$$)?$m1$jscomp$18_m1__$1$jscomp$1$$:null;$m2$jscomp$15_m2__$1$jscomp$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2_placeholder_value$jscomp$861$$,
$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2$jscomp$15_m2__$1$jscomp$1$$,$m4$jscomp$2_on_detach_horizontal$$)?$m2$jscomp$15_m2__$1$jscomp$1$$:null;var $token_applied_m1_token_applied_m1__$1$$=$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$13_token_applied_m2__$1$$),$on_focus_m2_token_applied_m2$$=$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$13_token_applied_m2__$1$$),$on_focus_m1_token_applied_m3$$=
$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$13_token_applied_m2__$1$$),$on_detach_vertical_token_applied_m4$$=$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$13_token_applied_m2__$1$$);$token_applied_m1_token_applied_m1__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$13_token_applied_m2__$1$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token_applied_m1_token_applied_m1__$1$$,
$on_focus_m1_token_applied_m3$$)?$token_applied_m1_token_applied_m1__$1$$:$APP.$cljs$cst$1600$multiple$$;$applied_tokens$jscomp$13_token_applied_m2__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$13_token_applied_m2__$1$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($on_focus_m2_token_applied_m2$$,$on_detach_vertical_token_applied_m4$$)?$on_focus_m2_token_applied_m2$$:$APP.$cljs$cst$1600$multiple$$;$m1_placeholder_m3$jscomp$2$$=
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2_placeholder_value$jscomp$861$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m1$jscomp$18_m1__$1$jscomp$1$$,$m1_placeholder_m3$jscomp$2$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token_applied_m1_token_applied_m1__$1$$,$on_focus_m1_token_applied_m3$$)?"--":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple");$m2_placeholder_value$jscomp$861$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2_placeholder_value$jscomp$861$$,
$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($m2$jscomp$15_m2__$1$jscomp$1$$,$m4$jscomp$2_on_detach_horizontal$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$13_token_applied_m2__$1$$,$on_detach_vertical_token_applied_m4$$)?"--":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple");var $on_focus$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$)],
function($G__77008_77042__$1_attr$jscomp$74$$,$event$jscomp$513$$){$G__77008_77042__$1_attr$jscomp$74$$=$G__77008_77042__$1_attr$jscomp$74$$ instanceof $APP.$cljs$core$Keyword$$?$G__77008_77042__$1_attr$jscomp$74$$.$fqn$:null;switch($G__77008_77042__$1_attr$jscomp$74$$){case "m1":$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$(!0,!1,!0,!1);break;case "m2":$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$(!1,!0,!1,!0);break;default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77008_77042__$1_attr$jscomp$74$$)].join(""));}return $app$util$dom$select_target$$($event$jscomp$513$$)}),$on_detach_token$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$280$$)],function($token_name$jscomp$19$$,$attr$jscomp$75$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$19$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$75$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$280$$],null)))});$m4$jscomp$2_on_detach_horizontal$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$7$$)],function($token$jscomp$122$$){return $APP.$cljs$core$run_BANG_$$(function($p1__77003_SHARP_$$){return $on_detach_token$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$?
$on_detach_token$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$122$$,$p1__77003_SHARP_$$):$on_detach_token$jscomp$7$$($token$jscomp$122$$,$p1__77003_SHARP_$$)},new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1685$m2$$,$APP.$cljs$cst$1687$m4$$],null))});$on_detach_vertical_token_applied_m4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$7$$)],function($token$jscomp$123$$){return $APP.$cljs$core$run_BANG_$$(function($p1__77004_SHARP_$$){return $on_detach_token$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$?
$on_detach_token$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$123$$,$p1__77004_SHARP_$$):$on_detach_token$jscomp$7$$($token$jscomp$123$$,$p1__77004_SHARP_$$)},new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1684$m1$$,$APP.$cljs$cst$1686$m3$$],null))});var $on_change_SINGLEQUOTE_$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$67$$),$APP.$rumext$v2$adapt$$($ids$jscomp$280$$)],
function($value__$1$jscomp$54$$,$attr$jscomp$76$$){return typeof $value__$1$jscomp$54$$==="string"||typeof $value__$1$jscomp$54$$==="number"?$on_change$jscomp$67$$.$cljs$core$IFn$_invoke$arity$3$?$on_change$jscomp$67$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$1647$simple$$,$attr$jscomp$76$$,$value__$1$jscomp$54$$):$on_change$jscomp$67$$($APP.$cljs$cst$1647$simple$$,$attr$jscomp$76$$,$value__$1$jscomp$54$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value__$1$jscomp$54$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1684$m1$$,$attr$jscomp$76$$)?new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1686$m3$$,null,$APP.$cljs$cst$1684$m1$$,null],null),null):new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1687$m4$$,null,$APP.$cljs$cst$1685$m2$$,
null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$280$$],null)))});$on_focus_m1_token_applied_m3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$14$$)],function(){return $on_focus$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1684$m1$$):$on_focus$jscomp$14$$($APP.$cljs$cst$1684$m1$$)});$on_focus_m2_token_applied_m2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$14$$)],
function(){return $on_focus$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1685$m2$$):$on_focus$jscomp$14$$($APP.$cljs$cst$1685$m2$$)});var $on_m1_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$8$$)],function($p1__77005_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$($p1__77005_SHARP_$$,
$APP.$cljs$cst$1684$m1$$):$on_change_SINGLEQUOTE_$jscomp$8$$($p1__77005_SHARP_$$,$APP.$cljs$cst$1684$m1$$)}),$on_m2_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$8$$)],function($p1__77006_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$($p1__77006_SHARP_$$,$APP.$cljs$cst$1685$m2$$):$on_change_SINGLEQUOTE_$jscomp$8$$($p1__77006_SHARP_$$,
$APP.$cljs$cst$1685$m2$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__margin-simple",children:[$props_77007_token_numeric_inputs$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_m1_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__vertical-margin-wrapper",placeholder:$m1_placeholder_m3$jscomp$2$$,inputType:$APP.$cljs$cst$1975$vertical_margin$$,
attr:$APP.$cljs$cst$1684$m1$$,appliedToken:$token_applied_m1_token_applied_m1__$1$$,value:$m1$jscomp$18_m1__$1$jscomp$1$$,onFocus:$on_focus_m1_token_applied_m3$$,onDetach:$on_detach_vertical_token_applied_m4$$,property:"Vertical margin ",onBlur:$on_blur$jscomp$21$$,nillable:!0,icon:"margin-top-bottom"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Vertical margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__vertical-margin",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",
children:$APP.$app$main$ui$icons$margin_top_bottom$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:$m1_placeholder_m3$jscomp$2$$,"data-name":"m1",onFocus:$on_focus_m1_token_applied_m3$$,onChange:$on_m1_change$$,onBlur:$on_blur$jscomp$21$$,nillable:!0,value:$m1$jscomp$18_m1__$1$jscomp$1$$})]}),$props_77007_token_numeric_inputs$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_m2_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__horizontal-margin-wrapper",placeholder:$m2_placeholder_value$jscomp$861$$,inputType:$APP.$cljs$cst$1972$horizontal_margin$$,attr:$APP.$cljs$cst$1685$m2$$,appliedToken:$applied_tokens$jscomp$13_token_applied_m2__$1$$,value:$m2$jscomp$15_m2__$1$jscomp$1$$,onFocus:$on_focus_m2_token_applied_m2$$,onDetach:$m4$jscomp$2_on_detach_horizontal$$,property:"Horizontal margin",onBlur:$on_blur$jscomp$21$$,
nillable:!0,icon:"margin-left-right"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Horizontal margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__horizontal-margin",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",children:$APP.$app$main$ui$icons$margin_left_right$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",
placeholder:$m2_placeholder_value$jscomp$861$$,"data-name":"m2",onFocus:$on_focus_m2_token_applied_m2$$,onChange:$on_m2_change$$,onBlur:$on_blur$jscomp$21$$,nillable:!0,value:$m2$jscomp$15_m2__$1$jscomp$1$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_multiple_STAR_$$=function($props_77014_token_numeric_inputs$jscomp$5$$){var $on_change$jscomp$68$$=$props_77014_token_numeric_inputs$jscomp$5$$.onChange,$m4$jscomp$3_value$jscomp$862$$=$props_77014_token_numeric_inputs$jscomp$5$$.value,$on_blur$jscomp$22$$=$props_77014_token_numeric_inputs$jscomp$5$$.onBlur,$ids$jscomp$281$$=$props_77014_token_numeric_inputs$jscomp$5$$.ids,$applied_token_to_m4_applied_tokens$jscomp$14$$=$props_77014_token_numeric_inputs$jscomp$5$$.appliedTokens;
$props_77014_token_numeric_inputs$jscomp$5$$=$app$main$features$use_feature$$("tokens/numeric-input");var $m1$jscomp$19$$=$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($m4$jscomp$3_value$jscomp$862$$),$m2$jscomp$16$$=$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($m4$jscomp$3_value$jscomp$862$$),$m3$jscomp$3$$=$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($m4$jscomp$3_value$jscomp$862$$);$m4$jscomp$3_value$jscomp$862$$=$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($m4$jscomp$3_value$jscomp$862$$);
var $applied_token_to_m1$$=$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($applied_token_to_m4_applied_tokens$jscomp$14$$),$applied_token_to_m2$$=$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($applied_token_to_m4_applied_tokens$jscomp$14$$),$applied_token_to_m3$$=$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($applied_token_to_m4_applied_tokens$jscomp$14$$);$applied_token_to_m4_applied_tokens$jscomp$14$$=$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($applied_token_to_m4_applied_tokens$jscomp$14$$);
var $on_detach_token$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$281$$)],function($token_name$jscomp$20$$,$attr$jscomp$77$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$20$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$77$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$281$$],null)))}),$on_focus$jscomp$15$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_item$select_margin$$)],function($attr$jscomp$78$$,$event$jscomp$514$$){$app$main$ui$workspace$sidebar$options$menus$layout_item$select_margin$$($attr$jscomp$78$$);return $app$util$dom$select_target$$($event$jscomp$514$$)}),$on_focus_m1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$15$$)],
function(){return $on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1684$m1$$):$on_focus$jscomp$15$$($APP.$cljs$cst$1684$m1$$)}),$on_focus_m2$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$15$$)],function(){return $on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1685$m2$$):$on_focus$jscomp$15$$($APP.$cljs$cst$1685$m2$$)}),
$on_focus_m3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$15$$)],function(){return $on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1684$m1$$):$on_focus$jscomp$15$$($APP.$cljs$cst$1684$m1$$)}),$on_focus_m4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$15$$)],function(){return $on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$?
$on_focus$jscomp$15$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1685$m2$$):$on_focus$jscomp$15$$($APP.$cljs$cst$1685$m2$$)}),$on_change_SINGLEQUOTE_$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$68$$),$APP.$rumext$v2$adapt$$($ids$jscomp$281$$)],function($value__$1$jscomp$55$$,$attr$jscomp$79$$){return typeof $value__$1$jscomp$55$$==="string"||typeof $value__$1$jscomp$55$$==="number"?$on_change$jscomp$68$$.$cljs$core$IFn$_invoke$arity$3$?
$on_change$jscomp$68$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$1600$multiple$$,$attr$jscomp$79$$,$value__$1$jscomp$55$$):$on_change$jscomp$68$$($APP.$cljs$cst$1600$multiple$$,$attr$jscomp$79$$,$value__$1$jscomp$55$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value__$1$jscomp$55$$),$APP.$cljs$cst$2595$attrs$$,
$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$79$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$281$$],null)))}),$on_m1_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$9$$)],function($p1__77010_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$($p1__77010_SHARP_$$,$APP.$cljs$cst$1684$m1$$):$on_change_SINGLEQUOTE_$jscomp$9$$($p1__77010_SHARP_$$,
$APP.$cljs$cst$1684$m1$$)}),$on_m2_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$9$$)],function($p1__77011_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$($p1__77011_SHARP_$$,$APP.$cljs$cst$1685$m2$$):$on_change_SINGLEQUOTE_$jscomp$9$$($p1__77011_SHARP_$$,$APP.$cljs$cst$1685$m2$$)}),$on_m3_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$9$$)],
function($p1__77012_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$($p1__77012_SHARP_$$,$APP.$cljs$cst$1686$m3$$):$on_change_SINGLEQUOTE_$jscomp$9$$($p1__77012_SHARP_$$,$APP.$cljs$cst$1686$m3$$)}),$on_m4_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_SINGLEQUOTE_$jscomp$9$$)],function($p1__77013_SHARP_$$){return $on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change_SINGLEQUOTE_$jscomp$9$$.$cljs$core$IFn$_invoke$arity$2$($p1__77013_SHARP_$$,$APP.$cljs$cst$1687$m4$$):$on_change_SINGLEQUOTE_$jscomp$9$$($p1__77013_SHARP_$$,$APP.$cljs$cst$1687$m4$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__margin-multiple",children:[$props_77014_token_numeric_inputs$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,
onChange:$on_m1_change$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__top-margin-wrapper",inputType:$APP.$cljs$cst$1975$vertical_margin$$,attr:$APP.$cljs$cst$1684$m1$$,appliedToken:$applied_token_to_m1$$,value:$m1$jscomp$19$$,onFocus:$on_focus_m1$jscomp$1$$,onDetach:$on_detach_token$jscomp$8$$,property:"Top margin",onBlur:$on_blur$jscomp$22$$,nillable:!0,icon:"margin-top"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Top margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__top-margin",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",children:$APP.$app$main$ui$icons$margin_top$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--","data-name":"m1",onFocus:$on_focus_m1$jscomp$1$$,onChange:$on_m1_change$jscomp$1$$,onBlur:$on_blur$jscomp$22$$,nillable:!0,value:$m1$jscomp$19$$})]}),$props_77014_token_numeric_inputs$jscomp$5$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_m2_change$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__right-margin-wrapper",inputType:$APP.$cljs$cst$1972$horizontal_margin$$,attr:$APP.$cljs$cst$1685$m2$$,appliedToken:$applied_token_to_m2$$,value:$m2$jscomp$16$$,onFocus:$on_focus_m2$jscomp$1$$,onDetach:$on_detach_token$jscomp$8$$,property:"Right margin",
onBlur:$on_blur$jscomp$22$$,nillable:!0,icon:"margin-right"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Right margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__right-margin",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",children:$APP.$app$main$ui$icons$margin_right$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",
placeholder:"--","data-name":"m2",onFocus:$on_focus_m2$jscomp$1$$,onChange:$on_m2_change$jscomp$1$$,onBlur:$on_blur$jscomp$22$$,nillable:!0,value:$m2$jscomp$16$$})]}),$props_77014_token_numeric_inputs$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_m3_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__bottom-margin-wrapper",inputType:$APP.$cljs$cst$1975$vertical_margin$$,
attr:$APP.$cljs$cst$1686$m3$$,appliedToken:$applied_token_to_m3$$,value:$m3$jscomp$3$$,onFocus:$on_focus_m3$$,onDetach:$on_detach_token$jscomp$8$$,property:"Bottom margin",onBlur:$on_blur$jscomp$22$$,nillable:!0,icon:"margin-bottom"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Bottom margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__bottom-margin",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",children:$APP.$app$main$ui$icons$margin_bottom$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--","data-name":"m3",onFocus:$on_focus_m3$$,onChange:$on_m3_change$$,onBlur:$on_blur$jscomp$22$$,nillable:!0,value:$m3$jscomp$3$$})]}),$props_77014_token_numeric_inputs$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_m4_change$$,
className:"main_ui_workspace_sidebar_options_menus_layout_item__left-margin-wrapper",inputType:$APP.$cljs$cst$1972$horizontal_margin$$,attr:$APP.$cljs$cst$1687$m4$$,appliedToken:$applied_token_to_m4_applied_tokens$jscomp$14$$,value:$m4$jscomp$3_value$jscomp$862$$,onFocus:$on_focus_m4$$,onDetach:$on_detach_token$jscomp$8$$,property:"Left margin",onBlur:$on_blur$jscomp$22$$,nillable:!0,icon:"margin-left"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:"Left margin",className:"main_ui_workspace_sidebar_options_menus_layout_item__left-margin",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon",children:$APP.$app$main$ui$icons$margin_left$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--","data-name":"m4",onFocus:$on_focus_m4$$,onChange:$on_m4_change$$,onBlur:$on_blur$jscomp$22$$,nillable:!0,value:$m4$jscomp$3_value$jscomp$862$$})]})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$margin_section_STAR_$$=function($props_77015_props__$1$jscomp$78$$){var $on_type_change$jscomp$3$$=$props_77015_props__$1$jscomp$78$$.onTypeChange,$type__$1$jscomp$17$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_77015_props__$1$jscomp$78$$.type,$APP.$cljs$cst$1647$simple$$),$on_blur$jscomp$23$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$)],
function(){return $app$main$ui$workspace$sidebar$options$menus$layout_item$select_margins$$(!1,!1,!1,!1)});$props_77015_props__$1$jscomp$78$$={...$props_77015_props__$1$jscomp$78$$,onBlur:$on_blur$jscomp$23$$};var $on_type_change_SINGLEQUOTE_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type__$1$jscomp$17$$),$APP.$rumext$v2$adapt$$($on_type_change$jscomp$3$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type__$1$jscomp$17$$,
$APP.$cljs$cst$1600$multiple$$)?$on_type_change$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_type_change$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1647$simple$$):$on_type_change$jscomp$3$$($APP.$cljs$cst$1647$simple$$):$on_type_change$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_type_change$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1600$multiple$$):$on_type_change$jscomp$3$$($APP.$cljs$cst$1600$multiple$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){return function(){return $on_blur$jscomp$23$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$23$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$23$$()}});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__margin-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__inputs-wrapper",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type__$1$jscomp$17$$,$APP.$cljs$cst$1647$simple$$)?
(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$margin_simple_STAR_$$,$props_77015_props__$1$jscomp$78$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type__$1$jscomp$17$$,$APP.$cljs$cst$1600$multiple$$)?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$margin_multiple_STAR_$$,$props_77015_props__$1$jscomp$78$$):null}),(0,$APP.$rumext$v2$jsx$$)("button",{title:"Margin - multiple",onClick:$on_type_change_SINGLEQUOTE_$jscomp$1$$,
className:"main_ui_workspace_sidebar_options_menus_layout_item__margin-mode "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type__$1$jscomp$17$$,$APP.$cljs$cst$1600$multiple$$)?"main_ui_workspace_sidebar_options_menus_layout_item__selected":""),children:$APP.$app$main$ui$icons$margin$$})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_horizontal$$=function($props_77017$$){var $on_change$jscomp$69$$=$props_77017$$["on-change"],$is_auto$$=$props_77017$$["is-auto"],$has_fill$$=$props_77017$$["has-fill"];return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__horizontal-behaviour "+($has_fill$$||$is_auto$$?"":"main_ui_workspace_sidebar_options_menus_layout_item__one-element")+" "+($has_fill$$||$is_auto$$?"main_ui_workspace_sidebar_options_menus_layout_item__two-element":
"")+" "+($has_fill$$&&$is_auto$$?"main_ui_workspace_sidebar_options_menus_layout_item__three-element":""),children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($props_77017$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$69$$,name:"flex-behaviour-h",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"fix",icon:"fixed-width",title:"Fix width",id:"behaviour-h-fix"}),
$has_fill$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"fill",icon:"fill-content",title:"Width 100%",id:"behaviour-h-fill"}):null,$is_auto$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"auto",icon:"hug-content",title:"Fit content (Horizontal)",id:"behaviour-h-auto"}):null]})})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_vertical$$=function($props_77019$$){var $on_change$jscomp$70$$=$props_77019$$["on-change"],$is_auto$jscomp$1$$=$props_77019$$["is-auto"],$has_fill$jscomp$1$$=$props_77019$$["has-fill"];return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__vertical-behaviour "+($has_fill$jscomp$1$$||$is_auto$jscomp$1$$?"":"main_ui_workspace_sidebar_options_menus_layout_item__one-element")+" "+
($has_fill$jscomp$1$$||$is_auto$jscomp$1$$?"main_ui_workspace_sidebar_options_menus_layout_item__two-element":"")+" "+($has_fill$jscomp$1$$&&$is_auto$jscomp$1$$?"main_ui_workspace_sidebar_options_menus_layout_item__three-element":""),children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($props_77019$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$70$$,name:"flex-behaviour-v",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"fix",icon:"fixed-width","icon-class":"main_ui_workspace_sidebar_options_menus_layout_item__rotated",title:"Fix height",id:"behaviour-v-fix"}),$has_fill$jscomp$1$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"fill",icon:"fill-content","icon-class":"main_ui_workspace_sidebar_options_menus_layout_item__rotated",title:"Height 100%",id:"behaviour-v-fill"}):null,$is_auto$jscomp$1$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"auto",icon:"hug-content","icon-class":"main_ui_workspace_sidebar_options_menus_layout_item__rotated",title:"Fit content (Vertical)",id:"behaviour-v-auto"}):null]})})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$align_self_row$$=function($props_77020$$){var $on_change$jscomp$71$$=$props_77020$$["on-change"],$is_col$$=$props_77020$$["is-col"];return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($props_77020$$.value),"decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change$jscomp$71$$,name:"flex-align-self","allow-empty":!0,children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"start",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$1661$align_self$$,$APP.$cljs$cst$1278$start$$,$is_col$$),title:"Align self start",id:"align-self-start"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$1661$align_self$$,$APP.$cljs$cst$1651$center$$,$is_col$$),title:"Align self center",
id:"align-self-center"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"end",icon:$app$main$ui$workspace$sidebar$options$menus$layout_container$get_layout_flex_icon$$($APP.$cljs$cst$1661$align_self$$,$APP.$cljs$cst$1279$end$$,$is_col$$),title:"Align self end",id:"align-self-end"})]})};
$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_size_constraints_STAR_$$=function($props_77025_token_numeric_inputs$jscomp$6$$){var $ids$jscomp$282$$=$props_77025_token_numeric_inputs$jscomp$6$$.ids,$values$jscomp$87$$=$props_77025_token_numeric_inputs$jscomp$6$$.values,$applied_token_to_max_h_applied_tokens$jscomp$15$$=$props_77025_token_numeric_inputs$jscomp$6$$.appliedTokens;$props_77025_token_numeric_inputs$jscomp$6$$=$app$main$features$use_feature$$("tokens/numeric-input");var $v_sizing$jscomp$2$$=
$APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$87$$),$min_w$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1691$layout_item_min_w$$),$max_w$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1690$layout_item_max_w$$),$min_h$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1689$layout_item_min_h$$),$max_h$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1688$layout_item_max_h$$),$applied_token_to_min_w$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_token_to_max_h_applied_tokens$jscomp$15$$,$APP.$cljs$cst$1691$layout_item_min_w$$),$applied_token_to_max_w$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_token_to_max_h_applied_tokens$jscomp$15$$,$APP.$cljs$cst$1690$layout_item_max_w$$),$applied_token_to_min_h$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_token_to_max_h_applied_tokens$jscomp$15$$,
$APP.$cljs$cst$1689$layout_item_min_h$$);$applied_token_to_max_h_applied_tokens$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_token_to_max_h_applied_tokens$jscomp$15$$,$APP.$cljs$cst$1688$layout_item_max_h$$);var $on_detach_token$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$282$$)],function($token_name$jscomp$21$$,$attr$jscomp$80$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$21$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$80$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$282$$],null)))}),$on_size_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$282$$)],function($value$jscomp$866$$,$attr$jscomp$81$$){return typeof $value$jscomp$866$$==="string"||typeof $value$jscomp$866$$==="number"?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$282$$,
$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$attr$jscomp$81$$,$value$jscomp$866$$]))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$866$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$81$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$282$$],
null)))}),$on_layout_item_min_w_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$$)],function($p1__77021_SHARP_$$){return $on_size_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_size_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77021_SHARP_$$,$APP.$cljs$cst$1691$layout_item_min_w$$):$on_size_change$$($p1__77021_SHARP_$$,$APP.$cljs$cst$1691$layout_item_min_w$$)}),$on_layout_item_max_w_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$$)],
function($p1__77022_SHARP_$$){return $on_size_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_size_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77022_SHARP_$$,$APP.$cljs$cst$1690$layout_item_max_w$$):$on_size_change$$($p1__77022_SHARP_$$,$APP.$cljs$cst$1690$layout_item_max_w$$)}),$on_layout_item_min_h_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$$)],function($p1__77023_SHARP_$$){return $on_size_change$$.$cljs$core$IFn$_invoke$arity$2$?
$on_size_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77023_SHARP_$$,$APP.$cljs$cst$1689$layout_item_min_h$$):$on_size_change$$($p1__77023_SHARP_$$,$APP.$cljs$cst$1689$layout_item_min_h$$)}),$on_layout_item_max_h_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$$)],function($p1__77024_SHARP_$$){return $on_size_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_size_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77024_SHARP_$$,$APP.$cljs$cst$1688$layout_item_max_h$$):
$on_size_change$$($p1__77024_SHARP_$$,$APP.$cljs$cst$1688$layout_item_max_h$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__advanced-options",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$87$$),$APP.$cljs$cst$1392$fill$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__horizontal-fill",
children:[$props_77025_token_numeric_inputs$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_layout_item_min_w_change$$,inputType:$APP.$cljs$cst$1969$min_width$$,attr:$APP.$cljs$cst$1691$layout_item_min_w$$,appliedToken:$applied_token_to_min_w$$,value:$min_w$jscomp$1$$,onDetach:$on_detach_token$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-min-w"),
nillable:!0,textIcon:"MIN W",tooltipClass:"main_ui_workspace_sidebar_options_menus_layout_item__tooltip-wrapper"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-min-w"),className:"main_ui_workspace_sidebar_options_menus_layout_item__layout-item-min-w",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon-text",children:"MIN W"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{noValidate:!0,min:0,onChange:$on_layout_item_min_w_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--",value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1691$layout_item_min_w$$),onFocus:$app$util$dom$select_target$$,"data-wrap":!0,nillable:!0,"data-attr":"layout-item-min-w"})]}),$props_77025_token_numeric_inputs$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_layout_item_max_w_change$$,inputType:$APP.$cljs$cst$279$max_width$$,attr:$APP.$cljs$cst$1690$layout_item_max_w$$,appliedToken:$applied_token_to_max_w$$,value:$max_w$jscomp$1$$,onDetach:$on_detach_token$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-max-w"),nillable:!0,textIcon:"MAX W",tooltipClass:"main_ui_workspace_sidebar_options_menus_layout_item__tooltip-wrapper"}):(0,$APP.$rumext$v2$jsxs$$)("div",
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-max-w"),className:"main_ui_workspace_sidebar_options_menus_layout_item__layout-item-max-w",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon-text",children:"MAX W"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,min:0,onChange:$on_layout_item_max_w_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",
placeholder:"--",value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1690$layout_item_max_w$$),onFocus:$app$util$dom$select_target$$,"data-wrap":!0,nillable:!0,"data-attr":"layout-item-max-w"})]})]}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($v_sizing$jscomp$2$$,$APP.$cljs$cst$1392$fill$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__vertical-fill",children:[$props_77025_token_numeric_inputs$jscomp$6$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_layout_item_min_h_change$$,inputType:$APP.$cljs$cst$1971$max_height$$,attr:$APP.$cljs$cst$1689$layout_item_min_h$$,appliedToken:$applied_token_to_min_h$$,value:$min_h$jscomp$1$$,onDetach:$on_detach_token$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-min-h"),nillable:!0,textIcon:"MIN H",
tooltipClass:"main_ui_workspace_sidebar_options_menus_layout_item__tooltip-wrapper"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-min-h"),className:"main_ui_workspace_sidebar_options_menus_layout_item__layout-item-min-h",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon-text",children:"MIN H"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{noValidate:!0,min:0,onChange:$on_layout_item_min_h_change$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--",value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1689$layout_item_min_h$$),onFocus:$app$util$dom$select_target$$,"data-wrap":!0,nillable:!0,"data-attr":"layout-item-min-h"})]}),$props_77025_token_numeric_inputs$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_layout_item_max_h_change$$,inputType:$APP.$cljs$cst$1971$max_height$$,attr:$APP.$cljs$cst$1688$layout_item_max_h$$,appliedToken:$applied_token_to_max_h_applied_tokens$jscomp$15$$,value:$max_h$jscomp$1$$,onDetach:$on_detach_token$jscomp$9$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-max-h"),nillable:!0,textIcon:"MAX H",tooltipClass:"main_ui_workspace_sidebar_options_menus_layout_item__tooltip-wrapper"}):
(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layout-item.layout-item-max-h"),className:"main_ui_workspace_sidebar_options_menus_layout_item__layout-item-max-h",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon-text",children:"MAX H"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,min:0,onChange:$on_layout_item_max_h_change$$,
className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--",value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$87$$,$APP.$cljs$cst$1688$layout_item_max_h$$),onFocus:$app$util$dom$select_target$$,"data-wrap":!0,nillable:!0,"data-attr":"layout-item-max-h"})]})]}):null]})};
$app$main$ui$workspace$sidebar$options$menus$border_radius$all_equal_QMARK_$$=function($shape$jscomp$973$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$973$$),$APP.$cljs$cst$1631$r2$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$973$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1632$r3$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$973$$),$APP.$cljs$cst$1633$r4$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$973$$)]))};
$app$main$ui$workspace$sidebar$options$menus$measures$type__GT_options$$=function($G__77031__$1_type$jscomp$631$$){$G__77031__$1_type$jscomp$631$$=$G__77031__$1_type$jscomp$631$$ instanceof $APP.$cljs$core$Keyword$$?$G__77031__$1_type$jscomp$631$$.$fqn$:null;switch($G__77031__$1_type$jscomp$631$$){case "bool":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;case "circle":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;case "frame":return $app$main$ui$workspace$sidebar$options$menus$measures$frame_options$$;
case "group":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;case "path":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;case "rect":return $app$main$ui$workspace$sidebar$options$menus$measures$rect_options$$;case "svg-raw":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;case "text":return $app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77031__$1_type$jscomp$631$$)].join(""));
}};
$app$main$ui$workspace$sidebar$options$menus$measures$select_measure_keys$$=function($shape$jscomp$977_shape__$1$jscomp$105$$){var $flip_x$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$977_shape__$1$jscomp$105$$,$APP.$cljs$cst$1863$flip_x$$),$flip_y$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$977_shape__$1$jscomp$105$$,$APP.$cljs$cst$1864$flip_y$$);$shape$jscomp$977_shape__$1$jscomp$105$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($flip_x$jscomp$8$$)?$flip_y$jscomp$8$$:
$flip_x$jscomp$8$$)?$APP.$clojure$set$rename_keys$$($shape$jscomp$977_shape__$1$jscomp$105$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1631$r2$$],null)):$APP.$cljs$core$truth_$$($flip_x$jscomp$8$$)?$APP.$clojure$set$rename_keys$$($shape$jscomp$977_shape__$1$jscomp$105$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1632$r3$$],null)):$APP.$cljs$core$truth_$$($flip_y$jscomp$8$$)?$APP.$clojure$set$rename_keys$$($shape$jscomp$977_shape__$1$jscomp$105$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1632$r3$$,
$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1630$r1$$],null)):$shape$jscomp$977_shape__$1$jscomp$105$$;return $APP.$cljs$core$select_keys$$($shape$jscomp$977_shape__$1$jscomp$105$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$)};
$app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$=function($applied_tokens$jscomp$18_props_77038$$){var $shapes$jscomp$204$$=$applied_tokens$jscomp$18_props_77038$$.shapes,$ids$jscomp$285$$=$applied_tokens$jscomp$18_props_77038$$.ids,$type$jscomp$632$$=$applied_tokens$jscomp$18_props_77038$$.type,$values$jscomp$90$$=$applied_tokens$jscomp$18_props_77038$$.values;$applied_tokens$jscomp$18_props_77038$$=$applied_tokens$jscomp$18_props_77038$$.appliedTokens;var $token_numeric_inputs$jscomp$8$$=
$app$main$features$use_feature$$("tokens/numeric-input"),$all_types$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$632$$),$APP.$rumext$v2$adapt$$($shapes$jscomp$204$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$632$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$app$main$ui$workspace$sidebar$options$menus$measures$xf_COLON_map_type$$,
$shapes$jscomp$204$$):null}),$options$jscomp$620$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$632$$),$APP.$rumext$v2$adapt$$($all_types$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$632$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$app$main$ui$workspace$sidebar$options$menus$measures$xf_COLON_mapcat_type_to_options$$,
$all_types$$):$app$main$ui$workspace$sidebar$options$menus$measures$type__GT_options$$($type$jscomp$632$$)}),$frames$jscomp$31$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$204$$)],function(){var $objects$jscomp$765$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1591$frame_id$$),
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$data$getf$$($objects$jscomp$765$$))),$shapes$jscomp$204$$)}),$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$285$$)});$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$=$APP.$rumext$v2$deref$$($disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$);
var $disabled_width_sizing_QMARK__shape$jscomp$978$$=$APP.$cljs$core$first$$($shapes$jscomp$204$$),$flex_child_QMARK_$$=$APP.$cljs$core$some$$($APP.$app$common$types$shape$layout$flex_layout_QMARK_$$,$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$),$absolute_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($disabled_width_sizing_QMARK__shape$jscomp$978$$),$flex_container_QMARK_$$=$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($disabled_width_sizing_QMARK__shape$jscomp$978$$),
$flex_auto_width_QMARK_$$=$APP.$app$common$types$shape$layout$auto_width_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($disabled_width_sizing_QMARK__shape$jscomp$978$$),$flex_fill_width_QMARK_$$=$APP.$app$common$types$shape$layout$fill_width_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($disabled_width_sizing_QMARK__shape$jscomp$978$$),$flex_auto_height_QMARK_$$=$APP.$app$common$types$shape$layout$auto_height_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($disabled_width_sizing_QMARK__shape$jscomp$978$$),$flex_fill_height_QMARK_$$=
$APP.$app$common$types$shape$layout$fill_height_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($disabled_width_sizing_QMARK__shape$jscomp$978$$);$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$=$APP.$cljs$core$truth_$$($flex_child_QMARK_$$)?!$absolute_QMARK_$jscomp$1$$:$flex_child_QMARK_$$;$disabled_width_sizing_QMARK__shape$jscomp$978$$=function(){var $and__5023__auto__$jscomp$763$$=$APP.$cljs$core$truth_$$($flex_child_QMARK_$$)?$flex_child_QMARK_$$:$flex_container_QMARK_$$;
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$763$$)?($flex_auto_width_QMARK_$$||$flex_fill_width_QMARK_$$)&&!$absolute_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$763$$}();var $disabled_height_sizing_QMARK_$$=function(){var $and__5023__auto__$jscomp$764$$=$APP.$cljs$core$truth_$$($flex_child_QMARK_$$)?$flex_child_QMARK_$$:$flex_container_QMARK_$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$764$$)?($flex_auto_height_QMARK_$$||$flex_fill_height_QMARK_$$)&&!$absolute_QMARK_$jscomp$1$$:
$and__5023__auto__$jscomp$764$$}(),$on_proportion_lock_change_shapes__$1$jscomp$30$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$204$$),$APP.$rumext$v2$adapt$$($frames$jscomp$31$$)],function(){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$geom$shapes$translate_to_frame$$,$shapes$jscomp$204$$,$frames$jscomp$31$$)}),$shape__$1$jscomp$106$$=$APP.$cljs$core$first$$($on_proportion_lock_change_shapes__$1$jscomp$30$$),
$values__$1$jscomp$6$$=function(){var $G__77039__$2_rect$jscomp$45$$=$APP.$app$common$geom$rect$points__GT_rect$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$106$$,$APP.$cljs$cst$1588$points$$)),$G__77039__$3_val_x$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$90$$,$APP.$cljs$cst$1499$x$$),$val_y$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$90$$,$APP.$cljs$cst$1500$y$$),$G__77039__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77039__$3_val_x$$,
$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($values$jscomp$90$$,$APP.$cljs$cst$1499$x$$,$G__77039__$2_rect$jscomp$45$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__77039__$2_rect$jscomp$45$$,$APP.$cljs$cst$1499$x$$)):$values$jscomp$90$$;$G__77039__$2_rect$jscomp$45$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($val_y$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77039__$1$$,$APP.$cljs$cst$1500$y$$,
$G__77039__$2_rect$jscomp$45$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__77039__$2_rect$jscomp$45$$,$APP.$cljs$cst$1500$y$$)):$G__77039__$1$$;$G__77039__$3_val_x$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77039__$3_val_x$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$cst$3156$ox$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$90$$)!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77039__$2_rect$jscomp$45$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$3156$ox$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$90$$)):
$G__77039__$2_rect$jscomp$45$$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($val_y$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$cst$3157$oy$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$90$$)!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77039__$3_val_x$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$3157$oy$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$90$$)):$G__77039__$3_val_x$$}(),$values__$2$jscomp$1$$=function(){var $G__77040__$2_selrect$jscomp$77$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$106$$,
$APP.$cljs$cst$1589$selrect$$),$rotation$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($shape__$1$jscomp$106$$,$APP.$cljs$cst$1772$rotation$$,0),$G__77040__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$1$jscomp$6$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($values__$1$jscomp$6$$,$APP.$cljs$cst$288$width$$,$G__77040__$2_selrect$jscomp$77$$?.width??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__77040__$2_selrect$jscomp$77$$,$APP.$cljs$cst$288$width$$)):$values__$1$jscomp$6$$;$G__77040__$2_selrect$jscomp$77$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$1$jscomp$6$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77040__$1$$,$APP.$cljs$cst$1511$height$$,$G__77040__$2_selrect$jscomp$77$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__77040__$2_selrect$jscomp$77$$,
$APP.$cljs$cst$1511$height$$)):$G__77040__$1$$;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($values__$1$jscomp$6$$),$APP.$cljs$cst$1600$multiple$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77040__$2_selrect$jscomp$77$$,$APP.$cljs$cst$1772$rotation$$,$rotation$jscomp$19$$):$G__77040__$2_selrect$jscomp$77$$}(),$proportion_lock$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,
$APP.$cljs$cst$1792$proportion_lock$$),$clip_content_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$show_in_viewer_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$preset_state_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$show_presets_dropdown_QMARK_$$=$APP.$cljs$core$_deref$$($preset_state_STAR_$$),$open_presets$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($show_presets_dropdown_QMARK_$$)],function(){return $APP.$cljs$core$reset_BANG_$$($preset_state_STAR_$$,
!0)}),$close_presets$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($show_presets_dropdown_QMARK_$$)],function(){return $APP.$cljs$core$reset_BANG_$$($preset_state_STAR_$$,!1)}),$on_preset_selected$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function($event$jscomp$515_height$jscomp$164$$){var $width$jscomp$193$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$515_height$jscomp$164$$),
"width"));$event$jscomp$515_height$jscomp$164$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$515_height$jscomp$164$$),"height"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$update_dimensions$$.$cljs$core$IFn$_invoke$arity$3$($ids$jscomp$285$$,$APP.$cljs$cst$288$width$$,$width$jscomp$193$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$update_dimensions$$.$cljs$core$IFn$_invoke$arity$3$($ids$jscomp$285$$,
$APP.$cljs$cst$1511$height$$,$event$jscomp$515_height$jscomp$164$$)]))}),$orientation$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$632$$,$APP.$cljs$cst$1590$frame$$)?$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)>$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)?$APP.$cljs$cst$1793$horiz$$:$cljs$cst$5457$vert$$:null,$on_orientation_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],
function($JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$){var $JSCompiler_temp_const$jscomp$1632$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;$JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$);$JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$=
$app$main$data$workspace$transforms$change_orientation$$($ids$jscomp$285$$,$JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$);return $JSCompiler_temp_const$jscomp$1632$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1634_orientation__$1$jscomp$1_param70598$jscomp$inline_8634$$)}),$on_size_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$),$APP.$rumext$v2$adapt$$($on_proportion_lock_change_shapes__$1$jscomp$30$$)],
function($value$jscomp$874$$,$attr$jscomp$85$$){return typeof $value$jscomp$874$$==="string"||typeof $value$jscomp$874$$==="number"?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$update_dimensions$$.$cljs$core$IFn$_invoke$arity$3$($ids$jscomp$285$$,$attr$jscomp$85$$,$value$jscomp$874$$)])):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$874$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$85$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$285$$],null))]))});$on_proportion_lock_change_shapes__$1$jscomp$30$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$),$APP.$rumext$v2$adapt$$($proportion_lock$jscomp$1$$)],function(){var $new_lock$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($proportion_lock$jscomp$1$$,$APP.$cljs$cst$1600$multiple$$)?!0:$APP.$cljs$core$not$$($proportion_lock$jscomp$1$$);return $APP.$cljs$core$run_BANG_$$(function($p1__77032_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_shape_proportion_lock$$($p1__77032_SHARP_$$,
$new_lock$$))},$ids$jscomp$285$$)});var $on_position_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function($value$jscomp$875$$,$attr$jscomp$86$$){return typeof $value$jscomp$875$$==="string"||typeof $value$jscomp$875$$==="number"?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$update_positions$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$285$$,
$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$attr$jscomp$86$$,$value$jscomp$875$$])))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$875$$),
$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$86$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$285$$],null))]))}),$on_rotation_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function($value$jscomp$876$$){return typeof $value$jscomp$876$$==="string"||typeof $value$jscomp$876$$==="number"?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$)),
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$increase_rotation$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$285$$,$value$jscomp$876$$))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$285$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$876$$),$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1772$rotation$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$285$$],null))]))}),$on_width_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$jscomp$1$$)],function($p1__77033_SHARP_$$){return $on_size_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?
$on_size_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($p1__77033_SHARP_$$,$APP.$cljs$cst$288$width$$):$on_size_change$jscomp$1$$($p1__77033_SHARP_$$,$APP.$cljs$cst$288$width$$)}),$on_height_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_size_change$jscomp$1$$)],function($p1__77034_SHARP_$$){return $on_size_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_size_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($p1__77034_SHARP_$$,$APP.$cljs$cst$1511$height$$):
$on_size_change$jscomp$1$$($p1__77034_SHARP_$$,$APP.$cljs$cst$1511$height$$)}),$on_pos_x_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_position_change$$)],function($p1__77035_SHARP_$$){return $on_position_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_position_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77035_SHARP_$$,$APP.$cljs$cst$1499$x$$):$on_position_change$$($p1__77035_SHARP_$$,$APP.$cljs$cst$1499$x$$)}),$on_pos_y_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_position_change$$)],
function($p1__77036_SHARP_$$){return $on_position_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_position_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__77036_SHARP_$$,$APP.$cljs$cst$1500$y$$):$on_position_change$$($p1__77036_SHARP_$$,$APP.$cljs$cst$1500$y$$)}),$on_detach_token$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function($token_name$jscomp$23$$,$attr$jscomp$87$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$23$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$87$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$285$$],null)))}),$on_change_clip_content$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],function($event$jscomp$516$$){var $value$jscomp$877$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$516$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$285$$,function($shape__$2$jscomp$10$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape__$2$jscomp$10$$,$APP.$cljs$cst$1860$show_content$$,$APP.$cljs$core$not$$($value$jscomp$877$$))}))}),$on_change_show_in_viewer$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$285$$)],
function($event$jscomp$517_undo_id$jscomp$98$$){var $value$jscomp$878$$=$APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$517_undo_id$jscomp$98$$));$event$jscomp$517_undo_id$jscomp$98$$=Symbol();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($event$jscomp$517_undo_id$jscomp$98$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$285$$,
function($shape__$2$jscomp$11$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape__$2$jscomp$11$$,$APP.$cljs$cst$1859$hide_in_viewer$$,$APP.$cljs$core$not$$($value$jscomp$878$$))})]));$APP.$cljs$core$truth_$$($value$jscomp$878$$)||$APP.$cljs$core$run_BANG_$$($APP.$app$main$store$emit_BANG_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77037_SHARP_$$){return $app$main$data$workspace$interactions$remove_all_interactions_nav_to$$($p1__77037_SHARP_$$)},$ids$jscomp$285$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($event$jscomp$517_undo_id$jscomp$98$$))}),$handle_fit_content$$=$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$workspace$transforms$selected_fit_content$$())});return(0,$APP.$rumext$v2$jsxs$$)("section",{"aria-label":"shape-measures-section",className:"main_ui_workspace_sidebar_options_menus_measures__element-set",
children:[$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$765$$=$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5456$presets$$):$options$jscomp$620$$($cljs$cst$5456$presets$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$765$$)?$all_types$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($all_types$$),1):$and__5023__auto__$jscomp$765$$}())?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_measures__presets",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$open_presets$$,className:"main_ui_workspace_sidebar_options_menus_measures__presets-wrapper "+($APP.$cljs$core$truth_$$($show_presets_dropdown_QMARK_$$)?"main_ui_workspace_sidebar_options_menus_measures__opened":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__select-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.size-presets")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__collapsed-icon",children:$APP.$app$main$ui$icons$arrow$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$show_presets_dropdown_QMARK_$$,"on-close":$close_presets$$,children:(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_options_menus_measures__custom-select-dropdown",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$186$$,
$JSCompiler_temp$jscomp$1788_size_preset$$){var $JSCompiler_temp_const$jscomp$1786$$=$out_arr__44057__auto__$jscomp$186$$.push;if($APP.$cljs$core$not$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)))$JSCompiler_temp$jscomp$1788_size_preset$$=(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_sidebar_options_menus_measures__dropdown-element main_ui_workspace_sidebar_options_menus_measures__disabled",children:(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_sidebar_options_menus_measures__preset-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)})},$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$));else{var $preset_match$jscomp$inline_8636$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$),$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$),
0))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$),$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$),0));$JSCompiler_temp$jscomp$1788_size_preset$$=(0,$APP.$rumext$v2$jsxs$$)("li",{"data-width":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)),
"data-height":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)),onClick:$on_preset_selected$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_measures__dropdown-element "+($preset_match$jscomp$inline_8636$$?"main_ui_workspace_sidebar_options_menus_measures__match":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__name-wrapper",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__preset-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__preset-size",children:[$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)," x ",$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$)]})]}),
$preset_match$jscomp$inline_8636$$?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__check-icon",children:$APP.$app$main$ui$icons$tick$$}):null]},$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1788_size_preset$$))}$JSCompiler_temp_const$jscomp$1786$$.call($out_arr__44057__auto__$jscomp$186$$,$JSCompiler_temp$jscomp$1788_size_preset$$);return $out_arr__44057__auto__$jscomp$186$$},[],$APP.$app$main$constants$size_presets$$)})})]}),
$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:function(){var $or__5025__auto__$jscomp$1115$$=$APP.$app$common$data$name$$($orientation$jscomp$8$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1115$$)?$or__5025__auto__$jscomp$1115$$:""}(),"on-change":$on_orientation_change$jscomp$1$$,name:"frame-orientation",wide:!0,"class":"main_ui_workspace_sidebar_options_menus_measures__radio-buttons",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{icon:"size-vertical",value:"vert",id:"size-vertical"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"size-horizontal",value:"horiz",id:"size-horizontal"})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.fit-content"),onPointerDown:$handle_fit_content$$,icon:"fit-content"})]}):null,$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?
$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$872$size$$):$options$jscomp$620$$($APP.$cljs$cst$872$size$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__size",children:[$token_numeric_inputs$jscomp$8$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:.01,onChange:$on_width_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$288$width$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$288$width$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",attr:$APP.$cljs$cst$288$width$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,
$APP.$cljs$cst$288$width$$),value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$288$width$$),onDetach:$on_detach_token$jscomp$11$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.width"),disabled:$disabled_width_sizing_QMARK__shape$jscomp$978$$,icon:"character-w"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:.01,align:$APP.$cljs$cst$258$right$$,
onChange:$on_height_change$$,attr:$APP.$cljs$cst$1511$height$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1511$height$$),value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1511$height$$),onDetach:$on_detach_token$jscomp$11$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.height"),disabled:$disabled_height_sizing_QMARK_$$,icon:"character-h"})]}):
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.width"),className:"main_ui_workspace_sidebar_options_menus_measures__width "+($APP.$cljs$core$truth_$$($disabled_width_sizing_QMARK__shape$jscomp$978$$)?"main_ui_workspace_sidebar_options_menus_measures__disabled":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__icon-text",
children:"W"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:.01,noValidate:!0,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",onChange:$on_width_change$$,disabled:$disabled_width_sizing_QMARK__shape$jscomp$978$$,className:"main_ui_workspace_sidebar_options_menus_measures__numeric-input",
value:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.height"),className:"main_ui_workspace_sidebar_options_menus_measures__height "+($APP.$cljs$core$truth_$$($disabled_height_sizing_QMARK_$$)?"main_ui_workspace_sidebar_options_menus_measures__disabled":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__icon-text",
children:"H"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:.01,noValidate:!0,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",onChange:$on_height_change$$,disabled:$disabled_height_sizing_QMARK_$$,className:"main_ui_workspace_sidebar_options_menus_measures__numeric-input",
value:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)})]})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",tooltipPlacement:"top-left",icon:$APP.$cljs$core$truth_$$($proportion_lock$jscomp$1$$)?"lock":"unlock",className:$proportion_lock$jscomp$1$$===!0?"main_ui_workspace_sidebar_options_menus_measures__selected":"",disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($proportion_lock$jscomp$1$$,
$APP.$cljs$cst$1600$multiple$$),"aria-label":$APP.$cljs$core$truth_$$($proportion_lock$jscomp$1$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.size.unlock"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.size.lock"),onClick:$on_proportion_lock_change_shapes__$1$jscomp$30$$})]}):null,$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1660$position$$):
$options$jscomp$620$$($APP.$cljs$cst$1660$position$$))?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__position",children:$token_numeric_inputs$jscomp$8$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{onChange:$on_pos_x_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1499$x$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1499$x$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",attr:$APP.$cljs$cst$1499$x$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,
$APP.$cljs$cst$1499$x$$),value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1499$x$$),onDetach:$on_detach_token$jscomp$11$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.x"),disabled:$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$,icon:"character-x"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{align:$APP.$cljs$cst$258$right$$,
onChange:$on_pos_y_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1500$y$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1500$y$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):
"--",attr:$APP.$cljs$cst$1500$y$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1500$y$$),value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1500$y$$),onDetach:$on_detach_token$jscomp$11$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.y"),disabled:$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$,icon:"character-y"})]}):
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.x"),className:"main_ui_workspace_sidebar_options_menus_measures__x-position "+($APP.$cljs$core$truth_$$($disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$)?"main_ui_workspace_sidebar_options_menus_measures__disabled":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__icon-text",
children:"X"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",onChange:$on_pos_x_change$$,disabled:$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$,className:"main_ui_workspace_sidebar_options_menus_measures__numeric-input",
value:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.y"),className:"main_ui_workspace_sidebar_options_menus_measures__y-position "+($APP.$cljs$core$truth_$$($disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$)?"main_ui_workspace_sidebar_options_menus_measures__disabled":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__icon-text",
children:"Y"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",disabled:$disabled_position_QMARK__selection_parents$jscomp$1_selection_parents_ref$$,onChange:$on_pos_y_change$$,className:"main_ui_workspace_sidebar_options_menus_measures__numeric-input",
value:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)})]})]})}):null,$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1116$$=$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1772$rotation$$):$options$jscomp$620$$($APP.$cljs$cst$1772$rotation$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1116$$)?$or__5025__auto__$jscomp$1116$$:$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?
$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2779$radius$$):$options$jscomp$620$$($APP.$cljs$cst$2779$radius$$)}())?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__rotation-radius",children:[$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1772$rotation$$):$options$jscomp$620$$($APP.$cljs$cst$1772$rotation$$))?$token_numeric_inputs$jscomp$8$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:-359,onChange:$on_rotation_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1772$rotation$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,
$APP.$cljs$cst$1772$rotation$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",max:359,attr:$APP.$cljs$cst$1772$rotation$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$18_props_77038$$,$APP.$cljs$cst$1772$rotation$$),value:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values__$2$jscomp$1$$,$APP.$cljs$cst$1772$rotation$$),onDetach:$on_detach_token$jscomp$11$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.rotation"),
icon:"rotation"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.rotation"),"data-testid":"rotation",className:"main_ui_workspace_sidebar_options_menus_measures__rotation",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_measures__icon",children:$APP.$app$main$ui$icons$rotation$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,min:-359,
max:359,"data-wrap":!0,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",onChange:$on_rotation_change$$,className:"main_ui_workspace_sidebar_options_menus_measures__numeric-input",value:$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)})]}):null,
$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2779$radius$$):$options$jscomp$620$$($APP.$cljs$cst$2779$radius$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$border_radius$border_radius_menu_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_measures__border-radius",ids:$ids$jscomp$285$$,values:$values__$2$jscomp$1$$,appliedTokens:$applied_tokens$jscomp$18_props_77038$$}):
null]}):null,$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1117$$=$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5455$clip_content$$):$options$jscomp$620$$($cljs$cst$5455$clip_content$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1117$$)?$or__5025__auto__$jscomp$1117$$:$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5454$show_in_viewer$$):
$options$jscomp$620$$($cljs$cst$5454$show_in_viewer$$)}())?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__clip-show",children:[$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5455$clip_content$$):$options$jscomp$620$$($cljs$cst$5455$clip_content$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__clip-content",
children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"clip-content",ref:$clip_content_ref$$,checked:$APP.$cljs$core$not$$($APP.$cljs$cst$1860$show_content$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)),onChange:$on_change_clip_content$$,className:"main_ui_workspace_sidebar_options_menus_measures__clip-content-input"}),(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"clip-content",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.clip-content"),className:"main_ui_workspace_sidebar_options_menus_measures__clip-content-label "+
($APP.$cljs$core$not$$($APP.$cljs$cst$1860$show_content$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?"main_ui_workspace_sidebar_options_menus_measures__selected":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"clip-content"})})]}):null,$APP.$cljs$core$truth_$$($options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$?$options$jscomp$620$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5454$show_in_viewer$$):$options$jscomp$620$$($cljs$cst$5454$show_in_viewer$$))?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_measures__show-in-viewer",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"show-in-viewer",ref:$show_in_viewer_ref$$,checked:$APP.$cljs$core$not$$($APP.$cljs$cst$1859$hide_in_viewer$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$)),onChange:$on_change_show_in_viewer$$,className:"main_ui_workspace_sidebar_options_menus_measures__clip-content-input"}),(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"show-in-viewer",
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.show-in-viewer"),className:"main_ui_workspace_sidebar_options_menus_measures__clip-content-label "+($APP.$cljs$core$not$$($APP.$cljs$cst$1859$hide_in_viewer$$.$cljs$core$IFn$_invoke$arity$1$($values__$2$jscomp$1$$))?"main_ui_workspace_sidebar_options_menus_measures__selected":""),children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"play"})})]}):null]}):null]})};
$app$main$ui$workspace$sidebar$options$common$advanced_options_STAR_$$=function($props_77045$$){var $children$jscomp$302$$=$props_77045$$.children,$class$$jscomp$69$$=$props_77045$$.className,$is_visible$$=$props_77045$$.isVisible,$ref$jscomp$54$$=(0,$APP.$rumext$v2$use_ref$$)(null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_visible$$)],function(){var $temp__5825__auto__$jscomp$361$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$54$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$361$$)?
$APP.$cljs$core$truth_$$($is_visible$$)?$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($temp__5825__auto__$jscomp$361$$,!1):null:null});return $APP.$cljs$core$truth_$$($is_visible$$)?(0,$APP.$rumext$v2$jsx$$)("div",{ref:$ref$jscomp$54$$,className:($class$$jscomp$69$$??"")+" main_ui_workspace_sidebar_options_common__advanced-options-wrapper",children:$children$jscomp$302$$}):null};
$app$main$ui$workspace$sidebar$options$rows$shadow_row$shadow_row_STAR_$$=function($props_77046_shadow_style$$){var $shadow__$1$jscomp$17$$=$props_77046_shadow_style$$.shadow,$on_remove$jscomp$3$$=$props_77046_shadow_style$$.onRemove,$is_open$jscomp$9$$=$props_77046_shadow_style$$.isOpen,$index$jscomp$501$$=$props_77046_shadow_style$$.index,$on_toggle_open$$=$props_77046_shadow_style$$.onToggleOpen,$on_detach_color$$=$props_77046_shadow_style$$.onDetachColor,$on_reorder$jscomp$4$$=$props_77046_shadow_style$$.onReorder,
$on_update$$=$props_77046_shadow_style$$.onUpdate,$on_toggle_visibility$jscomp$2$$=$props_77046_shadow_style$$.onToggleVisibility;$props_77046_shadow_style$$=$APP.$cljs$cst$1889$style$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$);var $shadow_id$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$),$hidden_QMARK_$jscomp$7$$=$APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$),$dprops$jscomp$6_on_drop$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_reorder$jscomp$4$$),
$APP.$rumext$v2$adapt$$($index$jscomp$501$$)],function($relative_pos$jscomp$3_to_space_between_pos$jscomp$16$$,$data$jscomp$472_from_pos$jscomp$16$$){$data$jscomp$472_from_pos$jscomp$16$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$472_from_pos$jscomp$16$$);$relative_pos$jscomp$3_to_space_between_pos$jscomp$16$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($relative_pos$jscomp$3_to_space_between_pos$jscomp$16$$,$APP.$cljs$cst$2636$bot$$)?$index$jscomp$501$$+
1:$index$jscomp$501$$;return $on_reorder$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$472_from_pos$jscomp$16$$,$relative_pos$jscomp$3_to_space_between_pos$jscomp$16$$):$on_reorder$jscomp$4$$($data$jscomp$472_from_pos$jscomp$16$$,$relative_pos$jscomp$3_to_space_between_pos$jscomp$16$$)}),$dref$jscomp$6_vec__77047$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,
"penpot/shadow-entry",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$6_on_drop$jscomp$13$$,$APP.$cljs$cst$2642$detect_center_QMARK_$$,!1,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1779$index$$,$index$jscomp$501$$],null)]));$dprops$jscomp$6_on_drop$jscomp$13$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$6_vec__77047$$,0,null);$dref$jscomp$6_vec__77047$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$6_vec__77047$$,
1,null);var $on_remove__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$)],function(){return $on_remove$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_remove$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$501$$):$on_remove$jscomp$3$$($index$jscomp$501$$)}),$trigger_bounding_box_cloaking$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shadow_id$$)],function(){return $APP.$cljs$core$truth_$$($shadow_id$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shadow_id$$],null))):null}),$on_update_offset_x$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function($value$jscomp$879$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?
$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1634$offset_x$$,$value$jscomp$879$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1634$offset_x$$,$value$jscomp$879$$)}),$on_update_offset_y$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],
function($value$jscomp$880$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1635$offset_y$$,$value$jscomp$880$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1635$offset_y$$,$value$jscomp$880$$)}),$on_update_spread$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),
$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function($value$jscomp$881$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1636$spread$$,$value$jscomp$881$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1636$spread$$,$value$jscomp$881$$)}),
$on_update_blur$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function($value$jscomp$882$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1637$blur$$,
$value$jscomp$882$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1637$blur$$,$value$jscomp$882$$)}),$on_update_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($on_update$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function($color$jscomp$168$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();
return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1284$color$$,$color$jscomp$168$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1284$color$$,$color$jscomp$168$$)}),$on_detach_color__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$)],function(){return $on_detach_color$$.$cljs$core$IFn$_invoke$arity$1$?$on_detach_color$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$501$$):
$on_detach_color$$($index$jscomp$501$$)}),$on_style_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function($G__77052_value$jscomp$883$$){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();$G__77052_value$jscomp$883$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__77052_value$jscomp$883$$);
return $on_update$$.$cljs$core$IFn$_invoke$arity$3$?$on_update$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$501$$,$APP.$cljs$cst$1889$style$$,$G__77052_value$jscomp$883$$):$on_update$$($index$jscomp$501$$,$APP.$cljs$cst$1889$style$$,$G__77052_value$jscomp$883$$)}),$on_toggle_visibility__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$501$$),$APP.$rumext$v2$adapt$$($trigger_bounding_box_cloaking$$)],function(){$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$?
$trigger_bounding_box_cloaking$$.$cljs$core$IFn$_invoke$arity$0$():$trigger_bounding_box_cloaking$$();return $on_toggle_visibility$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_toggle_visibility$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$501$$):$on_toggle_visibility$jscomp$2$$($index$jscomp$501$$)}),$on_toggle_open__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shadow_id$$),$APP.$rumext$v2$adapt$$($on_toggle_open$$)],function(){return $on_toggle_open$$.$cljs$core$IFn$_invoke$arity$1$?
$on_toggle_open$$.$cljs$core$IFn$_invoke$arity$1$($shadow_id$$):$on_toggle_open$$($shadow_id$$)}),$type_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"drop-shadow",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.drop-shadow")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"inner-shadow",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.inner-shadow")],null)],null)}),$on_open_row$$=$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$workspace$undo$start_undo_transaction$$($cljs$cst$5458$color_row$$))}),$on_close_row$$=
$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$workspace$undo$commit_undo_transaction$$($cljs$cst$5458$color_row$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"shadow-option main_ui_workspace_sidebar_options_rows_shadow_row__shadow-element "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$6_on_drop$jscomp$13$$),
$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_options_rows_shadow_row__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$6_on_drop$jscomp$13$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_options_rows_shadow_row__dnd-over-bot":""),children:[$on_reorder$jscomp$4$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,{ref:$dref$jscomp$6_vec__77047$$}):
null,(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-basic",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-basic-info",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary",icon:"menu",className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-basic-button "+
($APP.$cljs$core$truth_$$($is_open$jscomp$9$$)?"main_ui_workspace_sidebar_options_rows_shadow_row__selected":""),"aria-label":"open more options",disabled:$hidden_QMARK_$jscomp$7$$,onClick:$on_toggle_open__$1$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-basic-select","default-value":$APP.$app$common$data$name$$($props_77046_shadow_style$$),options:$type_options$$,disabled:$hidden_QMARK_$jscomp$7$$,"on-change":$on_style_change$$})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-basic-actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.toggle-shadow"),onClick:$on_toggle_visibility__$1$$,icon:$APP.$cljs$core$truth_$$($hidden_QMARK_$jscomp$7$$)?"hide":"shown"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.remove-shadow"),onClick:$on_remove__$1$$,icon:"remove"})]})]}),$APP.$cljs$core$truth_$$($is_open$jscomp$9$$)?(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$options$common$advanced_options_STAR_$$,{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced",isVisible:$is_open$jscomp$9$$,onClose:$on_toggle_open__$1$$,children:[(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.offsetx"),className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-offset-x",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-label",children:"X"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{noValidate:!0,placeholder:"--",onChange:$on_update_offset_x$$,value:$APP.$cljs$cst$1634$offset_x$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.blur"),className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-blur",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-label",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.blur")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,placeholder:"--",onChange:$on_update_blur$$,min:0,value:$APP.$cljs$cst$1637$blur$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$)})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.spread"),className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-spread",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.spread")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{noValidate:!0,placeholder:"--",onChange:$on_update_spread$$,value:$APP.$cljs$cst$1636$spread$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$)})]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.offsety"),className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-offset-y",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-label",children:"Y"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{noValidate:!0,placeholder:"--",onChange:$on_update_offset_y$$,value:$APP.$cljs$cst$1635$offset_y$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$)})]}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{origin:$APP.$cljs$cst$1638$shadow$$,onClose:$on_close_row$$,onChange:$on_update_color$$,className:"main_ui_workspace_sidebar_options_rows_shadow_row__shadow-advanced-color",onDetach:$on_detach_color__$1$$,disableGradient:!0,disableImage:!0,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.color"),color:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($shadow__$1$jscomp$17$$),onOpen:$on_open_row$$})]})]}):null]})]})};
$app$main$ui$workspace$sidebar$options$menus$shadow$remove_shadow_by_index$$=function($values$jscomp$91$$,$index$jscomp$502$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$filterv$$(function($p__77061$$){var $idx$jscomp$119$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77061$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77061$$,1,null);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$119$$,
$index$jscomp$502$$)},$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($values$jscomp$91$$)))};
$app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$=function($props_77070_shadows$jscomp$4$$){var $ids$jscomp$286$$=$props_77070_shadows$jscomp$4$$.ids,$type$jscomp$633$$=$props_77070_shadows$jscomp$4$$.type,$values$jscomp$92$$=$props_77070_shadows$jscomp$4$$.values;$props_77070_shadows$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($values$jscomp$92$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$values$jscomp$92$$)?$values$jscomp$92$$:$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$app$main$ui$workspace$sidebar$options$menus$shadow$xf_COLON_add_index$$,$values$jscomp$92$$))});var $ids_ref$$=$app$main$ui$hooks$use_update_ref$$($ids$jscomp$286$$),$open_state_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$open_state$$=$APP.$cljs$core$_deref$$($open_state_STAR_$$),
$has_shadows_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$props_77070_shadows$jscomp$4$$)||$APP.$cljs$core$seq$$($props_77070_shadows$jscomp$4$$)!=null,$show_content_STAR_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$show_content_QMARK_$jscomp$4$$=$APP.$cljs$core$_deref$$($show_content_STAR_$jscomp$3$$),$toggle_content$jscomp$10$$=$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$($show_content_STAR_$jscomp$3$$,
$APP.$cljs$core$not$$)}),$on_toggle_open$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__77065_SHARP_$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($open_state_STAR_$$,$APP.$cljs$core$update$$,$p1__77065_SHARP_$$,$APP.$cljs$core$not$$)}),$on_remove_all$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $ids__$1$jscomp$23$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$23$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids__$1$jscomp$23$$,function($p1__77066_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__77066_SHARP_$$,$APP.$cljs$cst$1638$shadow$$)}))}),$handle_reorder$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($from_pos$jscomp$17$$,$to_space_between_pos$jscomp$17$$){var $ids__$1$jscomp$24$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$24$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$reorder_shadows$$($ids__$1$jscomp$24$$,$from_pos$jscomp$17$$,$to_space_between_pos$jscomp$17$$))}),$on_add_shadow$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $ids__$1$jscomp$25$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$25$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$add_shadow$$($ids__$1$jscomp$25$$))}),$on_detach_color$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$504$$){var $ids__$1$jscomp$26$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$26$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids__$1$jscomp$26$$,function($p1__77067_SHARP_$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$variadic$($p1__77067_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1638$shadow$$,$index$jscomp$504$$,$APP.$cljs$cst$1284$color$$],null),$APP.$cljs$core$dissoc$$,
$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$]))}))}),$on_toggle_visibility$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$505$$){var $ids__$1$jscomp$27$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$27$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids__$1$jscomp$27$$,function($p1__77068_SHARP_$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($p1__77068_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1638$shadow$$,$index$jscomp$505$$,$APP.$cljs$cst$1604$hidden$$],null),$APP.$cljs$core$not$$)}))}),
$on_remove$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$286$$)],function($index$jscomp$506$$){var $ids__$1$jscomp$28$$=$APP.$rumext$v2$ref_val$$($ids_ref$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids__$1$jscomp$28$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids__$1$jscomp$28$$,
function($p1__77069_SHARP_$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($p1__77069_SHARP_$$,$APP.$cljs$cst$1638$shadow$$,$app$main$ui$workspace$sidebar$options$menus$shadow$remove_shadow_by_index$$,$index$jscomp$506$$)}))}),$on_update$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$507$$,$attr$jscomp$88$$,$value$jscomp$884$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($ids_ref$$),
function($shape$jscomp$979$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$979$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1638$shadow$$,$index$jscomp$507$$],null),function($shadow__$1$jscomp$19$$){return(0,$APP.$app$common$types$shape$shadow$check_shadow$$)($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shadow__$1$jscomp$19$$,$attr$jscomp$88$$,$value$jscomp$884$$))})}))});return(0,$APP.$rumext$v2$jsxs$$)("div",
{"data-testid":"shadow-section",className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_shadows_QMARK_$$,collapsed:$APP.$cljs$core$not$$($show_content_QMARK_$jscomp$4$$),onCollapsed:$toggle_content$jscomp$10$$,title:function(){switch($type$jscomp$633$$ instanceof
$APP.$cljs$core$Keyword$$?$type$jscomp$633$$.$fqn$:null){case "multiple":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.title.multiple");case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.title.group");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.title")}}(),className:$has_shadows_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_shadow__shadow-title-bar",
children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$props_77070_shadows$jscomp$4$$)?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.add-shadow"),onClick:$on_add_shadow$$,icon:"add","data-testid":"add-shadow"})})}),$APP.$cljs$core$truth_$$($show_content_QMARK_$jscomp$4$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$props_77070_shadows$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-content",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-multiple-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.shadow-options.remove-shadow"),onClick:$on_remove_all$jscomp$2$$,icon:"remove"})]})}):$props_77070_shadows$jscomp$4$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_shadow__shadow-content",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$187$$,
$map__77085__$1_p__77084$$){$map__77085__$1_p__77084$$=$APP.$cljs$core$__destructure_map$$($map__77085__$1_p__77084$$);var $index$jscomp$508$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77085__$1_p__77084$$,$cljs$cst$5459$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_menus_DOT_shadow_SLASH_index$$),$id$jscomp$923$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77085__$1_p__77084$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$187$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$shadow_row$shadow_row_STAR_$$,
{onRemove:$on_remove$jscomp$4$$,onToggleVisibility:$on_toggle_visibility$jscomp$3$$,index:$index$jscomp$508$$,onUpdate:$on_update$jscomp$1$$,onReorder:$handle_reorder$$,shadow:$map__77085__$1_p__77084$$,onDetachColor:$on_detach_color$jscomp$1$$,onToggleOpen:$on_toggle_open$jscomp$1$$,isOpen:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($open_state$$,$id$jscomp$923$$)},""+($index$jscomp$508$$??"")));return $out_arr__44057__auto__$jscomp$187$$},[],$props_77070_shadows$jscomp$4$$)})}):null:null]})};
$app$main$ui$workspace$sidebar$options$rows$stroke_row$stroke_row_STAR_$$=function($props_77057_token_numeric_inputs$jscomp$9$$){var $on_remove$jscomp$5$$=$props_77057_token_numeric_inputs$jscomp$9$$.onRemove,$on_detach_token$jscomp$12$$=$props_77057_token_numeric_inputs$jscomp$9$$.onDetachToken,$on_stroke_style_change$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeStyleChange,$stroke$jscomp$32$$=$props_77057_token_numeric_inputs$jscomp$9$$.stroke,$select_on_focus$jscomp$4$$=$props_77057_token_numeric_inputs$jscomp$9$$.selectOnFocus,
$index$jscomp$509$$=$props_77057_token_numeric_inputs$jscomp$9$$.index,$on_stroke_alignment_change$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeAlignmentChange,$disable_stroke_style$$=$props_77057_token_numeric_inputs$jscomp$9$$.disableStrokeStyle,$disable_drag$jscomp$2$$=$props_77057_token_numeric_inputs$jscomp$9$$.disableDrag,$on_focus$jscomp$16$$=$props_77057_token_numeric_inputs$jscomp$9$$.onFocus,$on_stroke_width_change$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeWidthChange,
$on_blur$jscomp$24$$=$props_77057_token_numeric_inputs$jscomp$9$$.onBlur,$ids$jscomp$287$$=$props_77057_token_numeric_inputs$jscomp$9$$.ids,$on_stroke_cap_start_change$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeCapStartChange,$title$jscomp$40$$=$props_77057_token_numeric_inputs$jscomp$9$$.title,$on_reorder$jscomp$5$$=$props_77057_token_numeric_inputs$jscomp$9$$.onReorder,$on_color_change$jscomp$1$$=$props_77057_token_numeric_inputs$jscomp$9$$.onColorChange,$on_stroke_cap_switch$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeCapSwitch,
$show_caps$$=$props_77057_token_numeric_inputs$jscomp$9$$.showCaps,$on_stroke_cap_end_change$$=$props_77057_token_numeric_inputs$jscomp$9$$.onStrokeCapEndChange,$applied_tokens$jscomp$19$$=$props_77057_token_numeric_inputs$jscomp$9$$.appliedTokens,$on_color_detach$$=$props_77057_token_numeric_inputs$jscomp$9$$.onColorDetach;$props_77057_token_numeric_inputs$jscomp$9$$=$app$main$features$use_feature$$("tokens/numeric-input");var $dprops$jscomp$7_on_drop$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_reorder$jscomp$5$$),
$APP.$rumext$v2$adapt$$($index$jscomp$509$$)],function($relative_pos$jscomp$4_to_space_between_pos$jscomp$18$$,$data$jscomp$473_from_pos$jscomp$18$$){$data$jscomp$473_from_pos$jscomp$18$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$473_from_pos$jscomp$18$$);$relative_pos$jscomp$4_to_space_between_pos$jscomp$18$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($relative_pos$jscomp$4_to_space_between_pos$jscomp$18$$,$APP.$cljs$cst$2636$bot$$)?$index$jscomp$509$$+
1:$index$jscomp$509$$;return $on_reorder$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$?$on_reorder$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$473_from_pos$jscomp$18$$,$relative_pos$jscomp$4_to_space_between_pos$jscomp$18$$):$on_reorder$jscomp$5$$($data$jscomp$473_from_pos$jscomp$18$$,$relative_pos$jscomp$4_to_space_between_pos$jscomp$18$$)}),$dref$jscomp$7_vec__77058$$=$on_reorder$jscomp$5$$!=null?$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,
"penpot/stroke-row",$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$7_on_drop$jscomp$14$$,$APP.$cljs$cst$2632$disabled$$,$APP.$cljs$core$_deref$$($disable_drag$jscomp$2$$),$APP.$cljs$cst$2642$detect_center_QMARK_$$,!1,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1779$index$$,$index$jscomp$509$$],null)])):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[null,null],null);$dprops$jscomp$7_on_drop$jscomp$14$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$7_vec__77058$$,
0,null);$dref$jscomp$7_vec__77058$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$7_vec__77058$$,1,null);var $stroke_color_token$$=$APP.$cljs$cst$1723$stroke_color$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$19$$),$on_color_change_refactor$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_color_change$jscomp$1$$)],function($color$jscomp$169$$){return $on_color_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?
$on_color_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$color$jscomp$169$$):$on_color_change$jscomp$1$$($index$jscomp$509$$,$color$jscomp$169$$)}),$on_color_detach__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_color_detach$$)],function($_$jscomp$2885$$,$color$jscomp$170$$){return $on_color_detach$$.$cljs$core$IFn$_invoke$arity$2$?$on_color_detach$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,
$color$jscomp$170$$):$on_color_detach$$($index$jscomp$509$$,$color$jscomp$170$$)}),$on_remove__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_remove$jscomp$5$$)],function(){return $on_remove$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$on_remove$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$509$$):$on_remove$jscomp$5$$($index$jscomp$509$$)}),$stroke_width$jscomp$8$$=$APP.$cljs$cst$1639$stroke_width$$.$cljs$core$IFn$_invoke$arity$1$($stroke$jscomp$32$$),
$on_width_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_width_change$$)],function($value$jscomp$885$$){return typeof $value$jscomp$885$$==="string"||typeof $value$jscomp$885$$==="number"?$on_stroke_width_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_stroke_width_change$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$value$jscomp$885$$):$on_stroke_width_change$$($index$jscomp$509$$,
$value$jscomp$885$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$885$$),$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1639$stroke_width$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$287$$],null)))}),
$stroke_alignment$$=function(){var $or__5025__auto__$jscomp$1118$$=$APP.$cljs$cst$1852$stroke_alignment$$.$cljs$core$IFn$_invoke$arity$1$($stroke$jscomp$32$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1118$$)?$or__5025__auto__$jscomp$1118$$:$APP.$cljs$cst$1651$center$$}(),$stroke_alignment_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stroke_alignment$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$stroke_alignment$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$2245$label$$,"--"],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
$APP.$cljs$cst$1651$center$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.center")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2026$inner$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.inner")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2027$outer$$,$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.outer")],null)],null)]))}),$on_alignment_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_alignment_change$$)],function($G__77072_p1__77053_SHARP_$$){$G__77072_p1__77053_SHARP_$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__77072_p1__77053_SHARP_$$);return $on_stroke_alignment_change$$.$cljs$core$IFn$_invoke$arity$2$?
$on_stroke_alignment_change$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$G__77072_p1__77053_SHARP_$$):$on_stroke_alignment_change$$($index$jscomp$509$$,$G__77072_p1__77053_SHARP_$$)}),$on_token_change$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$287$$)],function($_$jscomp$2886$$,$token$jscomp$129$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1134$token$$,$token$jscomp$129$$,$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$287$$,$APP.$cljs$cst$4489$expand_with_children$$,!0],null)))}),$stroke_style$jscomp$3$$=function(){var $or__5025__auto__$jscomp$1119$$=$APP.$cljs$cst$1850$stroke_style$$.$cljs$core$IFn$_invoke$arity$1$($stroke$jscomp$32$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1119$$)?
$or__5025__auto__$jscomp$1119$$:$APP.$cljs$cst$2022$solid$$}(),$stroke_style_options$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stroke_style$jscomp$3$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$stroke_style$jscomp$3$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$2245$label$$,"--"],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2022$solid$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.solid")],null),
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2025$dotted$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.dotted")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2024$dashed$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.dashed")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2023$mixed$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.mixed")],null)],null)]))}),$on_style_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_style_change$$)],function($G__77074_p1__77054_SHARP_$$){$G__77074_p1__77054_SHARP_$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__77074_p1__77054_SHARP_$$);
return $on_stroke_style_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_stroke_style_change$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$G__77074_p1__77054_SHARP_$$):$on_stroke_style_change$$($index$jscomp$509$$,$G__77074_p1__77054_SHARP_$$)}),$on_caps_start_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_cap_start_change$$)],function($G__77076_p1__77055_SHARP_$$){$G__77076_p1__77055_SHARP_$$=
$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__77076_p1__77055_SHARP_$$);return $on_stroke_cap_start_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_stroke_cap_start_change$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$G__77076_p1__77055_SHARP_$$):$on_stroke_cap_start_change$$($index$jscomp$509$$,$G__77076_p1__77055_SHARP_$$)}),$on_caps_end_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_cap_end_change$$)],
function($G__77078_p1__77056_SHARP_$$){$G__77078_p1__77056_SHARP_$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($G__77078_p1__77056_SHARP_$$);return $on_stroke_cap_end_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_stroke_cap_end_change$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,$G__77078_p1__77056_SHARP_$$):$on_stroke_cap_end_change$$($index$jscomp$509$$,$G__77078_p1__77056_SHARP_$$)}),$on_detach_token_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$12$$)],
function($token$jscomp$130$$){var $G__77080$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null);return $on_detach_token$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$130$$,$G__77080$$):$on_detach_token$jscomp$12$$($token$jscomp$130$$,$G__77080$$)}),$on_detach_token_width$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$12$$)],
function($G__77081_token$jscomp$131$$){$G__77081_token$jscomp$131$$=$APP.$cljs$core$first$$($G__77081_token$jscomp$131$$);var $G__77082$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1639$stroke_width$$,null],null),null);return $on_detach_token$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$($G__77081_token$jscomp$131$$,$G__77082$$):$on_detach_token$jscomp$12$$($G__77081_token$jscomp$131$$,
$G__77082$$)}),$stroke_caps_options$$=new $APP.$cljs$core$PersistentVector$$(null,10,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,null,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.none")],null),$APP.$cljs$cst$1461$separator$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1998$line_arrow$$,$APP.$cljs$cst$2245$label$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.line-arrow-short"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5460$stroke_arrow$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2000$triangle_arrow$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.triangle-arrow-short"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5461$stroke_triangle$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2002$square_marker$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.square-marker-short"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5462$stroke_rectangle$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2001$circle_marker$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.circle-marker-short"),
$APP.$cljs$cst$1705$icon$$,$cljs$cst$5463$stroke_circle$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1999$diamond_marker$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.diamond-marker-short"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5464$stroke_diamond$$],null),$APP.$cljs$cst$1461$separator$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1997$round$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.round"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5465$stroke_rounded$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1918$square$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-cap.square"),$APP.$cljs$cst$1705$icon$$,$cljs$cst$5466$stroke_squared$$],null)],null),$on_cap_switch$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$509$$),$APP.$rumext$v2$adapt$$($on_stroke_cap_switch$$)],function(){return $on_stroke_cap_switch$$.$cljs$core$IFn$_invoke$arity$1$?$on_stroke_cap_switch$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$509$$):$on_stroke_cap_switch$$($index$jscomp$509$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{"aria-label":["stroke-row-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$509$$)].join(""),
className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-data "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$7_on_drop$jscomp$14$$),$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_options_rows_stroke_row__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$7_on_drop$jscomp$14$$),$APP.$cljs$cst$2636$bot$$)?
"main_ui_workspace_sidebar_options_rows_stroke_row__dnd-over-bot":""),children:[$on_reorder$jscomp$5$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$reorder_handler$reorder_handler_STAR_$$,{ref:$dref$jscomp$7_vec__77058$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{onRemove:$on_remove__$1$jscomp$1$$,origin:$APP.$cljs$cst$1723$stroke_color$$,index:$index$jscomp$509$$,onChange:$on_color_change_refactor$$,selectOnFocus:$select_on_focus$jscomp$4$$,
onTokenChange:$on_token_change$jscomp$6$$,disableDrag:$disable_drag$jscomp$2$$,onDetachToken:$on_detach_token_color$$,appliedToken:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$509$$,0)?$stroke_color_token$$:null,onFocus:$on_focus$jscomp$16$$,onDetach:$on_color_detach__$1$$,onBlur:$on_blur$jscomp$24$$,title:$title$jscomp$40$$,color:$APP.$app$common$types$color$stroke__GT_color$$($stroke$jscomp$32$$)}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-options",
children:[$props_77057_token_numeric_inputs$jscomp$9$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,onChange:$on_width_change$jscomp$1$$,className:"main_ui_workspace_sidebar_options_rows_stroke_row__numeric-input-wrapper",attr:$APP.$cljs$cst$1639$stroke_width$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$19$$,$APP.$cljs$cst$1639$stroke_width$$),value:$stroke_width$jscomp$8$$,
onFocus:$on_focus$jscomp$16$$,onDetach:$on_detach_token_width$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-width"),onBlur:$on_blur$jscomp$24$$,icon:"stroke-size"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-width"),className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-width-input",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"stroke-size",size:"s"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{value:$stroke_width$jscomp$8$$,min:0,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),onChange:$on_width_change$jscomp$1$$,onFocus:$on_focus$jscomp$16$$,selectOnFocus:$select_on_focus$jscomp$4$$,onBlur:$on_blur$jscomp$24$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"stroke.alignment",className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-alignment-select",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$stroke_alignment$$,options:$stroke_alignment_options$$,"on-change":$on_alignment_change$$})}),$APP.$cljs$core$truth_$$($disable_stroke_style$$)?null:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"stroke.style",className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-style-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$stroke_style$jscomp$3$$,
options:$stroke_style_options$$,"on-change":$on_style_change$jscomp$1$$})})]}),$APP.$cljs$core$truth_$$($show_caps$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_rows_stroke_row__stroke-caps-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$cst$1849$stroke_cap_start$$.$cljs$core$IFn$_invoke$arity$1$($stroke$jscomp$32$$),options:$stroke_caps_options$$,"on-change":$on_caps_start_change$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"secondary","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.switch"),onClick:$on_cap_switch$$,icon:"switch"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$cst$1853$stroke_cap_end$$.$cljs$core$IFn$_invoke$arity$1$($stroke$jscomp$32$$),options:$stroke_caps_options$$,"on-change":$on_caps_end_change$$})]}):null]})};
$app$main$ui$workspace$sidebar$options$shapes$bool$options_STAR_$$=function($props_77113_type$jscomp$635$$){var $file_id$jscomp$372$$=$props_77113_type$jscomp$635$$.fileId,$page_id$jscomp$395$$=$props_77113_type$jscomp$635$$.pageId,$shape$jscomp$980$$=$props_77113_type$jscomp$635$$.shape,$id$jscomp$924$$=$shape$jscomp$980$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$980$$,$APP.$cljs$cst$266$id$$);$props_77113_type$jscomp$635$$=$shape$jscomp$980$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$980$$,
$APP.$cljs$cst$139$type$$);var $ids$jscomp$289$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$924$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$924$$],null)}),$shapes$jscomp$206$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$980$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape$jscomp$980$$],null)}),$applied_tokens$jscomp$21$$=$APP.$cljs$core$seq$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$980$$,$APP.$cljs$cst$1857$applied_tokens$$))?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$980$$,$APP.$cljs$cst$1857$applied_tokens$$):null,$measure_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$stroke_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,
$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$constraint_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_item_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$$=
$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),$is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$289$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$289$$)}),$is_layout_child_QMARK_$jscomp$1$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$);
$is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$289$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$289$$)});$is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$);var $is_grid_parent_ref_is_layout_child_absolute_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$289$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$289$$)}),$is_grid_parent_QMARK_$jscomp$1$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref_is_layout_child_absolute_QMARK_$$);$is_grid_parent_ref_is_layout_child_absolute_QMARK_$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$980$$);var $parents$jscomp$13_parents_by_ids_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$289$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$289$$)});$parents$jscomp$13_parents_by_ids_ref$$=$APP.$rumext$v2$deref$$($parents$jscomp$13_parents_by_ids_ref$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{ids:$ids$jscomp$289$$,type:$props_77113_type$jscomp$635$$,appliedTokens:$applied_tokens$jscomp$21$$,values:$layer_values$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,
{ids:$ids$jscomp$289$$,appliedTokens:$applied_tokens$jscomp$21$$,type:$props_77113_type$jscomp$635$$,values:$measure_values$$,shapes:$shapes$jscomp$206$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77113_type$jscomp$635$$,ids:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$980$$)],null),values:$layout_container_values$$,
"applied-tokens":$applied_tokens$jscomp$21$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$766$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$289$$),1);return $and__5023__auto__$jscomp$766$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$1$$)?$is_grid_parent_QMARK_$jscomp$1$$:$is_layout_child_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$766$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,
{shape:$APP.$cljs$core$first$$($parents$jscomp$13_parents_by_ids_ref$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$13_parents_by_ids_ref$$),$APP.$cljs$core$first$$($ids$jscomp$289$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{ids:$ids$jscomp$289$$,type:$props_77113_type$jscomp$635$$,values:$layout_item_values$$,
"is-layout-child?":!0,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$1_is_flex_parent_ref_is_layout_child_ref$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$1$$,"applied-tokens":$applied_tokens$jscomp$21$$,shape:$shape$jscomp$980$$}):null,!$is_layout_child_QMARK_$jscomp$1$$||$is_grid_parent_ref_is_layout_child_absolute_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$289$$,values:$constraint_values$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,
{ids:$ids$jscomp$289$$,type:$props_77113_type$jscomp$635$$,values:$shape$jscomp$980$$,appliedTokens:$applied_tokens$jscomp$21$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$289$$,type:$props_77113_type$jscomp$635$$,"show-caps":!0,values:$stroke_values$$,"applied-tokens":$applied_tokens$jscomp$21$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$289$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$980$$,
$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{ids:$ids$jscomp$289$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77113_type$jscomp$635$$,ids:$ids$jscomp$289$$,shapes:$shapes$jscomp$206$$,
values:$APP.$cljs$core$select_keys$$($shape$jscomp$980$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),pageId:$page_id$jscomp$395$$,fileId:$file_id$jscomp$372$$})]})};
$app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$=function($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$){$map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$=$APP.$rumext$v2$util$wrap_props$$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$);$map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$=$APP.$cljs$core$__destructure_map$$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$);var $ids$jscomp$290$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$,
$APP.$cljs$cst$1707$ids$$),$attrs$jscomp$165_values$jscomp$94$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$,$APP.$cljs$cst$299$values$$),$state_STAR_$jscomp$21$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$21$$);$attrs$jscomp$165_values$jscomp$94$$=$APP.$cljs$cst$1874$svg_attrs$$.$cljs$core$IFn$_invoke$arity$1$($attrs$jscomp$165_values$jscomp$94$$);
var $has_attributes_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$attrs$jscomp$165_values$jscomp$94$$)||$APP.$cljs$core$seq$$($attrs$jscomp$165_values$jscomp$94$$)!=null,$toggle_content$jscomp$12$$=$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$($state_STAR_$jscomp$21$$,$APP.$cljs$core$not$$)}),$handle_change$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$290$$)],
function($attr$jscomp$90$$,$value$jscomp$893$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$290$$,function($shape$jscomp$981$$){return $APP.$cljs$core$assoc_in$$($shape$jscomp$981$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],null),
$attr$jscomp$90$$),$value$jscomp$893$$)}))}),$handle_delete$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$290$$)],function($attr$jscomp$91$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$290$$,function($shape$jscomp$982_shape__$1$jscomp$107$$){var $update_path$$=$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],null),$APP.$cljs$core$butlast$$($attr$jscomp$91$$));$shape$jscomp$982_shape__$1$jscomp$107$$=$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$982_shape__$1$jscomp$107$$,$update_path$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$last$$($attr$jscomp$91$$));return $APP.$cljs$core$empty_QMARK_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$982_shape__$1$jscomp$107$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$,$APP.$cljs$cst$1889$style$$],null)))?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$982_shape__$1$jscomp$107$$,$APP.$cljs$cst$1874$svg_attrs$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1889$style$$):$shape$jscomp$982_shape__$1$jscomp$107$$}))});return $APP.$cljs$core$empty_QMARK_$$($attrs$jscomp$165_values$jscomp$94$$)?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__element-set",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__element-set-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_attributes_QMARK_$$,collapsed:$APP.$cljs$core$not$$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$),onCollapsed:$toggle_content$jscomp$12$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.options.svg-attrs.title"),className:$has_attributes_QMARK_$$?
"":"main_ui_workspace_sidebar_options_menus_svg_attrs__title-spacing-svg-attrs"})}),$APP.$cljs$core$truth_$$($map__77101_map__77101__$1_open_QMARK_$jscomp$24_props_77100$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__element-set-content",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$190$$,$attr_value$jscomp$6_p__77107$$){var $attr_key$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($attr_value$jscomp$6_p__77107$$,
0,null);$attr_value$jscomp$6_p__77107$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($attr_value$jscomp$6_p__77107$$,1,null);$out_arr__44057__auto__$jscomp$190$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$attribute_value$$,{attr:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$attr_key$jscomp$6$$],null),value:$attr_value$jscomp$6_p__77107$$,"on-change":$handle_change$jscomp$10$$,"on-delete":$handle_delete$jscomp$2$$},
$attr_key$jscomp$6$$));return $out_arr__44057__auto__$jscomp$190$$},[],$attrs$jscomp$165_values$jscomp$94$$)}):null]})};
$app$main$ui$workspace$sidebar$options$shapes$circle$options_STAR_$$=function($props_77112_type$jscomp$636$$){var $file_id$jscomp$373$$=$props_77112_type$jscomp$636$$.fileId,$page_id$jscomp$396$$=$props_77112_type$jscomp$636$$.pageId,$shape$jscomp$983$$=$props_77112_type$jscomp$636$$.shape,$id$jscomp$925$$=$shape$jscomp$983$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$983$$,$APP.$cljs$cst$266$id$$);$props_77112_type$jscomp$636$$=$shape$jscomp$983$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$983$$,
$APP.$cljs$cst$139$type$$);var $ids$jscomp$291$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$925$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$925$$],null)}),$shapes$jscomp$207$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$983$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape$jscomp$983$$],null)}),$applied_tokens$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$983$$,$APP.$cljs$cst$1857$applied_tokens$$),$measure_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$stroke_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,
$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$constraint_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_item_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$jscomp$1$$=$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),
$is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$291$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$291$$)}),$is_layout_child_QMARK_$jscomp$2$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$);$is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$291$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$291$$)});$is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$);var $is_grid_parent_ref$jscomp$1_is_layout_child_absolute_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$291$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$291$$)}),$is_grid_parent_QMARK_$jscomp$2$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$1_is_layout_child_absolute_QMARK_$jscomp$1$$);$is_grid_parent_ref$jscomp$1_is_layout_child_absolute_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$983$$);var $parents$jscomp$14_parents_by_ids_ref$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$291$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$291$$)});$parents$jscomp$14_parents_by_ids_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($parents$jscomp$14_parents_by_ids_ref$jscomp$1$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{ids:$ids$jscomp$291$$,type:$props_77112_type$jscomp$636$$,appliedTokens:$applied_tokens$jscomp$22$$,values:$layer_values$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,
{ids:$ids$jscomp$291$$,appliedTokens:$applied_tokens$jscomp$22$$,type:$props_77112_type$jscomp$636$$,values:$measure_values$jscomp$1$$,shapes:$shapes$jscomp$207$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77112_type$jscomp$636$$,ids:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$983$$)],null),values:$layout_container_values$jscomp$1$$,
"applied-tokens":$applied_tokens$jscomp$22$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$767$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$291$$),1);return $and__5023__auto__$jscomp$767$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$2$$)?$is_grid_parent_QMARK_$jscomp$2$$:$is_layout_child_QMARK_$jscomp$2$$:$and__5023__auto__$jscomp$767$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,
{shape:$APP.$cljs$core$first$$($parents$jscomp$14_parents_by_ids_ref$jscomp$1$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$14_parents_by_ids_ref$jscomp$1$$),$APP.$cljs$core$first$$($ids$jscomp$291$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$2_is_flex_parent_ref$jscomp$1_is_layout_child_ref$jscomp$1$$,
"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$2$$,ids:$ids$jscomp$291$$,type:$props_77112_type$jscomp$636$$,values:$layout_item_values$jscomp$1$$,shape:$shape$jscomp$983$$,"applied-tokens":$applied_tokens$jscomp$22$$,"is-layout-child?":!0,"is-layout-container?":!1}):null,!$is_layout_child_QMARK_$jscomp$2$$||$is_grid_parent_ref$jscomp$1_is_layout_child_absolute_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$291$$,
values:$constraint_values$jscomp$1$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{ids:$ids$jscomp$291$$,type:$props_77112_type$jscomp$636$$,values:$shape$jscomp$983$$,appliedTokens:$applied_tokens$jscomp$22$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$291$$,type:$props_77112_type$jscomp$636$$,values:$stroke_values$jscomp$1$$,"applied-tokens":$applied_tokens$jscomp$22$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,
{ids:$ids$jscomp$291$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$983$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{ids:$ids$jscomp$291$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,
{ids:$ids$jscomp$291$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77112_type$jscomp$636$$,ids:$ids$jscomp$291$$,shapes:$shapes$jscomp$207$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$983$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),
pageId:$page_id$jscomp$396$$,fileId:$file_id$jscomp$373$$})]})};
$app$main$ui$workspace$sidebar$options$menus$color_selection$prepare_colors$$=function($groups$jscomp$13_shapes$jscomp$208$$,$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$,$libraries$jscomp$142_library_colors$jscomp$2$$){$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$nil_QMARK_$$),$APP.$app$main$data$workspace$colors$extract_all_colors$$($groups$jscomp$13_shapes$jscomp$208$$,
$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$,$libraries$jscomp$142_library_colors$jscomp$2$$));$groups$jscomp$13_shapes$jscomp$208$$=$APP.$app$common$data$group_by$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$2595$attrs$$,function($p1__77114_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__77114_SHARP_$$,$APP.$cljs$cst$2595$attrs$$)},$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$);$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$=
$APP.$cljs$core$distinct$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2595$attrs$$,$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$));$libraries$jscomp$142_library_colors$jscomp$2$$=$APP.$cljs$core$filterv$$($APP.$cljs$cst$1719$ref_id$$,$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$);var $token_colors$$=$APP.$cljs$core$filterv$$($APP.$cljs$cst$4070$token_name$$,$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$),
$colors$jscomp$25$$=$APP.$cljs$core$filterv$$(function($p1__77115_SHARP_$$){return $APP.$cljs$cst$1719$ref_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__77115_SHARP_$$)==null&&$APP.$cljs$core$not$$($APP.$cljs$cst$4070$token_name$$.$cljs$core$IFn$_invoke$arity$1$($p1__77115_SHARP_$$))},$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$4342$groups$$,$groups$jscomp$13_shapes$jscomp$208$$,$cljs$cst$5470$all_colors$$,$all_colors$jscomp$2_data$jscomp$474_file_id$jscomp$374$$,
$APP.$cljs$cst$2174$colors$$,$colors$jscomp$25$$,$cljs$cst$5471$token_colors$$,$token_colors$$,$cljs$cst$5472$library_colors$$,$libraries$jscomp$142_library_colors$jscomp$2$$],null)};
$app$main$ui$workspace$sidebar$options$menus$color_selection$retrieve_color_operations$$=function($color_operations_prev_groups$jscomp$14$$,$old_color$jscomp$3_old_color__$1$$,$prev_colors$$){$old_color$jscomp$3_old_color__$1$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($old_color$jscomp$3_old_color__$1$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$294$path$$])));
var $prev_color$jscomp$3$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$get$$,$color_operations_prev_groups$jscomp$14$$),$prev_colors$$),$color_operations_old$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color_operations_prev_groups$jscomp$14$$,$old_color$jscomp$3_old_color__$1$$);$color_operations_prev_groups$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color_operations_prev_groups$jscomp$14$$,
$prev_colors$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$truth_$$($color_operations_prev_groups$jscomp$14$$)?$color_operations_prev_groups$jscomp$14$$:$color_operations_old$$,$APP.$cljs$core$truth_$$($prev_color$jscomp$3$$)?$prev_color$jscomp$3$$:$old_color$jscomp$3_old_color__$1$$],null)};
$app$common$geom$grid$calculate_generic_grid$$=function($v$jscomp$663$$,$total_length$$,$map__77164__$1_p__77163$$){$map__77164__$1_p__77163$$=$APP.$cljs$core$__destructure_map$$($map__77164__$1_p__77163$$);var $size$jscomp$149$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77164__$1_p__77163$$,$APP.$cljs$cst$872$size$$),$gutter$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77164__$1_p__77163$$,$APP.$cljs$cst$1916$gutter$$),$margin$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77164__$1_p__77163$$,
$APP.$cljs$cst$1914$margin$$),$item_length$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77164__$1_p__77163$$,$APP.$cljs$cst$1915$item_length$$),$type$jscomp$637$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77164__$1_p__77163$$,$APP.$cljs$cst$139$type$$),$size__$1$jscomp$7$$=typeof $size$jscomp$149$$==="number"?$size$jscomp$149$$:$APP.$app$common$math$floor$$(($total_length$$-($margin$jscomp$4$$+($margin$jscomp$4$$-$gutter$jscomp$2$$)))/(($APP.$cljs$core$truth_$$($item_length$jscomp$1$$)?
$item_length$jscomp$1$$:($total_length$$-($margin$jscomp$4$$+($margin$jscomp$4$$-$gutter$jscomp$2$$))-$gutter$jscomp$2$$*12)/12)+$gutter$jscomp$2$$)),$item_length__$1$jscomp$1$$=typeof $item_length$jscomp$1$$==="number"?$item_length$jscomp$1$$:$total_length$$/$size__$1$jscomp$7$$+-$gutter$jscomp$2$$+$gutter$jscomp$2$$/$size__$1$jscomp$7$$+-($margin$jscomp$4$$*2/$size__$1$jscomp$7$$),$offset$jscomp$202$$=function(){switch($type$jscomp$637$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$637$$.$fqn$:
null){case "right":return $total_length$$-$item_length__$1$jscomp$1$$*$size__$1$jscomp$7$$-$gutter$jscomp$2$$*($size__$1$jscomp$7$$-1)-$margin$jscomp$4$$;case "center":return($total_length$$-$item_length__$1$jscomp$1$$*$size__$1$jscomp$7$$-$gutter$jscomp$2$$*($size__$1$jscomp$7$$-1))/2;default:return $margin$jscomp$4$$}}(),$gutter__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1653$stretch$$,$type$jscomp$637$$)?function(){var $gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$=
0>$gutter$jscomp$2$$?0:$gutter$jscomp$2$$;var $y__5111__auto__$jscomp$inline_12927$$=($total_length$$-$item_length__$1$jscomp$1$$*$size__$1$jscomp$7$$-$margin$jscomp$4$$*2)/($size__$1$jscomp$7$$-1);$gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$=$gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$>$y__5111__auto__$jscomp$inline_12927$$?$gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$:$y__5111__auto__$jscomp$inline_12927$$;return $APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$))?
$gutter__$1$jscomp$1_x__5110__auto__$jscomp$inline_12926$$:0}():$gutter$jscomp$2$$;return new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$size__$1$jscomp$7$$,$item_length__$1$jscomp$1$$,function($cur_val$jscomp$2$$){return $offset$jscomp$202$$+$v$jscomp$663$$+($item_length__$1$jscomp$1$$+$gutter__$1$$)*$cur_val$jscomp$2$$},$gutter__$1$$],null)};
$app$common$geom$grid$calculate_column_grid$$=function($height$jscomp$165_p__77167$$,$params$jscomp$410_size$jscomp$150$$){var $map__77170__$1_y$jscomp$467$$=$APP.$cljs$core$__destructure_map$$($height$jscomp$165_p__77167$$),$width$jscomp$194_width__$1$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77170__$1_y$jscomp$467$$,$APP.$cljs$cst$288$width$$);$height$jscomp$165_p__77167$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77170__$1_y$jscomp$467$$,$APP.$cljs$cst$1511$height$$);
var $next_x_vec__77171_x$jscomp$1244$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77170__$1_y$jscomp$467$$,$APP.$cljs$cst$1499$x$$);$map__77170__$1_y$jscomp$467$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77170__$1_y$jscomp$467$$,$APP.$cljs$cst$1500$y$$);$next_x_vec__77171_x$jscomp$1244$$=$app$common$geom$grid$calculate_generic_grid$$($next_x_vec__77171_x$jscomp$1244$$,$width$jscomp$194_width__$1$jscomp$10$$,$params$jscomp$410_size$jscomp$150$$);$params$jscomp$410_size$jscomp$150$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($next_x_vec__77171_x$jscomp$1244$$,0,null);$width$jscomp$194_width__$1$jscomp$10$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($next_x_vec__77171_x$jscomp$1244$$,1,null);$next_x_vec__77171_x$jscomp$1244$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($next_x_vec__77171_x$jscomp$1244$$,2,null);return new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$params$jscomp$410_size$jscomp$150$$,
$width$jscomp$194_width__$1$jscomp$10$$,$height$jscomp$165_p__77167$$,$next_x_vec__77171_x$jscomp$1244$$,$APP.$cljs$core$constantly$$($map__77170__$1_y$jscomp$467$$)],null)};
$app$common$geom$grid$calculate_row_grid$$=function($p__77178_width$jscomp$195$$,$params$jscomp$411_size$jscomp$151$$){var $map__77179__$1_next_y_vec__77186_y$jscomp$468$$=$APP.$cljs$core$__destructure_map$$($p__77178_width$jscomp$195$$);$p__77178_width$jscomp$195$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,$APP.$cljs$cst$288$width$$);var $height$jscomp$166_height__$1$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,
$APP.$cljs$cst$1511$height$$),$x$jscomp$1245$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,$APP.$cljs$cst$1499$x$$);$map__77179__$1_next_y_vec__77186_y$jscomp$468$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,$APP.$cljs$cst$1500$y$$);$map__77179__$1_next_y_vec__77186_y$jscomp$468$$=$app$common$geom$grid$calculate_generic_grid$$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,$height$jscomp$166_height__$1$jscomp$6$$,
$params$jscomp$411_size$jscomp$151$$);$params$jscomp$411_size$jscomp$151$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,0,null);$height$jscomp$166_height__$1$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,1,null);$map__77179__$1_next_y_vec__77186_y$jscomp$468$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__77179__$1_next_y_vec__77186_y$jscomp$468$$,2,
null);return new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$params$jscomp$411_size$jscomp$151$$,$p__77178_width$jscomp$195$$,$height$jscomp$166_height__$1$jscomp$6$$,$APP.$cljs$core$constantly$$($x$jscomp$1245$$),$map__77179__$1_next_y_vec__77186_y$jscomp$468$$],null)};
$app$common$geom$grid$calculate_square_grid$$=function($p__77193_width$jscomp$196$$,$map__77196__$1_p__77194$$){function $as_row_col$$($value$jscomp$894$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$quot$$($value$jscomp$894$$,$col_size$$),$APP.$cljs$core$rem$$($value$jscomp$894$$,$col_size$$)],null)}var $map__77195__$1$$=$APP.$cljs$core$__destructure_map$$($p__77193_width$jscomp$196$$);$p__77193_width$jscomp$196$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77195__$1$$,
$APP.$cljs$cst$288$width$$);var $height$jscomp$167$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77195__$1$$,$APP.$cljs$cst$1511$height$$),$x$jscomp$1246$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77195__$1$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$469$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77195__$1$$,$APP.$cljs$cst$1500$y$$);$map__77196__$1_p__77194$$=$APP.$cljs$core$__destructure_map$$($map__77196__$1_p__77194$$);var $size$jscomp$152$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77196__$1_p__77194$$,
$APP.$cljs$cst$872$size$$),$col_size$$=$APP.$cljs$core$quot$$($p__77193_width$jscomp$196$$,$size$jscomp$152$$);return new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$col_size$$*$APP.$cljs$core$quot$$($height$jscomp$167$$,$size$jscomp$152$$),$size$jscomp$152$$,$size$jscomp$152$$,function($col$jscomp$24_cur_val$jscomp$3_vec__77197$$){$col$jscomp$24_cur_val$jscomp$3_vec__77197$$=$as_row_col$$($col$jscomp$24_cur_val$jscomp$3_vec__77197$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($col$jscomp$24_cur_val$jscomp$3_vec__77197$$,
0,null);$col$jscomp$24_cur_val$jscomp$3_vec__77197$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($col$jscomp$24_cur_val$jscomp$3_vec__77197$$,1,null);return $x$jscomp$1246$$+$col$jscomp$24_cur_val$jscomp$3_vec__77197$$*$size$jscomp$152$$},function($cur_val$jscomp$4_vec__77200$$){$cur_val$jscomp$4_vec__77200$$=$as_row_col$$($cur_val$jscomp$4_vec__77200$$);var $row$jscomp$34$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cur_val$jscomp$4_vec__77200$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($cur_val$jscomp$4_vec__77200$$,
1,null);return $y$jscomp$469$$+$row$jscomp$34$$*$size$jscomp$152$$}],null)};
$app$common$geom$grid$grid_gutter$$=function($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,$p__77204_type$jscomp$638$$){var $height$jscomp$168_map__77205__$1$$=$APP.$cljs$core$__destructure_map$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$);$gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$168_map__77205__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$470$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$168_map__77205__$1$$,
$APP.$cljs$cst$1500$y$$),$width$jscomp$197$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$168_map__77205__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$168_map__77205__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$168_map__77205__$1$$,$APP.$cljs$cst$1511$height$$);var $map__77206__$1_params$jscomp$413$$=$APP.$cljs$core$__destructure_map$$($p__77204_type$jscomp$638$$);$p__77204_type$jscomp$638$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77206__$1_params$jscomp$413$$,
$APP.$cljs$cst$139$type$$);$map__77206__$1_params$jscomp$413$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77206__$1_params$jscomp$413$$,$APP.$cljs$cst$1419$params$$);switch($p__77204_type$jscomp$638$$ instanceof $APP.$cljs$core$Keyword$$?$p__77204_type$jscomp$638$$.$fqn$:null){case "column":return $gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$=$app$common$geom$grid$calculate_generic_grid$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,$width$jscomp$197$$,
$map__77206__$1_params$jscomp$413$$),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,0,null),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,1,null),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,2,null),$gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,
3,null);case "row":return $gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$=$app$common$geom$grid$calculate_generic_grid$$($y$jscomp$470$$,$height$jscomp$168_map__77205__$1$$,$map__77206__$1_params$jscomp$413$$),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,0,null),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,1,null),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,
2,null),$gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gutter$jscomp$3_p__77203_vec__77208_vec__77211_x$jscomp$1247$$,3,null);default:return null}};
$app$common$geom$grid$grid_areas$$=function($frame$jscomp$70$$,$grid$jscomp$8$$){var $grid_fn$$=function(){var $G__77218_G__77218__$1$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$8$$);$G__77218_G__77218__$1$$=$G__77218_G__77218__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__77218_G__77218__$1$$.$fqn$:null;switch($G__77218_G__77218__$1$$){case "column":return $app$common$geom$grid$calculate_column_grid$$;case "row":return $app$common$geom$grid$calculate_row_grid$$;case "square":return $app$common$geom$grid$calculate_square_grid$$;
default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77218_G__77218__$1$$)].join(""));}}(),$vec__77215$$=function(){var $G__77220$$=$APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$8$$);return $grid_fn$$.$cljs$core$IFn$_invoke$arity$2$?$grid_fn$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$70$$,$G__77220$$):$grid_fn$$($frame$jscomp$70$$,$G__77220$$)}(),$num_items$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77215$$,
0,null),$item_width$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77215$$,1,null),$item_height$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77215$$,2,null),$next_x$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77215$$,3,null),$next_y$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77215$$,4,null);return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77214_SHARP_$$){return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1499$x$$,
$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1511$height$$],[$next_x$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$next_x$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($p1__77214_SHARP_$$):$next_x$jscomp$2$$($p1__77214_SHARP_$$),$next_y$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$next_y$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($p1__77214_SHARP_$$):$next_y$jscomp$2$$($p1__77214_SHARP_$$),$item_width$$,$item_height$$])},$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$02$$(0,
$num_items$jscomp$1$$))};
$app$main$data$workspace$grid$add_frame_grid$$=function($frame_id$jscomp$132$$){typeof $app$main$data$workspace$grid$add_frame_grid_77222$$==="undefined"&&($app$main$data$workspace$grid$add_frame_grid_77222$$=function($frame_id$jscomp$133$$,$meta77223$$){this.$frame_id$=$frame_id$jscomp$133$$;this.$meta77223$=$meta77223$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5473$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_add_frame_grid$$},$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_77224$$,$meta77223__$1$$){return new $app$main$data$workspace$grid$add_frame_grid_77222$$(this.$frame_id$,$meta77223__$1$$)},$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta77223$},$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$add_frame_grid_77222$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2897_params$jscomp$415$$,$state$jscomp$1085$$){var $page$jscomp$153$$=$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1085$$);$_$jscomp$2897_params$jscomp$415$$=function(){var $or__5025__auto__$jscomp$1123$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$153$$,$APP.$cljs$cst$2040$default_grids$$),$APP.$cljs$cst$1918$square$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1123$$)?$or__5025__auto__$jscomp$1123$$:$APP.$cljs$cst$1918$square$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$types$grid$default_grid_params$$)}();var $grid$jscomp$10$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,
$APP.$cljs$cst$1918$square$$,$APP.$cljs$cst$1419$params$$,$_$jscomp$2897_params$jscomp$415$$,$APP.$cljs$cst$1917$display$$,!0],null);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$frame_id$],null),function($obj$jscomp$220$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($obj$jscomp$220$$,$APP.$cljs$cst$2035$grids$$,
$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__77221_SHARP_$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p1__77221_SHARP_$$,$grid$jscomp$10$$)},$APP.$cljs$core$PersistentVector$EMPTY$$))}))});return new $app$main$data$workspace$grid$add_frame_grid_77222$$($frame_id$jscomp$132$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid$remove_frame_grid$$=function($frame_id$jscomp$134$$,$index$jscomp$523$$){typeof $app$main$data$workspace$grid$remove_frame_grid_77232$$==="undefined"&&($app$main$data$workspace$grid$remove_frame_grid_77232$$=function($frame_id$jscomp$135$$,$index$jscomp$524$$,$meta77233$$){this.$frame_id$=$frame_id$jscomp$135$$;this.index=$index$jscomp$524$$;this.$meta77233$=$meta77233$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5474$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_remove_frame_grid$$},$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_77234$$,$meta77233__$1$$){return new $app$main$data$workspace$grid$remove_frame_grid_77232$$(this.$frame_id$,this.index,$meta77233__$1$$)},$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta77233$},$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$remove_frame_grid_77232$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$7122$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$self__$jscomp$7122$$.$frame_id$],null),function($o$jscomp$276$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($o$jscomp$276$$,$APP.$cljs$cst$2035$grids$$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__77229_SHARP_$$){return $APP.$app$common$data$remove_at_index$$($p1__77229_SHARP_$$,$self__$jscomp$7122$$.index)},$APP.$cljs$core$PersistentVector$EMPTY$$))}))});return new $app$main$data$workspace$grid$remove_frame_grid_77232$$($frame_id$jscomp$134$$,$index$jscomp$523$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid$set_frame_grid$$=function($frame_id$jscomp$136$$,$index$jscomp$525$$,$data$jscomp$475$$){typeof $app$main$data$workspace$grid$set_frame_grid_77238$$==="undefined"&&($app$main$data$workspace$grid$set_frame_grid_77238$$=function($frame_id$jscomp$137$$,$index$jscomp$526$$,$data$jscomp$476$$,$meta77239$$){this.$frame_id$=$frame_id$jscomp$137$$;this.index=$index$jscomp$526$$;this.data=$data$jscomp$476$$;this.$meta77239$=$meta77239$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5475$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_set_frame_grid$$},$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_77240$$,$meta77239__$1$$){return new $app$main$data$workspace$grid$set_frame_grid_77238$$(this.$frame_id$,
this.index,this.data,$meta77239__$1$$)},$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta77239$},$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$set_frame_grid_77238$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$7126$$=this;return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$self__$jscomp$7126$$.$frame_id$],null),function($p1__77237_SHARP_$$){return $APP.$cljs$core$assoc_in$$($p1__77237_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2035$grids$$,$self__$jscomp$7126$$.index],null),$self__$jscomp$7126$$.data)}))});return new $app$main$data$workspace$grid$set_frame_grid_77238$$($frame_id$jscomp$136$$,$index$jscomp$525$$,$data$jscomp$475$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$grid$set_default_grid$$=function($type$jscomp$640$$,$params$jscomp$416$$){typeof $app$main$data$workspace$grid$set_default_grid_77241$$==="undefined"&&($app$main$data$workspace$grid$set_default_grid_77241$$=function($type$jscomp$641$$,$params$jscomp$417$$,$meta77242$$){this.type=$type$jscomp$641$$;this.params=$params$jscomp$417$$;this.$meta77242$=$meta77242$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5476$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_set_default_grid$$},$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_77243$$,$meta77242__$1$$){return new $app$main$data$workspace$grid$set_default_grid_77241$$(this.type,this.params,$meta77242__$1$$)},$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta77242$},$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid$set_default_grid_77241$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$,$page_id$jscomp$inline_8641_state$jscomp$1086$$){$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$=
$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$inline_8641_state$jscomp$1086$$);var $changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$=$APP.$app$common$files$changes_builder$with_page$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$);$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$=
this.type;var $params$jscomp$inline_8640$$=this.params;$page_id$jscomp$inline_8641_state$jscomp$1086$$=$APP.$cljs$cst$3117$app_DOT_common_DOT_files_DOT_changes_builder_SLASH_page_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$));var $old_val$jscomp$inline_8643_page$jscomp$inline_8642$$=$APP.$cljs$cst$3118$app_DOT_common_DOT_files_DOT_changes_builder_SLASH_page$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$));
$old_val$jscomp$inline_8643_page$jscomp$inline_8642$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_val$jscomp$inline_8643_page$jscomp$inline_8642$$,$APP.$cljs$cst$2035$grids$$),$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$);$changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$,
$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2552$set_default_grid$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$inline_8641_state$jscomp$1086$$,$APP.$cljs$cst$2553$grid_type$$,$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$,$APP.$cljs$cst$1419$params$$,$params$jscomp$inline_8640$$],null));$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$=
$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$inline_8638_changes__$1$jscomp$inline_8644$$,$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2552$set_default_grid$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$inline_8641_state$jscomp$1086$$,$APP.$cljs$cst$2553$grid_type$$,$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$,
$APP.$cljs$cst$1419$params$$,$old_val$jscomp$inline_8643_page$jscomp$inline_8642$$],null));$JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($JSCompiler_inline_result$jscomp$1621_changes__$2$jscomp$inline_8645_it$jscomp$252_page$jscomp$154_type$jscomp$inline_8639$$))});
return new $app$main$data$workspace$grid$set_default_grid_77241$$($type$jscomp$640$$,$params$jscomp$416$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$workspace$sidebar$options$menus$frame_grid$get_size_options$$=function(){return new $APP.$cljs$core$PersistentVector$$(null,10,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,null,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.auto")],null),$APP.$cljs$cst$1461$separator$$,18,12,10,8,6,4,3,2],null)};
$app$main$ui$workspace$sidebar$options$menus$frame_grid$frame_grid$$=function($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$){$map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$=$APP.$rumext$v2$util$wrap_props$$($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$);$map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$=$APP.$cljs$core$__destructure_map$$($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$);var $shape$jscomp$985$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$,
$APP.$cljs$cst$1795$shape$$),$state_STAR_$jscomp$23$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$23$$);var $frame_grids$$=$APP.$cljs$cst$2035$grids$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$985$$),$has_frame_grids_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$frame_grids$$)||$APP.$cljs$core$seq$$($frame_grids$$)!=
null,$toggle_content$jscomp$14$$=$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$($state_STAR_$jscomp$23$$,$APP.$cljs$core$not$$)}),$id$jscomp$926$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$985$$),$default_grids$jscomp$1$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$options$menus$frame_grid$lens_COLON_default_grids$$),$default_grid_params$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($default_grids$jscomp$1$$)],
function(){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$grid$default_grid_params$$,$default_grids$jscomp$1$$]))}),$handle_create_grid$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$926$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid$add_frame_grid$$($id$jscomp$926$$))});
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_frame_grids_QMARK_$$,collapsed:$APP.$cljs$core$not$$($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$),onCollapsed:$toggle_content$jscomp$14$$,className:$has_frame_grids_QMARK_$$?
"":"main_ui_workspace_sidebar_options_menus_frame_grid__title-spacing-board-grid",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.guides.title"),children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.guides.add-guide"),onClick:$handle_create_grid$$,icon:"add"})})}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$)?
$APP.$cljs$core$seq$$($frame_grids$$):$map__77266_map__77266__$1_open_QMARK_$jscomp$27_props_77265$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__element-set-content",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$194$$,$grid$jscomp$12_p__77267$$){var $index$jscomp$528$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($grid$jscomp$12_p__77267$$,0,null);$grid$jscomp$12_p__77267$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($grid$jscomp$12_p__77267$$,1,null);$out_arr__44057__auto__$jscomp$194$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$frame_grid$grid_options$$,{"shape-id":$id$jscomp$926$$,grid:$grid$jscomp$12_p__77267$$,index:$index$jscomp$528$$,"frame-width":$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$985$$),"frame-height":$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$985$$),
"default-grid-params":$default_grid_params$jscomp$1$$},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$926$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$528$$)].join("")));return $out_arr__44057__auto__$jscomp$194$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$frame_grids$$))}):null]})};
$app$main$ui$workspace$sidebar$options$shapes$frame$options_STAR_$$=function($props_77275_shape_type$jscomp$6$$){var $shapes_with_children$jscomp$1$$=$props_77275_shape_type$jscomp$6$$.shapesWithChildren,$file_id$jscomp$376$$=$props_77275_shape_type$jscomp$6$$.fileId,$libraries$jscomp$144$$=$props_77275_shape_type$jscomp$6$$.libraries,$page_id$jscomp$397$$=$props_77275_shape_type$jscomp$6$$.pageId,$shape$jscomp$986$$=$props_77275_shape_type$jscomp$6$$.shape,$shape_id$jscomp$157$$=$shape$jscomp$986$$?.id??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$986$$,$APP.$cljs$cst$266$id$$);$props_77275_shape_type$jscomp$6$$=$shape$jscomp$986$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$986$$,$APP.$cljs$cst$139$type$$);var $ids$jscomp$293$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$157$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape_id$jscomp$157$$],null)}),$shapes$jscomp$210$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$986$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape$jscomp$986$$],null)}),$applied_tokens$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$986$$,$APP.$cljs$cst$1857$applied_tokens$$),$stroke_values$jscomp$2$$=$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,
$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$jscomp$2$$=$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$measure_values$jscomp$2$$=$app$main$ui$workspace$sidebar$options$menus$measures$select_measure_keys$$($shape$jscomp$986$$),$constraint_values$jscomp$2$$=$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_container_values$jscomp$2$$=
$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),$layout_item_values$jscomp$2$$=$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$293$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$293$$)}),
$is_layout_child_QMARK_$jscomp$3$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$);$is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$293$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$293$$)});$is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$=
$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$);var $is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$293$$)],function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$293$$)}),$is_grid_parent_QMARK_$jscomp$3$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$);
$is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$293$$)],function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$293$$)});$is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$);var $is_layout_container_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$986$$),
$is_flex_layout_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$986$$),$is_grid_layout_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$986$$),$is_layout_child_absolute_QMARK_$jscomp$2$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$986$$),$is_variant_QMARK_$jscomp$4$$=$APP.$app$common$types$component$is_variant_container_QMARK_$$($shape$jscomp$986$$);
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{ids:$ids$jscomp$293$$,type:$props_77275_shape_type$jscomp$6$$,appliedTokens:$applied_tokens$jscomp$23$$,values:$layer_values$jscomp$2$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,{ids:$ids$jscomp$293$$,appliedTokens:$applied_tokens$jscomp$23$$,values:$measure_values$jscomp$2$$,
type:$props_77275_shape_type$jscomp$6$$,shapes:$shapes$jscomp$210$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_menu_STAR_$$,{shapes:$shapes$jscomp$210$$}),$APP.$cljs$core$truth_$$($is_variant_QMARK_$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_variant_main_STAR_$$,{shapes:$shapes$jscomp$210$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,
{type:$props_77275_shape_type$jscomp$6$$,ids:$ids$jscomp$293$$,"applied-tokens":$applied_tokens$jscomp$23$$,values:$layout_container_values$jscomp$2$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$769$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$293$$),1);return $and__5023__auto__$jscomp$769$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$3$$)?$is_grid_parent_QMARK_$jscomp$3$$:$is_layout_child_QMARK_$jscomp$3$$:
$and__5023__auto__$jscomp$769$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,{shape:$APP.$cljs$core$first$$($is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($is_grid_parent_ref$jscomp$2_parents$jscomp$15_parents_by_ids_ref$jscomp$2$$),$APP.$cljs$core$first$$($ids$jscomp$293$$))}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$3$$)?
$is_layout_child_QMARK_$jscomp$3$$:$is_layout_container_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$3_is_flex_parent_ref$jscomp$2_is_layout_child_ref$jscomp$2$$,"is-grid-layout?":$is_grid_layout_QMARK_$jscomp$1$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$3$$,ids:$ids$jscomp$293$$,type:$props_77275_shape_type$jscomp$6$$,values:$layout_item_values$jscomp$2$$,shape:$shape$jscomp$986$$,
"applied-tokens":$applied_tokens$jscomp$23$$,"is-flex-layout?":$is_flex_layout_QMARK_$jscomp$1$$,"is-layout-child?":$is_layout_child_QMARK_$jscomp$3$$,"is-layout-container?":$is_layout_container_QMARK_$jscomp$1$$}):null,!$is_layout_child_QMARK_$jscomp$3$$||$is_layout_child_absolute_QMARK_$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$293$$,values:$constraint_values$jscomp$2$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,
{ids:$ids$jscomp$293$$,type:$props_77275_shape_type$jscomp$6$$,values:$shape$jscomp$986$$,appliedTokens:$applied_tokens$jscomp$23$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$293$$,type:$props_77275_shape_type$jscomp$6$$,values:$stroke_values$jscomp$2$$,"applied-tokens":$applied_tokens$jscomp$23$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$color_selection$color_selection_menu_STAR_$$,{type:$props_77275_shape_type$jscomp$6$$,
shapes:$shapes_with_children$jscomp$1$$,fileId:$file_id$jscomp$376$$,libraries:$libraries$jscomp$144$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$293$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$986$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{ids:$ids$jscomp$293$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$frame_grid$frame_grid$$,{shape:$shape$jscomp$986$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$APP.$cljs$core$type$$,ids:$ids$jscomp$293$$,shapes:$shapes$jscomp$210$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$986$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),
pageId:$page_id$jscomp$397$$,fileId:$file_id$jscomp$376$$})]})};$app$util$text$ui$closest_text_editor_content$$=function($target$jscomp$153$$){return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?$target$jscomp$153$$.closest('[data-itype\x3d"editor"]'):$target$jscomp$153$$.closest(".public-DraftEditor-content")};
$app$main$ui$workspace$sidebar$options$menus$text$text_align_options$$=function($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$){$map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$=$APP.$rumext$v2$util$wrap_props$$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$);$map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$);
var $handle_change$jscomp$12_values$jscomp$95$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$,$APP.$cljs$cst$299$values$$),$on_change$jscomp$75$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$,$APP.$cljs$cst$4041$on_change$$),$on_blur$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$,
$APP.$cljs$cst$4870$on_blur$$);$map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($handle_change$jscomp$12_values$jscomp$95$$);$map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$,$APP.$cljs$cst$1747$text_align$$);$handle_change$jscomp$12_values$jscomp$95$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$75$$),
$APP.$rumext$v2$adapt$$($on_blur$jscomp$26$$)],function($G__77279_77300_value$jscomp$896$$){$G__77279_77300_value$jscomp$896$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1747$text_align$$,$G__77279_77300_value$jscomp$896$$],null);$on_change$jscomp$75$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$75$$.$cljs$core$IFn$_invoke$arity$1$($G__77279_77300_value$jscomp$896$$):$on_change$jscomp$75$$($G__77279_77300_value$jscomp$896$$);return $on_blur$jscomp$26$$!=null?$on_blur$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$?
$on_blur$jscomp$26$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$26$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__align-options",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$map__77277_map__77277__$1_map__77278__$1_props_77276_text_align$jscomp$3$$,"on-change":$handle_change$jscomp$12_values$jscomp$95$$,name:"align-text-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"left",id:"text-align-left",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.text-align-left"),icon:"text-align-left"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",id:"text-align-center",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.text-align-center"),icon:"text-align-center"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"right",id:"text-align-right",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.text-align-right"),icon:"text-align-right"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"justify",id:"text-align-justify",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.text-align-justify"),icon:"text-justify"})]})})};
$app$main$ui$workspace$sidebar$options$menus$text$text_direction_options$$=function($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$){$handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$=$APP.$rumext$v2$util$wrap_props$$($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$);$handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$=$APP.$cljs$core$__destructure_map$$($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$);var $values$jscomp$96$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$,$APP.$cljs$cst$299$values$$),$on_change$jscomp$76$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$,$APP.$cljs$cst$4041$on_change$$),$on_blur$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$,$APP.$cljs$cst$4870$on_blur$$),$direction$jscomp$28$$=
$APP.$cljs$cst$1748$text_direction$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$96$$);$handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$27$$),$APP.$rumext$v2$adapt$$($direction$jscomp$28$$)],function($G__77282_77301_dir$jscomp$8_value$jscomp$897$$){$G__77282_77301_dir$jscomp$8_value$jscomp$897$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77282_77301_dir$jscomp$8_value$jscomp$897$$,
$direction$jscomp$28$$)?"none":$G__77282_77301_dir$jscomp$8_value$jscomp$897$$;$G__77282_77301_dir$jscomp$8_value$jscomp$897$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1748$text_direction$$,$G__77282_77301_dir$jscomp$8_value$jscomp$897$$],null);$on_change$jscomp$76$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$76$$.$cljs$core$IFn$_invoke$arity$1$($G__77282_77301_dir$jscomp$8_value$jscomp$897$$):$on_change$jscomp$76$$($G__77282_77301_dir$jscomp$8_value$jscomp$897$$);return $on_blur$jscomp$27$$!=
null?$on_blur$jscomp$27$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$27$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$27$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__text-direction-options",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$direction$jscomp$28$$,"on-change":$handle_change$jscomp$13_map__77281_map__77281__$1_props_77280$$,name:"text-direction-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{value:"ltr",type:"checkbox",id:"ltr-text-direction",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.direction-ltr"),icon:"text-ltr"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"rtl",type:"checkbox",id:"rtl-text-direction",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.direction-rtl"),icon:"text-rtl"})]})})};
$app$main$ui$workspace$sidebar$options$menus$text$vertical_align$$=function($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$){$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$=$APP.$rumext$v2$util$wrap_props$$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$);$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$=$APP.$cljs$core$__destructure_map$$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$);
var $handle_change$jscomp$14_values$jscomp$97$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$,$APP.$cljs$cst$299$values$$),$on_change$jscomp$77$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$,$APP.$cljs$cst$4041$on_change$$),$on_blur$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$,
$APP.$cljs$cst$4870$on_blur$$);$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$=$APP.$cljs$core$__destructure_map$$($handle_change$jscomp$14_values$jscomp$97$$);$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$,$APP.$cljs$cst$1751$vertical_align$$);$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$=
$APP.$cljs$core$truth_$$($map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$)?$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$:"top";$handle_change$jscomp$14_values$jscomp$97$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$77$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$28$$)],function($G__77286_77302_value$jscomp$898$$){$G__77286_77302_value$jscomp$898$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1751$vertical_align$$,$G__77286_77302_value$jscomp$898$$],null);$on_change$jscomp$77$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$77$$.$cljs$core$IFn$_invoke$arity$1$($G__77286_77302_value$jscomp$898$$):$on_change$jscomp$77$$($G__77286_77302_value$jscomp$898$$);return $on_blur$jscomp$28$$!=null?$on_blur$jscomp$28$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$28$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$28$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__vertical-align-options",
children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$map__77284_map__77284__$1_map__77285__$1_props_77283_vertical_align__$1_vertical_align__$2$$,"on-change":$handle_change$jscomp$14_values$jscomp$97$$,name:"vertical-align-text-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"top",id:"vertical-text-align-top",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.align-top"),
icon:"text-top"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"center",id:"vertical-text-align-center",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.align-middle"),icon:"text-middle"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"bottom",id:"vertical-text-align-bottom",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.align-bottom"),
icon:"text-bottom"})]})})};
$app$main$ui$workspace$sidebar$options$menus$text$grow_options$$=function($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$){$grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$=$APP.$rumext$v2$util$wrap_props$$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$);$grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$=$APP.$cljs$core$__destructure_map$$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$);var $ids$jscomp$294$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$,$APP.$cljs$cst$1707$ids$$),
$handle_change_grow_values$jscomp$98$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$,$APP.$cljs$cst$299$values$$),$on_blur$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$,$APP.$cljs$cst$4870$on_blur$$);$grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$=$APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($handle_change_grow_values$jscomp$98$$);
var $editor_instance$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor$$);$handle_change_grow_values$jscomp$98$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$294$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$29$$),$APP.$rumext$v2$adapt$$($editor_instance$jscomp$4$$)],function($content_77305_value$jscomp$899$$){$on_blur$jscomp$29$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$29$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$29$$();
var $uid_77303$$=Symbol(),$grow_type_77304__$1$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($content_77305_value$jscomp$899$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($uid_77303$$));$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))&&($content_77305_value$jscomp$899$$=$APP.$cljs$core$truth_$$($editor_instance$jscomp$4$$)?
$app$util$text$content$dom__GT_cljs$$((0,$APP.$app$main$data$workspace$texts$get_editor_root$$)($editor_instance$jscomp$4$$)):null,$content_77305_value$jscomp$899$$!=null&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$first$$($ids$jscomp$294$$),$content_77305_value$jscomp$899$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3876$finalize_QMARK_$$,
!0]))));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$294$$,function($p1__77287_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__77287_SHARP_$$,$APP.$cljs$cst$1754$grow_type$$,$grow_type_77304__$1$$)}));$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$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$wasm_text$resize_wasm_text_all$$($ids$jscomp$294$$));
$APP.$app$util$timers$schedule$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$workspace$undo$commit_undo_transaction$$($uid_77303$$))});return $on_blur$jscomp$29$$!=null?$on_blur$jscomp$29$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$29$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$29$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__grow-options",
children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($grow_type$jscomp$9_map__77289_map__77289__$1_props_77288$$),"on-change":$handle_change_grow_values$jscomp$98$$,name:"grow-text-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"fixed",id:"text-fixed-grow",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.grow-fixed"),
icon:"text-fixed"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"auto-width",id:"text-auto-width-grow",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.grow-auto-width"),icon:"text-auto-width"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"auto-height",id:"text-auto-height-grow",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.grow-auto-height"),
icon:"text-auto-height"})]})})};
$app$main$ui$workspace$sidebar$options$menus$text$text_decoration_options$$=function($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$){$handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$=$APP.$rumext$v2$util$wrap_props$$($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$);$handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$=$APP.$cljs$core$__destructure_map$$($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$);var $values$jscomp$99$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$,$APP.$cljs$cst$299$values$$),$on_change$jscomp$78$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$,$APP.$cljs$cst$4041$on_change$$),$on_blur$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$,$APP.$cljs$cst$4870$on_blur$$),$text_decoration$jscomp$4$$=
function(){var $or__5025__auto__$jscomp$1131$$=$APP.$cljs$cst$1752$text_decoration$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$99$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1131$$)?$or__5025__auto__$jscomp$1131$$:"none"}();$handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$78$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$30$$),$APP.$rumext$v2$adapt$$($text_decoration$jscomp$4$$)],
function($G__77292_77306_decoration_value$jscomp$900$$){$G__77292_77306_decoration_value$jscomp$900$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77292_77306_decoration_value$jscomp$900$$,$text_decoration$jscomp$4$$)?"none":$G__77292_77306_decoration_value$jscomp$900$$;$G__77292_77306_decoration_value$jscomp$900$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1752$text_decoration$$,$G__77292_77306_decoration_value$jscomp$900$$],null);$on_change$jscomp$78$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$78$$.$cljs$core$IFn$_invoke$arity$1$($G__77292_77306_decoration_value$jscomp$900$$):$on_change$jscomp$78$$($G__77292_77306_decoration_value$jscomp$900$$);return $on_blur$jscomp$30$$!=null?$on_blur$jscomp$30$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$30$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$30$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__text-decoration-options",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,
{selected:$text_decoration$jscomp$4$$,"on-change":$handle_change$jscomp$15_map__77291_map__77291__$1_props_77290$$,name:"text-decoration-options",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"underline",type:"checkbox",id:"underline-text-decoration",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.text-options.underline",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4600$underline$$)])),
icon:"text-underlined"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"line-through",type:"checkbox",id:"line-through-text-decoration",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.text-options.strikethrough",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4603$line_through$$)])),icon:"text-stroked"})]})})};
$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_eq$$=function($s1$jscomp$21$$,$s2$jscomp$18$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($s1$jscomp$21$$),$APP.$cljs$core$count$$($s2$jscomp$18$$))&&$APP.$cljs$core$every_QMARK_$$(function($p__77308_v2$jscomp$32$$){var $v1$jscomp$40$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77308_v2$jscomp$32$$,0,null);$p__77308_v2$jscomp$32$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77308_v2$jscomp$32$$,
1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$select_keys$$($v1$jscomp$40$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_keys$$),$APP.$cljs$core$select_keys$$($p__77308_v2$jscomp$32$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_keys$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$vector$$,$s1$jscomp$21$$,$s2$jscomp$18$$))};
$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_sel$$=function($v$jscomp$664$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77312_SHARP_$$){return $APP.$cljs$core$select_keys$$($p1__77312_SHARP_$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_keys$$)},$v$jscomp$664$$)};
$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_eq$$=function($v1$jscomp$41$$,$v2$jscomp$33$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$select_keys$$($v1$jscomp$41$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_keys$$),$APP.$cljs$core$select_keys$$($v2$jscomp$33$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_keys$$))};
$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_sel$$=function($v$jscomp$665$$){return $APP.$cljs$core$truth_$$($v$jscomp$665$$)?$APP.$cljs$core$select_keys$$($v$jscomp$665$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_keys$$):null};
$app$main$ui$workspace$sidebar$options$shapes$path$options_STAR_$$=function($props_77365_type$jscomp$647$$){var $file_id$jscomp$380$$=$props_77365_type$jscomp$647$$.fileId,$page_id$jscomp$400$$=$props_77365_type$jscomp$647$$.pageId,$shape$jscomp$991$$=$props_77365_type$jscomp$647$$.shape,$id$jscomp$931$$=$shape$jscomp$991$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$991$$,$APP.$cljs$cst$266$id$$);$props_77365_type$jscomp$647$$=$shape$jscomp$991$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$991$$,
$APP.$cljs$cst$139$type$$);var $ids$jscomp$298$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$931$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$931$$],null)}),$shapes$jscomp$214$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$991$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape$jscomp$991$$],null)}),$applied_tokens$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$991$$,$APP.$cljs$cst$1857$applied_tokens$$),$measure_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$stroke_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,
$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$constraint_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_item_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$jscomp$5$$=$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),
$is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$298$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$298$$)}),$is_layout_child_QMARK_$jscomp$6$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$);$is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$298$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$298$$)});$is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$);var $is_grid_parent_ref$jscomp$5_is_layout_child_absolute_QMARK_$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$298$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$298$$)}),$is_grid_parent_QMARK_$jscomp$6$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$5_is_layout_child_absolute_QMARK_$jscomp$4$$);$is_grid_parent_ref$jscomp$5_is_layout_child_absolute_QMARK_$jscomp$4$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$991$$);var $parents$jscomp$17_parents_by_ids_ref$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$298$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$298$$)});$parents$jscomp$17_parents_by_ids_ref$jscomp$4$$=$APP.$rumext$v2$deref$$($parents$jscomp$17_parents_by_ids_ref$jscomp$4$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{ids:$ids$jscomp$298$$,appliedTokens:$applied_tokens$jscomp$29$$,type:$props_77365_type$jscomp$647$$,values:$layer_values$jscomp$5$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,
{ids:$ids$jscomp$298$$,type:$props_77365_type$jscomp$647$$,appliedTokens:$applied_tokens$jscomp$29$$,values:$measure_values$jscomp$5$$,shapes:$shapes$jscomp$214$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77365_type$jscomp$647$$,ids:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$991$$)],null),values:$layout_container_values$jscomp$5$$,
"applied-tokens":$applied_tokens$jscomp$29$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$773$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$298$$),1);return $and__5023__auto__$jscomp$773$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$6$$)?$is_grid_parent_QMARK_$jscomp$6$$:$is_layout_child_QMARK_$jscomp$6$$:$and__5023__auto__$jscomp$773$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,
{shape:$APP.$cljs$core$first$$($parents$jscomp$17_parents_by_ids_ref$jscomp$4$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$17_parents_by_ids_ref$jscomp$4$$),$APP.$cljs$core$first$$($ids$jscomp$298$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$6$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$6_is_flex_parent_ref$jscomp$5_is_layout_child_ref$jscomp$5$$,
"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$6$$,ids:$ids$jscomp$298$$,type:$props_77365_type$jscomp$647$$,values:$layout_item_values$jscomp$5$$,shape:$shape$jscomp$991$$,"applied-tokens":$applied_tokens$jscomp$29$$,"is-layout-child?":!0,"is-layout-container?":!1}):null,!$is_layout_child_QMARK_$jscomp$6$$||$is_grid_parent_ref$jscomp$5_is_layout_child_absolute_QMARK_$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$298$$,
values:$constraint_values$jscomp$5$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{ids:$ids$jscomp$298$$,type:$props_77365_type$jscomp$647$$,values:$shape$jscomp$991$$,appliedTokens:$applied_tokens$jscomp$29$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$298$$,type:$props_77365_type$jscomp$647$$,"show-caps":!0,values:$stroke_values$jscomp$5$$,"applied-tokens":$applied_tokens$jscomp$29$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$298$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$991$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{ids:$ids$jscomp$298$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],
null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,{ids:$ids$jscomp$298$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77365_type$jscomp$647$$,ids:$ids$jscomp$298$$,shapes:$shapes$jscomp$214$$,
values:$APP.$cljs$core$select_keys$$($shape$jscomp$991$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),pageId:$page_id$jscomp$400$$,fileId:$file_id$jscomp$380$$})]})};
$app$main$ui$workspace$sidebar$options$shapes$rect$options_STAR_$$=function($props_77398_type$jscomp$648$$){var $file_id$jscomp$381$$=$props_77398_type$jscomp$648$$.fileId,$page_id$jscomp$401$$=$props_77398_type$jscomp$648$$.pageId,$shape$jscomp$992$$=$props_77398_type$jscomp$648$$.shape,$id$jscomp$932$$=$shape$jscomp$992$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$992$$,$APP.$cljs$cst$266$id$$);$props_77398_type$jscomp$648$$=$shape$jscomp$992$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$992$$,
$APP.$cljs$cst$139$type$$);var $ids$jscomp$299$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$932$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$932$$],null)}),$shapes$jscomp$215$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$992$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape$jscomp$992$$],null)}),$applied_tokens$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$992$$,$APP.$cljs$cst$1857$applied_tokens$$),$measure_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$stroke_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,
$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$constraint_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_item_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$jscomp$6$$=$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),
$is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$299$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$299$$)}),$is_layout_child_QMARK_$jscomp$7$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$);$is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$299$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$299$$)});$is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$);var $is_grid_parent_ref$jscomp$6_is_layout_child_absolute_QMARK_$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$299$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$299$$)}),$is_grid_parent_QMARK_$jscomp$7$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$6_is_layout_child_absolute_QMARK_$jscomp$5$$);$is_grid_parent_ref$jscomp$6_is_layout_child_absolute_QMARK_$jscomp$5$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$992$$);var $parents$jscomp$18_parents_by_ids_ref$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$299$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$299$$)});$parents$jscomp$18_parents_by_ids_ref$jscomp$5$$=$APP.$rumext$v2$deref$$($parents$jscomp$18_parents_by_ids_ref$jscomp$5$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{ids:$ids$jscomp$299$$,type:$props_77398_type$jscomp$648$$,appliedTokens:$applied_tokens$jscomp$30$$,values:$layer_values$jscomp$6$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,
{ids:$ids$jscomp$299$$,type:$props_77398_type$jscomp$648$$,values:$measure_values$jscomp$6$$,appliedTokens:$applied_tokens$jscomp$30$$,shapes:$shapes$jscomp$215$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77398_type$jscomp$648$$,ids:$ids$jscomp$299$$,values:$layout_container_values$jscomp$6$$,"applied-tokens":$applied_tokens$jscomp$30$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$774$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$299$$),1);return $and__5023__auto__$jscomp$774$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$7$$)?$is_grid_parent_QMARK_$jscomp$7$$:$is_layout_child_QMARK_$jscomp$7$$:$and__5023__auto__$jscomp$774$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,{shape:$APP.$cljs$core$first$$($parents$jscomp$18_parents_by_ids_ref$jscomp$5$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$18_parents_by_ids_ref$jscomp$5$$),
$APP.$cljs$core$first$$($ids$jscomp$299$$))}):null,$is_layout_child_QMARK_$jscomp$7$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{ids:$ids$jscomp$299$$,type:$props_77398_type$jscomp$648$$,values:$layout_item_values$jscomp$6$$,"is-layout-child?":!0,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$7_is_flex_parent_ref$jscomp$6_is_layout_child_ref$jscomp$6$$,"applied-tokens":$applied_tokens$jscomp$30$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$7$$,
shape:$shape$jscomp$992$$}):null,!$is_layout_child_QMARK_$jscomp$7$$||$is_grid_parent_ref$jscomp$6_is_layout_child_absolute_QMARK_$jscomp$5$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$299$$,values:$constraint_values$jscomp$6$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{ids:$ids$jscomp$299$$,type:$props_77398_type$jscomp$648$$,values:$shape$jscomp$992$$,appliedTokens:$applied_tokens$jscomp$30$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$299$$,type:$props_77398_type$jscomp$648$$,values:$stroke_values$jscomp$6$$,"applied-tokens":$applied_tokens$jscomp$30$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$299$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$992$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,
{ids:$ids$jscomp$299$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,{ids:$ids$jscomp$299$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],
null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77398_type$jscomp$648$$,ids:$ids$jscomp$299$$,shapes:$shapes$jscomp$215$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$992$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),pageId:$page_id$jscomp$401$$,fileId:$file_id$jscomp$381$$})]})};
$app$main$ui$workspace$sidebar$options$shapes$svg_raw$parse_color$$=function($color$jscomp$181$$){try{return $APP.$cljs$core$not$$($color$jscomp$181$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$181$$,"none")?null:$APP.$cuerdas$core$starts_with_QMARK_$$($color$jscomp$181$$,"url")?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1600$multiple$$],null):new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1284$color$$,$APP.$app$common$types$color$parse$$($color$jscomp$181$$),$APP.$cljs$cst$1718$opacity$$,1],null)}catch($e77399$$){return console.error("Error parsing color",$e77399$$),null}};
$app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_fill_values$$=function($shape$jscomp$993$$){var $fill_values$jscomp$2$$=$APP.$cljs$core$select_keys$$($shape$jscomp$993$$,$app$main$ui$workspace$sidebar$options$menus$fill$fill_attrs$$),$color$jscomp$182$$=$app$main$ui$workspace$sidebar$options$shapes$svg_raw$parse_color$$(function(){var $or__5025__auto__$jscomp$1133$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$993$$,new $APP.$cljs$core$PersistentVector$$(null,3,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1392$fill$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1133$$)?$or__5025__auto__$jscomp$1133$$:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$993$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$1392$fill$$],
null))}());return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$775$$=$APP.$cljs$core$empty_QMARK_$$($fill_values$jscomp$2$$);return $and__5023__auto__$jscomp$775$$?$color$jscomp$182$$:$and__5023__auto__$jscomp$775$$}())?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1730$fill_color$$,$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$182$$),$APP.$cljs$cst$1731$fill_opacity$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$182$$)],
null):$fill_values$jscomp$2$$};
$app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_stroke_values$$=function($shape$jscomp$994$$){var $stroke_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$994$$,$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$color$jscomp$183$$=$app$main$ui$workspace$sidebar$options$shapes$svg_raw$parse_color$$(function(){var $or__5025__auto__$jscomp$1134$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,3,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$2862$stroke$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1134$$)?$or__5025__auto__$jscomp$1134$$:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$2862$stroke$$],
null))}()),$stroke_color$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$183$$,"#000000"),$stroke_opacity$$=$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$183$$,1),$stroke_style$jscomp$4$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$(function(){var $or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1850$stroke_style$$],null));if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$))return $or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$;$or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$1850$stroke_style$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$)?$or__5025__auto__$jscomp$1135_or__5025__auto____$1$jscomp$121$$:$APP.$cljs$core$truth_$$($color$jscomp$183$$)?"solid":"none"}()),$stroke_width$jscomp$9$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1639$stroke_width$$],null));if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$))return $or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$;$or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$994$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$1639$stroke_width$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$)?$or__5025__auto__$jscomp$1136_or__5025__auto____$1$jscomp$122$$:"1"}());return $APP.$cljs$core$empty_QMARK_$$($stroke_values$jscomp$7$$)?
new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1723$stroke_color$$,$stroke_color$$,$APP.$cljs$cst$1724$stroke_opacity$$,$stroke_opacity$$,$APP.$cljs$cst$1850$stroke_style$$,$stroke_style$jscomp$4$$,$APP.$cljs$cst$1852$stroke_alignment$$,$APP.$cljs$cst$1651$center$$,$APP.$cljs$cst$1639$stroke_width$$,$stroke_width$jscomp$9$$],null):$stroke_values$jscomp$7$$};
$app$main$ui$workspace$sidebar$options$shapes$svg_raw$options_STAR_$$=function($props_77401_type$jscomp$649$$){var $file_id$jscomp$382$$=$props_77401_type$jscomp$649$$.fileId,$page_id$jscomp$402$$=$props_77401_type$jscomp$649$$.pageId,$shape$jscomp$995$$=$props_77401_type$jscomp$649$$.shape,$id$jscomp$933$$=$shape$jscomp$995$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$995$$,$APP.$cljs$cst$266$id$$);$props_77401_type$jscomp$649$$=$shape$jscomp$995$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$995$$,
$APP.$cljs$cst$139$type$$);var $ids$jscomp$300$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$933$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$933$$],null)}),$shapes$jscomp$216$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$995$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape$jscomp$995$$],null)}),$applied_tokens$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$995$$,$APP.$cljs$cst$1857$applied_tokens$$),$map__77402_map__77402__$1_tag$jscomp$92$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$995$$,$APP.$cljs$cst$1621$content$$);$map__77402_map__77402__$1_tag$jscomp$92$$=$APP.$cljs$core$__destructure_map$$($map__77402_map__77402__$1_tag$jscomp$92$$);$map__77402_map__77402__$1_tag$jscomp$92$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77402_map__77402__$1_tag$jscomp$92$$,
$APP.$cljs$cst$78$tag$$);var $fill_values$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$995$$)],function(){return $app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_fill_values$$($shape$jscomp$995$$)}),$stroke_values$jscomp$8$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$995$$)],function(){return $app$main$ui$workspace$sidebar$options$shapes$svg_raw$get_stroke_values$$($shape$jscomp$995$$)}),
$measure_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$constraint_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$),$layout_item_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,
$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),$is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$300$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$300$$)}),$is_layout_child_QMARK_$jscomp$8$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$);
$is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$300$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$300$$)});$is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$);var $is_grid_parent_ref$jscomp$7_is_layout_child_absolute_QMARK_$jscomp$6$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$300$$)],function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$300$$)}),$is_grid_parent_QMARK_$jscomp$8$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$7_is_layout_child_absolute_QMARK_$jscomp$6$$);$is_grid_parent_ref$jscomp$7_is_layout_child_absolute_QMARK_$jscomp$6$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$995$$);
var $parents$jscomp$19_parents_by_ids_ref$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$300$$)],function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$300$$)});$parents$jscomp$19_parents_by_ids_ref$jscomp$6$$=$APP.$rumext$v2$deref$$($parents$jscomp$19_parents_by_ids_ref$jscomp$6$$);return $APP.$cljs$core$contains_QMARK_$$($app$main$ui$workspace$sidebar$options$shapes$svg_raw$svg_elements$$,$map__77402_map__77402__$1_tag$jscomp$92$$)?
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,{ids:$ids$jscomp$300$$,type:$props_77401_type$jscomp$649$$,appliedTokens:$applied_tokens$jscomp$31$$,values:$measure_values$jscomp$7$$,shapes:$shapes$jscomp$216$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77401_type$jscomp$649$$,ids:new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$995$$)],null),values:$layout_container_values$jscomp$7$$,"applied-tokens":$applied_tokens$jscomp$31$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$776$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$300$$),1);return $and__5023__auto__$jscomp$776$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$8$$)?
$is_grid_parent_QMARK_$jscomp$8$$:$is_layout_child_QMARK_$jscomp$8$$:$and__5023__auto__$jscomp$776$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,{shape:$APP.$cljs$core$first$$($parents$jscomp$19_parents_by_ids_ref$jscomp$6$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$19_parents_by_ids_ref$jscomp$6$$),$APP.$cljs$core$first$$($ids$jscomp$300$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$8$$)?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{ids:$ids$jscomp$300$$,type:$props_77401_type$jscomp$649$$,values:$layout_item_values$jscomp$7$$,"is-layout-child?":!0,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$8_is_flex_parent_ref$jscomp$7_is_layout_child_ref$jscomp$7$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$8$$,"applied-tokens":$applied_tokens$jscomp$31$$,shape:$shape$jscomp$995$$}):null,!$is_layout_child_QMARK_$jscomp$8$$||$is_grid_parent_ref$jscomp$7_is_layout_child_absolute_QMARK_$jscomp$6$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$ids$jscomp$300$$,values:$constraint_values$jscomp$7$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{ids:$ids$jscomp$300$$,type:$props_77401_type$jscomp$649$$,values:$fill_values$jscomp$3$$,appliedTokens:$applied_tokens$jscomp$31$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$300$$,
type:$props_77401_type$jscomp$649$$,values:$stroke_values$jscomp$8$$,"applied-tokens":$applied_tokens$jscomp$31$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$300$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$995$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{ids:$ids$jscomp$300$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,{ids:$ids$jscomp$300$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,
{type:$props_77401_type$jscomp$649$$,ids:$ids$jscomp$300$$,shapes:$shapes$jscomp$216$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$995$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),pageId:$page_id$jscomp$402$$,fileId:$file_id$jscomp$382$$})]}):null};
$app$main$ui$workspace$sidebar$options$shapes$text$options_STAR_$$=function($props_77400_type$jscomp$650$$){var $file_id$jscomp$383$$=$props_77400_type$jscomp$650$$.fileId,$libraries$jscomp$148$$=$props_77400_type$jscomp$650$$.libraries,$page_id$jscomp$403$$=$props_77400_type$jscomp$650$$.pageId,$shape$jscomp$996$$=$props_77400_type$jscomp$650$$.shape,$id$jscomp$934$$=$shape$jscomp$996$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$996$$,$APP.$cljs$cst$266$id$$);$props_77400_type$jscomp$650$$=
$shape$jscomp$996$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$996$$,$APP.$cljs$cst$139$type$$);var $ids$jscomp$301$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$934$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$934$$],null)}),$shapes$jscomp$217$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$996$$)],
function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape$jscomp$996$$],null)}),$applied_tokens$jscomp$32$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$996$$,$APP.$cljs$cst$1857$applied_tokens$$),$measure_values$jscomp$8$$=$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$),$stroke_values$jscomp$9$$=$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,
$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$),$layer_values$jscomp$7$$=$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$),$layout_item_values$jscomp$8$$=$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$),$layout_container_values$jscomp$8$$=$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),
$is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$301$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$301$$)}),$is_layout_child_QMARK_$jscomp$9$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$);$is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$301$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$301$$)});$is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$);var $is_grid_parent_ref$jscomp$8_is_layout_child_absolute_QMARK_$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$301$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$301$$)}),$is_grid_parent_QMARK_$jscomp$9$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$8_is_layout_child_absolute_QMARK_$jscomp$7$$);$is_grid_parent_ref$jscomp$8_is_layout_child_absolute_QMARK_$jscomp$7$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$996$$);var $parents$jscomp$20_parents_by_ids_ref$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$301$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$301$$)});$parents$jscomp$20_parents_by_ids_ref$jscomp$7$$=$APP.$rumext$v2$deref$$($parents$jscomp$20_parents_by_ids_ref$jscomp$7$$);var $fill_values$jscomp$4_state_map$jscomp$1$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_v2_editor_state$$):$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$),
$editor_state$jscomp$9_text_values$jscomp$5$$=$APP.$cljs$core$not$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fill_values$jscomp$4_state_map$jscomp$1$$,$id$jscomp$934$$):null,$editor_instance$jscomp$5$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor$$):
null;$fill_values$jscomp$4_state_map$jscomp$1$$=$APP.$app$main$data$workspace$texts$current_text_values$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$3848$editor_state$$,$editor_state$jscomp$9_text_values$jscomp$5$$,$APP.$cljs$cst$3847$editor_instance$$,$editor_instance$jscomp$5$$,$APP.$cljs$cst$1795$shape$$,$shape$jscomp$996$$,$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$text$text_fill_attrs$$,$APP.$cljs$cst$1618$fills$$)],
null));$editor_state$jscomp$9_text_values$jscomp$5$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1754$grow_type$$],null)),$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$fill$fill_attrs$$),$APP.$app$main$data$workspace$texts$current_root_values$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1795$shape$$,$shape$jscomp$996$$,$APP.$cljs$cst$2595$attrs$$,$APP.$app$common$types$text$text_valign_attrs$$],null)),$APP.$app$main$data$workspace$texts$current_paragraph_values$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$3848$editor_state$$,$editor_state$jscomp$9_text_values$jscomp$5$$,$APP.$cljs$cst$3847$editor_instance$$,$editor_instance$jscomp$5$$,$APP.$cljs$cst$1795$shape$$,$shape$jscomp$996$$,$APP.$cljs$cst$2595$attrs$$,$APP.$app$common$types$text$paragraph_attrs$$],
null)),$APP.$app$main$data$workspace$texts$current_text_values$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$3848$editor_state$$,$editor_state$jscomp$9_text_values$jscomp$5$$,$APP.$cljs$cst$3847$editor_instance$$,$editor_instance$jscomp$5$$,$APP.$cljs$cst$1795$shape$$,$shape$jscomp$996$$,$APP.$cljs$cst$2595$attrs$$,$APP.$app$common$types$text$text_node_attrs$$],null))]));return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,
{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,appliedTokens:$applied_tokens$jscomp$32$$,values:$layer_values$jscomp$7$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,values:$measure_values$jscomp$8$$,appliedTokens:$applied_tokens$jscomp$32$$,shapes:$shapes$jscomp$217$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,
{type:$props_77400_type$jscomp$650$$,ids:$ids$jscomp$301$$,values:$layout_container_values$jscomp$8$$,"applied-tokens":$applied_tokens$jscomp$32$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$777$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$301$$),1);return $and__5023__auto__$jscomp$777$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$9$$)?$is_grid_parent_QMARK_$jscomp$9$$:$is_layout_child_QMARK_$jscomp$9$$:
$and__5023__auto__$jscomp$777$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,{shape:$APP.$cljs$core$first$$($parents$jscomp$20_parents_by_ids_ref$jscomp$7$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$20_parents_by_ids_ref$jscomp$7$$),$APP.$cljs$core$first$$($ids$jscomp$301$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$9$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,
{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,values:$layout_item_values$jscomp$8$$,"is-layout-child?":!0,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$9_is_flex_parent_ref$jscomp$8_is_layout_child_ref$jscomp$8$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$9$$,"applied-tokens":$applied_tokens$jscomp$32$$,shape:$shape$jscomp$996$$}):null,!$is_layout_child_QMARK_$jscomp$9$$||$is_grid_parent_ref$jscomp$8_is_layout_child_absolute_QMARK_$jscomp$7$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,
{ids:$ids$jscomp$301$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$)}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$text$text_menu$$,{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,values:$editor_state$jscomp$9_text_values$jscomp$5$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,
values:$fill_values$jscomp$4_state_map$jscomp$1$$,appliedTokens:$applied_tokens$jscomp$32$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{ids:$ids$jscomp$301$$,type:$props_77400_type$jscomp$650$$,values:$stroke_values$jscomp$9$$,"disable-stroke-style":!0,"applied-tokens":$applied_tokens$jscomp$32$$}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($fill_values$jscomp$4_state_map$jscomp$1$$))?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$color_selection$color_selection_menu_STAR_$$,{type:$props_77400_type$jscomp$650$$,shapes:$shapes$jscomp$217$$,fileId:$file_id$jscomp$383$$,libraries:$libraries$jscomp$148$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{ids:$ids$jscomp$301$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$996$$,$APP.$cljs$cst$1638$shadow$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,
{ids:$ids$jscomp$301$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null))}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77400_type$jscomp$650$$,ids:$ids$jscomp$301$$,shapes:$shapes$jscomp$217$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$996$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),
pageId:$page_id$jscomp$403$$,fileId:$file_id$jscomp$383$$})]})};
$app$main$ui$workspace$sidebar$options$single_shape_options_STAR_$$=function($props_77403_shape_type$jscomp$7$$){var $file_id$jscomp$384$$=void 0,$libraries$jscomp$149$$=void 0,$page_id$jscomp$404$$=void 0,$shape$jscomp$997_shape__$1$jscomp$108$$=void 0,$props$jscomp$335_props__$1$jscomp$79$$=void 0;({shape:$shape$jscomp$997_shape__$1$jscomp$108$$,pageId:$page_id$jscomp$404$$,fileId:$file_id$jscomp$384$$,libraries:$libraries$jscomp$149$$,...$props$jscomp$335_props__$1$jscomp$79$$}=$props_77403_shape_type$jscomp$7$$);
$props_77403_shape_type$jscomp$7$$=$shape$jscomp$997_shape__$1$jscomp$108$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$997_shape__$1$jscomp$108$$,$APP.$cljs$cst$139$type$$);var $modifiers__$1$jscomp$17_shape_id$jscomp$159$$=$shape$jscomp$997_shape__$1$jscomp$108$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$997_shape__$1$jscomp$108$$,$APP.$cljs$cst$266$id$$),$modifiers$jscomp$112$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_modifiers$$);
$modifiers__$1$jscomp$17_shape_id$jscomp$159$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$112$$,$modifiers__$1$jscomp$17_shape_id$jscomp$159$$),$APP.$cljs$cst$1794$modifiers$$);$shape$jscomp$997_shape__$1$jscomp$108$$=$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$997_shape__$1$jscomp$108$$,$modifiers__$1$jscomp$17_shape_id$jscomp$159$$);$props$jscomp$335_props__$1$jscomp$79$$=
{...$props$jscomp$335_props__$1$jscomp$79$$,shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$,libraries:$libraries$jscomp$149$$};switch($props_77403_shape_type$jscomp$7$$ instanceof $APP.$cljs$core$Keyword$$?$props_77403_shape_type$jscomp$7$$.$fqn$:null){case "frame":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$shapes$frame$options_STAR_$$,$props$jscomp$335_props__$1$jscomp$79$$);case "group":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$shapes$group$options_STAR_$$,
$props$jscomp$335_props__$1$jscomp$79$$);case "text":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$text$options_STAR_$$,{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$,libraries:$libraries$jscomp$149$$});case "rect":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$rect$options_STAR_$$,{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$});
case "circle":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$circle$options_STAR_$$,{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$});case "path":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$path$options_STAR_$$,{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$});case "svg-raw":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$svg_raw$options_STAR_$$,
{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$});case "bool":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$bool$options_STAR_$$,{shape:$shape$jscomp$997_shape__$1$jscomp$108$$,fileId:$file_id$jscomp$384$$,pageId:$page_id$jscomp$404$$});default:return null}};
$app$main$ui$workspace$sidebar$options$specialized_panel_STAR_$$=function($panel$jscomp$2_props_77407$$){$panel$jscomp$2_props_77407$$=$panel$jscomp$2_props_77407$$.panel;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($panel$jscomp$2_props_77407$$),$APP.$cljs$cst$3800$component_swap$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_menu_STAR_$$,{shapes:$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($panel$jscomp$2_props_77407$$),
isSwapOpened:!0}):null};
$app$main$ui$workspace$sidebar$options$design_menu_STAR_$$=function($page_id$jscomp$406_props_77409$$){var $shapes$jscomp$219$$=$page_id$jscomp$406_props_77409$$.shapes,$selected$jscomp$167$$=$page_id$jscomp$406_props_77409$$.selected,$file_id$jscomp$386$$=$page_id$jscomp$406_props_77409$$.fileId,$objects$jscomp$772$$=$page_id$jscomp$406_props_77409$$.objects;$page_id$jscomp$406_props_77409$$=$page_id$jscomp$406_props_77409$$.pageId;var $sp_panel$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$specialized_panel$$),$drawing$jscomp$3$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_drawing$$),$edition$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_edition$$),$files$jscomp$28$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$libraries$jscomp$151$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$28$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$386$$)],function(){return $APP.$app$main$refs$select_libraries$$($files$jscomp$28$$,$file_id$jscomp$386$$)}),
$edit_grid_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$772$$),$APP.$rumext$v2$adapt$$($edition$jscomp$6$$)],function(){return $APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$772$$,$edition$jscomp$6$$)}),$grid_edition_selected_cells$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_grid_edition$$);$grid_edition_selected_cells$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77408_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$772$$,
$edition$jscomp$6$$),$APP.$cljs$cst$1680$layout_grid_cells$$),$p1__77408_SHARP_$$)},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition_selected_cells$$,$edition$jscomp$6$$),$APP.$cljs$cst$1906$selected$$));var $shapes_with_children_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$167$$),$APP.$rumext$v2$adapt$$($objects$jscomp$772$$),
$APP.$rumext$v2$adapt$$($shapes$jscomp$219$$)],function(){$APP.$cljs$core$reset_BANG_$$($shapes_with_children_STAR_$$,null);a:{var $G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentQueue$EMPTY$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$selected$jscomp$167$$);for(var $G__77476$jscomp$inline_8666_G__77490$jscomp$inline_8668_visited$jscomp$inline_8660$$=
$selected$jscomp$167$$;;){var $children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$=$APP.$cljs$core$peek$$($G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$);if($APP.$cljs$core$truth_$$($children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$))$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$772$$,$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$),$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$=$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$),
$APP.$cljs$core$seq$$($children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$)?($children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($G__77476$jscomp$inline_8666_G__77490$jscomp$inline_8668_visited$jscomp$inline_8660$$,$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$),
$G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$pop$$($G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$),$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$),$G__77476$jscomp$inline_8666_G__77490$jscomp$inline_8668_visited$jscomp$inline_8660$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($G__77476$jscomp$inline_8666_G__77490$jscomp$inline_8668_visited$jscomp$inline_8660$$,
$children$jscomp$inline_8663_new_children$jscomp$inline_8664_shape$jscomp$inline_8662_temp__5823__auto__$jscomp$inline_8661$$)):$G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$=$APP.$cljs$core$pop$$($G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$);else{$G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$=$APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$772$$)),
$G__77476$jscomp$inline_8666_G__77490$jscomp$inline_8668_visited$jscomp$inline_8660$$);break a}}$G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$=void 0}return $APP.$cljs$core$reset_BANG_$$($shapes_with_children_STAR_$$,$G__77475$jscomp$inline_8665_G__77489$jscomp$inline_8667_queue$jscomp$inline_8659_result$jscomp$349$$)});var $shapes_with_children$jscomp$5$$=$APP.$cljs$core$_deref$$($shapes_with_children_STAR_$$),$total_selected$jscomp$1$$=$APP.$cljs$core$count$$($selected$jscomp$167$$);
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options__element-options main_ui_workspace_sidebar_options__design-options",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$align$align_options_STAR_$$,{shapes:$shapes$jscomp$219$$,objects:$objects$jscomp$772$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$bool$bool_options_STAR_$$,{totalSelected:$total_selected$jscomp$1$$,shapes:$shapes$jscomp$219$$,shapesWithChildren:$shapes_with_children$jscomp$5$$}),
$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($edit_grid_QMARK_$$)?$APP.$app$common$data$not_empty_QMARK_$$($grid_edition_selected_cells$$):$edit_grid_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,{shape:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$772$$,$edition$jscomp$6$$),cells:$grid_edition_selected_cells$$}):$APP.$cljs$core$truth_$$($edit_grid_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$grid_layout_edition$$,
{ids:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$edition$jscomp$6$$],null),values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$772$$,$edition$jscomp$6$$)}):$sp_panel$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$specialized_panel_STAR_$$,{panel:$sp_panel$$}):$APP.$app$common$data$not_empty_QMARK_$$($drawing$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$drawing$drawing_options_STAR_$$,
{drawingState:$drawing$jscomp$3$$}):$total_selected$jscomp$1$$===0?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$page$options_STAR_$$,{}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shape_options_STAR_$$,{shapes:$shapes$jscomp$219$$,shapesWithChildren:$shapes_with_children$jscomp$5$$,pageId:$page_id$jscomp$406_props_77409$$,fileId:$file_id$jscomp$386$$,selected:$selected$jscomp$167$$,libraries:$libraries$jscomp$151$$})]})};
$app$main$ui$workspace$sidebar$options$inspect_tab_STAR_$$=function($props_77413$$){var $frame$jscomp$71$$=$APP.$app$common$files$helpers$get_frame$cljs$0core$0IFn$0_invoke$0arity$02$$($props_77413$$.objects,$APP.$cljs$core$first$$($props_77413$$.shapes));return $APP.$rumext$v2$create_element$$($APP.$app$main$ui$inspect$right_sidebar$right_sidebar_STAR_$$,{...$props_77413$$,frame:$frame$jscomp$71$$,from:$APP.$cljs$cst$2489$workspace$$})};
$app$main$ui$workspace$sidebar$options$on_option_tab_change$$=function($mode$jscomp$44_mode__$1$jscomp$3$$){$mode$jscomp$44_mode__$1$jscomp$3$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($mode$jscomp$44_mode__$1$jscomp$3$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$layout$set_options_mode$$($mode$jscomp$44_mode__$1$jscomp$3$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($mode$jscomp$44_mode__$1$jscomp$3$$,$APP.$cljs$cst$3600$inspect$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$common$set_workspace_read_only$$(!0)])):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$common$set_workspace_read_only$$(!1)]))};
$app$main$ui$workspace$sidebar$options$options_content_STAR_$$=function($permissions$jscomp$32_props_77420$$){var $on_expand$jscomp$2$$=$permissions$jscomp$32_props_77420$$.onExpand,$on_change_section$jscomp$1$$=$permissions$jscomp$32_props_77420$$.onChangeSection,$selected$jscomp$168$$=$permissions$jscomp$32_props_77420$$.selected,$file_id$jscomp$387$$=$permissions$jscomp$32_props_77420$$.fileId,$objects$jscomp$774$$=$permissions$jscomp$32_props_77420$$.objects,$page_id$jscomp$407$$=$permissions$jscomp$32_props_77420$$.pageId;
$permissions$jscomp$32_props_77420$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$);var $options_mode$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$options_mode_global$$),$shapes$jscomp$221$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$168$$),$APP.$rumext$v2$adapt$$($objects$jscomp$774$$)],function(){return $APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$774$$)),
$selected$jscomp$168$$)});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options__tool-window",children:$APP.$cljs$core$truth_$$($APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$32_props_77420$$))?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,{tabs:$app$main$ui$workspace$sidebar$options$options_tabs$$,onChange:$app$main$ui$workspace$sidebar$options$on_option_tab_change$$,selected:$APP.$cljs$core$name$$($options_mode$jscomp$1$$),
className:"main_ui_workspace_sidebar_options__options-tab-switcher",children:function(){var $G__77434__$1$$=$options_mode$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$options_mode$jscomp$1$$.$fqn$:null;switch($G__77434__$1$$){case "prototype":return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options__element-options main_ui_workspace_sidebar_options__interaction-options",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$interactions$interactions_menu_STAR_$$,
{shape:$APP.$cljs$core$first$$($shapes$jscomp$221$$)})});case "inspect":return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options__element-options main_ui_workspace_sidebar_options__inspect-options",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$inspect_tab_STAR_$$,{pageId:$page_id$jscomp$407$$,fileId:$file_id$jscomp$387$$,objects:$objects$jscomp$774$$,selected:$selected$jscomp$168$$,shapes:$shapes$jscomp$221$$,onChangeSection:$on_change_section$jscomp$1$$,
onExpand:$on_expand$jscomp$2$$})});case "design":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$design_menu_STAR_$$,{selected:$selected$jscomp$168$$,objects:$objects$jscomp$774$$,pageId:$page_id$jscomp$407$$,fileId:$file_id$jscomp$387$$,shapes:$shapes$jscomp$221$$});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77434__$1$$)].join(""));}}()}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options__element-options main_ui_workspace_sidebar_options__inspect-options main_ui_workspace_sidebar_options__read-only",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$inspect_tab_STAR_$$,{pageId:$page_id$jscomp$407$$,fileId:$file_id$jscomp$387$$,objects:$objects$jscomp$774$$,selected:$selected$jscomp$168$$,shapes:$shapes$jscomp$221$$,onChangeSection:$on_change_section$jscomp$1$$,onExpand:$on_expand$jscomp$2$$})})})};
$app$main$ui$workspace$sidebar$options$make_page_objects_ref$$=function($file_id$jscomp$388$$,$page_id$jscomp$408$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__77438_SHARP_$$){return $APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$3$($p1__77438_SHARP_$$,$file_id$jscomp$388$$,$page_id$jscomp$408$$)},$APP.$app$main$store$state$$)};
$app$main$ui$workspace$sidebar$shortcuts$converted_chars_STAR_$$=function($command$jscomp$21_props_77410_unique_key$$){var $char$$jscomp$2$$=$command$jscomp$21_props_77410_unique_key$$.char;$command$jscomp$21_props_77410_unique_key$$=$command$jscomp$21_props_77410_unique_key$$.command;var $modified_keys$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$1939$up$$,"↑",$APP.$cljs$cst$1938$down$$,"↓",$APP.$cljs$cst$257$left$$,"←",$APP.$cljs$cst$258$right$$,"→",$cljs$cst$5191$plus$$,"+"],
null),$macos_keys$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$3448$shift$$,$APP.$cljs$cst$3598$del$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5488$esc$$,$APP.$cljs$cst$1796$command$$,$APP.$cljs$cst$4648$delete$$,$APP.$cljs$cst$379$enter$$,$cljs$cst$5276$option$$,$cljs$cst$5489$control$$],"⇧⌫⌥⎋⌘⌫⏎⌥⌃".split("")),$char$__$2_is_macos_QMARK_$$=$APP.$app$config$check_platform_QMARK_$$(),$char$__$1$$=$APP.$cljs$core$contains_QMARK_$$($modified_keys$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($char$$jscomp$2$$))?
function(){var $fexpr__77411$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($char$$jscomp$2$$);return $fexpr__77411$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__77411$$.$cljs$core$IFn$_invoke$arity$1$($modified_keys$$):$fexpr__77411$$($modified_keys$$)}():$char$$jscomp$2$$;$char$__$2_is_macos_QMARK_$$=$char$__$2_is_macos_QMARK_$$&&$APP.$cljs$core$contains_QMARK_$$($macos_keys$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($char$__$1$$))?function(){var $fexpr__77412$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($char$__$1$$);
return $fexpr__77412$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__77412$$.$cljs$core$IFn$_invoke$arity$1$($macos_keys$$):$fexpr__77412$$($macos_keys$$)}():$char$__$1$$;$command$jscomp$21_props_77410_unique_key$$=[$APP.$app$common$data$name$$($command$jscomp$21_props_77410_unique_key$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($char$__$2_is_macos_QMARK_$$)].join("");return(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_shortcuts__key",children:$char$__$2_is_macos_QMARK_$$},
$command$jscomp$21_props_77410_unique_key$$)};
$app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$=function($type$jscomp$651$$,$keyname$$){var $translat_pre$$=function(){var $G__77414__$1$$=$type$jscomp$651$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$651$$.$fqn$:null;switch($G__77414__$1$$){case "sc":return"shortcuts.";case "sec":return"shortcut-section.";case "sub-sec":return"shortcut-subsection.";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77414__$1$$)].join(""));}}();
return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$([$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($translat_pre$$),$APP.$app$common$data$name$$($keyname$$)].join(""))};
$app$main$ui$workspace$sidebar$shortcuts$add_translation$$=function($type$jscomp$652$$,$item$jscomp$130$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__77415_v$jscomp$666$$){var $k$jscomp$687$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77415_v$jscomp$666$$,0,null);$p__77415_v$jscomp$666$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77415_v$jscomp$666$$,1,null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$k$jscomp$687$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p__77415_v$jscomp$666$$,$cljs$cst$5490$translation$$,$app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($type$jscomp$652$$,$k$jscomp$687$$))],null)},$item$jscomp$130$$)};
$app$main$ui$workspace$sidebar$shortcuts$shortcuts__GT_subsections$$=function($shortcuts$jscomp$8$$){function $get_sc_by_subsection$$($subsection$jscomp$1$$,$p__77421_v$jscomp$667$$){var $k$jscomp$688$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77421_v$jscomp$667$$,0,null);$p__77421_v$jscomp$667$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77421_v$jscomp$667$$,1,null);return $APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($p1__77419_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subsection$jscomp$1$$,
$p1__77419_SHARP_$$)},$APP.$cljs$cst$4601$subsections$$.$cljs$core$IFn$_invoke$arity$1$($p__77421_v$jscomp$667$$)))?$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$k$jscomp$688$$,$p__77421_v$jscomp$667$$]):null}var $subsections$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4601$subsections$$),$APP.$cljs$core$vals$$($shortcuts$jscomp$8$$));return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$149$$,
$subsection$jscomp$2$$){var $shortcuts_by_subsection$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($get_sc_by_subsection$$,$subsection$jscomp$2$$),$shortcuts$jscomp$8$$));return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($acc$jscomp$149$$,$subsection$jscomp$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$340$children$$,
$shortcuts_by_subsection$$],null))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$subsections$$)};
$app$main$ui$workspace$sidebar$shortcuts$shortcuts_keys_STAR_$$=function($last_element_managed_list_props_77425$$){var $chars_list_content$jscomp$239_short_char_list$$=$last_element_managed_list_props_77425$$.content,$command$jscomp$22$$=$last_element_managed_list_props_77425$$.command;$last_element_managed_list_props_77425$$=$APP.$cljs$core$coll_QMARK_$$($chars_list_content$jscomp$239_short_char_list$$)?$chars_list_content$jscomp$239_short_char_list$$:$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$List$EMPTY$$,
$chars_list_content$jscomp$239_short_char_list$$);$chars_list_content$jscomp$239_short_char_list$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$shortcuts$split_sc$$,$last_element_managed_list_props_77425$$);$last_element_managed_list_props_77425$$=$APP.$cljs$core$last$$($chars_list_content$jscomp$239_short_char_list$$);$chars_list_content$jscomp$239_short_char_list$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($chars_list_content$jscomp$239_short_char_list$$))?
$chars_list_content$jscomp$239_short_char_list$$:$APP.$cljs$core$drop_last$cljs$0core$0IFn$0_invoke$0arity$01$$($chars_list_content$jscomp$239_short_char_list$$);var $penultimate$$=$APP.$cljs$core$last$$($chars_list_content$jscomp$239_short_char_list$$);return(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_sidebar_shortcuts__keys",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$195$$,$chars$jscomp$5$$){$out_arr__44057__auto__$jscomp$195$$.push((0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$20$$,$char$$jscomp$3$$){$out_arr__44057__auto____$1$jscomp$20$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$converted_chars_STAR_$$,{"char":$char$$jscomp$3$$,command:$command$jscomp$22$$},""+($char$$jscomp$3$$??"")+"-"+($APP.$cljs$core$name$$($command$jscomp$22$$)??"")));return $out_arr__44057__auto____$1$jscomp$20$$},[],$chars$jscomp$5$$),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($chars$jscomp$5$$,
$penultimate$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_shortcuts__space",children:","}):null]},$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$1$($chars$jscomp$5$$)));return $out_arr__44057__auto__$jscomp$195$$},[],$chars_list_content$jscomp$239_short_char_list$$),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($last_element_managed_list_props_77425$$,$penultimate$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_sidebar_shortcuts__space",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.or")}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$196$$,$char$$jscomp$4$$){$out_arr__44057__auto__$jscomp$196$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$converted_chars_STAR_$$,{"char":$char$$jscomp$4$$,command:$command$jscomp$22$$},""+($char$$jscomp$4$$??"")+"-"+($APP.$cljs$core$name$$($command$jscomp$22$$)??
"")));return $out_arr__44057__auto__$jscomp$196$$},[],$last_element_managed_list_props_77425$$)]}):null]})};
$app$main$ui$workspace$sidebar$shortcuts$shortcut_row_STAR_$$=function($filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$){var $is_match_subsection$$=$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$.isMatchSubsection,$is_match_section$$=$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$.isMatchSection,$filter_term$jscomp$1$$=$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$.filterTerm,
$elements$jscomp$7$$=$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$.elements;$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$=$APP.$cljs$core$keys$$($elements$jscomp$7$$);$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77428_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5491$sc$$,
$p1__77428_SHARP_$$)},$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$);var $match_shortcut_QMARK_$$=$APP.$cljs$core$some$$(function($p1__77429_SHARP_$$){return $app$util$strings$matches_search$$($p1__77429_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$1$$))},$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$);$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$779$$=
$APP.$cljs$core$truth_$$($is_match_section$$)?$is_match_section$$:$is_match_subsection$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$779$$)?$APP.$cljs$core$not$$($match_shortcut_QMARK_$$):$and__5023__auto__$jscomp$779$$}())?$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$:$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77430_SHARP_$$){return $app$util$strings$matches_search$$($p1__77430_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$1$$))},
$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$);$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$=$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$($filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$);return(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_shortcuts__sub-menu",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$197$$,
$command_translate$$){$out_arr__44057__auto__$jscomp$197$$.push(function(){var $content$jscomp$240_vec__77439$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77431_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5490$translation$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$second$$($p1__77431_SHARP_$$)),$command_translate$$)},$elements$jscomp$7$$)),$command$jscomp$23$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$240_vec__77439$$,
0,null),$comand_info$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$240_vec__77439$$,1,null);$content$jscomp$240_vec__77439$$=function(){var $or__5025__auto__$jscomp$1138$$=$APP.$cljs$cst$4707$show_command$$.$cljs$core$IFn$_invoke$arity$1$($comand_info$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1138$$)?$or__5025__auto__$jscomp$1138$$:$APP.$cljs$cst$1796$command$$.$cljs$core$IFn$_invoke$arity$1$($comand_info$$)}();return(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_sidebar_shortcuts__shortcuts-name",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_shortcuts__command-name",children:$command_translate$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcuts_keys_STAR_$$,{content:$content$jscomp$240_vec__77439$$,command:$command$jscomp$23$$})]},$command_translate$$)}());return $out_arr__44057__auto__$jscomp$197$$},[],$filtered$jscomp$3_props_77433_shortcut_name_shortcut_translations_sorted_filtered$$)})};
$app$main$ui$workspace$sidebar$shortcuts$section_title_STAR_$$=function($props_77443$$){var $is_sub$$=$props_77443$$.isSub,$name$jscomp$433$$=$props_77443$$.name;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:$APP.$cljs$core$truth_$$($is_sub$$)?"main_ui_workspace_sidebar_shortcuts__subsection-title":"main_ui_workspace_sidebar_shortcuts__section-title",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$APP.$cljs$core$truth_$$($props_77443$$.isVisible)?
"arrow-down":"arrow-right",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("span",{className:$APP.$cljs$core$truth_$$($is_sub$$)?"main_ui_workspace_sidebar_shortcuts__subsection-name":"main_ui_workspace_sidebar_shortcuts__section-name",children:$name$jscomp$433$$})]})};
$app$main$ui$workspace$sidebar$shortcuts$shortcut_subsection_STAR_$$=function($basic_shortcuts_props_77450_subsections_names$$){var $manage_sections$$=$basic_shortcuts_props_77450_subsections_names$$.manageSections,$is_match_section$jscomp$1$$=$basic_shortcuts_props_77450_subsections_names$$.isMatchSection,$filter_term$jscomp$2$$=$basic_shortcuts_props_77450_subsections_names$$.filterTerm,$subsections$jscomp$1$$=$basic_shortcuts_props_77450_subsections_names$$.subsections,$open_sections$$=$basic_shortcuts_props_77450_subsections_names$$.openSections;
$basic_shortcuts_props_77450_subsections_names$$=$APP.$cljs$core$keys$$($subsections$jscomp$1$$);var $sorted_translations_subsection_translations$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$226$none$$,$APP.$cljs$core$first$$($basic_shortcuts_props_77450_subsections_names$$))?$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77444_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5491$sc$$,$p1__77444_SHARP_$$)},$basic_shortcuts_props_77450_subsections_names$$):
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77445_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5492$sub_sec$$,$p1__77445_SHARP_$$)},$basic_shortcuts_props_77450_subsections_names$$);$sorted_translations_subsection_translations$$=$cljs$core$sort$cljs$0core$0IFn$0_invoke$0arity$01$$($sorted_translations_subsection_translations$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$226$none$$,$APP.$cljs$core$first$$($basic_shortcuts_props_77450_subsections_names$$))?
($basic_shortcuts_props_77450_subsections_names$$=$APP.$cljs$cst$226$none$$.$cljs$core$IFn$_invoke$arity$1$($subsections$jscomp$1$$),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcut_row_STAR_$$,{elements:$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($basic_shortcuts_props_77450_subsections_names$$),filterTerm:$filter_term$jscomp$2$$,isMatchSection:$is_match_section$jscomp$1$$,isMatchSubsection:!0})):(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_shortcuts__subsection-menu",
children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$198$$,$sub_translated$$){$out_arr__44057__auto__$jscomp$198$$.push(function(){var $vec__77453_visible_QMARK_$jscomp$3$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77446_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5490$translation$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$second$$($p1__77446_SHARP_$$)),
$sub_translated$$)},$subsections$jscomp$1$$)),$match_subsection_QMARK__sub_name$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77453_visible_QMARK_$jscomp$3$$,0,null),$sub_info$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77453_visible_QMARK_$jscomp$3$$,1,null);$vec__77453_visible_QMARK_$jscomp$3$$=$APP.$cljs$core$some$$(function($p1__77447_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77447_SHARP_$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($sub_info$$))},
$APP.$cljs$core$_deref$$($open_sections$$));$match_subsection_QMARK__sub_name$$=$app$util$strings$matches_search$$($app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5492$sub_sec$$,$match_subsection_QMARK__sub_name$$),$APP.$cljs$core$_deref$$($filter_term$jscomp$2$$));var $match_shortcuts_QMARK__shortcut_names$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77448_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5491$sc$$,
$p1__77448_SHARP_$$)},$APP.$cljs$core$keys$$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($sub_info$$)));$match_shortcuts_QMARK__shortcut_names$$=$APP.$cljs$core$some$$(function($p1__77449_SHARP_$$){return $app$util$strings$matches_search$$($p1__77449_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$2$$))},$match_shortcuts_QMARK__shortcut_names$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($match_subsection_QMARK__sub_name$$)?$match_subsection_QMARK__sub_name$$:
$APP.$cljs$core$truth_$$($match_shortcuts_QMARK__shortcut_names$$)?$match_shortcuts_QMARK__shortcut_names$$:$is_match_section$jscomp$1$$)?(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:function(){var $G__77456$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($sub_info$$);return $manage_sections$$.$cljs$core$IFn$_invoke$arity$1$?$manage_sections$$.$cljs$core$IFn$_invoke$arity$1$($G__77456$$):$manage_sections$$($G__77456$$)}(),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$section_title_STAR_$$,
{name:$sub_translated$$,isVisible:$vec__77453_visible_QMARK_$jscomp$3$$,isSub:!0}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{display:$APP.$cljs$core$truth_$$($vec__77453_visible_QMARK_$jscomp$3$$)?"initial":"none"},children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcut_row_STAR_$$,{elements:$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($sub_info$$),filterTerm:$filter_term$jscomp$2$$,isMatchSection:$is_match_section$jscomp$1$$,isMatchSubsection:$match_subsection_QMARK__sub_name$$})})]},
$sub_translated$$):null}());return $out_arr__44057__auto__$jscomp$198$$},[],$sorted_translations_subsection_translations$$)})};
$app$main$ui$workspace$sidebar$shortcuts$shortcut_section_STAR_$$=function($props_77465_section_key_section_translation$$){var $manage_sections$jscomp$1$$=$props_77465_section_key_section_translation$$.manageSections,$filter_term$jscomp$3$$=$props_77465_section_key_section_translation$$.filterTerm,$open_sections$jscomp$1$$=$props_77465_section_key_section_translation$$.openSections,$match_section_QMARK__vec__77468$$=$props_77465_section_key_section_translation$$.section;$props_77465_section_key_section_translation$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($match_section_QMARK__vec__77468$$,0,null);var $match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($match_section_QMARK__vec__77468$$,1,null),$section_id$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$);$props_77465_section_key_section_translation$$=$app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5493$sec$$,
$props_77465_section_key_section_translation$$);$match_section_QMARK__vec__77468$$=$app$util$strings$matches_search$$($props_77465_section_key_section_translation$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$3$$));var $subsections$jscomp$2$$=$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$);$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$=$APP.$cljs$core$keys$$($subsections$jscomp$2$$);var $match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$=
$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__77457_SHARP_$$,$p2__77458_SHARP_$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p1__77457_SHARP_$$,$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($p2__77458_SHARP_$$.$cljs$core$IFn$_invoke$arity$1$?$p2__77458_SHARP_$$.$cljs$core$IFn$_invoke$arity$1$($subsections$jscomp$2$$):$p2__77458_SHARP_$$($subsections$jscomp$2$$)))},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$);
$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77460_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("none",$APP.$app$common$data$name$$($p1__77460_SHARP_$$))?null:$app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5492$sub_sec$$,$p1__77460_SHARP_$$)},$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$);$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$=
$APP.$cljs$core$some$$(function($p1__77461_SHARP_$$){return $app$util$strings$matches_search$$($p1__77461_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$3$$))},$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$);$match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77462_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5491$sc$$,$p1__77462_SHARP_$$)},
$APP.$cljs$core$keys$$($match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$));$match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$=$APP.$cljs$core$some$$(function($p1__77463_SHARP_$$){return $app$util$strings$matches_search$$($p1__77463_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$3$$))},$match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$);var $visible_QMARK_$jscomp$4$$=$APP.$cljs$core$some$$(function($p1__77464_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77464_SHARP_$$,
$section_id$$)},$APP.$cljs$core$_deref$$($open_sections$jscomp$1$$));return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($match_section_QMARK__vec__77468$$)?$match_section_QMARK__vec__77468$$:$APP.$cljs$core$truth_$$($match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$)?$match_subsection_QMARK_$jscomp$1_section_info_sub_trans_subs_names$$:$match_shortcut_QMARK_$jscomp$1_subs_bodys_translations$jscomp$3$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{onClick:$manage_sections$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$manage_sections$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($section_id$$):$manage_sections$jscomp$1$$($section_id$$),className:"main_ui_workspace_sidebar_shortcuts__section",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$section_title_STAR_$$,{name:$props_77465_section_key_section_translation$$,isVisible:$visible_QMARK_$jscomp$4$$,isSub:!1}),(0,$APP.$rumext$v2$jsx$$)("div",{style:{display:$APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$4$$)?"initial":"none"},children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcut_subsection_STAR_$$,
{subsections:$subsections$jscomp$2$$,openSections:$open_sections$jscomp$1$$,manageSections:$manage_sections$jscomp$1$$,isMatchSection:$match_section_QMARK__vec__77468$$,filterTerm:$filter_term$jscomp$3$$})})]}):null};
$app$main$ui$workspace$sidebar$shortcuts$shortcuts_container_STAR_$$=function($class$$jscomp$70_props_77484$$){function $manage_section_on_search$$($node_seq$jscomp$1_section$jscomp$32$$,$term$jscomp$11$$){$node_seq$jscomp$1_section$jscomp$32$$=$APP.$cljs$core$tree_seq$$($APP.$cljs$cst$340$children$$,function($p1__77483_SHARP_$$){return $APP.$cljs$core$vals$$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($p1__77483_SHARP_$$))},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($all_shortcuts__$1$$,
$node_seq$jscomp$1_section$jscomp$32$$));return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$151$$,$node$jscomp$419$$){return $APP.$cljs$core$truth_$$($app$util$strings$matches_search$$($cljs$cst$5490$translation$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$419$$),$term$jscomp$11$$))?$add_ids$$($acc$jscomp$151$$,$node$jscomp$419$$):$acc$jscomp$151$$},$APP.$cljs$core$PersistentVector$EMPTY$$,$node_seq$jscomp$1_section$jscomp$32$$)}function $add_ids$$($acc$jscomp$150$$,
$addition_node$jscomp$418$$){var $id$jscomp$936$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($addition_node$jscomp$418$$);$addition_node$jscomp$418$$=function(){var $G__77492$$=$APP.$cljs$core$count$$($id$jscomp$936$$);switch($G__77492$$){case 1:return $id$jscomp$936$$;case 2:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($id$jscomp$936$$)],
null),$id$jscomp$936$$],null);case 3:return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($id$jscomp$936$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($id$jscomp$936$$),$APP.$cljs$core$second$$($id$jscomp$936$$)],null)],null);case "default":return null;
default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77492$$)].join(""));}}();return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($addition_node$jscomp$418$$))?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$150$$,$addition_node$jscomp$418$$):$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$150$$,
$addition_node$jscomp$418$$))}function $manage_sections$jscomp$2$$($item$jscomp$132$$){return function($event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$);$event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$=$APP.$cljs$core$some$$(function($p1__77482_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77482_SHARP_$$,$item$jscomp$132$$)},$APP.$cljs$core$_deref$$($open_sections$jscomp$2$$));
$event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$=$APP.$cljs$core$truth_$$($event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$)?$APP.$cljs$core$filterv$$(function($element$jscomp$82$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($element$jscomp$82$$,$item$jscomp$132$$)},$APP.$cljs$core$_deref$$($open_sections$jscomp$2$$)):$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($open_sections$jscomp$2$$),$item$jscomp$132$$);return $APP.$cljs$core$reset_BANG_$$($open_sections$jscomp$2$$,
$event$jscomp$520_is_present_QMARK__new_value$jscomp$25$$)}}$class$$jscomp$70_props_77484$$=$class$$jscomp$70_props_77484$$.className;var $all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5491$sc$$,$APP.$app$common$data$deep_merge$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$path$shortcuts$shortcuts$$,
$APP.$app$main$data$workspace$shortcuts$shortcuts$$))),$all_sub_names_dashboard_shortcuts_on_search_term_change_2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5491$sc$$,$APP.$app$main$data$dashboard$shortcuts$shortcuts$$)),$all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5491$sc$$,$APP.$app$main$data$viewer$shortcuts$shortcuts$$)),$open_sections$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[1],null)],null)),$filter_term$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),
$workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5492$sub_sec$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts__GT_subsections$$($all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$))),$dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5492$sub_sec$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts__GT_subsections$$($all_sub_names_dashboard_shortcuts_on_search_term_change_2$$))),$viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$app$main$ui$workspace$sidebar$shortcuts$add_translation$$($cljs$cst$5492$sub_sec$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts__GT_subsections$$($all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$))),
$basics_elements$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4701$basics$$.$cljs$core$IFn$_invoke$arity$1$($workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$)),$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4701$basics$$.$cljs$core$IFn$_invoke$arity$1$($dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$)),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4701$basics$$.$cljs$core$IFn$_invoke$arity$1$($viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$))])));$workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$,$APP.$cljs$cst$4701$basics$$);$dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$=
$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$,$APP.$cljs$cst$4701$basics$$);$viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$,$cljs$cst$5494$bassics$$);var $all_shortcuts__$1$$=function $app$main$ui$workspace$sidebar$shortcuts$shortcuts_container_STAR__$_walk$$($element$jscomp$81$$,$parent_id$jscomp$111$$){return $element$jscomp$81$$==
null?$element$jscomp$81$$:$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$529_item_id$$,$item$jscomp$131_p__77485$$){var $k$jscomp$689$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$131_p__77485$$,0,null);$item$jscomp$131_p__77485$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$131_p__77485$$,1,null);$index$jscomp$529_item_id$$=
$parent_id$jscomp$111$$==null?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$529_item_id$$],null):$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($parent_id$jscomp$111$$,$index$jscomp$529_item_id$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$k$jscomp$689$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($item$jscomp$131_p__77485$$,$APP.$cljs$cst$266$id$$,
$index$jscomp$529_item_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$340$children$$,$app$main$ui$workspace$sidebar$shortcuts$shortcuts_container_STAR__$_walk$$($APP.$cljs$cst$340$children$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$131_p__77485$$),$index$jscomp$529_item_id$$)]))],null)},$element$jscomp$81$$))}(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$4701$basics$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[1],null),$APP.$cljs$cst$340$children$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$226$none$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$340$children$$,$basics_elements$$],null)],null),$cljs$cst$5490$translation$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcut-section.basics")],null),$APP.$cljs$cst$2489$workspace$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$266$id$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[2],null),$APP.$cljs$cst$340$children$$,$workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$,$cljs$cst$5490$translation$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcut-section.workspace")],null),$APP.$cljs$cst$4881$dashboard$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[3],null),$APP.$cljs$cst$340$children$$,$dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$,$cljs$cst$5490$translation$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcut-section.dashboard")],null),$APP.$cljs$cst$1576$viewer$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[4],null),$APP.$cljs$cst$340$children$$,$viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$,
$cljs$cst$5490$translation$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcut-section.viewer")],null)],null),null);$all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77478_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5491$sc$$,$p1__77478_SHARP_$$)},$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$keys$$($all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$),
$APP.$cljs$core$keys$$($all_sub_names_dashboard_shortcuts_on_search_term_change_2$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$keys$$($all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$)])));$all_sub_names_dashboard_shortcuts_on_search_term_change_2$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77479_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5492$sub_sec$$,$p1__77479_SHARP_$$)},
$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$keys$$($workspace_sc_by_subsections_workspace_sc_by_subsections__$1$$),$APP.$cljs$core$keys$$($dashboard_sc_by_subsections_dashboard_sc_by_subsections__$1$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$keys$$($viewer_sc_by_subsections_viewer_sc_by_subsections__$1$$)])));$all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77480_SHARP_$$){return $app$main$ui$workspace$sidebar$shortcuts$translation_keyname$$($cljs$cst$5493$sec$$,
$p1__77480_SHARP_$$)},$APP.$cljs$core$keys$$($all_shortcuts__$1$$));$all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$=$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$,$all_sub_names_dashboard_shortcuts_on_search_term_change_2$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$]));$all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$=
$APP.$cljs$core$some$$(function($p1__77481_SHARP_$$){return $app$util$strings$matches_search$$($p1__77481_SHARP_$$,$APP.$cljs$core$_deref$$($filter_term$jscomp$4$$))},$all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$);$all_sub_names_dashboard_shortcuts_on_search_term_change_2$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($value$jscomp$901$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$901$$,""))$APP.$cljs$core$reset_BANG_$$($open_sections$jscomp$2$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[1],null)],null));else{var $ids$jscomp$inline_8671$$=$APP.$clojure$set$union$$.$cljs$core$IFn$_invoke$arity$variadic$($manage_section_on_search$$($APP.$cljs$cst$4701$basics$$,$value$jscomp$901$$),$manage_section_on_search$$($APP.$cljs$cst$2489$workspace$$,$value$jscomp$901$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$manage_section_on_search$$($APP.$cljs$cst$4881$dashboard$$,
$value$jscomp$901$$),$manage_section_on_search$$($APP.$cljs$cst$1576$viewer$$,$value$jscomp$901$$)]));$APP.$cljs$core$reset_BANG_$$($open_sections$jscomp$2$$,$ids$jscomp$inline_8671$$)}return $APP.$cljs$core$reset_BANG_$$($filter_term$jscomp$4$$,$value$jscomp$901$$)});$all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($open_sections$jscomp$2$$,new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[1],null)],null));return $APP.$cljs$core$reset_BANG_$$($filter_term$jscomp$4$$,"")});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$app$util$dom$focus_BANG_$$($APP.$goog$dom$getElement$$("shortcut-search"))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:""+($class$$jscomp$70_props_77484$$??"")+" main_ui_workspace_sidebar_shortcuts__shortcuts",
children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$panel_title$panel_title_STAR_$$,{className:"main_ui_workspace_sidebar_shortcuts__shortcuts-title",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.title"),onClose:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$2634$shortcuts$$))}}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_shortcuts__search-field",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{onChange:$all_sub_names_dashboard_shortcuts_on_search_term_change_2$$,onClear:$all_section_names_on_search_clear_click$jscomp$1_viewer_shortcuts$$,value:$APP.$cljs$core$_deref$$($filter_term$jscomp$4$$),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.title"),iconId:"search"})}),$APP.$cljs$core$truth_$$($all_item_names_all_sc_names_all_workspace_shortcuts_match_any_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_shortcuts__shortcuts-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$199$$,$section$jscomp$33$$){$out_arr__44057__auto__$jscomp$199$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcut_section_STAR_$$,{section:$section$jscomp$33$$,manageSections:$manage_sections$jscomp$2$$,openSections:$open_sections$jscomp$2$$,filterTerm:$filter_term$jscomp$4$$},$APP.$cljs$core$first$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$second$$($section$jscomp$33$$)))));
return $out_arr__44057__auto__$jscomp$199$$},[],$all_shortcuts__$1$$)}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_shortcuts__not-found",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.not-found")})]})};
$app$main$ui$workspace$sidebar$sitemap$make_page_ref$$=function($page_id$jscomp$410$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($fdata$jscomp$23$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$helpers$get_page$$($fdata$jscomp$23$$,$page_id$jscomp$410$$),$APP.$cljs$cst$1615$objects$$)},$APP.$app$main$refs$workspace_data$$,$APP.$cljs$core$_EQ_$$)};
$app$main$ui$workspace$sidebar$sitemap$page_item$$=function($on_click$jscomp$47_props_77432$$){var $selected_QMARK_$jscomp$5$$=$on_click$jscomp$47_props_77432$$["selected?"],$editing_QMARK_$jscomp$10$$=$on_click$jscomp$47_props_77432$$["editing?"],$hovering_QMARK_$jscomp$1$$=$on_click$jscomp$47_props_77432$$["hovering?"],$index$jscomp$530$$=$on_click$jscomp$47_props_77432$$.index,$deletable_QMARK_$jscomp$1$$=$on_click$jscomp$47_props_77432$$["deletable?"],$page$jscomp$155$$=$on_click$jscomp$47_props_77432$$.page,
$current_page_id$jscomp$4$$=$on_click$jscomp$47_props_77432$$["current-page-id"],$input_ref$jscomp$10$$=(0,$APP.$rumext$v2$use_ref$$)(),$id$jscomp$937$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$155$$),$delete_fn$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$pages$delete_page$$($id$jscomp$937$$))}),
$navigate_fn$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$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$2028$page_id$$,$id$jscomp$937$$]))]))}),
$read_only_QMARK_$jscomp$23$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);$on_click$jscomp$47_props_77432$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$),$APP.$rumext$v2$adapt$$($current_page_id$jscomp$4$$)],function(){return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$780$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1");
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$780$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$937$$,$current_page_id$jscomp$4$$):$and__5023__auto__$jscomp$780$$}())?($app$render_wasm$api$webgl$capture_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$?$app$render_wasm$api$webgl$capture_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$():$app$render_wasm$api$webgl$capture_canvas_pixels$$(),$app$render_wasm$api$apply_canvas_blur$$(),(0,$APP.$app$util$timers$request_animation_frame$$)(function(){return(0,$APP.$app$util$timers$request_animation_frame$$)($navigate_fn$$)})):
$navigate_fn$$.$cljs$core$IFn$_invoke$arity$0$?$navigate_fn$$.$cljs$core$IFn$_invoke$arity$0$():$navigate_fn$$()});var $on_delete$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$)],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$2430$confirm$$,
$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-page.title"),$APP.$cljs$cst$141$message$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.delete-page.body"),$APP.$cljs$cst$2436$on_accept$$,$delete_fn$jscomp$3$$],null)))}),$on_double_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$23$$)],function($event$jscomp$521$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$521$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$521$$);return $APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$23$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$start_rename_page_item$$($id$jscomp$937$$))}),$on_blur$jscomp$31$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$522_name$jscomp$434$$){$event$jscomp$522_name$jscomp$434$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$522_name$jscomp$434$$));
$APP.$cuerdas$core$empty_QMARK_$$($event$jscomp$522_name$jscomp$434$$)||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$pages$rename_page$$($id$jscomp$937$$,$event$jscomp$522_name$jscomp$434$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$stop_rename_page_item$$())}),$on_key_down$jscomp$16$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$523$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$523$$))?
$on_blur$jscomp$31$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur$jscomp$31$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$523$$):$on_blur$jscomp$31$$($event$jscomp$523$$):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$523$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$stop_rename_page_item$$()):null}),$dprops$jscomp$8_on_drop$jscomp$15$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$),
$APP.$rumext$v2$adapt$$($index$jscomp$530$$)],function($index__$1$jscomp$25_side$jscomp$3$$,$id__$1$jscomp$21_map__77452__$1_p__77451$$){$id__$1$jscomp$21_map__77452__$1_p__77451$$=$APP.$cljs$core$__destructure_map$$($id__$1$jscomp$21_map__77452__$1_p__77451$$);$id__$1$jscomp$21_map__77452__$1_p__77451$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id__$1$jscomp$21_map__77452__$1_p__77451$$,$APP.$cljs$cst$266$id$$);$index__$1$jscomp$25_side$jscomp$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2636$bot$$,
$index__$1$jscomp$25_side$jscomp$3$$)?$index$jscomp$530$$+1:$index$jscomp$530$$;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$relocate_page$$($id__$1$jscomp$21_map__77452__$1_p__77451$$,$index__$1$jscomp$25_side$jscomp$3$$))}),$on_context_menu$jscomp$11_vec__77435$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/page",
$APP.$cljs$cst$2639$on_drop$$,$dprops$jscomp$8_on_drop$jscomp$15$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,$id$jscomp$937$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$530$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$155$$)],null),$APP.$cljs$cst$2643$draggable_QMARK_$$,$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$23$$)&&$APP.$cljs$core$not$$($editing_QMARK_$jscomp$10$$)]));$dprops$jscomp$8_on_drop$jscomp$15$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($on_context_menu$jscomp$11_vec__77435$$,0,null);var $dref$jscomp$8$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($on_context_menu$jscomp$11_vec__77435$$,1,null);$on_context_menu$jscomp$11_vec__77435$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$937$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$23$$)],function($event$jscomp$524_position$jscomp$187$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$524_position$jscomp$187$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$524_position$jscomp$187$$);if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$23$$))return null;$event$jscomp$524_position$jscomp$187$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$524_position$jscomp$187$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$show_page_item_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1660$position$$,$event$jscomp$524_position$jscomp$187$$,
$APP.$cljs$cst$1608$page$$,$page$jscomp$155$$,$cljs$cst$5353$deletable_QMARK_$$,$deletable_QMARK_$jscomp$1$$],null)))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$5$$)],function(){return $APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$5$$)?$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($dref$jscomp$8$$),!1):null});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_QMARK_$jscomp$10$$)],
function(){$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$10$$)&&$APP.$app$util$dom$select_text_BANG_$$($APP.$rumext$v2$ref_val$$($input_ref$jscomp$10$$));return null});return(0,$APP.$rumext$v2$jsx$$)("li",{ref:$dref$jscomp$8$$,className:"main_ui_workspace_sidebar_sitemap__page-element "+($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_sitemap__selected":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$8_on_drop$jscomp$15$$),
$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_sidebar_sitemap__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$8_on_drop$jscomp$15$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_sidebar_sitemap__dnd-over-bot":""),children:(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"page-"+($id$jscomp$937$$??""),tabIndex:"0",onClick:$on_click$jscomp$47_props_77432$$,onDoubleClick:$on_double_click$jscomp$1$$,
onContextMenu:$on_context_menu$jscomp$11_vec__77435$$,className:"main_ui_workspace_sidebar_sitemap__element-list-body "+($APP.$cljs$core$truth_$$($hovering_QMARK_$jscomp$1$$)?"main_ui_workspace_sidebar_sitemap__hover":"")+" "+($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$5$$)?"main_ui_workspace_sidebar_sitemap__selected":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_sitemap__page-icon",children:$APP.$app$main$ui$icons$document$$}),$APP.$cljs$core$truth_$$($editing_QMARK_$jscomp$10$$)?
(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$input_ref$jscomp$10$$,onBlur:$on_blur$jscomp$31$$,onKeyDown:$on_key_down$jscomp$16$$,autoFocus:!0,defaultValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$155$$,""),className:"main_ui_workspace_sidebar_sitemap__element-name"})}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$155$$),
"data-testid":"page-name",className:"main_ui_workspace_sidebar_sitemap__page-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$155$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_sitemap__page-actions",children:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($deletable_QMARK_$jscomp$1$$)?$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$23$$):$deletable_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_delete$jscomp$11$$,
children:$APP.$app$main$ui$icons$delete$0$$}):null})]})]})})};
$app$main$ui$workspace$sidebar$sitemap$page_item_wrapper$$=function($current_page_id$jscomp$5_props_77459$$){var $selected_QMARK_$jscomp$6$$=$current_page_id$jscomp$5_props_77459$$["selected?"],$editing_QMARK_$jscomp$11$$=$current_page_id$jscomp$5_props_77459$$["editing?"],$index$jscomp$531$$=$current_page_id$jscomp$5_props_77459$$.index,$deletable_QMARK_$jscomp$2$$=$current_page_id$jscomp$5_props_77459$$["deletable?"],$page_id$jscomp$411$$=$current_page_id$jscomp$5_props_77459$$["page-id"];$current_page_id$jscomp$5_props_77459$$=
$current_page_id$jscomp$5_props_77459$$["current-page-id"];var $page$jscomp$156_page_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$411$$)],function(){return $app$main$ui$workspace$sidebar$sitemap$make_page_ref$$($page_id$jscomp$411$$)});$page$jscomp$156_page_ref$$=$APP.$rumext$v2$deref$$($page$jscomp$156_page_ref$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$sitemap$page_item$$,{page:$page$jscomp$156_page_ref$$,index:$index$jscomp$531$$,
"current-page-id":$current_page_id$jscomp$5_props_77459$$,"deletable?":$deletable_QMARK_$jscomp$2$$,"selected?":$selected_QMARK_$jscomp$6$$,"editing?":$editing_QMARK_$jscomp$11$$})};
$app$main$ui$workspace$sidebar$sitemap$pages_list_STAR_$$=function($pages$jscomp$9_props_77467$$){$pages$jscomp$9_props_77467$$=$APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($pages$jscomp$9_props_77467$$.file);var $deletable_QMARK_$jscomp$3$$=$APP.$cljs$core$count$$($pages$jscomp$9_props_77467$$)>1,$editing_page_id$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$editing_page_item$$),$current_page_id$jscomp$6$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_page_id$$);
return(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_sitemap__page-list",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$200$$,$p__77471_page_id$jscomp$412$$){var $index$jscomp$532$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77471_page_id$jscomp$412$$,0,null);$p__77471_page_id$jscomp$412$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77471_page_id$jscomp$412$$,
1,null);$out_arr__44057__auto__$jscomp$200$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$sitemap$page_item_wrapper$$,{"page-id":$p__77471_page_id$jscomp$412$$,index:$index$jscomp$532$$,"deletable?":$deletable_QMARK_$jscomp$3$$,"editing?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__77471_page_id$jscomp$412$$,$editing_page_id$$),"selected?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__77471_page_id$jscomp$412$$,$current_page_id$jscomp$6$$),"current-page-id":$current_page_id$jscomp$6$$},
$p__77471_page_id$jscomp$412$$));return $out_arr__44057__auto__$jscomp$200$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($pages$jscomp$9_props_77467$$))})})};
$app$main$ui$workspace$sidebar$sitemap$sitemap_STAR_$$=function($on_toggle_collapsed_props_77477$$){var $height$jscomp$171$$=$on_toggle_collapsed_props_77477$$.height,$collapsed$jscomp$3$$=$on_toggle_collapsed_props_77477$$.collapsed;$on_toggle_collapsed_props_77477$$=$on_toggle_collapsed_props_77477$$.onToggleCollapsed;var $file$jscomp$169$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$sitemap$ref_COLON_file_with_pages$$),$file_id$jscomp$390$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$169$$,
$APP.$cljs$cst$266$id$$),$project_id$jscomp$36$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$169$$,$APP.$cljs$cst$2141$project_id$$),$on_create$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$390$$),$APP.$rumext$v2$adapt$$($project_id$jscomp$36$$)],function($event$jscomp$525$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$pages$create_page$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$390$$,$APP.$cljs$cst$2141$project_id$$,$project_id$jscomp$36$$],null)));return $APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_current_target$$($event$jscomp$525$$))}),$read_only_QMARK_$jscomp$24$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$permissions$jscomp$33$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--height":""+($height$jscomp$171$$??
"")+"px"},className:"main_ui_workspace_sidebar_sitemap__sitemap",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$collapsed$jscomp$3$$,onCollapsed:$on_toggle_collapsed_props_77477$$,allClickable:!0,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.sitemap"),className:"main_ui_workspace_sidebar_sitemap__title-spacing-sitemap",children:$read_only_QMARK_$jscomp$24$$?$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$33$$)?
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$badge$badge_notification$$,{"is-focus":!0,size:$APP.$cljs$cst$3719$small$$,content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.view-only")}):null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",className:"main_ui_workspace_sidebar_sitemap__add-page","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.sitemap.add-page"),onClick:$on_create$$,
icon:"add"})}),$collapsed$jscomp$3$$?null:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_sitemap__tool-window-content",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$sitemap$pages_list_STAR_$$,{file:$file$jscomp$169$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$169$$)??""))})]})};
$app$main$ui$ds$product$avatar$avatar_STAR_$$=function($props_77499_variant__$1$jscomp$6$$){var $tag$jscomp$93$$=$props_77499_variant__$1$jscomp$6$$.tag,$href$jscomp$16_profile$jscomp$60$$=$props_77499_variant__$1$jscomp$6$$.profile,$class_SINGLEQUOTE__selected$jscomp$170$$=$props_77499_variant__$1$jscomp$6$$.selected,$class$$jscomp$71$$=$props_77499_variant__$1$jscomp$6$$.className;$props_77499_variant__$1$jscomp$6$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_77499_variant__$1$jscomp$6$$.variant,
"S");var $profile__$1$jscomp$6$$=$APP.$cljs$core$object_QMARK_$$($href$jscomp$16_profile$jscomp$60$$)?$APP.$rumext$v2$util$bean$$($href$jscomp$16_profile$jscomp$60$$):$href$jscomp$16_profile$jscomp$60$$;$href$jscomp$16_profile$jscomp$60$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($profile__$1$jscomp$6$$)],function(){var $fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$=$APP.$cljs$core$__destructure_map$$($profile__$1$jscomp$6$$);var $JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$,$APP.$cljs$cst$3178$photo_url$$);var $photo_id$jscomp$inline_12932$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$,$APP.$cljs$cst$1348$photo_id$$);$fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$,
$APP.$cljs$cst$1349$fullname$$);$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$)||($JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$=$photo_id$jscomp$inline_12932$$==null?null:$APP.$app$config$resolve_media$$($photo_id$jscomp$inline_12932$$),$JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$)?$JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$:(0,$APP.$app$util$avatars$generate$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$723$name$$,$fullname$jscomp$inline_12933_map__77497__$1$jscomp$inline_12930$$],null)));return $JSCompiler_inline_result$jscomp$10599_or__5025__auto____$1$jscomp$inline_12934_photo_url$jscomp$inline_12931$$});
$class_SINGLEQUOTE__selected$jscomp$170$$="main_ui_ds_product_avatar__avatar "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_77499_variant__$1$jscomp$6$$,"S")?"main_ui_ds_product_avatar__avatar-small":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_77499_variant__$1$jscomp$6$$,"M")?"main_ui_ds_product_avatar__avatar-medium":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_77499_variant__$1$jscomp$6$$,"L")?"main_ui_ds_product_avatar__avatar-large":
"")+" "+($APP.$cljs$core$truth_$$($class_SINGLEQUOTE__selected$jscomp$170$$)?"main_ui_ds_product_avatar__is-selected":"");return(0,$APP.$rumext$v2$jsx$$)($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($tag$jscomp$93$$,"div"),{className:($class$$jscomp$71$$??"")+" "+($class_SINGLEQUOTE__selected$jscomp$170$$??""),title:$APP.$cljs$cst$1349$fullname$$.$cljs$core$IFn$_invoke$arity$1$($profile__$1$jscomp$6$$),children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_product_avatar__avatar-image",
children:(0,$APP.$rumext$v2$jsx$$)("img",{alt:$APP.$cljs$cst$1349$fullname$$.$cljs$core$IFn$_invoke$arity$1$($profile__$1$jscomp$6$$),src:$href$jscomp$16_profile$jscomp$60$$})})})};
$app$main$ui$ds$product$milestone$milestone_STAR_$$=function($props_77500_props__$1$jscomp$81$$){var $created_at$jscomp$1_created_at__$1$jscomp$1$$=void 0,$profile$jscomp$61$$=void 0,$on_blur_input$$=void 0,$on_key_down_input$$=void 0,$on_focus_input$$=void 0,$editing$jscomp$2$$=void 0,$active$jscomp$2$$=void 0,$locked$$=void 0,$label$jscomp$43$$=void 0,$class$$jscomp$72$$=void 0,$on_open_menu$jscomp$1$$=void 0,$props$jscomp$337$$=void 0;({createdAt:$created_at$jscomp$1_created_at__$1$jscomp$1$$,
profile:$profile$jscomp$61$$,onBlurInput:$on_blur_input$$,onKeyDownInput:$on_key_down_input$$,onFocusInput:$on_focus_input$$,editing:$editing$jscomp$2$$,active:$active$jscomp$2$$,locked:$locked$$,label:$label$jscomp$43$$,className:$class$$jscomp$72$$,onOpenMenu:$on_open_menu$jscomp$1$$,...$props$jscomp$337$$}=$props_77500_props__$1$jscomp$81$$);$props_77500_props__$1$jscomp$81$$={...$props$jscomp$337$$,className:($class$$jscomp$72$$??"")+" main_ui_ds_product_milestone__milestone "+($APP.$cljs$core$truth_$$($active$jscomp$2$$)?
"main_ui_ds_product_milestone__is-selected":""),"data-testid":"milestone"};$created_at$jscomp$1_created_at__$1$jscomp$1$$=$APP.$app$common$time$inst_QMARK_$$($created_at$jscomp$1_created_at__$1$jscomp$1$$)?$created_at$jscomp$1_created_at__$1$jscomp$1$$:$APP.$app$common$time$inst$$($created_at$jscomp$1_created_at__$1$jscomp$1$$);return(0,$APP.$rumext$v2$create_element$$)("div",$props_77500_props__$1$jscomp$81$$,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$avatar$avatar_STAR_$$,{profile:$profile$jscomp$61$$,
variant:"S",className:"main_ui_ds_product_milestone__avatar"}),$editing$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$input$input_STAR_$$,{className:"main_ui_ds_product_milestone__name-input",variant:"seamless",defaultValue:$label$jscomp$43$$,autoFocus:!0,onFocus:$on_focus_input$$,onBlur:$on_blur_input$$,onKeyDown:$on_key_down_input$$}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_product_milestone__name-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-small",className:"main_ui_ds_product_milestone__name",children:$label$jscomp$43$$}),$APP.$cljs$core$truth_$$($locked$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"lock",className:"main_ui_ds_product_milestone__lock-icon"}):null]}),(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("time",{dateTime:$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($created_at$jscomp$1_created_at__$1$jscomp$1$$,
$APP.$cljs$cst$1136$iso$$),className:"main_ui_ds_product_milestone__date",children:$APP.$app$common$time$timeago$$($created_at$jscomp$1_created_at__$1$jscomp$1$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_product_milestone__milestone-buttons",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{className:"main_ui_ds_product_milestone__menu-button",variant:"ghost",icon:"menu","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.version-menu"),
onClick:$on_open_menu$jscomp$1$$})})]}))};
$app$main$ui$ds$utilities$date$date_STAR_$$=function($date__$1_props_77501$$){var $date$jscomp$24$$=void 0,$selected$jscomp$171$$=void 0,$class$$jscomp$73$$=void 0,$typography$jscomp$37$$=void 0;({className:$class$$jscomp$73$$,date:$date$jscomp$24$$,selected:$selected$jscomp$171$$,typography:$typography$jscomp$37$$}=$date__$1_props_77501$$);$date__$1_props_77501$$=function(){var $G__77502$$=$date$jscomp$24$$;return $APP.$app$common$time$inst_QMARK_$$($date$jscomp$24$$)?$G__77502$$:$APP.$app$common$time$inst$$($G__77502$$)}();
return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"time",typography:function(){var $or__5025__auto__$jscomp$1142$$=$typography$jscomp$37$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1142$$)?$or__5025__auto__$jscomp$1142$$:"body-medium"}(),className:($class$$jscomp$73$$??"")+" main_ui_ds_utilities_date__date "+($APP.$cljs$core$truth_$$($selected$jscomp$171$$)?"main_ui_ds_utilities_date__is-selected":""),dateTime:$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($date__$1_props_77501$$,
$APP.$cljs$cst$1136$iso$$),children:$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($date__$1_props_77501$$,$cljs$cst$5499$localized_date_time$$)})};
$app$main$ui$ds$product$milestone_group$milestone_group_STAR_$$=function($props_77503_props__$1$jscomp$82$$){var $on_menu_click$jscomp$4$$=void 0,$active$jscomp$3_open_QMARK_$jscomp$28$$=void 0,$label$jscomp$44$$=void 0,$class$$jscomp$74_on_toggle_visibility$jscomp$4$$=void 0,$snapshots$$=void 0,$props$jscomp$339_snapshots__$1$$=void 0;({className:$class$$jscomp$74_on_toggle_visibility$jscomp$4$$,active:$active$jscomp$3_open_QMARK_$jscomp$28$$,label:$label$jscomp$44$$,snapshots:$snapshots$$,onMenuClick:$on_menu_click$jscomp$4$$,
...$props$jscomp$339_snapshots__$1$$}=$props_77503_props__$1$jscomp$82$$);$props_77503_props__$1$jscomp$82$$={...$props$jscomp$339_snapshots__$1$$,className:($class$$jscomp$74_on_toggle_visibility$jscomp$4$$??"")+" main_ui_ds_product_milestone_group__milestone "+($APP.$cljs$core$truth_$$($active$jscomp$3_open_QMARK_$jscomp$28$$)?"main_ui_ds_product_milestone_group__is-selected":""),"data-testid":"milestone"};var $open_STAR_$jscomp$11$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);
$active$jscomp$3_open_QMARK_$jscomp$28$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$11$$);$class$$jscomp$74_on_toggle_visibility$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$2$($open_STAR_$jscomp$11$$,$APP.$cljs$core$not$$)});var $on_menu_click__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_menu_click$jscomp$4$$)],function($event$jscomp$526$$){var $index$jscomp$533$$=
$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$526$$),"index"));return $APP.$cljs$core$fn_QMARK_$$($on_menu_click$jscomp$4$$)?$on_menu_click$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$on_menu_click$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$533$$,$event$jscomp$526$$):$on_menu_click$jscomp$4$$($index$jscomp$533$$,$event$jscomp$526$$):null});$props$jscomp$339_snapshots__$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($snapshots$$)],function(){return $APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$534$$,$date$jscomp$25$$){return new $APP.$cljs$core$MapEntry$$($date$jscomp$25$$,$index$jscomp$534$$,null)},$snapshots$$)});return(0,$APP.$rumext$v2$create_element$$)("div",$props_77503_props__$1$jscomp$82$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",
typography:"body-small",className:"main_ui_ds_product_milestone_group__name",children:$label$jscomp$44$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_product_milestone_group__snapshots",children:[(0,$APP.$rumext$v2$jsxs$$)("button",{"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.expand-snapshot"),onClick:$class$$jscomp$74_on_toggle_visibility$jscomp$4$$,className:"main_ui_ds_product_milestone_group__toggle-snapshots",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"clock",className:"main_ui_ds_product_milestone_group__icon-clock"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-medium",className:"main_ui_ds_product_milestone_group__toggle-message",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.versions.autosaved.entry",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$count$$($props$jscomp$339_snapshots__$1$$)]))}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"arrow",className:"main_ui_ds_product_milestone_group__icon-arrow "+($APP.$cljs$core$truth_$$($active$jscomp$3_open_QMARK_$jscomp$28$$)?"main_ui_ds_product_milestone_group__icon-arrow-toggled":"")})]}),$active$jscomp$3_open_QMARK_$jscomp$28$$?$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$201$$,$index$jscomp$535_p__77504$$){var $date$jscomp$26$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($index$jscomp$535_p__77504$$,0,null);
$index$jscomp$535_p__77504$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($index$jscomp$535_p__77504$$,1,null);$out_arr__44057__auto__$jscomp$201$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_product_milestone_group__version-entry",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$utilities$date$date_STAR_$$,{date:$date$jscomp$26$$,className:"main_ui_ds_product_milestone_group__date",typography:"body-small"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{className:"main_ui_ds_product_milestone_group__entry-button",variant:"ghost",icon:"menu","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.version-menu"),"data-index":$index$jscomp$535_p__77504$$,onClick:$on_menu_click__$1$$})]},"entry-"+($index$jscomp$535_p__77504$$??"")));return $out_arr__44057__auto__$jscomp$201$$},[],$props$jscomp$339_snapshots__$1$$):null]}))};
$app$main$ui$workspace$sidebar$versions$get_versions_stored_days$$=function($subscription_type$jscomp$8_team$jscomp$41$$){$subscription_type$jscomp$8_team$jscomp$41$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($subscription_type$jscomp$8_team$jscomp$41$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$8_team$jscomp$41$$,"unlimited")?30:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($subscription_type$jscomp$8_team$jscomp$41$$,
"enterprise")?90:7};
$app$main$ui$workspace$sidebar$versions$get_versions_warning_subtext$$=function($email_owner_team$jscomp$42$$){var $subscription_type$jscomp$9$$=$APP.$app$main$ui$dashboard$subscription$get_subscription_type$$($APP.$cljs$cst$3182$subscription$$.$cljs$core$IFn$_invoke$arity$1$($email_owner_team$jscomp$42$$)),$is_owner_QMARK_$jscomp$1$$=$APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($email_owner_team$jscomp$42$$));$email_owner_team$jscomp$42$$=
$APP.$cljs$cst$3176$email$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$some$$(function($p1__77508_SHARP_$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$1582$is_owner$$.$cljs$core$IFn$_invoke$arity$1$($p1__77508_SHARP_$$))?$p1__77508_SHARP_$$:null},$APP.$cljs$cst$3239$members$$.$cljs$core$IFn$_invoke$arity$1$($email_owner_team$jscomp$42$$)));var $go_to_subscription$jscomp$2$$=""+($APP.$lambdaisland$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$$,
"#/settings/subscriptions"]))??"");return $APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1216$subscriptions$$)?$APP.$cljs$core$truth_$$($is_owner_QMARK_$jscomp$1$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("enterprise",$subscription_type$jscomp$9$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.workspace.versions.warning.enterprise.subtext-owner",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["support@penpot.app",
"support@penpot.app"])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.workspace.versions.warning.subtext-owner",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$go_to_subscription$jscomp$2$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("subscription.workspace.versions.warning.subtext-member",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$email_owner_team$jscomp$42$$,$email_owner_team$jscomp$42$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.versions.warning.subtext",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["support@penpot.app"]))};
$app$main$ui$workspace$sidebar$versions$group_snapshots$$=function($data$jscomp$479$$){return $APP.$cljs$core$reverse$$($APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$(function($index$jscomp$536$$,$item$jscomp$133$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($item$jscomp$133$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$536$$)},$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77510_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__77510_SHARP_$$,
$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2247$version$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77509_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("user",$APP.$cljs$cst$5501$created_by$$.$cljs$core$IFn$_invoke$arity$1$($p1__77509_SHARP_$$))},$data$jscomp$479$$)),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($entries$jscomp$42_p__77513$$){var $day$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($entries$jscomp$42_p__77513$$,
0,null);$entries$jscomp$42_p__77513$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($entries$jscomp$42_p__77513$$,1,null);return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$cljs$cst$5502$snapshot$$,$APP.$cljs$cst$1553$created_at$$,$APP.$app$common$time$inst$$($day$jscomp$3$$),$cljs$cst$5500$snapshots$$,$entries$jscomp$42_p__77513$$],null)},$APP.$cljs$core$group_by$$(function($p1__77512_SHARP_$$){return $APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($p1__77512_SHARP_$$),
$cljs$cst$5503$iso_date$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77511_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("system",$APP.$cljs$cst$5501$created_by$$.$cljs$core$IFn$_invoke$arity$1$($p1__77511_SHARP_$$))},$data$jscomp$479$$)))))))};
$app$main$ui$workspace$sidebar$versions$open_restore_version_dialog$$=function($origin$jscomp$64$$,$id$jscomp$938$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$dialog$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.restore-warning"),$APP.$cljs$cst$2307$controls$$,$APP.$cljs$cst$2309$inline_actions$$,
$APP.$cljs$cst$2312$cancel$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.updates.dismiss"),$APP.$cljs$cst$2311$callback$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$hide$$())}],null),$APP.$cljs$cst$922$accept$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.restore"),
$APP.$cljs$cst$2311$callback$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$restore_version$$($id$jscomp$938$$,$origin$jscomp$64$$))}],null),$APP.$cljs$cst$78$tag$$,$cljs$cst$5504$restore_dialog$$])))};
$app$main$ui$workspace$sidebar$versions$version_entry_STAR_$$=function($on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$){var $current_profile$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.currentProfile,$on_delete$jscomp$12$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onDelete,$on_cancel_edit$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onCancelEdit,$on_lock$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onLock,$on_unlock$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onUnlock,
$on_edit$jscomp$8$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onEdit,$is_editing$jscomp$2$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.isEditing,$on_restore$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onRestore,$on_rename$jscomp$2$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.onRename,$entry$jscomp$76$$=$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$.entry,$show_menu_QMARK_$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);
$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profiles$$);var $created_by$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$,$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$));$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_menu_QMARK_$jscomp$4$$,
!0)});var $on_close_menu$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_menu_QMARK_$jscomp$4$$,!1)}),$on_edit__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_edit$jscomp$8$$),$APP.$rumext$v2$adapt$$($entry$jscomp$76$$)],function($event$jscomp$527$$){var $G__77518$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_edit$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$?
$on_edit$jscomp$8$$.$cljs$core$IFn$_invoke$arity$2$($G__77518$$,$event$jscomp$527$$):$on_edit$jscomp$8$$($G__77518$$,$event$jscomp$527$$)}),$on_restore__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_restore$$)],function(){if($APP.$cljs$core$fn_QMARK_$$($on_restore$$)){var $G__77520$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_restore$$.$cljs$core$IFn$_invoke$arity$1$?
$on_restore$$.$cljs$core$IFn$_invoke$arity$1$($G__77520$$):$on_restore$$($G__77520$$)}return null}),$on_delete__$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_delete$jscomp$12$$)],function($event$jscomp$528$$){if($APP.$cljs$core$fn_QMARK_$$($on_delete$jscomp$12$$)){var $G__77521$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_delete$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$?
$on_delete$jscomp$12$$.$cljs$core$IFn$_invoke$arity$2$($G__77521$$,$event$jscomp$528$$):$on_delete$jscomp$12$$($G__77521$$,$event$jscomp$528$$)}return null}),$on_lock__$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_lock$$)],function(){if($APP.$cljs$core$truth_$$($on_lock$$)){var $G__77523$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_lock$$.$cljs$core$IFn$_invoke$arity$1$?
$on_lock$$.$cljs$core$IFn$_invoke$arity$1$($G__77523$$):$on_lock$$($G__77523$$)}return null}),$on_unlock__$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_unlock$$)],function(){if($APP.$cljs$core$truth_$$($on_unlock$$)){var $G__77524$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_unlock$$.$cljs$core$IFn$_invoke$arity$1$?$on_unlock$$.$cljs$core$IFn$_invoke$arity$1$($G__77524$$):
$on_unlock$$($G__77524$$)}return null}),$on_name_input_focus$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$529$$){return $APP.$app$util$dom$select_text_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$529$$))}),$on_name_input_blur$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),$APP.$rumext$v2$adapt$$($on_rename$jscomp$2$$),$APP.$rumext$v2$adapt$$($on_cancel_edit$$)],function($event$jscomp$530$$){var $G__77528_label$jscomp$45$$=
$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$530$$));if(!$APP.$cuerdas$core$empty_QMARK_$$($G__77528_label$jscomp$45$$)&&$APP.$cljs$core$fn_QMARK_$$($on_rename$jscomp$2$$)){var $G__77525$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_rename$jscomp$2$$.$cljs$core$IFn$_invoke$arity$3$?$on_rename$jscomp$2$$.$cljs$core$IFn$_invoke$arity$3$($G__77525$$,$G__77528_label$jscomp$45$$,$event$jscomp$530$$):
$on_rename$jscomp$2$$($G__77525$$,$G__77528_label$jscomp$45$$,$event$jscomp$530$$)}$G__77528_label$jscomp$45$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_cancel_edit$$.$cljs$core$IFn$_invoke$arity$2$?$on_cancel_edit$$.$cljs$core$IFn$_invoke$arity$2$($G__77528_label$jscomp$45$$,$event$jscomp$530$$):$on_cancel_edit$$($G__77528_label$jscomp$45$$,$event$jscomp$530$$)}),$on_name_input_key_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$76$$),
$APP.$rumext$v2$adapt$$($on_cancel_edit$$),$APP.$rumext$v2$adapt$$($on_name_input_blur$$)],function($event$jscomp$531$$){if($APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$531$$)))return $on_name_input_blur$$.$cljs$core$IFn$_invoke$arity$1$?$on_name_input_blur$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$531$$):$on_name_input_blur$$($event$jscomp$531$$);if($APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$531$$))&&$APP.$cljs$core$fn_QMARK_$$($on_cancel_edit$$)){var $G__77530$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$);return $on_cancel_edit$$.$cljs$core$IFn$_invoke$arity$2$?$on_cancel_edit$$.$cljs$core$IFn$_invoke$arity$2$($G__77530$$,$event$jscomp$531$$):$on_cancel_edit$$($G__77530$$,$event$jscomp$531$$)}return null});return(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_sidebar_versions__version-entry-wrap",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$milestone$milestone_STAR_$$,{onBlurInput:$on_name_input_blur$$,
createdAt:$APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$),label:$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$),profile:$created_by$$,onKeyDownInput:$on_name_input_key_down$$,editing:$is_editing$jscomp$2$$,onFocusInput:$on_name_input_focus$$,locked:$cljs$cst$5505$locked_by$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$)!=null,onOpenMenu:$on_open_menu$jscomp$2_profiles$jscomp$4_props_77517$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,
{show:$APP.$cljs$core$_deref$$($show_menu_QMARK_$jscomp$4$$),"on-close":$on_close_menu$jscomp$5$$,children:function(){var $current_user_id_is_locked_by_me_QMARK_$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($current_profile$$),$is_locked_QMARK__locked_by_id$$=$cljs$cst$5505$locked_by$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$76$$),$im_the_owner_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_user_id_is_locked_by_me_QMARK_$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($created_by$$));
$current_user_id_is_locked_by_me_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_user_id_is_locked_by_me_QMARK_$$,$is_locked_QMARK__locked_by_id$$);$is_locked_QMARK__locked_by_id$$=$is_locked_QMARK__locked_by_id$$!=null;var $can_delete_QMARK_$jscomp$1$$=!$is_locked_QMARK__locked_by_id$$||$is_locked_QMARK__locked_by_id$$&&$current_user_id_is_locked_by_me_QMARK_$$;return(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_sidebar_versions__version-options-dropdown",
children:[$im_the_owner_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",onClick:$on_edit__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.rename")}):null,(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",onClick:$on_restore__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.restore")}),$current_user_id_is_locked_by_me_QMARK_$$?
(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",onClick:$on_unlock__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.unlock")}):$im_the_owner_QMARK_$$&&!$is_locked_QMARK__locked_by_id$$?(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",onClick:$on_lock__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.lock")}):null,$can_delete_QMARK_$jscomp$1$$?
(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",onClick:$on_delete__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete")}):null]})}()})]})};
$app$main$ui$workspace$sidebar$versions$snapshot_entry_STAR_$$=function($on_pin_snapshot__$1_props_77532$$){var $on_restore_snapshot$$=$on_pin_snapshot__$1_props_77532$$.onRestoreSnapshot,$on_pin_snapshot$$=$on_pin_snapshot__$1_props_77532$$.onPinSnapshot,$entry$jscomp$77$$=$on_pin_snapshot__$1_props_77532$$.entry,$open_menu_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$entry_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);$on_pin_snapshot__$1_props_77532$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_pin_snapshot$$)],
function($event$jscomp$532$$){var $id$jscomp$939$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$532$$),"id"));return $APP.$cljs$core$fn_QMARK_$$($on_pin_snapshot$$)?$on_pin_snapshot$$.$cljs$core$IFn$_invoke$arity$2$?$on_pin_snapshot$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$939$$,$event$jscomp$532$$):$on_pin_snapshot$$($id$jscomp$939$$,$event$jscomp$532$$):null});var $on_restore_snapshot__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_restore_snapshot$$)],
function($event$jscomp$533$$){var $id$jscomp$940$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$533$$),"id"));return $APP.$cljs$core$fn_QMARK_$$($on_restore_snapshot$$)?$on_restore_snapshot$$.$cljs$core$IFn$_invoke$arity$2$?$on_restore_snapshot$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$940$$,$event$jscomp$533$$):$on_restore_snapshot$$($id$jscomp$940$$,$event$jscomp$533$$):null}),$on_open_snapshot_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($entry$jscomp$77$$)],
function($index$jscomp$537_snapshot$jscomp$1$$,$event$jscomp$534_offset$jscomp$203$$){$index$jscomp$537_snapshot$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5500$snapshots$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$77$$),$index$jscomp$537_snapshot$jscomp$1$$);var $current_bb$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$rumext$v2$ref_val$$($entry_ref$$)));$event$jscomp$534_offset$jscomp$203$$=$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_target$$($event$jscomp$534_offset$jscomp$203$$)))-
$current_bb$$+32;return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($open_menu_STAR_$$,$APP.$cljs$core$assoc$$,$cljs$cst$5502$snapshot$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$537_snapshot$jscomp$1$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$195$offset$$,$event$jscomp$534_offset$jscomp$203$$]))});return(0,$APP.$rumext$v2$jsxs$$)("li",{ref:$entry_ref$$,className:"main_ui_workspace_sidebar_versions__version-entry-wrap",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$product$milestone_group$milestone_group_STAR_$$,{label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.versions.autosaved.version",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$time$format_inst$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$77$$),$APP.$cljs$cst$4832$localized_date$$)])),snapshots:$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1553$created_at$$,
$cljs$cst$5500$snapshots$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$77$$)),onMenuClick:$on_open_snapshot_menu$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$APP.$cljs$core$_deref$$($open_menu_STAR_$$)!=null,"on-close":function(){return $APP.$cljs$core$reset_BANG_$$($open_menu_STAR_$$,null)},children:(0,$APP.$rumext$v2$jsxs$$)("ul",{style:{"--offset":""+($APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($open_menu_STAR_$$))??
"")+"px"},className:"main_ui_workspace_sidebar_versions__version-options-dropdown",children:[(0,$APP.$rumext$v2$jsx$$)("li",{role:"button","data-id":""+($cljs$cst$5502$snapshot$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($open_menu_STAR_$$))??""),onClick:$on_restore_snapshot__$1$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.button.restore")}),(0,$APP.$rumext$v2$jsx$$)("li",{role:"button",
"data-id":""+($cljs$cst$5502$snapshot$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($open_menu_STAR_$$))??""),onClick:$on_pin_snapshot__$1_props_77532$$,className:"main_ui_workspace_sidebar_versions__menu-option",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.button.pin")})]})})]})};
$app$main$ui$workspace$sidebar$versions$versions_toolbox_STAR_$$=function(){var $profiles$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profiles$$),$profile$jscomp$62$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$team$jscomp$43$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$team$$),$map__77535_status$jscomp$25$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$versions$versions$$),$map__77535__$1$$=$APP.$cljs$core$__destructure_map$$($map__77535_status$jscomp$25$$);$map__77535_status$jscomp$25$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77535__$1$$,$APP.$cljs$cst$109$status$$);var $data$jscomp$480$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77535__$1$$,$APP.$cljs$cst$142$data$$),$editing$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77535__$1$$,$APP.$cljs$cst$3451$editing$$),$users$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$480$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($created_by$jscomp$1_p__77536$$){var $map__77537__$1_profile_id$jscomp$19$$=$APP.$cljs$core$__destructure_map$$($created_by$jscomp$1_p__77536$$);$created_by$jscomp$1_p__77536$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77537__$1_profile_id$jscomp$19$$,$APP.$cljs$cst$5501$created_by$$);$map__77537__$1_profile_id$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77537__$1_profile_id$jscomp$19$$,
$APP.$cljs$cst$2271$profile_id$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("user",$created_by$jscomp$1_p__77536$$)?$map__77537__$1_profile_id$jscomp$19$$:null}),$data$jscomp$480$$)}),$entries$jscomp$43$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($map__77535__$1$$)],function(){return $app$main$ui$workspace$sidebar$versions$group_snapshots$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77533_SHARP_$$){return $APP.$cljs$core$not$$($APP.$cljs$cst$2649$filter$$.$cljs$core$IFn$_invoke$arity$1$($map__77535__$1$$))||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("user",$APP.$cljs$cst$5501$created_by$$.$cljs$core$IFn$_invoke$arity$1$($p1__77533_SHARP_$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2649$filter$$.$cljs$core$IFn$_invoke$arity$1$($map__77535__$1$$),$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__77533_SHARP_$$))},$APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($map__77535__$1$$)))}),$on_create_version$$=$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$workspace$versions$create_version$$())}),
$on_edit_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$941$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3451$editing$$,$id$jscomp$941$$],null)))}),$on_cancel_version_edition$$=$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$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$3451$editing$$,null],null)))}),$on_rename_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$942$$,$label$jscomp$46$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$rename_version$$($id$jscomp$942$$,$label$jscomp$46$$))}),$on_restore_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$943$$){return $app$main$ui$workspace$sidebar$versions$open_restore_version_dialog$$($APP.$cljs$cst$2247$version$$,
$id$jscomp$943$$)}),$on_restore_snapshot$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$944$$){return $app$main$ui$workspace$sidebar$versions$open_restore_version_dialog$$($cljs$cst$5502$snapshot$$,$id$jscomp$944$$)}),$on_delete_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$945$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$delete_version$$($id$jscomp$945$$))}),
$on_pin_version$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$946$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$pin_version$$($id$jscomp$946$$))}),$on_lock_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$947$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$lock_version$$($id$jscomp$947$$))}),
$on_unlock_version$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$948$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$unlock_version$$($id$jscomp$948$$))}),$on_change_filter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($filter$jscomp$6$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2106$all$$,$filter$jscomp$6$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2649$filter$$,null],null))):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5506$own$$,$filter$jscomp$6$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2649$filter$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$62$$)],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$versions$update_versions_state$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2649$filter$$,$filter$jscomp$6$$],null)))}),$options$jscomp$621$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($users$jscomp$3$$),$APP.$rumext$v2$adapt$$($profile$jscomp$62$$)],function(){var $current_profile_id$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profile$jscomp$62$$,$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2106$all$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.filter.all")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$cljs$cst$5506$own$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.filter.mine")],null)],null),$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$949$$){if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$949$$,
$current_profile_id$$)){var $temp__5825__auto__$jscomp$363$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profiles$jscomp$5$$,$id$jscomp$949$$),$APP.$cljs$cst$1349$fullname$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$363$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$id$jscomp$949$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.versions.filter.user",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$temp__5825__auto__$jscomp$363$$]))],null):null}return null}),$users$jscomp$3$$)});$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$main$data$workspace$versions$init_versions_state$$())});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_versions__version-toolbox",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"default-value":$APP.$cljs$cst$2106$all$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.filter.label"),options:$options$jscomp$621$$,"on-change":$on_change_filter$$}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__77535_status$jscomp$25$$,$APP.$cljs$cst$4824$loading$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_versions__versions-empty",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,
{icon:"clock",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.loading")})}):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($map__77535_status$jscomp$25$$,$APP.$cljs$cst$4829$loaded$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_versions__version-save-version",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.button.save"),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.button.save"),onClick:$on_create_version$$,icon:"pin"})]}),$APP.$cljs$core$empty_QMARK_$$($data$jscomp$480$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_versions__versions-empty",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$empty_state$empty_state_STAR_$$,{icon:"history",text:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.empty")})}):
(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_versions__versions-entries",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$202$$,$entry$jscomp$78$$){$out_arr__44057__auto__$jscomp$202$$.push(function(){var $G__77545$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$78$$);switch($G__77545$$ instanceof $APP.$cljs$core$Keyword$$?$G__77545$$.$fqn$:null){case "version":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$versions$version_entry_STAR_$$,
{entry:$entry$jscomp$78$$,onDelete:$on_delete_version$$,onLock:$on_lock_version$$,currentProfile:$profile$jscomp$62$$,onRestore:$on_restore_version$$,onUnlock:$on_unlock_version$$,onEdit:$on_edit_version$$,onCancelEdit:$on_cancel_version_edition$$,onRename:$on_rename_version$$,isEditing:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$78$$),$editing$jscomp$3$$)},$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$78$$));
case "snapshot":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$versions$snapshot_entry_STAR_$$,{entry:$entry$jscomp$78$$,onRestoreSnapshot:$on_restore_snapshot$jscomp$1$$,onPinSnapshot:$on_pin_version$jscomp$1$$},$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($entry$jscomp$78$$));default:return null}}());return $out_arr__44057__auto__$jscomp$202$$},[],$entries$jscomp$43$$)}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$cta$cta_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.versions.warning.text",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$workspace$sidebar$versions$get_versions_stored_days$$($team$jscomp$43$$)])),children:$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{tagName:"div",className:"main_ui_workspace_sidebar_versions__cta",content:$app$main$ui$workspace$sidebar$versions$get_versions_warning_subtext$$($team$jscomp$43$$)})})]}):null]})};
$app$main$ui$workspace$tokens$management$context_menu$key_in_map_QMARK_$$=function($ks$jscomp$64$$,$m$jscomp$236$$){return $APP.$cljs$core$some$$(function($p1__77538_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($m$jscomp$236$$,$p1__77538_SHARP_$$)},$ks$jscomp$64$$)};
$app$main$ui$workspace$tokens$management$context_menu$clean_separators$$=function($items$jscomp$58_items_SINGLEQUOTE_$$){$items$jscomp$58_items_SINGLEQUOTE_$$=$APP.$cljs$core$drop_while$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__77539_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77539_SHARP_$$,$APP.$cljs$cst$1461$separator$$)},$APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$core$dedupe$cljs$0core$0IFn$0_invoke$0arity$00$$(),$items$jscomp$58_items_SINGLEQUOTE_$$));
return $APP.$cljs$core$every_QMARK_$$(function($p1__77540_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77540_SHARP_$$,$APP.$cljs$cst$1461$separator$$)},$items$jscomp$58_items_SINGLEQUOTE_$$)?null:$items$jscomp$58_items_SINGLEQUOTE_$$};
$app$main$ui$workspace$tokens$management$context_menu$attribute_actions$$=function($shape_ids$jscomp$107_token$jscomp$133$$,$selected_shapes$jscomp$12$$,$attributes$jscomp$75$$){var $ids_by_attributes$jscomp$1$$=$app$common$files$tokens$shapes_ids_by_applied_attributes$$($shape_ids$jscomp$107_token$jscomp$133$$,$selected_shapes$jscomp$12$$,$attributes$jscomp$75$$);$shape_ids$jscomp$107_token$jscomp$133$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$selected_shapes$jscomp$12$$));return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5507$all_selected_QMARK_$$,$app$common$files$tokens$shapes_applied_all_QMARK_$$($ids_by_attributes$jscomp$1$$,$shape_ids$jscomp$107_token$jscomp$133$$,$attributes$jscomp$75$$),$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$107_token$jscomp$133$$,$cljs$cst$5508$selected_pred$$,function($p1__77541_SHARP_$$){return $APP.$cljs$core$seq$$($p1__77541_SHARP_$$.$cljs$core$IFn$_invoke$arity$1$?
$p1__77541_SHARP_$$.$cljs$core$IFn$_invoke$arity$1$($ids_by_attributes$jscomp$1$$):$p1__77541_SHARP_$$($ids_by_attributes$jscomp$1$$))}],null)};
$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$=function($allowed_attributes_attributes$jscomp$76$$,$title$jscomp$41$$,$map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$){var $allowed_shape_attributes_map__77544__$1$$=$APP.$cljs$core$__destructure_map$$($map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$),$token$jscomp$134$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes_map__77544__$1$$,$APP.$cljs$cst$1134$token$$);
$map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes_map__77544__$1$$,$APP.$cljs$cst$5084$selected_shapes$$);var $on_update_shape$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes_map__77544__$1$$,$APP.$cljs$cst$4482$on_update_shape$$),$hint$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes_map__77544__$1$$,$APP.$cljs$cst$273$hint$$);
$allowed_shape_attributes_map__77544__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes_map__77544__$1$$,$cljs$cst$5509$allowed_shape_attributes$$);$allowed_attributes_attributes$jscomp$76$$=$APP.$clojure$set$intersection$$.$cljs$core$IFn$_invoke$arity$2$($allowed_attributes_attributes$jscomp$76$$,$allowed_shape_attributes_map__77544__$1$$);var $on_update_shape_fn$$=$APP.$cljs$core$truth_$$($on_update_shape$jscomp$4$$)?$on_update_shape$jscomp$4$$:$APP.$cljs$core$truth_$$($token$jscomp$134$$)?
$APP.$cljs$cst$4482$on_update_shape$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$application$get_token_properties$$($token$jscomp$134$$)):null;$map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$=$app$main$ui$workspace$tokens$management$context_menu$attribute_actions$$($token$jscomp$134$$,$map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$,$allowed_attributes_attributes$jscomp$76$$);$map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$=$APP.$cljs$core$__destructure_map$$($map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$);
var $selected_pred$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$,$cljs$cst$5508$selected_pred$$),$shape_ids$jscomp$108$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77546_map__77546__$1_p__77542_selected_shapes$jscomp$13$$,$APP.$cljs$cst$4477$shape_ids$$);return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($attribute$jscomp$2$$){var $selected_QMARK_$jscomp$7$$=$selected_pred$$.$cljs$core$IFn$_invoke$arity$1$?
$selected_pred$$.$cljs$core$IFn$_invoke$arity$1$($attribute$jscomp$2$$):$selected_pred$$($attribute$jscomp$2$$),$props$jscomp$340$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attribute$jscomp$2$$]),$APP.$cljs$cst$1134$token$$,$token$jscomp$134$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$108$$],null),$unnaply_props$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$134$$),$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attribute$jscomp$2$$]),$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$108$$],null);return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$937$title$$,$title$jscomp$41$$,$APP.$cljs$cst$273$hint$$,$hint$jscomp$16$$,$APP.$cljs$cst$5510$selected_QMARK_$$,$selected_QMARK_$jscomp$7$$,$APP.$cljs$cst$2627$action$$,function(){return $APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$7$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$($unnaply_props$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($props$jscomp$340$$,$APP.$cljs$cst$4482$on_update_shape$$,$on_update_shape_fn$$)))}],null)},$allowed_attributes_attributes$jscomp$76$$)};
$app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$=function($attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$,$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$){var $allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$=$APP.$cljs$core$__destructure_map$$($attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$);$attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,
$cljs$cst$5511$attribute_labels$$);var $on_update_shape_all$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,$cljs$cst$5512$on_update_shape_all$$),$on_update_shape$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,$APP.$cljs$cst$4482$on_update_shape$$),$hint$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,
$APP.$cljs$cst$273$hint$$);$allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$=$APP.$cljs$core$__destructure_map$$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$);var $token$jscomp$135$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,$APP.$cljs$cst$1134$token$$);$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,
$APP.$cljs$cst$5084$selected_shapes$$);$allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$,$cljs$cst$5509$allowed_shape_attributes$$);if($attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$=$APP.$cljs$core$seq$$($APP.$cljs$core$select_keys$$($attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$,$allowed_shape_attributes$jscomp$1_map__77551__$1_map__77552__$1$$))){var $attributes$jscomp$77$$=
$APP.$cljs$core$set$$($APP.$cljs$core$keys$$($attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$));$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$=$app$main$ui$workspace$tokens$management$context_menu$attribute_actions$$($token$jscomp$135$$,$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$,$attributes$jscomp$77$$);$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$=$APP.$cljs$core$__destructure_map$$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$);
var $all_selected_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$,$cljs$cst$5507$all_selected_QMARK_$$),$selected_pred$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$,$cljs$cst$5508$selected_pred$$),$shape_ids$jscomp$109$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$,
$APP.$cljs$cst$4477$shape_ids$$);$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$=function(){var $props$jscomp$341$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1978$attributes$$,$attributes$jscomp$77$$,$APP.$cljs$cst$1134$token$$,$token$jscomp$135$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$109$$],null),$unnaply_props$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$135$$),
$APP.$cljs$cst$1978$attributes$$,$attributes$jscomp$77$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$109$$],null);return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.all"),$APP.$cljs$cst$5510$selected_QMARK_$$,$all_selected_QMARK_$$,$APP.$cljs$cst$273$hint$$,$hint$jscomp$17$$,$APP.$cljs$cst$2627$action$$,function(){return $APP.$cljs$core$truth_$$($all_selected_QMARK_$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$($unnaply_props$jscomp$1$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($props$jscomp$341$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$cljs$core$truth_$$($on_update_shape_all$$)?$on_update_shape_all$$:$on_update_shape$jscomp$5$$)))}],null)}();$attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__77554_title$jscomp$42$$){var $attr$jscomp$92$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77554_title$jscomp$42$$,0,null);$p__77554_title$jscomp$42$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77554_title$jscomp$42$$,1,null);var $selected_QMARK_$jscomp$8$$=$selected_pred$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$selected_pred$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($attr$jscomp$92$$):$selected_pred$jscomp$1$$($attr$jscomp$92$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,
$p__77554_title$jscomp$42$$,$APP.$cljs$cst$5510$selected_QMARK_$$,function(){var $and__5023__auto__$jscomp$782$$=$APP.$cljs$core$not$$($all_selected_QMARK_$$);return $and__5023__auto__$jscomp$782$$?$selected_QMARK_$jscomp$8$$:$and__5023__auto__$jscomp$782$$}(),$APP.$cljs$cst$2627$action$$,function(){var $event$jscomp$535_props$jscomp$342$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$92$$]),$APP.$cljs$cst$1134$token$$,
$token$jscomp$135$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$109$$],null),$unnaply_props$jscomp$2$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$135$$),$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$92$$]),$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$109$$],null);$event$jscomp$535_props$jscomp$342$$=$APP.$cljs$core$truth_$$($all_selected_QMARK_$$)?
$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$535_props$jscomp$342$$,$APP.$cljs$cst$4481$attributes_to_remove$$,$attributes$jscomp$77$$)):$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$8$$)?$APP.$app$main$data$workspace$tokens$application$unapply_token$$($unnaply_props$jscomp$2$$):$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$535_props$jscomp$342$$,
$APP.$cljs$cst$4482$on_update_shape$$,$on_update_shape$jscomp$5$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$535_props$jscomp$342$$)}],null)},$attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$);return $APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$truth_$$($all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$all_action_map__77553_map__77553__$1_p__77550_selected_shapes$jscomp$14$$],null):null,$attribute_labels_p__77549_single_actions_temp__5825__auto__$jscomp$364$$)}return null};
$app$main$ui$workspace$tokens$management$context_menu$layout_spacing_items$$=function($all_attr_labels_p__77558_single_items$$){var $hint$jscomp$18_map__77559__$1_multi_items$$=$APP.$cljs$core$__destructure_map$$($all_attr_labels_p__77558_single_items$$),$token$jscomp$136$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,$APP.$cljs$cst$1134$token$$),$map__77560_map__77560__$1_selected_shapes$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,
$APP.$cljs$cst$5084$selected_shapes$$);$all_attr_labels_p__77558_single_items$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,$cljs$cst$5513$all_attr_labels$$);var $horizontal_attr_labels$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,$cljs$cst$5514$horizontal_attr_labels$$),$vertical_attr_labels$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,
$cljs$cst$5515$vertical_attr_labels$$),$on_update_shape$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,$APP.$cljs$cst$4482$on_update_shape$$);$hint$jscomp$18_map__77559__$1_multi_items$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,$APP.$cljs$cst$273$hint$$);var $horizontal_attrs$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$keys$$($horizontal_attr_labels$$)),
$vertical_attrs$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$keys$$($vertical_attr_labels$$)),$attrs$jscomp$169$$=$APP.$clojure$set$union$$.$cljs$core$IFn$_invoke$arity$2$($horizontal_attrs$$,$vertical_attrs$$);$map__77560_map__77560__$1_selected_shapes$jscomp$15$$=$app$main$ui$workspace$tokens$management$context_menu$attribute_actions$$($token$jscomp$136$$,$map__77560_map__77560__$1_selected_shapes$jscomp$15$$,$attrs$jscomp$169$$);
$map__77560_map__77560__$1_selected_shapes$jscomp$15$$=$APP.$cljs$core$__destructure_map$$($map__77560_map__77560__$1_selected_shapes$jscomp$15$$);var $all_selected_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77560_map__77560__$1_selected_shapes$jscomp$15$$,$cljs$cst$5507$all_selected_QMARK_$$),$selected_pred$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77560_map__77560__$1_selected_shapes$jscomp$15$$,$cljs$cst$5508$selected_pred$$),$shape_ids$jscomp$110$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77560_map__77560__$1_selected_shapes$jscomp$15$$,$APP.$cljs$cst$4477$shape_ids$$),$horizontal_selected_QMARK_$$=$APP.$cljs$core$not$$($all_selected_QMARK_$jscomp$1$$)&&$APP.$cljs$core$every_QMARK_$$($selected_pred$jscomp$2$$,$horizontal_attrs$$),$vertical_selected_QMARK_$$=$APP.$cljs$core$not$$($all_selected_QMARK_$jscomp$1$$)&&$APP.$cljs$core$every_QMARK_$$($selected_pred$jscomp$2$$,$vertical_attrs$$);$hint$jscomp$18_map__77559__$1_multi_items$$=
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.all"),$APP.$cljs$cst$5510$selected_QMARK_$$,$all_selected_QMARK_$jscomp$1$$,$APP.$cljs$cst$273$hint$$,$hint$jscomp$18_map__77559__$1_multi_items$$,$APP.$cljs$cst$2627$action$$,function(){var $props$jscomp$343$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1978$attributes$$,
$attrs$jscomp$169$$,$APP.$cljs$cst$1134$token$$,$token$jscomp$136$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$110$$],null),$unnaply_props$jscomp$3$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$136$$),$APP.$cljs$cst$1978$attributes$$,$attrs$jscomp$169$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$110$$],null);return $APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$($unnaply_props$jscomp$3$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($props$jscomp$343$$,$APP.$cljs$cst$4482$on_update_shape$$,$on_update_shape$jscomp$6$$)))}],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,"Horizontal",$APP.$cljs$cst$5510$selected_QMARK_$$,$horizontal_selected_QMARK_$$,$APP.$cljs$cst$2627$action$$,function(){var $event$jscomp$536_props$jscomp$344$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1134$token$$,$token$jscomp$136$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$110$$],null);$event$jscomp$536_props$jscomp$344$$=$APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$1$$)?$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$536_props$jscomp$344$$,$APP.$cljs$cst$4481$attributes_to_remove$$,$vertical_attrs$$)):$horizontal_selected_QMARK_$$?
$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$536_props$jscomp$344$$,$APP.$cljs$cst$4481$attributes_to_remove$$,$horizontal_attrs$$)):$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($event$jscomp$536_props$jscomp$344$$,$APP.$cljs$cst$1978$attributes$$,$horizontal_attrs$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4482$on_update_shape$$,
$on_update_shape$jscomp$6$$])));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$536_props$jscomp$344$$)}],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,"Vertical",$APP.$cljs$cst$5510$selected_QMARK_$$,$vertical_selected_QMARK_$$,$APP.$cljs$cst$2627$action$$,function(){var $event$jscomp$537_props$jscomp$345$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1134$token$$,$token$jscomp$136$$,$APP.$cljs$cst$4477$shape_ids$$,
$shape_ids$jscomp$110$$],null);$event$jscomp$537_props$jscomp$345$$=$APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$1$$)?$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$537_props$jscomp$345$$,$APP.$cljs$cst$4481$attributes_to_remove$$,$horizontal_attrs$$)):$vertical_selected_QMARK_$$?$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$537_props$jscomp$345$$,
$APP.$cljs$cst$4481$attributes_to_remove$$,$vertical_attrs$$)):$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($event$jscomp$537_props$jscomp$345$$,$APP.$cljs$cst$1978$attributes$$,$vertical_attrs$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4482$on_update_shape$$,$on_update_shape$jscomp$6$$])));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$537_props$jscomp$345$$)}],
null)],null);$all_attr_labels_p__77558_single_items$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__77561_title$jscomp$43$$){var $attr$jscomp$93$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77561_title$jscomp$43$$,0,null);$p__77561_title$jscomp$43$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77561_title$jscomp$43$$,1,null);var $same_axis_selected_QMARK_$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($horizontal_attrs$$,
$attr$jscomp$93$$))?$horizontal_selected_QMARK_$$:$APP.$cljs$core$truth_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($vertical_attrs$$,$attr$jscomp$93$$))?$vertical_selected_QMARK_$$:!0,$selected_QMARK_$jscomp$9$$=function(){var $and__5023__auto__$jscomp$783_and__5023__auto____$1$jscomp$138$$=$APP.$cljs$core$not$$($all_selected_QMARK_$jscomp$1$$);return $and__5023__auto__$jscomp$783_and__5023__auto____$1$jscomp$138$$?($and__5023__auto__$jscomp$783_and__5023__auto____$1$jscomp$138$$=!$same_axis_selected_QMARK_$$)?
$selected_pred$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$selected_pred$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($attr$jscomp$93$$):$selected_pred$jscomp$2$$($attr$jscomp$93$$):$and__5023__auto__$jscomp$783_and__5023__auto____$1$jscomp$138$$:$and__5023__auto__$jscomp$783_and__5023__auto____$1$jscomp$138$$}();return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$p__77561_title$jscomp$43$$,$APP.$cljs$cst$5510$selected_QMARK_$$,$selected_QMARK_$jscomp$9$$,$APP.$cljs$cst$2627$action$$,
function(){var $event$jscomp$538_props$jscomp$346$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$93$$]),$APP.$cljs$cst$1134$token$$,$token$jscomp$136$$,$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$110$$],null),$unnaply_props$jscomp$4$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$136$$),
$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$93$$]),$APP.$cljs$cst$4477$shape_ids$$,$shape_ids$jscomp$110$$],null);$event$jscomp$538_props$jscomp$346$$=$APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$1$$)?$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$538_props$jscomp$346$$,$APP.$cljs$cst$4481$attributes_to_remove$$,$attrs$jscomp$169$$)):$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$9$$)?
$APP.$app$main$data$workspace$tokens$application$unapply_token$$($unnaply_props$jscomp$4$$):$APP.$app$main$data$workspace$tokens$application$apply_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$538_props$jscomp$346$$,$APP.$cljs$cst$4482$on_update_shape$$,$on_update_shape$jscomp$6$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$538_props$jscomp$346$$)}],null)},$all_attr_labels_p__77558_single_items$$);return $APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($hint$jscomp$18_map__77559__$1_multi_items$$,
$all_attr_labels_p__77558_single_items$$)};
$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_padding$$=function($value$jscomp$902$$,$shape_ids$jscomp$111$$,$attributes$jscomp$78$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($attributes$jscomp$78$$),1)?$APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($shape_ids$jscomp$111$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1669$layout_padding_type$$,$APP.$cljs$cst$1600$multiple$$],null)):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$update_layout_padding$$.$cljs$core$IFn$_invoke$arity$3$($value$jscomp$902$$,$shape_ids$jscomp$111$$,$attributes$jscomp$78$$)]))};
$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_margin$$=function($value$jscomp$903$$,$shape_ids$jscomp$112$$,$attributes$jscomp$79$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($attributes$jscomp$79$$),1)?$APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($shape_ids$jscomp$112$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1682$layout_item_margin_type$$,$APP.$cljs$cst$1600$multiple$$],null)):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$update_layout_item_margin$$.$cljs$core$IFn$_invoke$arity$3$($value$jscomp$903$$,$shape_ids$jscomp$112$$,$attributes$jscomp$79$$)]))};
$app$main$ui$workspace$tokens$management$context_menu$spacing_attribute_actions$$=function($gap_items_map__77567__$1_p__77566$$){$gap_items_map__77567__$1_p__77566$$=$APP.$cljs$core$__destructure_map$$($gap_items_map__77567__$1_p__77566$$);var $margin_items_token$jscomp$137$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gap_items_map__77567__$1_p__77566$$,$APP.$cljs$cst$1134$token$$),$selected_shapes$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gap_items_map__77567__$1_p__77566$$,
$APP.$cljs$cst$5084$selected_shapes$$),$allowed_shape_attributes$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gap_items_map__77567__$1_p__77566$$,$cljs$cst$5509$allowed_shape_attributes$$),$is_selected_inside_layout$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gap_items_map__77567__$1_p__77566$$,$cljs$cst$5516$is_selected_inside_layout$$),$padding_attr_labels_padding_items$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1091$p1$$,"Padding top",$APP.$cljs$cst$1089$p2$$,
"Padding right",$APP.$cljs$cst$1671$p3$$,"Padding bottom",$APP.$cljs$cst$1672$p4$$,"Padding left"],null);$padding_attr_labels_padding_items$$=$APP.$cljs$core$truth_$$($app$main$ui$workspace$tokens$management$context_menu$key_in_map_QMARK_$$($allowed_shape_attributes$jscomp$2$$,$padding_attr_labels_padding_items$$))?$app$main$ui$workspace$tokens$management$context_menu$layout_spacing_items$$(new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1134$token$$,$margin_items_token$jscomp$137$$,
$APP.$cljs$cst$5084$selected_shapes$$,$selected_shapes$jscomp$16$$,$cljs$cst$5513$all_attr_labels$$,$padding_attr_labels_padding_items$$,$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.paddings"),$cljs$cst$5514$horizontal_attr_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1089$p2$$,"Padding right",$APP.$cljs$cst$1672$p4$$,"Padding left"],null),$cljs$cst$5515$vertical_attr_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1091$p1$$,"Padding top",$APP.$cljs$cst$1671$p3$$,"Padding bottom"],null),$APP.$cljs$cst$4482$on_update_shape$$,$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_padding$$],null)):null;var $margin_attr_labels$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1684$m1$$,"Margin top",$APP.$cljs$cst$1685$m2$$,"Margin right",$APP.$cljs$cst$1686$m3$$,"Margin bottom",$APP.$cljs$cst$1687$m4$$,"Margin left"],null);$margin_items_token$jscomp$137$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_selected_inside_layout$$)?
$is_selected_inside_layout$$:$app$main$ui$workspace$tokens$management$context_menu$key_in_map_QMARK_$$($allowed_shape_attributes$jscomp$2$$,$margin_attr_labels$$))?$app$main$ui$workspace$tokens$management$context_menu$layout_spacing_items$$(new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1134$token$$,$margin_items_token$jscomp$137$$,$APP.$cljs$cst$5084$selected_shapes$$,$selected_shapes$jscomp$16$$,$cljs$cst$5513$all_attr_labels$$,$margin_attr_labels$$,$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.margins"),
$cljs$cst$5514$horizontal_attr_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1685$m2$$,"Margin right",$APP.$cljs$cst$1687$m4$$,"Margin left"],null),$cljs$cst$5515$vertical_attr_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1684$m1$$,"Margin top",$APP.$cljs$cst$1686$m3$$,"Margin bottom"],null),$APP.$cljs$cst$4482$on_update_shape$$,$app$main$ui$workspace$tokens$management$context_menu$update_shape_layout_margin$$],null)):null;$gap_items_map__77567__$1_p__77566$$=
$app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5511$attribute_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1666$column_gap$$,"Column Gap",$APP.$cljs$cst$1665$row_gap$$,"Row Gap"],null),$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.gaps"),$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_layout_gap$$],
null),$gap_items_map__77567__$1_p__77566$$);return $app$main$ui$workspace$tokens$management$context_menu$clean_separators$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($gap_items_map__77567__$1_p__77566$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$padding_attr_labels_padding_items$$,new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$margin_items_token$jscomp$137$$])))};
$app$main$ui$workspace$tokens$management$context_menu$sizing_attribute_actions$$=function($context_data$jscomp$1$$){return $app$main$ui$workspace$tokens$management$context_menu$clean_separators$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5511$attribute_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$288$width$$,"Width",
$APP.$cljs$cst$1511$height$$,"Height"],null),$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.size"),$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$apply_dimensions_token$$],null),$context_data$jscomp$1$$),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$cljs$cst$5511$attribute_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1691$layout_item_min_w$$,"Min Width",$APP.$cljs$cst$1689$layout_item_min_h$$,"Min Height"],null),$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.min-size"),$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_layout_sizing_limits$$],null),$context_data$jscomp$1$$),new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5511$attribute_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1690$layout_item_max_w$$,"Max Width",$APP.$cljs$cst$1688$layout_item_max_h$$,"Max Height"],null),$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.max-size"),
$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_layout_sizing_limits$$],null),$context_data$jscomp$1$$)])))};
$app$main$ui$workspace$tokens$management$context_menu$update_shape_radius_for_corners$$=function($value$jscomp$904$$,$shape_ids$jscomp$113$$,$attributes$jscomp$80$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5453$expand_border_radius$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$application$update_shape_radius_for_corners$$.$cljs$core$IFn$_invoke$arity$3$($value$jscomp$904$$,
$shape_ids$jscomp$113$$,$attributes$jscomp$80$$)]))};
$app$main$ui$workspace$tokens$management$context_menu$default_actions$$=function($map__77572__$1_map__77573_map__77573__$1_p__77571$$){$map__77572__$1_map__77573_map__77573__$1_p__77571$$=$APP.$cljs$core$__destructure_map$$($map__77572__$1_map__77573_map__77573__$1_p__77571$$);var $token$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77572__$1_map__77573_map__77573__$1_p__77571$$,$APP.$cljs$cst$1134$token$$),$selected_token_set_id$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77572__$1_map__77573_map__77573__$1_p__77571$$,
$APP.$cljs$cst$2120$selected_token_set_id$$),$on_delete_token$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77572__$1_map__77573_map__77573__$1_p__77571$$,$cljs$cst$5518$on_delete_token$$);$map__77572__$1_map__77573_map__77573__$1_p__77571$$=$app$main$data$workspace$tokens$application$get_token_properties$$($token$jscomp$138$$);$map__77572__$1_map__77573_map__77573__$1_p__77571$$=$APP.$cljs$core$__destructure_map$$($map__77572__$1_map__77573_map__77573__$1_p__77571$$);var $modal$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77572__$1_map__77573_map__77573__$1_p__77571$$,$APP.$cljs$cst$4386$modal$$);return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.edit"),$cljs$cst$5519$no_selectable$$,!0,$APP.$cljs$cst$2627$action$$,function($event$jscomp$539$$){var $fields$jscomp$8_map__77574__$1$$=
$APP.$cljs$core$__destructure_map$$($modal$jscomp$2$$),$key$jscomp$415$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fields$jscomp$8_map__77574__$1$$,$APP.$cljs$cst$300$key$$);$fields$jscomp$8_map__77574__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fields$jscomp$8_map__77574__$1$$,$APP.$cljs$cst$4494$fields$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$539$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$library_edit$assign_token_context_menu$$(null),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($key$jscomp$415$$,new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1499$x$$,$event$jscomp$539$$.clientX,$APP.$cljs$cst$1500$y$$,$event$jscomp$539$$.clientY,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$258$right$$,$APP.$cljs$cst$4494$fields$$,$fields$jscomp$8_map__77574__$1$$,$APP.$cljs$cst$2627$action$$,"edit",$APP.$cljs$cst$2120$selected_token_set_id$$,
$selected_token_set_id$$,$APP.$cljs$cst$1134$token$$,$token$jscomp$138$$],null))]))}],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.duplicate"),$cljs$cst$5519$no_selectable$$,!0,$APP.$cljs$cst$2627$action$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$duplicate_token$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$138$$)))}],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$937$title$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.delete"),$cljs$cst$5519$no_selectable$$,!0,$APP.$cljs$cst$2627$action$$,function(){return $on_delete_token$$.$cljs$core$IFn$_invoke$arity$1$?$on_delete_token$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$138$$):$on_delete_token$$($token$jscomp$138$$)}],null)],null)};
$app$main$ui$workspace$tokens$management$context_menu$allowed_shape_attributes$$=function($shapes$jscomp$222$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$into$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77575_SHARP_$$){return $APP.$app$common$types$token$shape_type__GT_attributes$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__77575_SHARP_$$),$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($p1__77575_SHARP_$$))},
$shapes$jscomp$222$$))};
$app$main$ui$workspace$tokens$management$context_menu$menu_actions$$=function($p__77576_type$jscomp$653_with_actions$$){var $context_data__$1_map__77577__$1$$=$APP.$cljs$core$__destructure_map$$($p__77576_type$jscomp$653_with_actions$$);$p__77576_type$jscomp$653_with_actions$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($context_data__$1_map__77577__$1$$,$APP.$cljs$cst$139$type$$);var $token$jscomp$139$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($context_data__$1_map__77577__$1$$,$APP.$cljs$cst$1134$token$$),
$selected_shapes$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($context_data__$1_map__77577__$1$$,$APP.$cljs$cst$5084$selected_shapes$$);$context_data__$1_map__77577__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($context_data__$1_map__77577__$1$$,$cljs$cst$5509$allowed_shape_attributes$$,$app$main$ui$workspace$tokens$management$context_menu$allowed_shape_attributes$$($selected_shapes$jscomp$17$$));$p__77576_type$jscomp$653_with_actions$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$tokens$management$context_menu$shape_attribute_actions_map$$,
$APP.$cljs$core$truth_$$($p__77576_type$jscomp$653_with_actions$$)?$p__77576_type$jscomp$653_with_actions$$:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$139$$));return $APP.$cljs$core$truth_$$($p__77576_type$jscomp$653_with_actions$$)?$p__77576_type$jscomp$653_with_actions$$.$cljs$core$IFn$_invoke$arity$1$?$p__77576_type$jscomp$653_with_actions$$.$cljs$core$IFn$_invoke$arity$1$($context_data__$1_map__77577__$1$$):$p__77576_type$jscomp$653_with_actions$$($context_data__$1_map__77577__$1$$):
$APP.$cljs$core$PersistentVector$EMPTY$$};
$app$main$ui$workspace$tokens$management$context_menu$selection_actions$$=function($context_data$jscomp$6$$){var $attribute_actions$jscomp$1$$=$app$main$ui$workspace$tokens$management$context_menu$menu_actions$$($context_data$jscomp$6$$);return $APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($attribute_actions$jscomp$1$$,$APP.$cljs$core$seq$$($attribute_actions$jscomp$1$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],
null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$workspace$tokens$management$context_menu$default_actions$$($context_data$jscomp$6$$)]))};$app$main$ui$workspace$tokens$management$context_menu$prevent_default$$=function($event$jscomp$540$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$540$$);return $APP.$app$util$dom$stop_propagation$$($event$jscomp$540$$)};
$app$main$ui$workspace$tokens$management$context_menu$menu_entry$$=function($on_click$jscomp$48_props_77578$$){var $selected_QMARK_$jscomp$10$$=$on_click$jscomp$48_props_77578$$["selected?"],$children$jscomp$305$$=$on_click$jscomp$48_props_77578$$.children,$no_selectable$$=$on_click$jscomp$48_props_77578$$["no-selectable"],$value$jscomp$905$$=$on_click$jscomp$48_props_77578$$.value,$hint$jscomp$19$$=$on_click$jscomp$48_props_77578$$.hint,$submenu_offset$$=$on_click$jscomp$48_props_77578$$["submenu-offset"],
$title$jscomp$44$$=$on_click$jscomp$48_props_77578$$.title;$on_click$jscomp$48_props_77578$$=$on_click$jscomp$48_props_77578$$["on-click"];var $submenu_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$hovering_QMARK_$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$parent_menu_dom_element_pos_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$parent_menu_dom_element_pos$$=$APP.$cljs$core$_deref$$($parent_menu_dom_element_pos_STAR_$$),$is_submenu_outside_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$is_submenu_outside_QMARK_$$=$APP.$cljs$core$_deref$$($is_submenu_outside_STAR_$$),$hint_QMARK_$$=$APP.$cljs$core$truth_$$($hint$jscomp$19$$)?$APP.$cljs$core$seq$$($hint$jscomp$19$$):$hint$jscomp$19$$,$on_pointer_enter$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_submenu_outside_QMARK_$$)],function(){$APP.$rumext$v2$set_ref_val_BANG_$$($hovering_QMARK_$jscomp$2$$,!0);var $temp__5825__auto__$jscomp$365$$=$APP.$rumext$v2$ref_val$$($submenu_ref$jscomp$1$$);
return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$365$$)?($APP.$app$util$dom$set_css_property_BANG_$$($temp__5825__auto__$jscomp$365$$,"display","block"),$APP.$cljs$core$reset_BANG_$$($is_submenu_outside_STAR_$$,$APP.$app$util$dom$is_element_outside_QMARK_$$($temp__5825__auto__$jscomp$365$$))):null}),$on_pointer_leave$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_submenu_outside_QMARK_$$)],function(){$APP.$rumext$v2$set_ref_val_BANG_$$($hovering_QMARK_$jscomp$2$$,
!1);var $temp__5825__auto__$jscomp$366$$=$APP.$rumext$v2$ref_val$$($submenu_ref$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$366$$)?$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(50,function(){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($hovering_QMARK_$jscomp$2$$)))return null;$APP.$app$util$dom$set_css_property_BANG_$$($temp__5825__auto__$jscomp$366$$,"display","none");return $APP.$cljs$core$reset_BANG_$$($is_submenu_outside_STAR_$$,!1)}):
null}),$get_parent_menu_entry_position$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($parent_menu_dom_element$$){return $parent_menu_dom_element$$!=null?$APP.$cljs$core$reset_BANG_$$($parent_menu_dom_element_pos_STAR_$$,""+($parent_menu_dom_element$$.offsetTop??"")+"px"):null});return(0,$APP.$rumext$v2$jsxs$$)("li",{ref:$get_parent_menu_entry_position$$,"data-value":$value$jscomp$905$$,onClick:$on_click$jscomp$48_props_77578$$,onPointerEnter:$on_pointer_enter$jscomp$6$$,onPointerLeave:$on_pointer_leave$jscomp$6$$,
className:"main_ui_workspace_tokens_management_context_menu__context-menu-item "+($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$785$$=$APP.$cljs$core$not$$($no_selectable$$);return $and__5023__auto__$jscomp$785$$?$selected_QMARK_$jscomp$10$$:$and__5023__auto__$jscomp$785$$}())?"main_ui_workspace_tokens_management_context_menu__context-menu-item-selected":"")+" "+($APP.$cljs$core$not$$($no_selectable$$)&&$APP.$cljs$core$not$$($selected_QMARK_$jscomp$10$$)?"main_ui_workspace_tokens_management_context_menu__context-menu-item-unselected":
"")+" "+($APP.$cljs$core$truth_$$($hint_QMARK_$$)?"main_ui_workspace_tokens_management_context_menu__context-menu-item-hint-wrapper":""),children:[$APP.$cljs$core$truth_$$($hint$jscomp$19$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_tokens_management_context_menu__context-menu-item-hint",children:$hint$jscomp$19$$}):null,$APP.$cljs$core$not$$($no_selectable$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick",size:"s",className:"main_ui_workspace_tokens_management_context_menu__icon-wrapper"}):
null,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_tokens_management_context_menu__item-text",children:$title$jscomp$44$$}),$APP.$cljs$core$truth_$$($children$jscomp$305$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("ul",{ref:$submenu_ref$jscomp$1$$,style:{left:""+($submenu_offset$$??"")+"px",top:$APP.$cljs$core$truth_$$($is_submenu_outside_QMARK_$$)?
"unset":$parent_menu_dom_element_pos$$},onContextMenu:$app$main$ui$workspace$tokens$management$context_menu$prevent_default$$,className:"main_ui_workspace_tokens_management_context_menu__token-context-submenu "+($APP.$cljs$core$truth_$$($is_submenu_outside_QMARK_$$)?"main_ui_workspace_tokens_management_context_menu__token-context-submenu-top":""),children:$children$jscomp$305$$})]}):null]})};
$app$main$ui$workspace$tokens$management$context_menu$token_context_menu_tree$$=function($map__77603_props_77602_width$jscomp$200$$){$map__77603_props_77602_width$jscomp$200$$=$APP.$rumext$v2$util$wrap_props$$($map__77603_props_77602_width$jscomp$200$$);var $map__77603__$1_token$jscomp$140_token_id$jscomp$22$$=$APP.$cljs$core$__destructure_map$$($map__77603_props_77602_width$jscomp$200$$);$map__77603_props_77602_width$jscomp$200$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$,
$APP.$cljs$cst$288$width$$);var $errors$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$,$APP.$cljs$cst$568$errors$$),$on_delete_token$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$,$cljs$cst$5518$on_delete_token$$),$objects$jscomp$776$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$selected$jscomp$172$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$);
$map__77603__$1_token$jscomp$140_token_id$jscomp$22$$=$APP.$cljs$cst$2594$token_id$$.$cljs$core$IFn$_invoke$arity$1$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$);$map__77603__$1_token$jscomp$140_token_id$jscomp$22$$=$APP.$rumext$v2$deref$$($app$main$refs$workspace_token_in_selected_set$$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$));var $token_type$jscomp$14$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($map__77603__$1_token$jscomp$140_token_id$jscomp$22$$),$selected_token_set_id$jscomp$1$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_token_set_id$$),$selected_shapes$jscomp$19$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$172$$),$APP.$rumext$v2$adapt$$($objects$jscomp$776$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$776$$)),$selected$jscomp$172$$)}),
$is_selected_inside_layout$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token_type$jscomp$14$$),$APP.$rumext$v2$adapt$$($selected_shapes$jscomp$19$$),$APP.$rumext$v2$adapt$$($objects$jscomp$776$$)],function(){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1965$dimensions$$,null,$APP.$cljs$cst$1968$spacing$$,null],null),null),$token_type$jscomp$14$$)?
$APP.$cljs$core$some$$(function($p1__77601_SHARP_$$){return $APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($objects$jscomp$776$$,$p1__77601_SHARP_$$)},$selected_shapes$jscomp$19$$):null});return(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_management_context_menu__context-list",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$context_menu$menu_tree$$,{"submenu-offset":$map__77603_props_77602_width$jscomp$200$$,token:$map__77603__$1_token$jscomp$140_token_id$jscomp$22$$,
errors:$errors$jscomp$30$$,"selected-token-set-id":$selected_token_set_id$jscomp$1$$,"selected-shapes":$selected_shapes$jscomp$19$$,"is-selected-inside-layout":$is_selected_inside_layout$jscomp$1$$,"on-delete-token":$on_delete_token$jscomp$1$$})})};
$app$main$ui$workspace$tokens$management$context_menu$token_context_menu$$=function($map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$){$map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$=$APP.$rumext$v2$util$wrap_props$$($map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$);$map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$=$APP.$cljs$core$__destructure_map$$($map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$);$map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$,$cljs$cst$5518$on_delete_token$$);var $mdata$jscomp$22$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$tokens$management$context_menu$tokens_menu_ref$$),$is_open_QMARK_$jscomp$2$$=$APP.$cljs$core$boolean$0$$($mdata$jscomp$22$$),$width$jscomp$201$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$dropdown_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(),$dropdown_direction_STAR_$jscomp$1$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$("down"),$dropdown_direction$jscomp$1$$=$APP.$cljs$core$_deref$$($dropdown_direction_STAR_$jscomp$1$$),$dropdown_direction_change_STAR_$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(0),$top$jscomp$18$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$22$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1500$y$$],null))+5,$left$jscomp$32$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$22$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1499$x$$],null))+5,$container$jscomp$88$$=$APP.$app$main$ui$hooks$use_portal_container$cljs$0core$0IFn$0_invoke$0arity$01$$($cljs$cst$5521$popup$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$2$$)],function(){var $temp__5825__auto__$jscomp$367$$=
$APP.$rumext$v2$ref_val$$($dropdown_ref$jscomp$1$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$367$$)?$APP.$cljs$core$reset_BANG_$$($width$jscomp$201$$,$temp__5825__auto__$jscomp$367$$.offsetWidth):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$2$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$1$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!1,
$is_open_QMARK_$jscomp$2$$)?($APP.$cljs$core$reset_BANG_$$($dropdown_direction_STAR_$jscomp$1$$,"down"),$APP.$rumext$v2$set_ref_val_BANG_$$($dropdown_direction_change_STAR_$jscomp$1$$,0)):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($dropdown_ref$jscomp$1$$)],function(){var $dropdown_element$jscomp$1_is_outside_QMARK_$jscomp$1$$=$APP.$rumext$v2$ref_val$$($dropdown_ref$jscomp$1$$),$and__5023__auto__$jscomp$inline_8675$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$1$$));return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8675$$?$dropdown_element$jscomp$1_is_outside_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$inline_8675$$)?($dropdown_element$jscomp$1_is_outside_QMARK_$jscomp$1$$=$APP.$app$util$dom$is_element_outside_QMARK_$$($dropdown_element$jscomp$1_is_outside_QMARK_$jscomp$1$$),$APP.$cljs$core$reset_BANG_$$($dropdown_direction_STAR_$jscomp$1$$,
$dropdown_element$jscomp$1_is_outside_QMARK_$jscomp$1$$?"up":"down"),$APP.$rumext$v2$set_ref_val_BANG_$$($dropdown_direction_change_STAR_$jscomp$1$$,$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$1$$)+1)):null});return $is_open_QMARK_$jscomp$2$$?(0,$APP.$rumext$v2$portal$$)($APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$is_open_QMARK_$jscomp$2$$,"on-close":function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_context_menu$$(null))},
children:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"tokens-context-menu-for-token",ref:$dropdown_ref$jscomp$1$$,"data-direction":$dropdown_direction$jscomp$1$$,style:{"--bottom":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dropdown_direction$jscomp$1$$,"up")?"40px":"unset","--top":""+($top$jscomp$18$$??"")+"px",left:""+($left$jscomp$32$$??"")+"px"},onContextMenu:$app$main$ui$workspace$tokens$management$context_menu$prevent_default$$,className:"main_ui_workspace_tokens_management_context_menu__token-context-menu",
children:$APP.$cljs$core$truth_$$($mdata$jscomp$22$$)?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$context_menu$token_context_menu_tree$$,$APP.$rumext$v2$util$map__GT_obj$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($mdata$jscomp$22$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$core$_deref$$($width$jscomp$201$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5518$on_delete_token$$,$map__77608_map__77608__$1_on_delete_token$jscomp$2_props_77607$$])))):
null})}),$container$jscomp$88$$):null};
$app$main$ui$ds$layers$layer_button$layer_button_STAR_$$=function($props_77543$$){var $expanded$jscomp$7$$=void 0,$description$jscomp$17$$=void 0,$children$jscomp$306$$=void 0,$is_expandable$$=void 0,$on_toggle_expand$jscomp$1$$=void 0,$on_context_menu$jscomp$12$$=void 0,$icon$jscomp$23$$=void 0,$label$jscomp$47$$=void 0,$class$$jscomp$75$$=void 0,$props$jscomp$347$$=void 0;({expanded:$expanded$jscomp$7$$,description:$description$jscomp$17$$,children:$children$jscomp$306$$,isExpandable:$is_expandable$$,
onToggleExpand:$on_toggle_expand$jscomp$1$$,onContextMenu:$on_context_menu$jscomp$12$$,icon:$icon$jscomp$23$$,label:$label$jscomp$47$$,className:$class$$jscomp$75$$,...$props$jscomp$347$$}=$props_77543$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_layers_layer_button__layer-button-wrapper",children:[(0,$APP.$rumext$v2$create_element$$)("button",{...$props$jscomp$347$$,className:($class$$jscomp$75$$??"")+" main_ui_ds_layers_layer_button__layer-button "+(($APP.$cljs$core$truth_$$($is_expandable$$)?
"main_ui_ds_layers_layer_button__layer-button--expandable":"")+" "+($APP.$cljs$core$truth_$$($expanded$jscomp$7$$)?"main_ui_ds_layers_layer_button__layer-button--expanded":"")),type:"button",onClick:$on_toggle_expand$jscomp$1$$,onContextMenu:$on_context_menu$jscomp$12$$},(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_ds_layers_layer_button__layer-button-content",children:[$APP.$cljs$core$truth_$$($is_expandable$$)?$APP.$cljs$core$truth_$$($expanded$jscomp$7$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"arrow-down",className:"main_ui_ds_layers_layer_button__folder-node-icon"}):$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-right",className:"main_ui_ds_layers_layer_button__folder-node-icon"}):null,$APP.$cljs$core$truth_$$($icon$jscomp$23$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:$icon$jscomp$23$$,className:"main_ui_ds_layers_layer_button__layer-button-icon"}):null,(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_ds_layers_layer_button__layer-button-name",children:$label$jscomp$47$$}),$APP.$cljs$core$truth_$$($description$jscomp$17$$)?(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_layers_layer_button__layer-button-description",children:$description$jscomp$17$$}):null,(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_ds_layers_layer_button__layer-button-quantity"})]})),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_ds_layers_layer_button__layer-button-actions",children:$children$jscomp$306$$})]})};
$app$main$data$workspace$tokens$color$resolved_token_bullet_color$$=function($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$){$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$);
var $JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$,$APP.$cljs$cst$4441$resolved_value$$);$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?
$APP.$app$main$data$tokenscript$color_symbol_QMARK_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$):$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=$APP.$app$main$data$tokenscript$color_symbol_QMARK_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?
$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$.to("hex").toString():null,$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$.isHex())?$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$=1:($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$=$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$.getAttribute("alpha"),
$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$:1),$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$,$APP.$cljs$cst$1718$opacity$$,$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$],null)):$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=
null:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$),$APP.$cljs$cst$1284$color$$):
$JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$)?($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=$APP.$app$main$data$tinycolor$valid_color$$($JSCompiler_inline_result$jscomp$inline_12938_or__5025__auto__$jscomp$inline_12939_resolved_value$jscomp$3$$),$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=
$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$)?$APP.$cljs$core$truth_$$($APP.$app$main$data$tinycolor$alpha$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$))?new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1284$color$$,$APP.$app$main$data$tinycolor$__GT_hex_string$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$),$APP.$cljs$cst$1718$opacity$$,$APP.$app$main$data$tinycolor$alpha$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$)],
null):$APP.$app$main$data$tinycolor$__GT_hex_string$$($JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$):null):$JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$=null;return $JSCompiler_temp$jscomp$10533_JSCompiler_temp$jscomp$10534_JSCompiler_temp$jscomp$10600_JSCompiler_temp_const$jscomp$inline_12937_map__77548__$1_p__77547_temp__5825__auto__$jscomp$inline_12943$$};
$app$main$ui$ds$foundations$utilities$token$token_status$token_status_icon_STAR_$$=function($icon_id$jscomp$5_props_77570$$){var $class$$jscomp$76_or__5025__auto__$jscomp$inline_8677$$,$props$jscomp$348$$;({iconId:$icon_id$jscomp$5_props_77570$$,className:$class$$jscomp$76_or__5025__auto__$jscomp$inline_8677$$,...$props$jscomp$348$$}=$icon_id$jscomp$5_props_77570$$);return(0,$APP.$rumext$v2$create_element$$)("svg",{...$props$jscomp$348$$,className:""+(($APP.$cljs$core$truth_$$($class$$jscomp$76_or__5025__auto__$jscomp$inline_8677$$)?
$class$$jscomp$76_or__5025__auto__$jscomp$inline_8677$$:"")??"")+" main_ui_ds_foundations_utilities_token_token_status__token-icon",width:"14px",height:"14px"},(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-"+($icon_id$jscomp$5_props_77570$$??""),width:"14px",height:"14px",x:0,y:0}))};
$app$main$ui$workspace$tokens$management$token_pill$partially_applied_attr$$=function($app_token_keys_filtered_keys$$,$is_applied$$,$map__77582__$1_p__77581$$){$map__77582__$1_p__77581$$=$APP.$cljs$core$__destructure_map$$($map__77582__$1_p__77581$$);var $attributes$jscomp$81$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77582__$1_p__77581$$,$APP.$cljs$cst$1978$attributes$$),$all_attributes$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77582__$1_p__77581$$,
$APP.$cljs$cst$4491$all_attributes$$);$app_token_keys_filtered_keys$$=$APP.$cljs$core$truth_$$($all_attributes$jscomp$1$$)?$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77579_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($all_attributes$jscomp$1$$,$p1__77579_SHARP_$$)},$app_token_keys_filtered_keys$$):$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77580_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($attributes$jscomp$81$$,$p1__77580_SHARP_$$)},
$app_token_keys_filtered_keys$$);return $APP.$cljs$core$truth_$$($is_applied$$)?$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$tokens$management$token_pill$attribute_dictionary$$,$app_token_keys_filtered_keys$$)):null};
$app$main$ui$workspace$tokens$management$token_pill$translate_and_format$$=function($grouped_values$$){return $APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("\n",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__77583_values$jscomp$102$$){var $category$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77583_values$jscomp$102$$,0,null);$p__77583_values$jscomp$102$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77583_values$jscomp$102$$,
1,null);var $JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1500$y$$,null,$APP.$cljs$cst$1499$x$$,null],null),null);$JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$=$JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$.$cljs$core$IFn$_invoke$arity$1$?$JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$.$cljs$core$IFn$_invoke$arity$1$($category$jscomp$2$$):
$JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$($category$jscomp$2$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1797_fexpr__77587$jscomp$inline_8679$$)?"- "+(($APP.$app$main$data$workspace$tokens$format$category_dictionary$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$app$main$data$workspace$tokens$format$category_dictionary$$.$cljs$core$IFn$_invoke$arity$1$($category$jscomp$2$$):(0,$APP.$app$main$data$workspace$tokens$format$category_dictionary$$)($category$jscomp$2$$))??
""):"- "+(($APP.$app$main$data$workspace$tokens$format$category_dictionary$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$app$main$data$workspace$tokens$format$category_dictionary$$.$cljs$core$IFn$_invoke$arity$1$($category$jscomp$2$$):(0,$APP.$app$main$data$workspace$tokens$format$category_dictionary$$)($category$jscomp$2$$))??"")+": "+($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$tokens$management$token_pill$attribute_dictionary$$,
$p__77583_values$jscomp$102$$))??"")+"."},$grouped_values$$))};$app$main$ui$workspace$tokens$management$token_pill$contains_reference_value_QMARK_$$=function($match$jscomp$58_text$jscomp$135$$,$active_tokens$jscomp$3$$){$match$jscomp$58_text$jscomp$135$$=$APP.$cljs$core$second$$($APP.$cljs$core$re_find$$(/\{([^}]+)\}/,$match$jscomp$58_text$jscomp$135$$));return $APP.$cljs$core$contains_QMARK_$$($active_tokens$jscomp$3$$,$match$jscomp$58_text$jscomp$135$$)};
$app$main$ui$workspace$tokens$management$token_pill$applied_all_attributes_QMARK_$$=function($ids_by_attributes$jscomp$2_token$jscomp$143$$,$selected_shapes$jscomp$20_shape_ids$jscomp$114$$,$attributes$jscomp$82$$){$ids_by_attributes$jscomp$2_token$jscomp$143$$=$app$common$files$tokens$shapes_ids_by_applied_attributes$$($ids_by_attributes$jscomp$2_token$jscomp$143$$,$selected_shapes$jscomp$20_shape_ids$jscomp$114$$,$attributes$jscomp$82$$);$selected_shapes$jscomp$20_shape_ids$jscomp$114$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$app$main$ui$workspace$tokens$management$token_pill$xf_COLON_map_id$$,$selected_shapes$jscomp$20_shape_ids$jscomp$114$$);return $app$common$files$tokens$shapes_applied_all_QMARK_$$($ids_by_attributes$jscomp$2_token$jscomp$143$$,$selected_shapes$jscomp$20_shape_ids$jscomp$114$$,$attributes$jscomp$82$$)};
$app$main$ui$workspace$tokens$management$token_pill$attributes_match_selection_QMARK_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($selected_shapes$jscomp$21$$,$attrs$jscomp$170$$,$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$){$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$=$APP.$cljs$core$__destructure_map$$($map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$);$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$,$cljs$cst$5525$selected_inside_layout_QMARK_$$);$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$=$APP.$cljs$core$truth_$$($map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$)?$APP.$clojure$set$subset_QMARK_$$($APP.$app$common$types$token$spacing_margin_keys$$,$attrs$jscomp$170$$):$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$;
return $APP.$cljs$core$truth_$$($map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$)?$map__77605__$1_or__5025__auto__$jscomp$1149_p__77604_selected_inside_layout_QMARK_$$:$APP.$cljs$core$some$$(function($is_layout$jscomp$inline_12947_shape$jscomp$1000$$){var $token_type$jscomp$inline_12946$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($is_layout$jscomp$inline_12947_shape$jscomp$1000$$);$is_layout$jscomp$inline_12947_shape$jscomp$1000$$=$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($is_layout$jscomp$inline_12947_shape$jscomp$1000$$);
return $APP.$app$common$data$not_empty_QMARK_$$($APP.$clojure$set$intersection$$.$cljs$core$IFn$_invoke$arity$2$($attrs$jscomp$170$$,$APP.$app$common$types$token$shape_type__GT_attributes$$($token_type$jscomp$inline_12946$$,$is_layout$jscomp$inline_12947_shape$jscomp$1000$$)))},$selected_shapes$jscomp$21$$)};
$app$main$ui$workspace$tokens$management$token_tree$token_tree_STAR_$$=function($props_77617_tree$jscomp$25$$){var $active_theme_tokens$jscomp$2$$=$props_77617_tree$jscomp$25$$.activeThemeTokens,$selected_shapes$jscomp$24$$=$props_77617_tree$jscomp$25$$.selectedShapes,$is_selected_inside_layout$jscomp$4$$=$props_77617_tree$jscomp$25$$.isSelectedInsideLayout,$unfolded_token_paths$jscomp$1$$=$props_77617_tree$jscomp$25$$.unfoldedTokenPaths,$on_token_pill_click$jscomp$4$$=$props_77617_tree$jscomp$25$$.onTokenPillClick,
$selected_token_set_id$jscomp$3$$=$props_77617_tree$jscomp$25$$.selectedTokenSetId,$type$jscomp$658$$=$props_77617_tree$jscomp$25$$.type,$on_pill_context_menu$jscomp$1$$=$props_77617_tree$jscomp$25$$.onPillContextMenu,$on_node_context_menu$jscomp$1$$=$props_77617_tree$jscomp$25$$.onNodeContextMenu,$tokens_lib$jscomp$37$$=$props_77617_tree$jscomp$25$$.tokensLib,$tokens$jscomp$48$$=$props_77617_tree$jscomp$25$$.tokens;$props_77617_tree$jscomp$25$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens$jscomp$48$$)],
function(){return $app$common$path_names$build_tree_root$$($tokens$jscomp$48$$)});var $can_edit_QMARK_$jscomp$4$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$refs$permissions$$)),$on_node_context_menu__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$4$$),$APP.$rumext$v2$adapt$$($on_node_context_menu$jscomp$1$$)],function($event$jscomp$545$$,$node$jscomp$426$$){return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$4$$)?
$on_node_context_menu$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?$on_node_context_menu$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$545$$,$node$jscomp$426$$):$on_node_context_menu$jscomp$1$$($event$jscomp$545$$,$node$jscomp$426$$):null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_token_tree__token-tree-wrapper",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$205$$,$JSCompiler_temp$jscomp$1805_node$jscomp$427$$){var $JSCompiler_temp_const$jscomp$1803$$=
$out_arr__44057__auto__$jscomp$205$$.push;if($APP.$cljs$core$truth_$$($APP.$cljs$cst$1983$leaf$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1805_node$jscomp$427$$))){var $token$jscomp$inline_8691$$=$APP.$app$common$types$tokens_lib$get_token$$($tokens_lib$jscomp$37$$,$selected_token_set_id$jscomp$3$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1805_node$jscomp$427$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1983$leaf$$,$APP.$cljs$cst$266$id$$],null)));$JSCompiler_temp$jscomp$1805_node$jscomp$427$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$token_pill$token_pill_STAR_$$,{token:$token$jscomp$inline_8691$$,selectedShapes:$selected_shapes$jscomp$24$$,isSelectedInsideLayout:$is_selected_inside_layout$jscomp$4$$,activeThemeTokens:$active_theme_tokens$jscomp$2$$,onClick:$on_token_pill_click$jscomp$4$$,onContextMenu:$on_pill_context_menu$jscomp$1$$},$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1983$leaf$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1805_node$jscomp$427$$)))}else $JSCompiler_temp$jscomp$1805_node$jscomp$427$$=
(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_management_token_tree__node-parent",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$token_tree$folder_node_STAR_$$,{tokensLib:$tokens_lib$jscomp$37$$,onPillContextMenu:$on_pill_context_menu$jscomp$1$$,onTokenPillClick:$on_token_pill_click$jscomp$4$$,onNodeContextMenu:$on_node_context_menu__$1$$,isSelectedInsideLayout:$is_selected_inside_layout$jscomp$4$$,unfoldedTokenPaths:$unfolded_token_paths$jscomp$1$$,
type:$type$jscomp$658$$,activeThemeTokens:$active_theme_tokens$jscomp$2$$,selectedShapes:$selected_shapes$jscomp$24$$,selectedTokenSetId:$selected_token_set_id$jscomp$3$$,node:$JSCompiler_temp$jscomp$1805_node$jscomp$427$$})},$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1805_node$jscomp$427$$));$JSCompiler_temp_const$jscomp$1803$$.call($out_arr__44057__auto__$jscomp$205$$,$JSCompiler_temp$jscomp$1805_node$jscomp$427$$);return $out_arr__44057__auto__$jscomp$205$$},
[],$props_77617_tree$jscomp$25$$)})};
$app$main$ui$workspace$tokens$management$group$token_section_icon$$=function($type$jscomp$659$$){switch($type$jscomp$659$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$659$$.$fqn$:null){case "border-radius":return"corner-radius";case "color":return"drop";case "boolean":return"boolean-difference";case "font-family":return"text-font-family";case "font-size":return"text-font-size";case "letter-spacing":return"text-letterspacing";case "text-case":return"text-mixed";case "text-decoration":return"text-underlined";
case "font-weight":return"text-font-weight";case "typography":return"text-typography";case "opacity":return"percentage";case "number":return"number";case "rotation":return"rotation";case "spacing":return"padding-extended";case "string":return"text-mixed";case "stroke-width":return"stroke-size";case "dimensions":return"expand";case "sizing":return"expand";case "shadow":return"drop-shadow";default:return"add"}};
$app$main$ui$workspace$tokens$management$group$token_group_STAR_$$=function($map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$){var $active_theme_tokens$jscomp$3$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.activeThemeTokens,$selected_shapes$jscomp$25$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.selectedShapes,$is_selected_inside_layout$jscomp$5_is_selected_inside_layout__$1$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.isSelectedInsideLayout,
$selected_token_set_id$jscomp$4$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.selectedTokenSetId,$type$jscomp$660$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.type,$selected_ids$jscomp$8$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.selectedIds,$tokens_lib$jscomp$38$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.tokensLib,$tokens$jscomp$49$$=$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$.tokens;
$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$tokens$application$token_properties$$,$type$jscomp$660$$);$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$);var $modal$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$,
$APP.$cljs$cst$4386$modal$$),$title$jscomp$48$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$,$APP.$cljs$cst$937$title$$);$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$tokens$management$group$ref_COLON_unfolded_token_paths$$);var $is_type_unfolded$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$set$$($map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$),
$APP.$cljs$core$name$$($type$jscomp$660$$)),$can_edit_QMARK_$jscomp$5_editing_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$),$edition$jscomp$7_tokens__$1$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_edition$$),$objects$jscomp$777_on_pill_context_menu$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$not_editing_QMARK_$jscomp$1$$=$APP.$cljs$core$empty_QMARK_$$($can_edit_QMARK_$jscomp$5_editing_ref$jscomp$1$$)&&
!($edition$jscomp$7_tokens__$1$jscomp$4$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$777_on_pill_context_menu$jscomp$2$$,$edition$jscomp$7_tokens__$1$jscomp$4$$))));$can_edit_QMARK_$jscomp$5_editing_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$);$is_selected_inside_layout$jscomp$5_is_selected_inside_layout__$1$$=
$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($is_selected_inside_layout$jscomp$5_is_selected_inside_layout__$1$$,!1);$edition$jscomp$7_tokens__$1$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens$jscomp$49$$)],function(){return $APP.$cljs$core$vec$$($APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$tokens$jscomp$49$$))});var $expandable_QMARK_$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$seq$$($edition$jscomp$7_tokens__$1$jscomp$4$$),
!1);$objects$jscomp$777_on_pill_context_menu$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$546$$,$token$jscomp$147$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$546$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1134$token$$,$APP.$cljs$cst$1660$position$$,
$APP.$app$util$dom$get_client_position$$($event$jscomp$546$$),$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$147$$),$APP.$cljs$cst$2594$token_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$147$$)],null)))});var $on_node_context_menu$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$547$$,$node$jscomp$428$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$547$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_node_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$3636$node$$,$node$jscomp$428$$,$APP.$cljs$cst$139$type$$,$type$jscomp$660$$,$APP.$cljs$cst$1660$position$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$547$$)],null)))}),$on_toggle_open_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$660$$),$APP.$rumext$v2$adapt$$($expandable_QMARK_$$)],function(){return $APP.$cljs$core$truth_$$($expandable_QMARK_$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$($APP.$cljs$core$name$$($type$jscomp$660$$))):
null}),$on_popover_open_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($type$jscomp$660$$),$APP.$rumext$v2$adapt$$($title$jscomp$48$$),$APP.$rumext$v2$adapt$$($modal$jscomp$3$$)],function($JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$){$APP.$app$util$dom$stop_propagation$$($JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$);var $JSCompiler_temp_const$jscomp$1806$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;
$JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$=$APP.$app$util$dom$get_client_position$$($JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$);$JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$=$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($modal$jscomp$3$$),new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$),
$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$),$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$258$right$$,$APP.$cljs$cst$4494$fields$$,$APP.$cljs$cst$4494$fields$$.$cljs$core$IFn$_invoke$arity$1$($modal$jscomp$3$$),$APP.$cljs$cst$937$title$$,$title$jscomp$48$$,$APP.$cljs$cst$2627$action$$,"create",$cljs$cst$5320$token_type$$,$type$jscomp$660$$],null));return $JSCompiler_temp_const$jscomp$1806$$.call($APP.$app$main$store$emit_BANG_$$,
$JSCompiler_inline_result$jscomp$1808_event$jscomp$548_pos$jscomp$inline_8693$$)}),$on_token_pill_click$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($not_editing_QMARK_$jscomp$1$$),$APP.$rumext$v2$adapt$$($selected_ids$jscomp$8$$),$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$38$$)],function($event$jscomp$549$$,$token$jscomp$148_token__$1$jscomp$1$$){$token$jscomp$148_token__$1$jscomp$1$$=$APP.$app$common$types$tokens_lib$get_token$$($tokens_lib$jscomp$38$$,
$selected_token_set_id$jscomp$4$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$148_token__$1$jscomp$1$$));$APP.$app$util$dom$stop_propagation$$($event$jscomp$549$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$148_token__$1$jscomp$1$$),$APP.$cljs$cst$1963$number$$)?$not_editing_QMARK_$jscomp$1$$&&$APP.$cljs$core$seq$$($selected_shapes$jscomp$25$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1134$token$$,$token$jscomp$148_token__$1$jscomp$1$$,$APP.$cljs$cst$4477$shape_ids$$,$selected_ids$jscomp$8$$],null))):$APP.$cljs$core$seq$$($selected_shapes$jscomp$25$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.error-text-edition"),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,
$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$2300$warning$$,$APP.$cljs$cst$2310$timeout$$,3E3],null))):null:null});return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"section-"+($APP.$cljs$core$name$$($type$jscomp$660$$)??""),className:"main_ui_workspace_tokens_management_group__token-section-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$layers$layer_button$layer_button_STAR_$$,{"aria-expanded":$is_type_unfolded$$,isExpandable:$expandable_QMARK_$$,label:$title$jscomp$48$$,children:$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$5_editing_ref$jscomp$1$$)?
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{id:["add-token-button-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($title$jscomp$48$$)].join(""),icon:"add","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.add-token",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$title$jscomp$48$$])),variant:"ghost",onClick:$on_popover_open_click$$,className:"main_ui_workspace_tokens_management_group__token-section-icon"}):
null,onToggleExpand:$on_toggle_open_click$$,"aria-controls":"token-tree-"+($APP.$cljs$core$name$$($type$jscomp$660$$)??""),expanded:$is_type_unfolded$$,description:$APP.$cljs$core$truth_$$($expandable_QMARK_$$)?""+($APP.$cljs$core$count$$($edition$jscomp$7_tokens__$1$jscomp$4$$)??""):null,icon:$app$main$ui$workspace$tokens$management$group$token_section_icon$$($type$jscomp$660$$)}),$is_type_unfolded$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$token_tree$token_tree_STAR_$$,
{tokensLib:$tokens_lib$jscomp$38$$,onPillContextMenu:$objects$jscomp$777_on_pill_context_menu$jscomp$2$$,onTokenPillClick:$on_token_pill_click$jscomp$5$$,onNodeContextMenu:$on_node_context_menu$jscomp$2$$,id:"token-tree-"+($APP.$cljs$core$name$$($type$jscomp$660$$)??""),isSelectedInsideLayout:$is_selected_inside_layout$jscomp$5_is_selected_inside_layout__$1$$,unfoldedTokenPaths:$map__77620_map__77620__$1_props_77619_unfolded_token_paths$jscomp$2$$,type:$type$jscomp$660$$,activeThemeTokens:$active_theme_tokens$jscomp$3$$,
selectedShapes:$selected_shapes$jscomp$25$$,selectedTokenSetId:$selected_token_set_id$jscomp$4$$,tokens:$edition$jscomp$7_tokens__$1$jscomp$4$$}):null]})};$app$main$ui$workspace$tokens$management$node_context_menu$prevent_default$$=function($event$jscomp$550$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$550$$);return $APP.$app$util$dom$stop_propagation$$($event$jscomp$550$$)};
$app$main$ui$workspace$tokens$management$node_context_menu$token_node_context_menu_STAR_$$=function($dropdown_action_props_77592$$){var $on_delete_node$$=$dropdown_action_props_77592$$.onDeleteNode,$mdata$jscomp$23$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$tokens$management$node_context_menu$tokens_node_menu_ref$$),$is_open_QMARK_$jscomp$3$$=$APP.$cljs$core$boolean$0$$($mdata$jscomp$23$$),$dropdown_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)();$dropdown_action_props_77592$$=(0,$APP.$rumext$v2$use_ref$$)();
var $dropdown_direction_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$("down"),$dropdown_direction$jscomp$2$$=$APP.$cljs$core$_deref$$($dropdown_direction_STAR_$jscomp$2$$),$dropdown_direction_change_STAR_$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(0),$top$jscomp$19$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$23$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,
$APP.$cljs$cst$1500$y$$],null))+5,$left$jscomp$33$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$23$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1499$x$$],null))+5,$container$jscomp$89$$=$APP.$app$main$ui$hooks$use_portal_container$cljs$0core$0IFn$0_invoke$0arity$01$$($cljs$cst$5521$popup$$),$delete_node$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($mdata$jscomp$23$$)],
function(){var $node$jscomp$429$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$23$$,$APP.$cljs$cst$3636$node$$),$type$jscomp$661$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($mdata$jscomp$23$$,$APP.$cljs$cst$139$type$$);return $APP.$cljs$core$truth_$$($node$jscomp$429$$)?$on_delete_node$$.$cljs$core$IFn$_invoke$arity$2$?$on_delete_node$$.$cljs$core$IFn$_invoke$arity$2$($node$jscomp$429$$,$type$jscomp$661$$):$on_delete_node$$($node$jscomp$429$$,$type$jscomp$661$$):
null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$3$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$2$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(!1,$is_open_QMARK_$jscomp$3$$)?($APP.$cljs$core$reset_BANG_$$($dropdown_direction_STAR_$jscomp$2$$,"down"),$APP.$rumext$v2$set_ref_val_BANG_$$($dropdown_direction_change_STAR_$jscomp$2$$,
0)):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_open_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($dropdown_ref$jscomp$2$$),$APP.$rumext$v2$adapt$$($dropdown_action_props_77592$$)],function(){var $dropdown_element$jscomp$2_is_outside_QMARK_$jscomp$2$$=$APP.$rumext$v2$ref_val$$($dropdown_ref$jscomp$2$$),$and__5023__auto__$jscomp$inline_8695$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$2$$));
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8695$$?$dropdown_element$jscomp$2_is_outside_QMARK_$jscomp$2$$:$and__5023__auto__$jscomp$inline_8695$$)?($dropdown_element$jscomp$2_is_outside_QMARK_$jscomp$2$$=$APP.$app$util$dom$is_element_outside_QMARK_$$($dropdown_element$jscomp$2_is_outside_QMARK_$jscomp$2$$),$APP.$cljs$core$reset_BANG_$$($dropdown_direction_STAR_$jscomp$2$$,$dropdown_element$jscomp$2_is_outside_QMARK_$jscomp$2$$?"up":"down"),$APP.$rumext$v2$set_ref_val_BANG_$$($dropdown_direction_change_STAR_$jscomp$2$$,
$APP.$rumext$v2$ref_val$$($dropdown_direction_change_STAR_$jscomp$2$$)+1)):null});return $is_open_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$portal$$)($APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$is_open_QMARK_$jscomp$3$$,"on-close":function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_node_context_menu$$(null))},children:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"tokens-context-menu-for-token-node",
ref:$dropdown_ref$jscomp$2$$,"data-direction":$dropdown_direction$jscomp$2$$,style:{"--bottom":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dropdown_direction$jscomp$2$$,"up")?"40px":"unset","--top":""+($top$jscomp$19$$??"")+"px",left:""+($left$jscomp$33$$??"")+"px"},onContextMenu:$app$main$ui$workspace$tokens$management$node_context_menu$prevent_default$$,className:"main_ui_workspace_tokens_management_node_context_menu__token-node-context-menu",children:$APP.$cljs$core$truth_$$($mdata$jscomp$23$$)?
(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_management_node_context_menu__token-node-context-menu-list",children:(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_tokens_management_node_context_menu__token-node-context-menu-listitem",children:(0,$APP.$rumext$v2$jsx$$)("button",{type:"button",onClick:$delete_node$$,className:"main_ui_workspace_tokens_management_node_context_menu__token-node-context-menu-action",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete")})})}):
null})}),$container$jscomp$89$$):null};
$app$main$ui$workspace$tokens$management$selected_set_info_STAR_$$=function($props_77641$$){var $selected_token_set_id$jscomp$5$$=$props_77641$$.selectedTokenSetId,$tokens_lib$jscomp$39$$=$props_77641$$.tokensLib,$selected_token_set$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$39$$),$APP.$rumext$v2$adapt$$($selected_token_set_id$jscomp$5$$)],function(){return $APP.$cljs$core$truth_$$($selected_token_set_id$jscomp$5$$)?$tokens_lib$jscomp$39$$==
null?null:$APP.$app$common$types$tokens_lib$get_set$$($tokens_lib$jscomp$39$$,$selected_token_set_id$jscomp$5$$):null}),$active_token_sets_names$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$39$$)],function(){return $tokens_lib$jscomp$39$$==null?null:$APP.$app$common$types$tokens_lib$get_active_themes_set_names$$($tokens_lib$jscomp$39$$)}),$token_set_active_QMARK_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_token_sets_names$$)],
function($name$jscomp$437$$){return $APP.$cljs$core$contains_QMARK_$$($active_token_sets_names$$,$name$jscomp$437$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management__sets-header-container",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"headline-small",className:"main_ui_workspace_tokens_management__sets-header","data-testid":"active-token-set-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.tokens-section-title",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$tokens_lib$get_name$$($selected_token_set$$)]))}),$selected_token_set_id$jscomp$5$$!=null&&$APP.$cljs$core$not$$(function(){var $G__77648$$=$APP.$app$common$types$tokens_lib$get_name$$($selected_token_set$$);return $token_set_active_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$token_set_active_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__77648$$):$token_set_active_QMARK_$$($G__77648$$)}())?(0,$APP.$rumext$v2$jsx$$)("div",
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.inactive-set-description"),className:"main_ui_workspace_tokens_management__sets-header-status",children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{className:"main_ui_workspace_tokens_management__sets-header-status-icon",iconId:"eye-off"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_management__sets-header-status-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.inactive-set")})]})}):null]})};
$app$main$ui$workspace$tokens$management$tokens_section_STAR_$$=function($empty_group_props_77652_tokens$jscomp$50$$){var $resolved_active_tokens$jscomp$1$$=$empty_group_props_77652_tokens$jscomp$50$$.resolvedActiveTokens,$active_tokens$jscomp$4$$=$empty_group_props_77652_tokens$jscomp$50$$.activeTokens,$tokens_lib$jscomp$40$$=$empty_group_props_77652_tokens$jscomp$50$$.tokensLib,$objects$jscomp$778$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),$selected$jscomp$173$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$),
$selected_shapes$jscomp$26$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$173$$),$APP.$rumext$v2$adapt$$($objects$jscomp$778$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$778$$)),$selected$jscomp$173$$)}),$is_selected_inside_layout$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_shapes$jscomp$26$$),
$APP.$rumext$v2$adapt$$($objects$jscomp$778$$)],function(){return $APP.$cljs$core$some$$(function($p1__77651_SHARP_$$){return $APP.$app$common$types$shape$layout$any_layout_immediate_child_QMARK_$$($objects$jscomp$778$$,$p1__77651_SHARP_$$)},$selected_shapes$jscomp$26$$)}),$selected_token_set_id$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_token_set_id$$),$selected_token_set_tokens$$=$APP.$cljs$core$truth_$$($selected_token_set_id$jscomp$6$$)?$tokens_lib$jscomp$40$$==null?null:
$APP.$app$common$types$tokens_lib$get_tokens$$($tokens_lib$jscomp$40$$,$selected_token_set_id$jscomp$6$$):null;$empty_group_props_77652_tokens$jscomp$50$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_tokens$jscomp$4$$),$APP.$rumext$v2$adapt$$($selected_token_set_tokens$$)],function(){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$active_tokens$jscomp$4$$,$selected_token_set_tokens$$]))});
var $tokens__$1$jscomp$5$$=$APP.$app$main$data$style_dictionary$use_resolved_tokens_STAR_$$($empty_group_props_77652_tokens$jscomp$50$$),$tokens_by_type$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens__$1$jscomp$5$$),$APP.$rumext$v2$adapt$$($selected_token_set_tokens$$)],function(){var $tokens__$2$jscomp$2$$=$APP.$cljs$core$reduce_kv$$(function($tokens__$2$jscomp$3$$,$k$jscomp$690$$){return $APP.$cljs$core$contains_QMARK_$$($selected_token_set_tokens$$,
$k$jscomp$690$$)?$tokens__$2$jscomp$3$$:$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($tokens__$2$jscomp$3$$,$k$jscomp$690$$)},$tokens__$1$jscomp$5$$,$tokens__$1$jscomp$5$$);return $app$common$types$tokens_lib$group_by_type$$($tokens__$2$jscomp$2$$)}),$filled_group_vec__77656$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_by_type$jscomp$1$$)],function(){a:{var $G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$=
$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1189$token_shadow$$)?$APP.$app$main$data$workspace$tokens$application$token_properties$$:$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$tokens$application$token_properties$$,$APP.$cljs$cst$1638$shadow$$),$G__77668$jscomp$inline_12981_G__77671$jscomp$inline_12984_a$jscomp$inline_13915_empty$jscomp$inline_12976$$=[];var $G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$=
[];for($G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$=$APP.$cljs$core$seq$$($APP.$cljs$core$keys$$($G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$));;){var $temp__5823__auto__$jscomp$inline_12979_type$jscomp$inline_12980$$=$APP.$cljs$core$first$$($G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$);
if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$inline_12979_type$jscomp$inline_12980$$))$APP.$cljs$core$truth_$$($APP.$cljs$core$not_empty$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($tokens_by_type$jscomp$1$$,$temp__5823__auto__$jscomp$inline_12979_type$jscomp$inline_12980$$)))?($G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$.push($temp__5823__auto__$jscomp$inline_12979_type$jscomp$inline_12980$$),
$G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$=$APP.$cljs$core$rest$$($G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$)):($G__77668$jscomp$inline_12981_G__77671$jscomp$inline_12984_a$jscomp$inline_13915_empty$jscomp$inline_12976$$.push($temp__5823__auto__$jscomp$inline_12979_type$jscomp$inline_12980$$),$G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$=
$APP.$cljs$core$rest$$($G__77670$jscomp$inline_12983_G__77673$jscomp$inline_12986_all_types$jscomp$inline_12975_types$jscomp$inline_12978$$));else{$G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$seq$$($app$util$array$sort_BANG_$$($G__77668$jscomp$inline_12981_G__77671$jscomp$inline_12984_a$jscomp$inline_13915_empty$jscomp$inline_12976$$)),
$APP.$cljs$core$seq$$($app$util$array$sort_BANG_$$($G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$))],null);break a}}$G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$=void 0}return $G__77669$jscomp$inline_12982_G__77672$jscomp$inline_12985_JSCompiler_inline_result$jscomp$10601_a$jscomp$inline_13912_filled$jscomp$inline_12977$$});
$empty_group_props_77652_tokens$jscomp$50$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filled_group_vec__77656$$,0,null);$filled_group_vec__77656$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filled_group_vec__77656$$,1,null);var $filter_tokens_by_path_ids$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_token_set_tokens$$)],function($type$jscomp$663$$,$path$jscomp$277$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($token$jscomp$149_token_value$jscomp$7$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($token$jscomp$149_token_value$jscomp$7$$,
0,null);$token$jscomp$149_token_value$jscomp$7$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($token$jscomp$149_token_value$jscomp$7$$,1,null);return $APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$149_token_value$jscomp$7$$)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($token$jscomp$150_token_value$jscomp$8$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($token$jscomp$150_token_value$jscomp$8$$,0,null);$token$jscomp$150_token_value$jscomp$8$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($token$jscomp$150_token_value$jscomp$8$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$150_token_value$jscomp$8$$),$type$jscomp$663$$)&&$APP.$cuerdas$core$starts_with_QMARK_$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$150_token_value$jscomp$8$$),$path$jscomp$277$$)},$selected_token_set_tokens$$))}),$remaining_tokens_of_type_in_set_QMARK_$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($remaining_tokens_selected_token_set_tokens__$1$$,$tokens_in_path_ids$$){var $token_ids$jscomp$2$$=$APP.$cljs$core$set$$($tokens_in_path_ids$$);$remaining_tokens_selected_token_set_tokens__$1$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($token$jscomp$151$$){return!$APP.$cljs$core$contains_QMARK_$$($token_ids$jscomp$2$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$151$$))},$remaining_tokens_selected_token_set_tokens__$1$$);
return $APP.$cljs$core$seq$$($remaining_tokens_selected_token_set_tokens__$1$$)}),$delete_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_token_set_tokens$$),$APP.$rumext$v2$adapt$$($selected_token_set_id$jscomp$6$$)],function(){return function($path$jscomp$278_token$jscomp$152$$){var $id$jscomp$951$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$278_token$jscomp$152$$),$type$jscomp$664$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$278_token$jscomp$152$$);
$path$jscomp$278_token$jscomp$152$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$278_token$jscomp$152$$);var $remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$=$app$common$types$tokens_lib$group_by_type$$($selected_token_set_tokens$$);$remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$,$type$jscomp$664$$);var $tokens_in_path_ids$jscomp$1$$=
$filter_tokens_by_path_ids$$.$cljs$core$IFn$_invoke$arity$2$?$filter_tokens_by_path_ids$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$664$$,$path$jscomp$278_token$jscomp$152$$):$filter_tokens_by_path_ids$$($type$jscomp$664$$,$path$jscomp$278_token$jscomp$152$$);$remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$=$remaining_tokens_of_type_in_set_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$remaining_tokens_of_type_in_set_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$,
$tokens_in_path_ids$jscomp$1$$):$remaining_tokens_of_type_in_set_QMARK_$$($remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$,$tokens_in_path_ids$jscomp$1$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token$$($selected_token_set_id$jscomp$6$$,$id$jscomp$951$$));return $APP.$cljs$core$truth_$$($remaining_tokens_QMARK__tokens_by_type__$1_tokens_filtered_by_type$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$([$APP.$cljs$core$name$$($type$jscomp$664$$),
".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$278_token$jscomp$152$$)].join(""))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$($APP.$cljs$core$name$$($type$jscomp$664$$)))}}),$delete_node$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_token_set_tokens$$),$APP.$rumext$v2$adapt$$($selected_token_set_id$jscomp$6$$)],function(){return function($node$jscomp$430_path$jscomp$279$$,
$type$jscomp$665$$){$node$jscomp$430_path$jscomp$279$$=$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$430_path$jscomp$279$$);var $tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$=$app$common$types$tokens_lib$group_by_type$$($selected_token_set_tokens$$),$remaining_tokens_QMARK_$jscomp$1_tokens_filtered_by_type$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$,$type$jscomp$665$$);$tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$=
$filter_tokens_by_path_ids$$.$cljs$core$IFn$_invoke$arity$2$?$filter_tokens_by_path_ids$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$665$$,$node$jscomp$430_path$jscomp$279$$):$filter_tokens_by_path_ids$$($type$jscomp$665$$,$node$jscomp$430_path$jscomp$279$$);$remaining_tokens_QMARK_$jscomp$1_tokens_filtered_by_type$jscomp$1$$=$remaining_tokens_of_type_in_set_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$remaining_tokens_of_type_in_set_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($remaining_tokens_QMARK_$jscomp$1_tokens_filtered_by_type$jscomp$1$$,
$tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$):$remaining_tokens_of_type_in_set_QMARK_$$($remaining_tokens_QMARK_$jscomp$1_tokens_filtered_by_type$jscomp$1$$,$tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$bulk_delete_tokens$$($selected_token_set_id$jscomp$6$$,$tokens_by_type__$1$jscomp$1_tokens_in_path_ids$jscomp$2$$));return $APP.$cljs$core$truth_$$($remaining_tokens_QMARK_$jscomp$1_tokens_filtered_by_type$jscomp$1$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$([$APP.$cljs$core$name$$($type$jscomp$665$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$430_path$jscomp$279$$)].join(""))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$($APP.$cljs$core$name$$($type$jscomp$665$$)))}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$40$$),
$APP.$rumext$v2$adapt$$($selected_token_set_id$jscomp$6$$)],function(){var $JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$=$APP.$cljs$core$truth_$$($tokens_lib$jscomp$40$$)?($JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$=$selected_token_set_id$jscomp$6$$==null)?$JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$:$APP.$cljs$core$truth_$$($selected_token_set_id$jscomp$6$$)?
$APP.$cljs$core$not$$($APP.$app$common$types$tokens_lib$get_set$$($tokens_lib$jscomp$40$$,$selected_token_set_id$jscomp$6$$)):$selected_token_set_id$jscomp$6$$:$tokens_lib$jscomp$40$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$)?($JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$=$APP.$cljs$core$first$$($APP.$app$common$types$tokens_lib$get_sets$$($tokens_lib$jscomp$40$$)),$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$set_selected_token_set_id$$($APP.$app$common$types$tokens_lib$get_id$$($JSCompiler_inline_result$jscomp$1810_match$jscomp$59_or__5025__auto__$jscomp$inline_8697$$))):null):null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$context_menu$token_context_menu$$,{"on-delete-token":$delete_token$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$node_context_menu$token_node_context_menu_STAR_$$,{onDeleteNode:$delete_node$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$selected_set_info_STAR_$$,{tokensLib:$tokens_lib$jscomp$40$$,selectedTokenSetId:$selected_token_set_id$jscomp$6$$}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$206$$,$JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$){var $JSCompiler_temp_const$jscomp$1811$$=
$out_arr__44057__auto__$jscomp$206$$.push,$tokens__$2$jscomp$inline_8699$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($tokens_by_type$jscomp$1$$,$JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$);$JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$group$token_group_STAR_$$,{isSelectedInsideLayout:$is_selected_inside_layout$jscomp$6$$,type:$JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$,selectedTokenSetId:$selected_token_set_id$jscomp$6$$,
selectedIds:$selected$jscomp$173$$,tokensLib:$tokens_lib$jscomp$40$$,tokens:$tokens__$2$jscomp$inline_8699$$,activeThemeTokens:$resolved_active_tokens$jscomp$1$$,selectedShapes:$selected_shapes$jscomp$26$$},$APP.$cljs$core$name$$($JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$));$JSCompiler_temp_const$jscomp$1811$$.call($out_arr__44057__auto__$jscomp$206$$,$JSCompiler_inline_result$jscomp$1813_type$jscomp$666$$);return $out_arr__44057__auto__$jscomp$206$$},[],$filled_group_vec__77656$$),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$207$$,
$type$jscomp$667$$){$out_arr__44057__auto__$jscomp$207$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$group$token_group_STAR_$$,{tokens:$APP.$cljs$core$PersistentVector$EMPTY$$,type:$type$jscomp$667$$,selectedShapes:$selected_shapes$jscomp$26$$,isSelectedInsideLayout:$is_selected_inside_layout$jscomp$6$$,activeThemeTokens:$resolved_active_tokens$jscomp$1$$},$APP.$cljs$core$name$$($type$jscomp$667$$)));return $out_arr__44057__auto__$jscomp$207$$},[],$empty_group_props_77652_tokens$jscomp$50$$)]})};
$app$main$ui$workspace$tokens$sets$helpers$on_update_token_set$$=function($errors$jscomp$32_tokens_lib$jscomp$41$$,$token_set$jscomp$18$$,$name$jscomp$438_name__$1$jscomp$24$$){$name$jscomp$438_name__$1$jscomp$24$$=$APP.$app$common$types$tokens_lib$normalize_set_name$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$438_name__$1$jscomp$24$$,$APP.$app$common$types$tokens_lib$get_name$$($token_set$jscomp$18$$));$errors$jscomp$32_tokens_lib$jscomp$41$$=$app$common$schema$validation_errors$$($name$jscomp$438_name__$1$jscomp$24$$,
$APP.$app$common$files$tokens$make_token_set_name_schema$$($errors$jscomp$32_tokens_lib$jscomp$41$$,$APP.$app$common$types$tokens_lib$get_id$$($token_set$jscomp$18$$)));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$clear_token_set_edition$$());return $APP.$cljs$core$empty_QMARK_$$($errors$jscomp$32_tokens_lib$jscomp$41$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$rename_token_set$$($token_set$jscomp$18$$,
$name$jscomp$438_name__$1$jscomp$24$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.token-set-already-exists"),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$847$error$$,$APP.$cljs$cst$2310$timeout$$,9E3],null)))};
$app$main$ui$workspace$tokens$sets$helpers$on_update_token_set_group$$=function($path$jscomp$280$$,$name$jscomp$439$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$library_edit$clear_token_set_edition$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$library_edit$rename_token_set_group$$($path$jscomp$280$$,$name$jscomp$439$$)]))};
$app$main$ui$workspace$tokens$sets$helpers$on_create_token_set$$=function($errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$,$parent_set$jscomp$1_temp__5823__auto__$jscomp$inline_8703$$,$name$jscomp$440_name__$1$jscomp$25$$){$parent_set$jscomp$1_temp__5823__auto__$jscomp$inline_8703$$=$APP.$app$common$path_names$split_path$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$common$types$tokens_lib$get_name$$($parent_set$jscomp$1_temp__5823__auto__$jscomp$inline_8703$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,
"/"]));$name$jscomp$440_name__$1$jscomp$25$$=$APP.$cljs$core$truth_$$($parent_set$jscomp$1_temp__5823__auto__$jscomp$inline_8703$$)?$APP.$app$common$types$tokens_lib$join_set_path$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($parent_set$jscomp$1_temp__5823__auto__$jscomp$inline_8703$$,$APP.$app$common$types$tokens_lib$split_set_name$$($name$jscomp$440_name__$1$jscomp$25$$))):$APP.$app$common$types$tokens_lib$normalize_set_name$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$440_name__$1$jscomp$25$$);
$errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$=$app$common$schema$validation_errors$$($name$jscomp$440_name__$1$jscomp$25$$,$APP.$app$common$files$tokens$make_token_set_name_schema$$($errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$,null));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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$$,"create-token-set",$APP.$cljs$cst$723$name$$,$name$jscomp$440_name__$1$jscomp$25$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$library_edit$clear_token_set_creation$$()]));return $APP.$cljs$core$empty_QMARK_$$($errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$)?($errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$=$APP.$app$common$types$tokens_lib$make_token_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$,
$name$jscomp$440_name__$1$jscomp$25$$])),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$create_token_set$$($errors$jscomp$33_token_set$jscomp$19_tokens_lib$jscomp$42$$))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.token-set-already-exists"),
$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$847$error$$,$APP.$cljs$cst$2310$timeout$$,9E3],null)))};$app$main$ui$workspace$tokens$sets$lists$on_start_creation$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$start_token_set_creation$$($APP.$cljs$core$PersistentVector$EMPTY$$))};
$app$main$ui$workspace$tokens$sets$lists$editing_label_STAR_$$=function($on_key_down$jscomp$17_props_77621$$){var $on_cancel$jscomp$8$$=$on_key_down$jscomp$17_props_77621$$.onCancel,$default_value$jscomp$4$$=$on_key_down$jscomp$17_props_77621$$.defaultValue,$on_submit$jscomp$14$$=$on_key_down$jscomp$17_props_77621$$.onSubmit,$on_submit__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_cancel$jscomp$8$$),$APP.$rumext$v2$adapt$$($on_submit$jscomp$14$$),$APP.$rumext$v2$adapt$$($default_value$jscomp$4$$)],
function($event$jscomp$551_value$jscomp$908$$){$event$jscomp$551_value$jscomp$908$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$551_value$jscomp$908$$);return $APP.$cuerdas$core$empty_QMARK_$$($event$jscomp$551_value$jscomp$908$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$551_value$jscomp$908$$,$default_value$jscomp$4$$)?$on_cancel$jscomp$8$$.$cljs$core$IFn$_invoke$arity$0$?$on_cancel$jscomp$8$$.$cljs$core$IFn$_invoke$arity$0$():$on_cancel$jscomp$8$$():$on_submit$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$?
$on_submit$jscomp$14$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$551_value$jscomp$908$$):$on_submit$jscomp$14$$($event$jscomp$551_value$jscomp$908$$)});$on_key_down$jscomp$17_props_77621$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit__$1$$),$APP.$rumext$v2$adapt$$($on_cancel$jscomp$8$$)],function($event$jscomp$552$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$552$$))?$on_submit__$1$$.$cljs$core$IFn$_invoke$arity$1$?
$on_submit__$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$552$$):$on_submit__$1$$($event$jscomp$552$$):$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$552$$))?$on_cancel$jscomp$8$$.$cljs$core$IFn$_invoke$arity$0$?$on_cancel$jscomp$8$$.$cljs$core$IFn$_invoke$arity$0$():$on_cancel$jscomp$8$$():null});return(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",onBlur:$on_submit__$1$$,onKeyDown:$on_key_down$jscomp$17_props_77621$$,maxLength:"256",autoFocus:!0,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.set-edit-placeholder"),
defaultValue:$default_value$jscomp$4$$,className:"main_ui_workspace_tokens_sets_lists__editing-node"})};
$app$main$ui$workspace$tokens$sets$lists$checkbox_STAR_$$=function($checked$jscomp$1_props_77622$$){var $aria_label$jscomp$10$$=$checked$jscomp$1_props_77622$$["aria-label"],$disabled$jscomp$17$$=$checked$jscomp$1_props_77622$$.disabled,$on_click$jscomp$50$$=$checked$jscomp$1_props_77622$$.onClick;$checked$jscomp$1_props_77622$$=$checked$jscomp$1_props_77622$$.checked;var $all_QMARK__checked_QMARK_$jscomp$6$$=$checked$jscomp$1_props_77622$$===!0,$mixed_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($checked$jscomp$1_props_77622$$,
"mixed");$all_QMARK__checked_QMARK_$jscomp$6$$=$all_QMARK__checked_QMARK_$jscomp$6$$||$mixed_QMARK_$$;return(0,$APP.$rumext$v2$jsx$$)("div",{role:"checkbox","aria-checked":""+($checked$jscomp$1_props_77622$$??""),disabled:$disabled$jscomp$17$$,title:$APP.$cljs$core$truth_$$($disabled$jscomp$17$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-permisions-set"):null,tabIndex:0,onClick:$APP.$cljs$core$truth_$$($disabled$jscomp$17$$)?null:$on_click$jscomp$50$$,className:"main_ui_workspace_tokens_sets_lists__checkbox-style "+
($all_QMARK__checked_QMARK_$jscomp$6$$?"main_ui_workspace_tokens_sets_lists__checkbox-checked-style":"")+" "+($APP.$cljs$core$truth_$$($all_QMARK__checked_QMARK_$jscomp$6$$?$disabled$jscomp$17$$:$all_QMARK__checked_QMARK_$jscomp$6$$)?"main_ui_workspace_tokens_sets_lists__checkbox-disabled-checked":"")+" "+($APP.$cljs$core$truth_$$($disabled$jscomp$17$$)?"main_ui_workspace_tokens_sets_lists__checkbox-disabled":""),children:$all_QMARK__checked_QMARK_$jscomp$6$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{"aria-label":$aria_label$jscomp$10$$,className:"main_ui_workspace_tokens_sets_lists__check-icon",size:"s",iconId:$mixed_QMARK_$$?"remove":"tick"}):null})};
$app$main$ui$workspace$tokens$sets$lists$inline_add_button_STAR_$$=function(){var $can_edit_QMARK_$jscomp$6$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$);return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$6$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_sets_lists__empty-sets-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_sets_lists__empty-state-message",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-sets-yet")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$app$main$ui$workspace$tokens$sets$lists$on_start_creation$$,className:"main_ui_workspace_tokens_sets_lists__create-set-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.create-one")})]}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_sets_lists__empty-sets-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_sets_lists__empty-state-message",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-sets-yet")})})};$app$main$ui$workspace$tokens$sets$lists$add_button_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",icon:"add",onClick:$app$main$ui$workspace$tokens$sets$lists$on_start_creation$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.add set")})};
$app$main$ui$workspace$tokens$sets$lists$sets_tree_set_group_STAR_$$=function($depth$jscomp$18_props_77627$$){var $path$jscomp$281$$=$depth$jscomp$18_props_77627$$.path,$index$jscomp$539$$=$depth$jscomp$18_props_77627$$.index,$on_edit_submit$$=$depth$jscomp$18_props_77627$$.onEditSubmit,$is_selected$jscomp$4$$=$depth$jscomp$18_props_77627$$.isSelected,$on_toggle$$=$depth$jscomp$18_props_77627$$.onToggle,$is_collapsed$$=$depth$jscomp$18_props_77627$$.isCollapsed,$on_drop$jscomp$16$$=$depth$jscomp$18_props_77627$$.onDrop,
$dprops$jscomp$9_is_draggable$$=$depth$jscomp$18_props_77627$$.isDraggable,$is_active$jscomp$4$$=$depth$jscomp$18_props_77627$$.isActive,$on_toggle_collapse$jscomp$1$$=$depth$jscomp$18_props_77627$$.onToggleCollapse,$on_start_edition$$=$depth$jscomp$18_props_77627$$.onStartEdition,$is_editing$jscomp$3$$=$depth$jscomp$18_props_77627$$.isEditing,$label$jscomp$48$$=$depth$jscomp$18_props_77627$$.label,$id$jscomp$952$$=$depth$jscomp$18_props_77627$$.id,$on_reset_edition$$=$depth$jscomp$18_props_77627$$.onResetEdition;
$depth$jscomp$18_props_77627$$=$depth$jscomp$18_props_77627$$.depth;var $can_edit_QMARK_$jscomp$7$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$),$label_id$$=[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$952$$),"-label"].join(""),$on_context_menu$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_editing$jscomp$3$$),$APP.$rumext$v2$adapt$$($id$jscomp$952$$),$APP.$rumext$v2$adapt$$($path$jscomp$281$$),
$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$7$$)],function($event$jscomp$553$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$553$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$553$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$7$$)?$APP.$cljs$core$not$$($is_editing$jscomp$3$$):$can_edit_QMARK_$jscomp$7$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1660$position$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$553$$),$APP.$cljs$cst$2102$is_group$$,!0,$APP.$cljs$cst$266$id$$,$id$jscomp$952$$,$APP.$cljs$cst$294$path$$,$path$jscomp$281$$],null))):null}),$on_collapse_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$554$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$554$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$554$$);return $on_toggle_collapse$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$on_toggle_collapse$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$281$$):$on_toggle_collapse$jscomp$1$$($path$jscomp$281$$)}),$on_double_click$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$952$$)],function(){return $on_start_edition$$.$cljs$core$IFn$_invoke$arity$1$?$on_start_edition$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$952$$):$on_start_edition$$($id$jscomp$952$$)}),$on_checkbox_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_toggle$$),
$APP.$rumext$v2$adapt$$($path$jscomp$281$$),$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$7$$)],function(){return $on_toggle$$.$cljs$core$IFn$_invoke$arity$1$?$on_toggle$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$281$$):$on_toggle$$($path$jscomp$281$$)}),$on_edit_submit_SINGLEQUOTE_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($path$jscomp$281$$),$APP.$rumext$v2$adapt$$($on_edit_submit$$),$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$7$$)],function($p1__77626_SHARP_$$){return $on_edit_submit$$.$cljs$core$IFn$_invoke$arity$2$?
$on_edit_submit$$.$cljs$core$IFn$_invoke$arity$2$($path$jscomp$281$$,$p1__77626_SHARP_$$):$on_edit_submit$$($path$jscomp$281$$,$p1__77626_SHARP_$$)}),$dref$jscomp$9_on_drop__$1_vec__77628$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$539$$),$APP.$rumext$v2$adapt$$($on_drop$jscomp$16$$)],function($position$jscomp$188$$,$data$jscomp$481$$){return $on_drop$jscomp$16$$.$cljs$core$IFn$_invoke$arity$3$?$on_drop$jscomp$16$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$539$$,
$position$jscomp$188$$,$data$jscomp$481$$):$on_drop$jscomp$16$$($index$jscomp$539$$,$position$jscomp$188$$,$data$jscomp$481$$)});$dref$jscomp$9_on_drop__$1_vec__77628$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/token-set",$APP.$cljs$cst$2639$on_drop$$,$dref$jscomp$9_on_drop__$1_vec__77628$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1779$index$$,$index$jscomp$539$$,$APP.$cljs$cst$2102$is_group$$,!0],null),$APP.$cljs$cst$2642$detect_center_QMARK_$$,!0,$APP.$cljs$cst$2643$draggable_QMARK_$$,$APP.$cljs$core$truth_$$($dprops$jscomp$9_is_draggable$$)?$APP.$cljs$core$not$$($is_editing$jscomp$3$$):$dprops$jscomp$9_is_draggable$$]));$dprops$jscomp$9_is_draggable$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$9_on_drop__$1_vec__77628$$,0,null);$dref$jscomp$9_on_drop__$1_vec__77628$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$9_on_drop__$1_vec__77628$$,
1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$dref$jscomp$9_on_drop__$1_vec__77628$$,"data-testid":"tokens-set-group-item",style:{"--tree-depth":$depth$jscomp$18_props_77627$$},onContextMenu:$on_context_menu$jscomp$14$$,className:"main_ui_workspace_tokens_sets_lists__set-item-container main_ui_workspace_tokens_sets_lists__set-item-group "+($APP.$cljs$core$truth_$$($is_selected$jscomp$4$$)?"main_ui_workspace_tokens_sets_lists__selected-set":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$9_is_draggable$$),
$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_tokens_sets_lists__dnd-over":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$9_is_draggable$$),$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_tokens_sets_lists__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2644$over$$.$cljs$core$IFn$_invoke$arity$1$($dprops$jscomp$9_is_draggable$$),$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_tokens_sets_lists__dnd-over-bot":
""),children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{className:"main_ui_workspace_tokens_sets_lists__set-item-group-collapse-button",onClick:$on_collapse_click$$,"data-testid":"tokens-set-group-collapse","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.collapse"),icon:$APP.$cljs$core$truth_$$($is_collapsed$$)?"arrow-right":"arrow-down",variant:"action"}),$APP.$cljs$core$truth_$$($is_editing$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$editing_label_STAR_$$,
{defaultValue:$label$jscomp$48$$,onCancel:$on_reset_edition$$,onSubmit:$on_edit_submit_SINGLEQUOTE_$$}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{role:"button",title:$label$jscomp$48$$,tabIndex:0,onDoubleClick:$on_double_click$jscomp$2$$,id:$label_id$$,className:"main_ui_workspace_tokens_sets_lists__set-name",children:$label$jscomp$48$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$checkbox_STAR_$$,{onClick:$on_checkbox_click$$,
disabled:$APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$7$$),checked:function(){var $G__77631__$1$$=$is_active$jscomp$4$$ instanceof $APP.$cljs$core$Keyword$$?$is_active$jscomp$4$$.$fqn$:null;switch($G__77631__$1$$){case "all":return!0;case "partial":return"mixed";case "none":return!1;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77631__$1$$)].join(""));}}(),arialLabel:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.select-set")})]})]})};
$app$main$ui$workspace$tokens$sets$lists$sets_tree_set_STAR_$$=function($depth$jscomp$19_props_77633$$){var $set$jscomp$18$$=$depth$jscomp$19_props_77633$$.set,$path$jscomp$282$$=$depth$jscomp$19_props_77633$$.path,$is_new$$=$depth$jscomp$19_props_77633$$.isNew,$index$jscomp$540$$=$depth$jscomp$19_props_77633$$.index,$on_edit_submit$jscomp$1$$=$depth$jscomp$19_props_77633$$.onEditSubmit,$is_selected$jscomp$5$$=$depth$jscomp$19_props_77633$$.isSelected,$on_toggle$jscomp$1$$=$depth$jscomp$19_props_77633$$.onToggle,
$on_drop$jscomp$17$$=$depth$jscomp$19_props_77633$$.onDrop,$dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$=$depth$jscomp$19_props_77633$$.isDraggable,$is_active$jscomp$5$$=$depth$jscomp$19_props_77633$$.isActive,$on_start_edition$jscomp$1$$=$depth$jscomp$19_props_77633$$.onStartEdition,$on_select$jscomp$5$$=$depth$jscomp$19_props_77633$$.onSelect,$is_editing$jscomp$4$$=$depth$jscomp$19_props_77633$$.isEditing,$label$jscomp$49$$=$depth$jscomp$19_props_77633$$.label,$id$jscomp$953$$=$depth$jscomp$19_props_77633$$.id,
$on_reset_edition$jscomp$1$$=$depth$jscomp$19_props_77633$$.onResetEdition;$depth$jscomp$19_props_77633$$=$depth$jscomp$19_props_77633$$.depth;var $can_edit_QMARK_$jscomp$8$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$),$on_click$jscomp$51$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_editing$jscomp$4$$),$APP.$rumext$v2$adapt$$($on_select$jscomp$5$$),$APP.$rumext$v2$adapt$$($id$jscomp$953$$)],function($event$jscomp$555$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$555$$);
return $APP.$cljs$core$truth_$$($is_editing$jscomp$4$$)?null:$APP.$cljs$core$fn_QMARK_$$($on_select$jscomp$5$$)?$on_select$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$on_select$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$953$$):$on_select$jscomp$5$$($id$jscomp$953$$):null}),$on_context_menu$jscomp$15$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_editing$jscomp$4$$),$APP.$rumext$v2$adapt$$($id$jscomp$953$$),$APP.$rumext$v2$adapt$$($path$jscomp$282$$),
$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$8$$)],function($event$jscomp$556$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$556$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$556$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$8$$)?$APP.$cljs$core$not$$($is_editing$jscomp$4$$):$can_edit_QMARK_$jscomp$8$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$assign_token_set_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1660$position$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$556$$),$APP.$cljs$cst$2102$is_group$$,!1,$APP.$cljs$cst$266$id$$,$id$jscomp$953$$,$APP.$cljs$cst$294$path$$,$path$jscomp$282$$],null))):null}),$on_double_click$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$953$$),$APP.$rumext$v2$adapt$$($is_new$$)],function(){return $APP.$cljs$core$truth_$$($is_new$$)?null:$on_start_edition$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$on_start_edition$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$953$$):$on_start_edition$jscomp$1$$($id$jscomp$953$$)}),$on_checkbox_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$953$$),$APP.$rumext$v2$adapt$$($on_toggle$jscomp$1$$)],function($G__77637_event$jscomp$557$$){$APP.$app$util$dom$stop_propagation$$($G__77637_event$jscomp$557$$);return $APP.$cljs$core$fn_QMARK_$$($on_toggle$jscomp$1$$)?($G__77637_event$jscomp$557$$=
$APP.$app$common$types$tokens_lib$get_name$$($set$jscomp$18$$),$on_toggle$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_toggle$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__77637_event$jscomp$557$$):$on_toggle$jscomp$1$$($G__77637_event$jscomp$557$$)):null}),$on_edit_submit_SINGLEQUOTE_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($set$jscomp$18$$),$APP.$rumext$v2$adapt$$($on_edit_submit$jscomp$1$$)],function($p1__77632_SHARP_$$){return $on_edit_submit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$?
$on_edit_submit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$2$($set$jscomp$18$$,$p1__77632_SHARP_$$):$on_edit_submit$jscomp$1$$($set$jscomp$18$$,$p1__77632_SHARP_$$)}),$dref$jscomp$10_on_drag$jscomp$2_vec__77634$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($path$jscomp$282$$)],function(){return $APP.$cljs$core$truth_$$($is_selected$jscomp$5$$)?null:$on_select$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$on_select$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$282$$):
$on_select$jscomp$5$$($path$jscomp$282$$)}),$on_drop__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$540$$),$APP.$rumext$v2$adapt$$($on_drop$jscomp$17$$)],function($position$jscomp$189$$,$data$jscomp$482$$){return $on_drop$jscomp$17$$.$cljs$core$IFn$_invoke$arity$3$?$on_drop$jscomp$17$$.$cljs$core$IFn$_invoke$arity$3$($index$jscomp$540$$,$position$jscomp$189$$,$data$jscomp$482$$):$on_drop$jscomp$17$$($index$jscomp$540$$,$position$jscomp$189$$,
$data$jscomp$482$$)});$dref$jscomp$10_on_drag$jscomp$2_vec__77634$$=$APP.$app$main$ui$hooks$use_sortable$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2638$data_type$$,"penpot/token-set",$APP.$cljs$cst$2640$on_drag$$,$dref$jscomp$10_on_drag$jscomp$2_vec__77634$$,$APP.$cljs$cst$2639$on_drop$$,$on_drop__$1$jscomp$1$$,$APP.$cljs$cst$142$data$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1779$index$$,$index$jscomp$540$$,
$APP.$cljs$cst$2102$is_group$$,!1],null),$APP.$cljs$cst$2643$draggable_QMARK_$$,$APP.$cljs$core$truth_$$($dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$)?$APP.$cljs$core$not$$($is_editing$jscomp$4$$):$dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$]));$dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$10_on_drag$jscomp$2_vec__77634$$,0,null);$dref$jscomp$10_on_drag$jscomp$2_vec__77634$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dref$jscomp$10_on_drag$jscomp$2_vec__77634$$,
1,null);$dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$,$APP.$cljs$cst$2644$over$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{onDoubleClick:$on_double_click$jscomp$3$$,role:"button",className:"main_ui_workspace_tokens_sets_lists__set-item-container "+($APP.$cljs$core$truth_$$($is_selected$jscomp$5$$)?"main_ui_workspace_tokens_sets_lists__selected-set":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$,
$APP.$cljs$cst$1651$center$$)?"main_ui_workspace_tokens_sets_lists__dnd-over":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$,$APP.$cljs$cst$1546$top$$)?"main_ui_workspace_tokens_sets_lists__dnd-over-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dprops$jscomp$10_drop_over_is_draggable$jscomp$1$$,$APP.$cljs$cst$2636$bot$$)?"main_ui_workspace_tokens_sets_lists__dnd-over-bot":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"document",className:"main_ui_workspace_tokens_sets_lists__icon "+($APP.$cljs$core$not$$($depth$jscomp$19_props_77633$$)?"main_ui_workspace_tokens_sets_lists__root-icon":"")}),$APP.$cljs$core$truth_$$($is_editing$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$editing_label_STAR_$$,{defaultValue:$label$jscomp$49$$,onCancel:$on_reset_edition$jscomp$1$$,onSubmit:$on_edit_submit_SINGLEQUOTE_$jscomp$1$$}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_tokens_sets_lists__set-name",children:$label$jscomp$49$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$checkbox_STAR_$$,{onClick:$on_checkbox_click$jscomp$1$$,disabled:$APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$8$$),arialLabel:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.select-set"),checked:$is_active$jscomp$5$$})]})],id:["token-set-item-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("/",
$path$jscomp$282$$))].join(""),"data-testid":"tokens-set-item",onContextMenu:$on_context_menu$jscomp$15$$,style:{"--tree-depth":$depth$jscomp$19_props_77633$$},"aria-checked":$is_active$jscomp$5$$,onClick:$on_click$jscomp$51$$,ref:$dref$jscomp$10_on_drag$jscomp$2_vec__77634$$})};
$app$main$ui$workspace$tokens$sets$lists$token_sets_tree_STAR_$$=function($props_77640$$){var $on_toggle_set$$=$props_77640$$.onToggleSet,$is_token_set_active$$=$props_77640$$.isTokenSetActive,$on_edit_submit_group$$=$props_77640$$.onEditSubmitGroup,$new_path$jscomp$1$$=$props_77640$$.newPath,$selected$jscomp$174$$=$props_77640$$.selected,$edition_id$jscomp$2$$=$props_77640$$.editionId,$token_sets$$=$props_77640$$.tokenSets,$is_draggable$jscomp$2$$=$props_77640$$.isDraggable,$is_token_set_group_active$$=
$props_77640$$.isTokenSetGroupActive,$on_edit_submit_set$$=$props_77640$$.onEditSubmitSet,$on_start_edition$jscomp$2$$=$props_77640$$.onStartEdition,$on_select$jscomp$6$$=$props_77640$$.onSelect,$on_toggle_set_group$$=$props_77640$$.onToggleSetGroup,$on_reset_edition$jscomp$2$$=$props_77640$$.onResetEdition,$tokens_lib$jscomp$43$$=$props_77640$$.tokensLib,$collapsed_paths_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),$collapsed_paths$jscomp$1$$=
$APP.$cljs$core$_deref$$($collapsed_paths_STAR_$$),$collapsed_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($collapsed_paths$jscomp$1$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$contains_QMARK_$$,$collapsed_paths$jscomp$1$$)),$on_drop$jscomp$18$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($collapsed_paths$jscomp$1$$)],function($index$jscomp$541_params$jscomp$419$$,
$position$jscomp$190$$,$data$jscomp$483$$){$index$jscomp$541_params$jscomp$419$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$4511$from_index$$,$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$483$$),$APP.$cljs$cst$4512$to_index$$,$index$jscomp$541_params$jscomp$419$$,$APP.$cljs$cst$1660$position$$,$position$jscomp$190$$,$APP.$cljs$cst$4513$collapsed_paths$$,$collapsed_paths$jscomp$1$$],null);return $APP.$cljs$core$truth_$$($APP.$cljs$cst$2102$is_group$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$483$$))?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$drop_token_set_group$$($index$jscomp$541_params$jscomp$419$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$drop_token_set$$($index$jscomp$541_params$jscomp$419$$))}),$on_toggle_collapse$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($path$jscomp$283$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($collapsed_paths_STAR_$$,
function($p1__77639_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($p1__77639_SHARP_$$,$path$jscomp$283$$)?$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($p1__77639_SHARP_$$,$path$jscomp$283$$):$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p1__77639_SHARP_$$,$path$jscomp$283$$)})});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $sub$jscomp$23$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($paths_SINGLEQUOTE_$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($collapsed_paths_STAR_$$,
function($paths$jscomp$8$$){return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$disj$$,$paths$jscomp$8$$,$paths_SINGLEQUOTE_$$)})},$APP.$beicon$v2$core$map$$($cljs$cst$5319$paths$$,$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$$($cljs$cst$5318$expand_token_sets$$),$APP.$app$main$store$stream$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$23$$)}});
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$208$$,$JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$){$JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$);var $JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,
$APP.$cljs$cst$2103$token_set$$),$id$jscomp$954$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,$APP.$cljs$cst$266$id$$),$index$jscomp$542$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,$APP.$cljs$cst$1779$index$$),$G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,
$APP.$cljs$cst$2101$is_new$$),$is_group$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,$APP.$cljs$cst$2102$is_group$$),$path$jscomp$284$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,$APP.$cljs$cst$294$path$$),$depth$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$,$APP.$cljs$cst$837$depth$$);
$JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$=$out_arr__44057__auto__$jscomp$208$$.push;$is_group$$?$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$sets_tree_set_group_STAR_$$,{onResetEdition:$on_reset_edition$jscomp$2$$,isCollapsed:$collapsed_QMARK_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$collapsed_QMARK_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$284$$):$collapsed_QMARK_$jscomp$1$$($path$jscomp$284$$),
isActive:$is_token_set_group_active$$.$cljs$core$IFn$_invoke$arity$1$?$is_token_set_group_active$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$284$$):$is_token_set_group_active$$($path$jscomp$284$$),index:$index$jscomp$542$$,onStartEdition:$on_start_edition$jscomp$2$$,onToggle:$on_toggle_set_group$$,isDraggable:$is_draggable$jscomp$2$$,label:$APP.$cljs$core$peek$$($path$jscomp$284$$),path:$path$jscomp$284$$,id:$id$jscomp$954$$,onDrop:$on_drop$jscomp$18$$,depth:$depth$jscomp$20$$,isSelected:!1,onEditSubmit:$on_edit_submit_group$$,
isEditing:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition_id$jscomp$2$$,$id$jscomp$954$$),onToggleCollapse:$on_toggle_collapse$jscomp$2$$},$index$jscomp$542$$):$G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$?$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$sets_tree_set_STAR_$$,{onResetEdition:$on_reset_edition$jscomp$2$$,isActive:!0,index:$index$jscomp$542$$,
isDraggable:!1,label:"",path:$path$jscomp$284$$,id:$id$jscomp$954$$,onDrop:$on_drop$jscomp$18$$,isNew:!0,depth:$depth$jscomp$20$$,isSelected:!0,onEditSubmit:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$tokens$sets$helpers$on_create_token_set$$,$tokens_lib$jscomp$43$$),set:$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$,isEditing:!0},$index$jscomp$542$$):($G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$=
$APP.$app$common$types$tokens_lib$get_name$$($JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$),$G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$=$is_token_set_active$$.$cljs$core$IFn$_invoke$arity$1$?$is_token_set_active$$.$cljs$core$IFn$_invoke$arity$1$($G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$):$is_token_set_active$$($G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$),
$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$sets_tree_set_STAR_$$,{onResetEdition:$on_reset_edition$jscomp$2$$,isActive:$G__77644$jscomp$inline_8705_JSCompiler_inline_result$jscomp$1818_is_new$jscomp$1$$,index:$index$jscomp$542$$,onStartEdition:$on_start_edition$jscomp$2$$,onToggle:$on_toggle_set$$,isDraggable:$is_draggable$jscomp$2$$,label:$APP.$cljs$core$peek$$($path$jscomp$284$$),path:$path$jscomp$284$$,
id:$id$jscomp$954$$,onDrop:$on_drop$jscomp$18$$,isNew:!1,depth:$depth$jscomp$20$$,isSelected:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$174$$,$id$jscomp$954$$),onEditSubmit:$on_edit_submit_set$$,set:$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$,isEditing:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition_id$jscomp$2$$,$id$jscomp$954$$),onSelect:$on_select$jscomp$6$$},$index$jscomp$542$$));$JSCompiler_temp_const$jscomp$1814_map__77643__$1_p__77642$$.call($out_arr__44057__auto__$jscomp$208$$,
$JSCompiler_temp$jscomp$1816_JSCompiler_temp$jscomp$1817_token_set$jscomp$20$$);return $out_arr__44057__auto__$jscomp$208$$},[],$app$common$types$tokens_lib$sets_tree_seq$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($token_sets$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2095$skip_children_pred$$,$collapsed_QMARK_$jscomp$1$$,$APP.$cljs$cst$2100$new_at_path$$,$new_path$jscomp$1$$],null)])))};
$app$main$ui$workspace$tokens$sets$lists$controlled_sets_list_STAR_$$=function($draggable_QMARK_$jscomp$1_props_77647$$){var $on_toggle_token_set$$=$draggable_QMARK_$jscomp$1_props_77647$$.onToggleTokenSet,$is_token_set_active$jscomp$1$$=$draggable_QMARK_$jscomp$1_props_77647$$.isTokenSetActive,$on_toggle_token_set_group$$=$draggable_QMARK_$jscomp$1_props_77647$$.onToggleTokenSetGroup,$new_path$jscomp$2$$=$draggable_QMARK_$jscomp$1_props_77647$$.newPath,$selected$jscomp$175$$=$draggable_QMARK_$jscomp$1_props_77647$$.selected,
$on_update_token_set_group$$=$draggable_QMARK_$jscomp$1_props_77647$$.onUpdateTokenSetGroup,$edition_id$jscomp$3$$=$draggable_QMARK_$jscomp$1_props_77647$$.editionId,$token_sets$jscomp$1$$=$draggable_QMARK_$jscomp$1_props_77647$$.tokenSets,$on_update_token_set$$=$draggable_QMARK_$jscomp$1_props_77647$$.onUpdateTokenSet,$is_token_set_group_active$jscomp$1$$=$draggable_QMARK_$jscomp$1_props_77647$$.isTokenSetGroupActive,$on_create_token_set$$=$draggable_QMARK_$jscomp$1_props_77647$$.onCreateTokenSet,
$on_start_edition$jscomp$3$$=$draggable_QMARK_$jscomp$1_props_77647$$.onStartEdition,$on_select$jscomp$7$$=$draggable_QMARK_$jscomp$1_props_77647$$.onSelect,$on_reset_edition$jscomp$3$$=$draggable_QMARK_$jscomp$1_props_77647$$.onResetEdition,$tokens_lib$jscomp$44$$=$draggable_QMARK_$jscomp$1_props_77647$$.tokensLib,$theme_modal_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($draggable_QMARK_$jscomp$1_props_77647$$.origin,"theme-modal"),$can_edit_QMARK_$jscomp$9$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$);
$draggable_QMARK_$jscomp$1_props_77647$$=function(){var $and__5023__auto__$jscomp$808$$=!$theme_modal_QMARK_$$;return $and__5023__auto__$jscomp$808$$?$can_edit_QMARK_$jscomp$9$$:$and__5023__auto__$jscomp$808$$}();var $empty_state_QMARK_$$=$theme_modal_QMARK_$$&&$APP.$cljs$core$empty_QMARK_$$($token_sets$jscomp$1$$)&&$APP.$cljs$core$not$$($new_path$jscomp$2$$),$on_reset_edition__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_reset_edition$jscomp$3$$)],
function($v$jscomp$668$$){return $APP.$cljs$core$fn_QMARK_$$($on_reset_edition$jscomp$3$$)?$on_reset_edition$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_reset_edition$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($v$jscomp$668$$):$on_reset_edition$jscomp$3$$($v$jscomp$668$$):null}),$on_start_edition__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_start_edition$jscomp$3$$)],function($v$jscomp$669$$){return $APP.$cljs$core$fn_QMARK_$$($on_start_edition$jscomp$3$$)?
$on_start_edition$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_start_edition$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($v$jscomp$669$$):$on_start_edition$jscomp$3$$($v$jscomp$669$$):null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_sets_lists__sets-list",children:$empty_state_QMARK_$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_sets_lists__empty-state-message-sets",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-sets-create")}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$token_sets_tree_STAR_$$,{onResetEdition:$on_reset_edition__$1$$,tokenSets:$token_sets$jscomp$1$$,onCreateTokenSet:$on_create_token_set$$,selected:$selected$jscomp$175$$,onToggleSetGroup:$on_toggle_token_set_group$$,tokensLib:$tokens_lib$jscomp$44$$,onStartEdition:$on_start_edition__$1$$,newPath:$new_path$jscomp$2$$,isDraggable:$draggable_QMARK_$jscomp$1_props_77647$$,
onEditSubmitSet:$on_update_token_set$$,isTokenSetActive:$is_token_set_active$jscomp$1$$,onToggleSet:$on_toggle_token_set$$,editionId:$edition_id$jscomp$3$$,onSelect:$on_select$jscomp$7$$,isTokenSetGroupActive:$is_token_set_group_active$jscomp$1$$,onEditSubmitGroup:$on_update_token_set_group$$})})};
$app$main$ui$workspace$tokens$sets$on_select_token_set_click$$=function($id$jscomp$955$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$clear_tokens_paths$$());return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$set_selected_token_set_id$$($id$jscomp$955$$))};$app$main$ui$workspace$tokens$sets$on_toggle_token_set_click$$=function($name$jscomp$441$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$toggle_token_set$$($name$jscomp$441$$))};
$app$main$ui$workspace$tokens$sets$on_toggle_token_set_group_click$$=function($path$jscomp$285$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_set_group$$($path$jscomp$285$$))};
$app$main$ui$workspace$tokens$sets$sets_list_STAR_$$=function($props_77653_token_sets$jscomp$2$$){var $new_path$jscomp$3$$=$props_77653_token_sets$jscomp$2$$.newPath,$selected$jscomp$176$$=$props_77653_token_sets$jscomp$2$$.selected,$edition_id$jscomp$4$$=$props_77653_token_sets$jscomp$2$$.editionId,$tokens_lib$jscomp$45$$=$props_77653_token_sets$jscomp$2$$.tokensLib;$props_77653_token_sets$jscomp$2$$=$tokens_lib$jscomp$45$$==null?null:$APP.$app$common$types$tokens_lib$get_set_tree$$($tokens_lib$jscomp$45$$);
var $can_edit_QMARK_$jscomp$10$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$),$token_set_active_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$45$$)],function($name$jscomp$442$$){return $APP.$cljs$core$truth_$$($tokens_lib$jscomp$45$$)?$APP.$app$common$types$tokens_lib$token_set_active_QMARK_$$($tokens_lib$jscomp$45$$,$name$jscomp$442$$):null}),$token_set_group_active_QMARK_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($group_path$jscomp$9$$){return $APP.$cljs$core$_deref$$($app$main$refs$token_sets_at_path_all_active$$($group_path$jscomp$9$$))}),
$on_reset_edition$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$10$$)],function(){return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$10$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$library_edit$clear_token_set_edition$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$library_edit$clear_token_set_creation$$()])):
null}),$on_start_edition$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$10$$)],function($id$jscomp$956$$){return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$10$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$start_token_set_edition$$($id$jscomp$956$$)):null});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$controlled_sets_list_STAR_$$,
{onResetEdition:$on_reset_edition$jscomp$4$$,tokenSets:$props_77653_token_sets$jscomp$2$$,onCreateTokenSet:$app$main$ui$workspace$tokens$sets$helpers$on_create_token_set$$,selected:$selected$jscomp$176$$,onUpdateTokenSetGroup:$app$main$ui$workspace$tokens$sets$helpers$on_update_token_set_group$$,origin:"set-panel",onToggleTokenSet:$app$main$ui$workspace$tokens$sets$on_toggle_token_set_click$$,onUpdateTokenSet:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$tokens$sets$helpers$on_update_token_set$$,
$tokens_lib$jscomp$45$$),tokensLib:$tokens_lib$jscomp$45$$,onStartEdition:$on_start_edition$jscomp$4$$,newPath:$new_path$jscomp$3$$,isTokenSetActive:$token_set_active_QMARK_$jscomp$1$$,canEdit:$can_edit_QMARK_$jscomp$10$$,onToggleTokenSetGroup:$app$main$ui$workspace$tokens$sets$on_toggle_token_set_group_click$$,editionId:$edition_id$jscomp$4$$,onSelect:$app$main$ui$workspace$tokens$sets$on_select_token_set_click$$,isTokenSetGroupActive:$token_set_group_active_QMARK_$$})};
$app$main$ui$workspace$tokens$sets$context_menu$prevent_default$$=function($event$jscomp$558$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$558$$);return $APP.$app$util$dom$stop_propagation$$($event$jscomp$558$$)};$app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$=function($props_77649$$){return(0,$APP.$rumext$v2$jsx$$)("li",{"data-value":$props_77649$$.value,onClick:$props_77649$$.onClick,className:"main_ui_workspace_tokens_sets_context_menu__context-menu-item",children:$props_77649$$.title})};
$app$main$ui$workspace$tokens$sets$context_menu$menu_STAR_$$=function($create_set_at_path_props_77650$$){var $path$jscomp$286$$=$create_set_at_path_props_77650$$.path,$is_group$jscomp$1$$=$create_set_at_path_props_77650$$.isGroup,$id$jscomp$957$$=$create_set_at_path_props_77650$$.id;$create_set_at_path_props_77650$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($path$jscomp$286$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$start_token_set_creation$$($path$jscomp$286$$))});
var $on_edit$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$957$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$start_token_set_edition$$($id$jscomp$957$$))}),$on_duplicate$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_group$jscomp$1$$),$APP.$rumext$v2$adapt$$($id$jscomp$957$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$duplicate_token_set$$($id$jscomp$957$$))}),
$on_delete$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_group$jscomp$1$$),$APP.$rumext$v2$adapt$$($path$jscomp$286$$)],$APP.$cljs$core$truth_$$($is_group$jscomp$1$$)?function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$delete_token_set_group$$($path$jscomp$286$$))}:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token_set$$($id$jscomp$957$$))});
return(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_tokens_sets_context_menu__context-list",children:[$APP.$cljs$core$truth_$$($is_group$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.add-set-to-group"),onClick:$create_set_at_path_props_77650$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$,
{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.rename"),onClick:$on_edit$jscomp$9$$}),$APP.$cljs$core$truth_$$($is_group$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.duplicate"),onClick:$on_duplicate$jscomp$2$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$menu_entry_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete"),
onClick:$on_delete$jscomp$13$$})]})};
$app$main$ui$workspace$tokens$sets$context_menu$token_set_context_menu_STAR_$$=function(){var $map__77659_position$jscomp$191$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$tokens$sets$context_menu$ref_COLON_token_sets_context_menu$$),$map__77659__$1_path$jscomp$287$$=$APP.$cljs$core$__destructure_map$$($map__77659_position$jscomp$191$$);$map__77659_position$jscomp$191$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659__$1_path$jscomp$287$$,$APP.$cljs$cst$1660$position$$);var $is_group$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659__$1_path$jscomp$287$$,$APP.$cljs$cst$2102$is_group$$),$id$jscomp$958$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659__$1_path$jscomp$287$$,$APP.$cljs$cst$266$id$$);$map__77659__$1_path$jscomp$287$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659__$1_path$jscomp$287$$,$APP.$cljs$cst$294$path$$);var $position_top$$=($map__77659_position$jscomp$191$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659_position$jscomp$191$$,
$APP.$cljs$cst$1500$y$$))+5,$position_left$$=($map__77659_position$jscomp$191$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77659_position$jscomp$191$$,$APP.$cljs$cst$1499$x$$))+5,$on_close$jscomp$33$$=$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$workspace$tokens$library_edit$assign_token_set_context_menu$$(null))});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,
{show:$map__77659_position$jscomp$191$$!=null,"on-close":$on_close$jscomp$33$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"tokens-context-menu-for-set",style:{top:$position_top$$,left:$position_left$$},onContextMenu:$app$main$ui$workspace$tokens$sets$context_menu$prevent_default$$,className:"main_ui_workspace_tokens_sets_context_menu__token-set-context-menu",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$menu_STAR_$$,{isGroup:$is_group$jscomp$2$$,id:$id$jscomp$958$$,
path:$map__77659__$1_path$jscomp$287$$})})})};
$app$main$ui$workspace$tokens$themes$theme_selector$themes_list$$=function($props_77674$$){var $map__77675$$=$APP.$rumext$v2$util$wrap_props$$($props_77674$$),$map__77675__$1$$=$APP.$cljs$core$__destructure_map$$($map__77675$$),$themes$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77675__$1$$,$APP.$cljs$cst$2104$themes$$),$active_theme_paths$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77675__$1$$,$cljs$cst$5531$active_theme_paths$$),$on_close$jscomp$34$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77675__$1$$,$APP.$cljs$cst$4799$on_close$$),$grouped_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77675__$1$$,$cljs$cst$5532$grouped_QMARK_$$);return $APP.$cljs$core$seq$$($themes$jscomp$8$$)?(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_themes_theme_selector__theme-options",children:$APP.$cljs$core$into_array$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return function $app$main$ui$workspace$tokens$themes$theme_selector$themes_list_$_iter__77676$$($s__77677$$){return new $APP.$cljs$core$LazySeq$$(null,
function(){for(;;){var $temp__5825__auto__$jscomp$369$$=$APP.$cljs$core$seq$$($s__77677$$);if($temp__5825__auto__$jscomp$369$$){var $s__77677__$2$$=$temp__5825__auto__$jscomp$369$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($s__77677__$2$$)){var $c__5501__auto__$jscomp$46$$=$APP.$cljs$core$_chunked_first$$($s__77677__$2$$),$size__5502__auto__$jscomp$46$$=$APP.$cljs$core$count$$($c__5501__auto__$jscomp$46$$),$b__77679$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$46$$);return function(){for(var $i__77678$$=
0;;)if($i__77678$$<$size__5502__auto__$jscomp$46$$){var $vec__77680$$=$APP.$cljs$core$_nth$$($c__5501__auto__$jscomp$46$$,$i__77678$$),$_$jscomp$2912$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77680$$,0,null),$map__77683$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77680$$,1,null),$map__77683__$1$$=$APP.$cljs$core$__destructure_map$$($map__77683$$),$theme$jscomp$14$$=$map__77683__$1$$,$id$jscomp$960$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77683__$1$$,
$APP.$cljs$cst$266$id$$),$name$jscomp$444$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77683__$1$$,$APP.$cljs$cst$723$name$$),$theme_id$jscomp$7$$=$APP.$app$common$types$tokens_lib$get_theme_path$$($theme$jscomp$14$$),$selected_QMARK_$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_paths$jscomp$1$$,$theme_id$jscomp$7$$);$APP.$cljs$core$chunk_append$$($b__77679$$,(0,$APP.$rumext$v2$jsxs$$)("li",{role:"option","aria-selected":$selected_QMARK_$jscomp$13$$,
onClick:function($i__77678$jscomp$1$$,$theme_id$jscomp$8$$,$selected_QMARK_$jscomp$14$$,$vec__77680$jscomp$1$$,$_$jscomp$2913$$,$map__77683$jscomp$1$$,$map__77683__$1$jscomp$1$$,$theme$jscomp$15$$,$id$jscomp$961$$,$name$jscomp$445$$,$c__5501__auto__$jscomp$47$$,$size__5502__auto__$jscomp$47$$,$b__77679$jscomp$1$$,$s__77677__$2$jscomp$1$$,$temp__5825__auto__$jscomp$370$$,$map__77675$jscomp$1$$,$map__77675__$1$jscomp$1$$,$themes$jscomp$9$$,$active_theme_paths$jscomp$2$$,$on_close$jscomp$35$$){return function($e$jscomp$350$$){$APP.$app$util$dom$stop_propagation$$($e$jscomp$350$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$toggle_token_theme_active$$($id$jscomp$961$$));return $on_close$jscomp$35$$.$cljs$core$IFn$_invoke$arity$0$?$on_close$jscomp$35$$.$cljs$core$IFn$_invoke$arity$0$():$on_close$jscomp$35$$()}}($i__77678$$,$theme_id$jscomp$7$$,$selected_QMARK_$jscomp$13$$,$vec__77680$$,$_$jscomp$2912$$,$map__77683$$,$map__77683__$1$$,$theme$jscomp$14$$,$id$jscomp$960$$,$name$jscomp$444$$,$c__5501__auto__$jscomp$46$$,
$size__5502__auto__$jscomp$46$$,$b__77679$$,$s__77677__$2$$,$temp__5825__auto__$jscomp$369$$,$map__77675$$,$map__77675__$1$$,$themes$jscomp$8$$,$active_theme_paths$jscomp$1$$,$on_close$jscomp$34$$,$grouped_QMARK_$$),className:"main_ui_workspace_tokens_themes_theme_selector__checked-element "+($APP.$cljs$core$truth_$$($grouped_QMARK_$$)?"main_ui_workspace_tokens_themes_theme_selector__sub-item":"")+" "+($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$13$$)?"main_ui_workspace_tokens_themes_theme_selector__is-selected":
""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_themes_theme_selector__label",title:$name$jscomp$444$$,children:$name$jscomp$444$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick","aria-hidden":!0,className:"main_ui_workspace_tokens_themes_theme_selector__check-icon "+($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$13$$)?"main_ui_workspace_tokens_themes_theme_selector__check-icon-visible":
"")})]},$theme_id$jscomp$7$$));$i__77678$$+=1}else return!0}()?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77679$$),$app$main$ui$workspace$tokens$themes$theme_selector$themes_list_$_iter__77676$$($APP.$cljs$core$_chunked_rest$$($s__77677__$2$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77679$$),null)}var $vec__77684$$=$APP.$cljs$core$first$$($s__77677__$2$$),$_$jscomp$2911$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77684$$,0,null),$map__77687$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__77684$$,1,null),$map__77687__$1$$=$APP.$cljs$core$__destructure_map$$($map__77687$$),$theme$jscomp$13$$=$map__77687__$1$$,$id$jscomp$959$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77687__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$443$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77687__$1$$,$APP.$cljs$cst$723$name$$),$theme_id$jscomp$6$$=$APP.$app$common$types$tokens_lib$get_theme_path$$($theme$jscomp$13$$),
$selected_QMARK_$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_paths$jscomp$1$$,$theme_id$jscomp$6$$);return $APP.$cljs$core$cons$$((0,$APP.$rumext$v2$jsxs$$)("li",{role:"option","aria-selected":$selected_QMARK_$jscomp$12$$,onClick:function($theme_id$jscomp$9$$,$selected_QMARK_$jscomp$15$$,$vec__77684$jscomp$1$$,$_$jscomp$2914$$,$map__77687$jscomp$1$$,$map__77687__$1$jscomp$1$$,$theme$jscomp$16$$,$id$jscomp$962$$,$name$jscomp$446$$,$s__77677__$2$jscomp$2$$,$temp__5825__auto__$jscomp$371$$,
$map__77675$jscomp$2$$,$map__77675__$1$jscomp$2$$,$themes$jscomp$10$$,$active_theme_paths$jscomp$3$$,$on_close$jscomp$36$$){return function($e$jscomp$351$$){$APP.$app$util$dom$stop_propagation$$($e$jscomp$351$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$toggle_token_theme_active$$($id$jscomp$962$$));return $on_close$jscomp$36$$.$cljs$core$IFn$_invoke$arity$0$?$on_close$jscomp$36$$.$cljs$core$IFn$_invoke$arity$0$():$on_close$jscomp$36$$()}}($theme_id$jscomp$6$$,
$selected_QMARK_$jscomp$12$$,$vec__77684$$,$_$jscomp$2911$$,$map__77687$$,$map__77687__$1$$,$theme$jscomp$13$$,$id$jscomp$959$$,$name$jscomp$443$$,$s__77677__$2$$,$temp__5825__auto__$jscomp$369$$,$map__77675$$,$map__77675__$1$$,$themes$jscomp$8$$,$active_theme_paths$jscomp$1$$,$on_close$jscomp$34$$,$grouped_QMARK_$$),className:"main_ui_workspace_tokens_themes_theme_selector__checked-element "+($APP.$cljs$core$truth_$$($grouped_QMARK_$$)?"main_ui_workspace_tokens_themes_theme_selector__sub-item":"")+
" "+($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$12$$)?"main_ui_workspace_tokens_themes_theme_selector__is-selected":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_themes_theme_selector__label",title:$name$jscomp$443$$,children:$name$jscomp$443$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"tick","aria-hidden":!0,className:"main_ui_workspace_tokens_themes_theme_selector__check-icon "+
($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$12$$)?"main_ui_workspace_tokens_themes_theme_selector__check-icon-visible":"")})]},$theme_id$jscomp$6$$),$app$main$ui$workspace$tokens$themes$theme_selector$themes_list_$_iter__77676$$($APP.$cljs$core$rest$$($s__77677__$2$$)))}return null}},null,null)}($themes$jscomp$8$$)}())}):null};
$app$main$ui$workspace$tokens$themes$theme_selector$open_tokens_theme_modal$$=function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5533$tokens_SLASH_themes$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$workspace$tokens$themes$theme_selector$theme_options$$=function($map__77689_map__77689__$1_props_77688$$){$map__77689_map__77689__$1_props_77688$$=$APP.$rumext$v2$util$wrap_props$$($map__77689_map__77689__$1_props_77688$$);$map__77689_map__77689__$1_props_77688$$=$APP.$cljs$core$__destructure_map$$($map__77689_map__77689__$1_props_77688$$);var $active_theme_paths$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77689_map__77689__$1_props_77688$$,$cljs$cst$5531$active_theme_paths$$),
$themes$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77689_map__77689__$1_props_77688$$,$APP.$cljs$cst$2104$themes$$),$on_close$jscomp$37$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77689_map__77689__$1_props_77688$$,$APP.$cljs$cst$4799$on_close$$);return(0,$APP.$rumext$v2$jsxs$$)("ul",{role:"listbox",className:"main_ui_workspace_tokens_themes_theme_selector__theme-options main_ui_workspace_tokens_themes_theme_selector__custom-select-dropdown",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$209$$,
$p__77690_themes__$1$$){var $group$jscomp$51$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77690_themes__$1$$,0,null);$p__77690_themes__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77690_themes__$1$$,1,null);$out_arr__44057__auto__$jscomp$209$$.push((0,$APP.$rumext$v2$jsxs$$)("li",{"aria-labelledby":""+($group$jscomp$51$$??"")+"-label",role:"group",children:[$APP.$cljs$core$seq$$($group$jscomp$51$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"headline-small",className:"main_ui_workspace_tokens_themes_theme_selector__group",id:""+($APP.$cuerdas$core$kebab$$($group$jscomp$51$$)??"")+"-label",title:$group$jscomp$51$$,children:$group$jscomp$51$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$theme_selector$themes_list$$,{themes:$p__77690_themes__$1$$,"active-theme-paths":$active_theme_paths$jscomp$4$$,"on-close":$on_close$jscomp$37$$,"grouped?":!0})]},$group$jscomp$51$$));return $out_arr__44057__auto__$jscomp$209$$},
[],$themes$jscomp$11$$),(0,$APP.$rumext$v2$jsx$$)("li",{"aria-hidden":!0,className:"main_ui_workspace_tokens_themes_theme_selector__separator"}),(0,$APP.$rumext$v2$jsxs$$)("li",{role:"option",onClick:$app$main$ui$workspace$tokens$themes$theme_selector$open_tokens_theme_modal$$,className:"main_ui_workspace_tokens_themes_theme_selector__checked-element main_ui_workspace_tokens_themes_theme_selector__checked-element-button",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-small",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.edit-themes")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-right","aria-hidden":!0})]})]})};
$app$main$ui$workspace$tokens$themes$theme_selector$theme_selector$$=function($map__77695_props_77694_themes$jscomp$12$$){$map__77695_props_77694_themes$jscomp$12$$=$APP.$rumext$v2$util$wrap_props$$($map__77695_props_77694_themes$jscomp$12$$);$APP.$cljs$core$__destructure_map$$($map__77695_props_77694_themes$jscomp$12$$);var $active_theme_paths$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_active_theme_paths_no_hidden$$),$active_themes_count_current_label$jscomp$1$$=$APP.$cljs$core$count$$($active_theme_paths$jscomp$5$$);
$map__77695_props_77694_themes$jscomp$12$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_theme_tree_no_hidden$$);var $can_edit_QMARK_$jscomp$11$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$refs$permissions$$));$active_themes_count_current_label$jscomp$1$$=$active_themes_count_current_label$jscomp$1$$>1?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.active-themes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$active_themes_count_current_label$jscomp$1$$])):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_themes_count_current_label$jscomp$1$$,1)?function(){var $G__77696_G__77696__$1_G__77696__$2$$=$APP.$cljs$core$first$$($active_theme_paths$jscomp$5$$);$G__77696_G__77696__$1_G__77696__$2$$=$G__77696_G__77696__$1_G__77696__$2$$==null?null:$APP.$app$common$path_names$split_group_name$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($G__77696_G__77696__$1_G__77696__$2$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,
"/",$APP.$cljs$cst$1982$with_spaces_QMARK_$$,!1]));$G__77696_G__77696__$1_G__77696__$2$$=$G__77696_G__77696__$1_G__77696__$2$$==null?null:$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$empty_QMARK_$$,$G__77696_G__77696__$1_G__77696__$2$$);return $G__77696_G__77696__$1_G__77696__$2$$==null?null:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" / ",$G__77696_G__77696__$1_G__77696__$2$$)}():$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-active-theme");
var $state_STAR_$jscomp$25$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$(),$APP.$cljs$cst$4397$is_open_QMARK_$$,!1,$APP.$cljs$cst$1595$rect$$,null],null)}),$rect$jscomp$47_state$jscomp$1090$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$25$$),$is_open_QMARK_$jscomp$4$$=$APP.$cljs$cst$4397$is_open_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$47_state$jscomp$1090$$);
$rect$jscomp$47_state$jscomp$1090$$=$APP.$cljs$cst$1595$rect$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$47_state$jscomp$1090$$);var $on_close_dropdown$$=$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$($state_STAR_$jscomp$25$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4397$is_open_QMARK_$$,!1)}),$on_open_dropdown$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$11$$)],
function($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$){return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$11$$)&&($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$),$APP.$cljs$core$truth_$$($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$))?($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$=$APP.$app$util$dom$get_bounding_rect$$($event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$25$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$4397$is_open_QMARK_$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1595$rect$$,$event$jscomp$559_rect__$1$jscomp$1_temp__5825__auto__$jscomp$372$$]))):null}),$container$jscomp$90$$=$APP.$app$main$ui$hooks$use_portal_container$cljs$0core$0IFn$0_invoke$0arity$01$$($cljs$cst$5521$popup$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{role:"combobox",
"aria-expanded":$is_open_QMARK_$jscomp$4$$,tabIndex:"0",className:"main_ui_workspace_tokens_themes_theme_selector__custom-select "+($APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$11$$)?"main_ui_workspace_tokens_themes_theme_selector__disabled-select":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_themes_theme_selector__current-label",children:$active_themes_count_current_label$jscomp$1$$}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-down",className:"main_ui_workspace_tokens_themes_theme_selector__dropdown-button","aria-hidden":!0}),$APP.$cljs$core$truth_$$($is_open_QMARK_$jscomp$4$$)?(0,$APP.$rumext$v2$portal$$)((0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"theme-select-dropdown",style:{top:$APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$47_state$jscomp$1090$$),left:$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$47_state$jscomp$1090$$),
width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$47_state$jscomp$1090$$)},className:"main_ui_workspace_tokens_themes_theme_selector__dropdown-portal",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$is_open_QMARK_$jscomp$4$$,"on-close":$on_close_dropdown$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$theme_selector$theme_options$$,{"active-theme-paths":$active_theme_paths$jscomp$5$$,themes:$map__77695_props_77694_themes$jscomp$12$$,
"on-close":$on_close_dropdown$$})})}),$container$jscomp$90$$):null],"data-testid":"theme-select","aria-haspopup":"listbox",onClick:$on_open_dropdown$$,disabled:$APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$11$$)})};
$app$main$ui$workspace$tokens$themes$themes_header_STAR_$$=function(){var $ordered_themes$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_themes_no_hidden$$),$can_edit_QMARK_$jscomp$12$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$),$open_modal$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$352$$){$APP.$app$util$dom$stop_propagation$$($e$jscomp$352$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5533$tokens_SLASH_themes$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes__themes-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"div",typography:"headline-small",className:"main_ui_workspace_tokens_themes__themes-header",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.themes")}),$APP.$cljs$core$empty_QMARK_$$($ordered_themes$$)?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_tokens_themes__empty-theme-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_themes__empty-state-message",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-themes")}),$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$12$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$open_modal$jscomp$1$$,className:"main_ui_workspace_tokens_themes__create-theme-button",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.create-one")}):null]}):$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$12$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes__theme-selector-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$theme_selector$theme_selector$$,{}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",className:"main_ui_workspace_tokens_themes__edit-theme-button",
onClick:$open_modal$jscomp$1$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.edit")})]}):(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$12$$)?null:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-permission-themes"),children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$theme_selector$theme_selector$$,{})})]})};
$app$main$ui$workspace$tokens$sidebar$token_sets_list_STAR_$$=function($props_77715_tokens_lib$jscomp$46$$){$props_77715_tokens_lib$jscomp$46$$=$props_77715_tokens_lib$jscomp$46$$.tokensLib;var $token_sets$jscomp$3$$=$props_77715_tokens_lib$jscomp$46$$==null?null:$APP.$app$common$types$tokens_lib$get_set_tree$$($props_77715_tokens_lib$jscomp$46$$),$selected_token_set_id$jscomp$7$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_token_set_id$$),$map__77716_token_set_edition_id$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_tokens$$),
$map__77716__$1_token_set_new_path$$=$APP.$cljs$core$__destructure_map$$($map__77716_token_set_edition_id$$);$map__77716_token_set_edition_id$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77716__$1_token_set_new_path$$,$APP.$cljs$cst$4554$token_set_edition_id$$);$map__77716__$1_token_set_new_path$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77716__$1_token_set_new_path$$,$APP.$cljs$cst$4556$token_set_new_path$$);return $APP.$cljs$core$empty_QMARK_$$($token_sets$jscomp$3$$)&&
$APP.$cljs$core$not$$($map__77716__$1_token_set_new_path$$)?$APP.$cljs$core$truth_$$($map__77716__$1_token_set_new_path$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$inline_add_button_STAR_$$,{}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$sets_list_STAR_$$,{tokensLib:$props_77715_tokens_lib$jscomp$46$$,newPath:$map__77716__$1_token_set_new_path$$,editionId:$map__77716_token_set_edition_id$$,
selected:$selected_token_set_id$jscomp$7$$})})};
$app$main$ui$workspace$tokens$sidebar$token_management_section_STAR_$$=function($props_77718$$){var $resize_height$$=$props_77718$$.resizeHeight,$can_edit_QMARK_$jscomp$13$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$context_menu$token_set_context_menu_STAR_$$,{}),(0,$APP.$rumext$v2$jsxs$$)("section",{"data-testid":"token-management-sidebar",
style:{"--resize-height":[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($resize_height$$),"px"].join("")},className:"main_ui_workspace_tokens_sidebar__token-management-section-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$themes_header_STAR_$$,{}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_sidebar__sidebar-header",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.sets"),
children:$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$13$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$add_button_STAR_$$,{}):null})}),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$sidebar$token_sets_list_STAR_$$,$props_77718$$)]})]})};
$app$main$ui$workspace$tokens$sidebar$import_export_button_STAR_$$=function(){var $show_menu_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$show_menu_QMARK_$jscomp$5$$=$APP.$cljs$core$_deref$$($show_menu_STAR_$jscomp$1$$),$can_edit_QMARK_$jscomp$14$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$can_edit_QMARK_$$),$open_menu$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$560$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$560$$);
return $APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$jscomp$1$$,!0)}),$close_menu$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$561$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$561$$);return $APP.$cljs$core$reset_BANG_$$($show_menu_STAR_$jscomp$1$$,!1)}),$on_export$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5534$tokens_SLASH_export$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)}),$on_modal_show$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5535$tokens_SLASH_import$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)}),$open_settings_modal$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$562$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$562$$);return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5536$tokens_SLASH_settings$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_sidebar__import-export-button-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$open_menu$jscomp$1$$,type:"button",icon:"import-export",variant:"secondary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.tools")}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,
{show:$show_menu_QMARK_$jscomp$5$$,onClose:$close_menu$jscomp$2$$,id:"tokens-menu",className:"main_ui_workspace_tokens_sidebar__import-export-menu",children:[$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$14$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_tokens_sidebar__import-export-menu-item",onClick:$on_modal_show$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_sidebar__import-menu-item",
children:(0,$APP.$rumext$v2$jsx$$)("div",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.import")})})}):null,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_tokens_sidebar__import-export-menu-item",onClick:$on_export$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.export")})]}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$14$$)?$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$1206$token_base_font_size$$):$can_edit_QMARK_$jscomp$14$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"secondary",icon:"settings","aria-label":"Settings",onClick:$open_settings_modal$$}):null]})};
$app$main$ui$workspace$tokens$sidebar$tokens_sidebar_tab_STAR_$$=function($props_77720$$){var $tokens_lib$jscomp$47$$=$props_77720$$.tokensLib,$map__77721_on_pointer_down_pages$$=$APP.$app$main$ui$hooks$resize$use_resize_hook$cljs$0core$0IFn$0_invoke$0arity$08$$($APP.$cljs$cst$2082$tokens$$,200,38,"0.6",$APP.$cljs$cst$1500$y$$,!1,null,null),$map__77721__$1_size_pages_opened$$=$APP.$cljs$core$__destructure_map$$($map__77721_on_pointer_down_pages$$);$map__77721_on_pointer_down_pages$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77721__$1_size_pages_opened$$,
$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture_pages$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77721__$1_size_pages_opened$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move_pages$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77721__$1_size_pages_opened$$,$APP.$cljs$cst$4380$on_pointer_move$$);$map__77721__$1_size_pages_opened$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77721__$1_size_pages_opened$$,$APP.$cljs$cst$872$size$$);
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_sidebar__sidebar-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sidebar$token_management_section_STAR_$$,{resizeHeight:$map__77721__$1_size_pages_opened$$,tokensLib:$tokens_lib$jscomp$47$$}),(0,$APP.$rumext$v2$jsxs$$)("article",{"data-testid":"tokens-sidebar",className:"main_ui_workspace_tokens_sidebar__tokens-section-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$map__77721_on_pointer_down_pages$$,
onLostPointerCapture:$on_lost_pointer_capture_pages$$,onPointerMove:$on_pointer_move_pages$$,className:"main_ui_workspace_tokens_sidebar__resize-area-horiz",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_sidebar__resize-handle-horiz"})}),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$tokens_section_STAR_$$,$props_77720$$)]}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sidebar$import_export_button_STAR_$$,{})]})};
$app$main$ui$workspace$sidebar$collapse_button_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$app$main$ui$workspace$sidebar$toggle_collapse_left_sidebar$$,className:"main_ui_workspace_sidebar__collapse-sidebar-button",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow",size:"s","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.collapse")})})};
$app$main$ui$workspace$sidebar$on_close_document_history$$=function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3589$document_history$$))};
$app$main$ui$workspace$sidebar$right_sidebar_STAR_$$=function($props_77745$$){var $layout$jscomp$24$$=$props_77745$$.layout,$file$jscomp$171$$=$props_77745$$.file,$dbg_shape_panel_QMARK__section$jscomp$35$$=$props_77745$$.section,$page_id$jscomp$414$$=$props_77745$$.pageId,$active_tokens$jscomp$6$$=$props_77745$$.activeTokens,$is_comments_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_77745$$.drawingTool,$APP.$cljs$cst$3313$comments$$),$is_history_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$24$$,
$APP.$cljs$cst$3589$document_history$$),$can_be_expanded_QMARK__is_inspect_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dbg_shape_panel_QMARK__section$jscomp$35$$,$APP.$cljs$cst$3600$inspect$$);$dbg_shape_panel_QMARK__section$jscomp$35$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2933$shape_panel$$);var $current_section_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1159$info$$),$current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$=
$APP.$cljs$core$_deref$$($current_section_STAR_$$);$can_be_expanded_QMARK__is_inspect_QMARK_$$=$dbg_shape_panel_QMARK__section$jscomp$35$$||!$is_comments_QMARK_$$&&!$is_history_QMARK_$$&&$can_be_expanded_QMARK__is_inspect_QMARK_$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$,$APP.$cljs$cst$271$code$$);$current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$=$APP.$app$main$ui$hooks$resize$use_resize_hook$cljs$0core$0IFn$0_invoke$0arity$08$$($APP.$cljs$cst$271$code$$,
318,318,768,$APP.$cljs$cst$1499$x$$,!0,$APP.$cljs$cst$258$right$$,null);var $map__77747__$1_on_change_section$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$);$current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77747__$1_on_change_section$jscomp$3$$,$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77747__$1_on_change_section$jscomp$3$$,
$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77747__$1_on_change_section$jscomp$3$$,$APP.$cljs$cst$4380$on_pointer_move$$),$set_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77747__$1_on_change_section$jscomp$3$$,$APP.$cljs$cst$4382$set_size$$),$width$jscomp$204$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77747__$1_on_change_section$jscomp$3$$,$APP.$cljs$cst$872$size$$);
$map__77747__$1_on_change_section$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__77743_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($current_section_STAR_$$,$p1__77743_SHARP_$$)});var $on_expand$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($width$jscomp$204$$),$APP.$rumext$v2$adapt$$($set_width$$)],function(){var $G__77782$$=$width$jscomp$204$$>318?318:768;return $set_width$$.$cljs$core$IFn$_invoke$arity$1$?
$set_width$$.$cljs$core$IFn$_invoke$arity$1$($G__77782$$):$set_width$$($G__77782$$)}),$active_tokens_by_type$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($active_tokens$jscomp$6$$)],function(){return new $APP.$cljs$core$Delay$$(function(){return $app$common$types$tokens_lib$group_by_type$$($active_tokens$jscomp$6$$)})});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$sidebar$$),{value:$APP.$cljs$cst$258$right$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$active_tokens_by_type$$),
{value:$active_tokens_by_type$$,children:(0,$APP.$rumext$v2$jsxs$$)("aside",{id:"right-sidebar-aside","data-testid":"right-sidebar","data-size":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($width$jscomp$204$$),style:{"--right-sidebar-width":$can_be_expanded_QMARK__is_inspect_QMARK_$$?""+($width$jscomp$204$$??"")+"px":"318px"},className:"main_ui_workspace_sidebar__right-settings-bar "+($can_be_expanded_QMARK__is_inspect_QMARK_$$?"":"main_ui_workspace_sidebar__not-expand")+" "+($width$jscomp$204$$>
318?"main_ui_workspace_sidebar__expanded":""),children:[$can_be_expanded_QMARK__is_inspect_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$current_section$jscomp$1_map__77747_on_pointer_down$jscomp$6$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$4$$,onPointerMove:$on_pointer_move$jscomp$5$$,className:"main_ui_workspace_sidebar__resize-area"}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$right_header$right_header_STAR_$$,{file:$file$jscomp$171$$,layout:$layout$jscomp$24$$,
pageId:$page_id$jscomp$414$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar__settings-bar-inside",children:$dbg_shape_panel_QMARK__section$jscomp$35$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug_shape_info$debug_shape_info_STAR_$$,{}):$is_comments_QMARK_$$?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$workspace$comments$comments_sidebar_STAR_$$,{}):$is_history_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$history_content_STAR_$$,{}):(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$options_toolbox_STAR_$$,
{...$props_77745$$,onChangeSection:$map__77747__$1_on_change_section$jscomp$3$$,onExpand:$on_expand$jscomp$4$$})})]})})})};
$app$main$ui$workspace$sidebar$sidebar_STAR_$$=function($page_id$jscomp$415_props_77795$$){var $drawing_tool$jscomp$1$$=$page_id$jscomp$415_props_77795$$.drawingTool,$selected$jscomp$178$$=$page_id$jscomp$415_props_77795$$.selected,$file_id$jscomp$392$$=$page_id$jscomp$415_props_77795$$.fileId,$layout$jscomp$25$$=$page_id$jscomp$415_props_77795$$.layout,$file$jscomp$172$$=$page_id$jscomp$415_props_77795$$.file,$section$jscomp$36$$=$page_id$jscomp$415_props_77795$$.section;$page_id$jscomp$415_props_77795$$=
$page_id$jscomp$415_props_77795$$.pageId;var $tokens_lib$jscomp$49$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$tokens_lib$$),$active_tokens$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$49$$)],function(){return $APP.$cljs$core$truth_$$($tokens_lib$jscomp$49$$)?$APP.$app$common$types$tokens_lib$get_tokens_in_active_sets$$($tokens_lib$jscomp$49$$):$APP.$cljs$core$PersistentArrayMap$EMPTY$$}),$tokenscript_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$4463$tokenscript$$),$tokenscript_resolved_active_tokens$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$49$$),$APP.$rumext$v2$adapt$$($tokenscript_QMARK_$$)],function(){return $tokenscript_QMARK_$$?$APP.$app$main$data$tokenscript$resolve_tokens$$($active_tokens$jscomp$7$$):null}),$resolved_active_tokens$jscomp$3$$=$APP.$app$main$data$style_dictionary$use_resolved_tokens_STAR_$$($active_tokens$jscomp$7$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[$APP.$cljs$core$truth_$$($cljs$cst$5374$collapse_left_sidebar$$.$cljs$core$IFn$_invoke$arity$1$($layout$jscomp$25$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$collapsed_button_STAR_$$,{}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$left_sidebar_STAR_$$,{layout:$layout$jscomp$25$$,file:$file$jscomp$172$$,pageId:$page_id$jscomp$415_props_77795$$,tokensLib:$tokens_lib$jscomp$49$$,activeTokens:$active_tokens$jscomp$7$$,resolvedActiveTokens:$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$4463$tokenscript$$)?$tokenscript_resolved_active_tokens$$:$resolved_active_tokens$jscomp$3$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$right_sidebar_STAR_$$,{pageId:$page_id$jscomp$415_props_77795$$,selected:$selected$jscomp$178$$,tokensLib:$tokens_lib$jscomp$49$$,section:$section$jscomp$36$$,activeTokens:$resolved_active_tokens$jscomp$3$$,layout:$layout$jscomp$25$$,drawingTool:$drawing_tool$jscomp$1$$,file:$file$jscomp$172$$,fileId:$file_id$jscomp$392$$})]})};
$app$util$zip$writer$$=function(){var $map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$=$APP.$cljs$core$__destructure_map$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1710$mtype$$,"application/zip"],null)]));$map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$,
$APP.$cljs$cst$1710$mtype$$);$map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$=new $shadow$js$shim$module$0$0zip_js$0zip$$.BlobWriter($APP.$cljs$core$truth_$$($map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$)?$map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$:"application/octet-stream");return new $shadow$js$shim$module$0$0zip_js$0zip$$.ZipWriter($map__77731__$1$jscomp$inline_12988_mtype$jscomp$inline_12989_stream_writer$$)};
$app$util$zip$add$$=function($writer$jscomp$174$$,$path$jscomp$288$$,$content$jscomp$241$$){if($content$jscomp$241$$ instanceof Uint8Array)$writer$jscomp$174$$.add($path$jscomp$288$$,new $shadow$js$shim$module$0$0zip_js$0zip$$.Uint8ArrayReader($content$jscomp$241$$));else if($content$jscomp$241$$ instanceof ArrayBuffer)$writer$jscomp$174$$.add($path$jscomp$288$$,new $shadow$js$shim$module$0$0zip_js$0zip$$.Uint8ArrayReader(new Uint8Array($content$jscomp$241$$)));else if($content$jscomp$241$$ instanceof
Blob)$writer$jscomp$174$$.add($path$jscomp$288$$,new $shadow$js$shim$module$0$0zip_js$0zip$$.BlobReader($content$jscomp$241$$));else if(typeof $content$jscomp$241$$==="string")$writer$jscomp$174$$.add($path$jscomp$288$$,new $shadow$js$shim$module$0$0zip_js$0zip$$.TextReader($content$jscomp$241$$));else throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$("invalid data received for zip/add fn",$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$270$assertion$$,$APP.$cljs$cst$271$code$$,$APP.$cljs$cst$1738$invalid_type$$,$APP.$cljs$cst$273$hint$$,"invalid data received for zip/add fn"],null),null])),null);};$app$util$zip$read_as_text$$=function($entry$jscomp$80$$){var $writer$jscomp$175$$=new $shadow$js$shim$module$0$0zip_js$0zip$$.TextWriter;return $entry$jscomp$80$$.getData($writer$jscomp$175$$)};$app$util$zip$close$$=function($closeable$$){return $closeable$$.close()};
$app$main$ui$workspace$tokens$export$0$modal$export_tab_STAR_$$=function($children$jscomp$308_props_77737$$){var $is_disabled$jscomp$1$$=$children$jscomp$308_props_77737$$.isDisabled,$on_export$jscomp$1$$=$children$jscomp$308_props_77737$$.onExport;$children$jscomp$308_props_77737$$=$children$jscomp$308_props_77737$$.children;return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_export_modal__export-preview",children:[$APP.$cljs$core$truth_$$($is_disabled$jscomp$1$$)?null:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"body-medium",className:"main_ui_workspace_tokens_export_modal__preview-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export.preview")}),$APP.$cljs$core$truth_$$($is_disabled$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_export_modal__disabled-message",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export.no-tokens-themes-sets")}):$children$jscomp$308_props_77737$$,
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_export_modal__export-actions",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",onClick:$APP.$app$main$data$modal$hide_BANG_$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",disabled:$is_disabled$jscomp$1$$,onClick:$on_export$jscomp$1$$,
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export")})]})]})};
$app$main$ui$workspace$tokens$export$0$modal$single_file_tab_STAR_$$=function(){var $is_disabled$jscomp$2_tokens_data$$=function(){var $G__77742$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$tokens_lib$$);return $G__77742$$==null?null:$APP.$app$common$types$tokens_lib$export_dtcg_json$$($G__77742$$)}(),$tokens_json$$=$is_disabled$jscomp$2_tokens_data$$==null?null:$APP.$app$common$json$encode$$.$cljs$core$IFn$_invoke$arity$variadic$($is_disabled$jscomp$2_tokens_data$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$289$key_fn$$,
$APP.$cljs$core$identity$$,$APP.$cljs$cst$292$indent$$,2]));$is_disabled$jscomp$2_tokens_data$$=$APP.$cljs$core$empty_QMARK_$$($is_disabled$jscomp$2_tokens_data$$);var $on_export$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_json$$)],function(){if($APP.$cljs$core$truth_$$($tokens_json$$)){$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$$,"export-tokens",$APP.$cljs$cst$139$type$$,"single"],null)));var $blob$jscomp$inline_12992$$=$APP.$app$util$webapi$create_blob$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$truth_$$($tokens_json$$)?$tokens_json$$:"{}","application/json");return $APP.$app$util$dom$trigger_download_uri$$("tokens.json",$blob$jscomp$inline_12992$$.type,$APP.$app$util$webapi$create_uri$$($blob$jscomp$inline_12992$$))}return null});
return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$export$0$modal$export_tab_STAR_$$,{isDisabled:$is_disabled$jscomp$2_tokens_data$$,onExport:$on_export$jscomp$2$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_export_modal__json-preview",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$code_block$code_block$$,{code:$tokens_json$$,type:"json"})})})};
$app$main$ui$workspace$tokens$export$0$modal$download_tokens_zip_BANG_$$=function($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$){var $writer$jscomp$176$$=$app$util$zip$writer$$();$G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$=$APP.$cljs$core$seq$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$);for(var $G__77817_chunk__77749_77802_path_77821$$=null,$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=
0,$i__77751_77804$$=0;;)if($i__77751_77804$$<$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$){var $content_77807_vec__77761_77805$$=$G__77817_chunk__77749_77802_path_77821$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__77751_77804$$),$path_77806$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content_77807_vec__77761_77805$$,0,null);$content_77807_vec__77761_77805$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content_77807_vec__77761_77805$$,
1,null);$app$util$zip$add$$($writer$jscomp$176$$,$path_77806$$,$APP.$app$common$json$encode$$.$cljs$core$IFn$_invoke$arity$variadic$($content_77807_vec__77761_77805$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$289$key_fn$$,$APP.$cljs$core$identity$$,$APP.$cljs$cst$292$indent$$,2])));$i__77751_77804$$+=1}else if($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$=$APP.$cljs$core$seq$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$))$APP.$cljs$core$chunked_seq_QMARK_$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$)?
($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=$APP.$cljs$core$_chunked_first$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$),$G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$=$APP.$cljs$core$_chunked_rest$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$),$G__77817_chunk__77749_77802_path_77821$$=$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$,
$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=$APP.$cljs$core$count$$($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$)):($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=$APP.$cljs$core$first$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$),$G__77817_chunk__77749_77802_path_77821$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$,
0,null),$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$,1,null),$app$util$zip$add$$($writer$jscomp$176$$,$G__77817_chunk__77749_77802_path_77821$$,$APP.$app$common$json$encode$$.$cljs$core$IFn$_invoke$arity$variadic$($G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$289$key_fn$$,
$APP.$cljs$core$identity$$,$APP.$cljs$cst$292$indent$$,2]))),$G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$=$APP.$cljs$core$next$$($G__77816_multi_file_entries_seq__77748_77801_seq__77748_77814__$1_temp__5825__auto___77813$$),$G__77817_chunk__77749_77802_path_77821$$=null,$G__77818_c__5548__auto___77815_content_77822_count__77750_77803_vec__77764_77820$$=0),$i__77751_77804$$=0;else break;return $app$util$zip$close$$($writer$jscomp$176$$).then(function($p1__77746_SHARP_$$){return $APP.$app$util$dom$trigger_download_uri$$("tokens.zip",
$p1__77746_SHARP_$$.type,$APP.$app$util$webapi$create_uri$$($p1__77746_SHARP_$$))})};
$app$main$ui$workspace$tokens$export$0$modal$multi_file_tab_STAR_$$=function(){var $files$jscomp$29$$=function(){var $G__77769$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$tokens_lib$$);return $G__77769$$==null?null:$app$common$types$tokens_lib$export_dtcg_multi_file$$($G__77769$$)}(),$is_disabled$jscomp$3$$=$APP.$cljs$core$empty_QMARK_$$($files$jscomp$29$$)||$APP.$cljs$core$every_QMARK_$$(function($p__77774_v$jscomp$670$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77774_v$jscomp$670$$,0,
null);$p__77774_v$jscomp$670$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77774_v$jscomp$670$$,1,null);return $APP.$cljs$core$empty_QMARK_$$($p__77774_v$jscomp$670$$)},$files$jscomp$29$$),$on_export$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$29$$)],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$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$$,"export-tokens",$APP.$cljs$cst$139$type$$,"multiple"],null)));return $app$main$ui$workspace$tokens$export$0$modal$download_tokens_zip_BANG_$$($files$jscomp$29$$)});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$export$0$modal$export_tab_STAR_$$,{onExport:$on_export$jscomp$3$$,isDisabled:$is_disabled$jscomp$3$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_export_modal__preview-container",
children:(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_export_modal__file-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$210$$,$p__77783_path$jscomp$290$$){$p__77783_path$jscomp$290$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77783_path$jscomp$290$$,0,null);$out_arr__44057__auto__$jscomp$210$$.push((0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_tokens_export_modal__file-item",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_export_modal__file-icon",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"document"})}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$p__77783_path$jscomp$290$$,className:"main_ui_workspace_tokens_export_modal__file-name",children:$p__77783_path$jscomp$290$$})]},$p__77783_path$jscomp$290$$));return $out_arr__44057__auto__$jscomp$210$$},[],$files$jscomp$29$$)})})})};
$app$main$ui$workspace$tokens$export$0$modal$export_modal_body_STAR_$$=function(){var $selected_tab_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$("single"),$selected_tab$jscomp$1$$=$APP.$cljs$core$_deref$$($selected_tab_STAR_$jscomp$1$$),$on_change_tab$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__77790_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($selected_tab_STAR_$jscomp$1$$,$p1__77790_SHARP_$$)}),$tabs$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export.single-file"),$APP.$cljs$cst$266$id$$,"single"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export.multiple-files"),
$APP.$cljs$cst$266$id$$,"multiple"],null)],null)}),$JSCompiler_temp_const$jscomp$1820$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_export_modal__export-modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.export-tokens")});a:switch($selected_tab$jscomp$1$$){case "single":var $JSCompiler_inline_result$jscomp$1821$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$export$0$modal$single_file_tab_STAR_$$,
{});break a;case "multiple":$JSCompiler_inline_result$jscomp$1821$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$export$0$modal$multi_file_tab_STAR_$$,{});break a;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($selected_tab$jscomp$1$$)].join(""));}return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_export_modal__export-modal-wrapper",children:[$JSCompiler_temp_const$jscomp$1820$$,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,
{tabs:$tabs$jscomp$7$$,selected:$selected_tab$jscomp$1$$,onChange:$on_change_tab$jscomp$3$$,children:$JSCompiler_inline_result$jscomp$1821$$})]})};
$app$main$ui$workspace$tokens$export$0$export_modal_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_export__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_export__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{className:"main_ui_workspace_tokens_export__close-btn",onClick:$APP.$app$main$data$modal$hide_BANG_$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),
variant:"ghost",icon:"close"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$export$0$modal$export_modal_body_STAR_$$,{})]})})};
$app$main$data$workspace$tokens$import_export$group_by_value$$=function($m$jscomp$237$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$152$$,$p__77770_v$jscomp$671$$){var $k$jscomp$691$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77770_v$jscomp$671$$,0,null);$p__77770_v$jscomp$671$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77770_v$jscomp$671$$,1,null);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($acc$jscomp$152$$,
$p__77770_v$jscomp$671$$,$APP.$cljs$core$conj$$,$k$jscomp$691$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$m$jscomp$237$$)};
$app$main$data$workspace$tokens$import_export$show_unknown_types_warning$$=function($unknown_tokens$jscomp$1$$){var $type__GT_tokens$$=$app$main$data$workspace$tokens$import_export$group_by_value$$($unknown_tokens$jscomp$1$$);return $APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.unknown-token-type-message"),$APP.$cljs$cst$5087$detail$$,$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("\x3cbr\x3e",
function(){return function $app$main$data$workspace$tokens$import_export$show_unknown_types_warning_$_iter__77778$$($s__77779$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__77779__$2_temp__5825__auto__$jscomp$373$$=$APP.$cljs$core$seq$$($s__77779$$);if($s__77779__$2_temp__5825__auto__$jscomp$373$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__77779__$2_temp__5825__auto__$jscomp$373$$)){var $JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$=
$APP.$cljs$core$_chunked_first$$($s__77779__$2_temp__5825__auto__$jscomp$373$$),$size__5502__auto__$jscomp$48$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$),$b__77781_token_type$jscomp$15$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$48$$);a:{for(var $i__77780$jscomp$inline_8712$$=0;;)if($i__77780$jscomp$inline_8712$$<$size__5502__auto__$jscomp$48$$){var $b$jscomp$inline_12994_vec__77787$jscomp$inline_8713$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$,
$i__77780$jscomp$inline_8712$$),$token_type$jscomp$inline_8714_x$jscomp$inline_12995$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12994_vec__77787$jscomp$inline_8713$$,0,null),$tokens$jscomp$inline_8715$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_12994_vec__77787$jscomp$inline_8713$$,1,null);$b$jscomp$inline_12994_vec__77787$jscomp$inline_8713$$=$b__77781_token_type$jscomp$15$$;$token_type$jscomp$inline_8714_x$jscomp$inline_12995$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.unknown-token-type-section",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$token_type$jscomp$inline_8714_x$jscomp$inline_12995$$,$APP.$cljs$core$count$$($tokens$jscomp$inline_8715$$)]));$b$jscomp$inline_12994_vec__77787$jscomp$inline_8713$$.add($token_type$jscomp$inline_8714_x$jscomp$inline_12995$$);$i__77780$jscomp$inline_8712$$+=1}else{$JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$=!0;break a}$JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$=
void 0}return $JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77781_token_type$jscomp$15$$),$app$main$data$workspace$tokens$import_export$show_unknown_types_warning_$_iter__77778$$($APP.$cljs$core$_chunked_rest$$($s__77779__$2_temp__5825__auto__$jscomp$373$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77781_token_type$jscomp$15$$),null)}$JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$=
$APP.$cljs$core$first$$($s__77779__$2_temp__5825__auto__$jscomp$373$$);$b__77781_token_type$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$,0,null);$JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$,
1,null);return $APP.$cljs$core$cons$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.unknown-token-type-section",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$b__77781_token_type$jscomp$15$$,$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1822_c__5501__auto__$jscomp$48_tokens$jscomp$51_vec__77792$$)])),$app$main$data$workspace$tokens$import_export$show_unknown_types_warning_$_iter__77778$$($APP.$cljs$core$rest$$($s__77779__$2_temp__5825__auto__$jscomp$373$$)))}return null}},
null,null)}($type__GT_tokens$$)}()),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$1159$info$$],null))};
$app$main$data$workspace$tokens$import_export$decode_json$$=function($json_string$$){try{return $APP.$app$common$json$decode$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($json_string$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$289$key_fn$$,$APP.$cljs$core$identity$$],null)]))}catch($e77796$$){if($e77796$$ instanceof Error)throw $app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$4412$error_DOT_import_SLASH_json_parse_error$$,
$json_string$$,$e77796$$);throw $e77796$$;}};
$app$main$data$workspace$tokens$import_export$parse_decoded_json$$=function($decoded_json$jscomp$8$$,$e$jscomp$354_file_name$jscomp$11$$){try{var $G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$=!$APP.$cljs$core$contains_QMARK_$$($decoded_json$jscomp$8$$,"$metadata")&&!$APP.$cljs$core$contains_QMARK_$$($decoded_json$jscomp$8$$,"$themes");var $json_format$jscomp$inline_13000$$=
$app$common$types$tokens_lib$get_json_format$cljs$0core$0IFn$0_invoke$0arity$03$$($decoded_json$jscomp$8$$);if($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2113$json_format_SLASH_legacy$$,$json_format$jscomp$inline_13000$$))var $JSCompiler_temp$jscomp$inline_13001$$=$app$common$types$tokens_lib$parse_single_set_dtcg_json$$($e$jscomp$354_file_name$jscomp$11$$,
$app$common$types$tokens_lib$legacy_json__GT_dtcg_json$$($decoded_json$jscomp$8$$));else{if($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2114$json_format_SLASH_dtcg$$,$json_format$jscomp$inline_13000$$))var $JSCompiler_temp$jscomp$inline_13002$$=$app$common$types$tokens_lib$parse_single_set_dtcg_json$$($e$jscomp$354_file_name$jscomp$11$$,
$decoded_json$jscomp$8$$);else{if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2113$json_format_SLASH_legacy$$,$json_format$jscomp$inline_13000$$)){var $sets_data$jscomp$inline_13004$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($decoded_json$jscomp$8$$,"$themes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["$metadata"])),$other_data$jscomp$inline_13005$$=$APP.$cljs$core$select_keys$$($decoded_json$jscomp$8$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["$themes","$metadata"],null)),$dtcg_sets_data$jscomp$inline_13006$$=$app$common$types$tokens_lib$legacy_json__GT_dtcg_json$$($sets_data$jscomp$inline_13004$$);var $JSCompiler_temp$jscomp$inline_13003$$=$APP.$app$common$types$tokens_lib$parse_multi_set_dtcg_json$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$other_data$jscomp$inline_13005$$,$dtcg_sets_data$jscomp$inline_13006$$])))}else $JSCompiler_temp$jscomp$inline_13003$$=
$APP.$app$common$types$tokens_lib$parse_multi_set_dtcg_json$$($decoded_json$jscomp$8$$);$JSCompiler_temp$jscomp$inline_13002$$=$JSCompiler_temp$jscomp$inline_13003$$}$JSCompiler_temp$jscomp$inline_13001$$=$JSCompiler_temp$jscomp$inline_13002$$}return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2121$tokens_lib$$,$JSCompiler_temp$jscomp$inline_13001$$,$cljs$cst$5541$unknown_tokens$$,$app$common$types$tokens_lib$get_tokens_of_unknown_type$$($decoded_json$jscomp$8$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)],
null)}catch($e77798$$){if($e77798$$ instanceof Error)throw $e$jscomp$354_file_name$jscomp$11$$=$e77798$$,$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$=$APP.$cljs$core$ex_data$$($e$jscomp$354_file_name$jscomp$11$$),$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$=
$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$==null?null:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$930$app_DOT_common_DOT_schema_SLASH_explain$$,$APP.$cljs$cst$568$errors$$],null)),$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$=$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$==null?null:$APP.$cljs$core$first$$($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$),
$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$295$in$$.$cljs$core$IFn$_invoke$arity$1$($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$),new $APP.$cljs$core$PersistentVector$$(null,1,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$723$name$$],null))?$app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$4423$error_DOT_import_SLASH_invalid_token_name$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$),$e$jscomp$354_file_name$jscomp$11$$):null,$APP.$cljs$core$truth_$$($G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$)?
$G__77767$jscomp$inline_13010_G__77767__$1$jscomp$inline_13011_or__5025__auto__$jscomp$inline_8717_schema_error$jscomp$inline_13009_single_set_QMARK_$jscomp$inline_12999$$:$app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$2116$error_DOT_import_SLASH_invalid_json_data$$,$decoded_json$jscomp$8$$,$e$jscomp$354_file_name$jscomp$11$$);throw $e77798$$;}};
$app$main$data$workspace$tokens$import_export$validate_library$$=function($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$){$map__77800__$1_p__77799_unknown_tokens$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$);var $tokens_lib$jscomp$50$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$,$APP.$cljs$cst$2121$tokens_lib$$);$map__77800__$1_p__77799_unknown_tokens$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$,
$cljs$cst$5541$unknown_tokens$$);$APP.$cljs$core$truth_$$($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$import_export$show_unknown_types_warning$$($map__77800__$1_p__77799_unknown_tokens$jscomp$2$$));try{var $tokens_tree$jscomp$8$$=$APP.$app$common$types$tokens_lib$get_all_tokens_map$$($tokens_lib$jscomp$50$$),$resolved_tokens$jscomp$25$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,
$APP.$cljs$cst$4463$tokenscript$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$tokenscript$resolve_tokens$$($tokens_tree$jscomp$8$$)):$app$main$data$style_dictionary$resolve_tokens_with_verbose_errors$$($tokens_tree$jscomp$8$$);return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($sd_error$$){var $first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$=$APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($sd_error$$,"\n");var $first__77760__$1$jscomp$inline_8724_seq__77759$jscomp$inline_8721$$=
$APP.$cljs$core$seq$$($first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$);$first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$=$APP.$cljs$core$first$$($first__77760__$1$jscomp$inline_8724_seq__77759$jscomp$inline_8721$$);var $seq__77759__$1$jscomp$inline_8723_seq__77759__$2$jscomp$inline_8725$$=$APP.$cljs$core$next$$($first__77760__$1$jscomp$inline_8724_seq__77759$jscomp$inline_8721$$);$first__77760__$1$jscomp$inline_8724_seq__77759$jscomp$inline_8721$$=
$APP.$cljs$core$first$$($seq__77759__$1$jscomp$inline_8723_seq__77759__$2$jscomp$inline_8725$$);$seq__77759__$1$jscomp$inline_8723_seq__77759__$2$jscomp$inline_8725$$=$APP.$cljs$core$next$$($seq__77759__$1$jscomp$inline_8723_seq__77759__$2$jscomp$inline_8725$$);$first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$,"Error: ")&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($first__77760__$1$jscomp$inline_8724_seq__77759$jscomp$inline_8721$$,
"Reference Errors:")?$seq__77759__$1$jscomp$inline_8723_seq__77759__$2$jscomp$inline_8725$$:null;if($APP.$cljs$core$truth_$$($first__77760$jscomp$inline_8722_reference_errors_vec__77758$jscomp$inline_8720$$))return(0,$APP.$beicon$v2$core$of$$)($tokens_lib$jscomp$50$$);throw $app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$4424$error_DOT_import_SLASH_style_dictionary_unknown_error$$,$sd_error$$,$sd_error$$);},$APP.$beicon$v2$core$map$$(function(){return $tokens_lib$jscomp$50$$},
$resolved_tokens$jscomp$25$$))}catch($e77808$$){if($e77808$$ instanceof Error)throw $app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$4424$error_DOT_import_SLASH_style_dictionary_unknown_error$$,"",$e77808$$);throw $e77808$$;}};
$app$main$data$workspace$tokens$import_export$import_file_stream$$=function($file_path$$,$file_text$$){var $file_name$jscomp$12$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$butlast$$($APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($file_path$$,".")));return $APP.$beicon$v2$core$mapcat$$($app$main$data$workspace$tokens$import_export$validate_library$$,$APP.$beicon$v2$core$map$$(function($p1__77829_SHARP_$$){return $app$main$data$workspace$tokens$import_export$parse_decoded_json$$($p1__77829_SHARP_$$,
$file_name$jscomp$12$$)},$APP.$beicon$v2$core$map$$($app$main$data$workspace$tokens$import_export$decode_json$$,$file_text$$)))};
$app$main$data$workspace$tokens$import_export$import_directory_stream$$=function($file_stream$$){return $APP.$beicon$v2$core$mapcat$$($app$main$data$workspace$tokens$import_export$validate_library$$,$APP.$beicon$v2$core$map$$(function($merged_json$$){return $app$main$data$workspace$tokens$import_export$parse_decoded_json$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($merged_json$$))?$APP.$cljs$core$val$$($APP.$cljs$core$first$$($merged_json$$)):$merged_json$$,
$APP.$cljs$core$ffirst$$($merged_json$$))},$APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($merged_json$jscomp$1$$,$decoded_json$jscomp$9$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$847$error$$.$cljs$core$IFn$_invoke$arity$1$($decoded_json$jscomp$9$$))?$merged_json$jscomp$1$$:$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($merged_json$jscomp$1$$,$decoded_json$jscomp$9$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$beicon$v2$core$map$$(function($file_text$jscomp$1_p__77830$$){var $file_path$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_text$jscomp$1_p__77830$$,0,null);$file_text$jscomp$1_p__77830$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_text$jscomp$1_p__77830$$,1,null);var $path$jscomp$inline_13013_set_name$jscomp$29$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("/",$APP.$cljs$core$rest$$($APP.$app$common$path_names$split_path$$($file_path$jscomp$1$$)));$path$jscomp$inline_13013_set_name$jscomp$29$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$butlast$$($APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($path$jscomp$inline_13013_set_name$jscomp$29$$,
".")));try{return $APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$path$jscomp$inline_13013_set_name$jscomp$29$$,$app$main$data$workspace$tokens$import_export$decode_json$$($file_text$jscomp$1_p__77830$$)])}catch($e77834$$){if($e77834$$ instanceof Error)return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$294$path$$,$file_path$jscomp$1$$,$APP.$cljs$cst$847$error$$,$e77834$$],null);throw $e77834$$;}},$file_stream$$))))};
$app$main$ui$workspace$tokens$import$0$modal$on_stream_imported$$=function($type$jscomp$668$$,$tokens_lib_stream$$){$beicon$v2$core$sub_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($tokens_lib_stream$$,function($lib$jscomp$15$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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$$,
"import-tokens",$APP.$cljs$cst$139$type$$,$type$jscomp$668$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$library_edit$import_tokens_lib$$($lib$jscomp$15$$)]));return $APP.$app$main$data$modal$hide_BANG_$$()},function($err$jscomp$44$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1621$content$$,$app$main$data$workspace$tokens$errors$humanize_errors$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$ex_data$$($err$jscomp$44$$)],null)),$APP.$cljs$cst$5087$detail$$,$app$main$data$workspace$tokens$errors$detail_errors$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$ex_data$$($err$jscomp$44$$)],null)),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$847$error$$],null)))})};
$app$main$ui$workspace$tokens$import$0$modal$import_type_dropdown_STAR_$$=function($file_type_options_initial_option_props_77843$$){var $options$jscomp$622$$=$file_type_options_initial_option_props_77843$$.options,$button_text$jscomp$1_text_render$$=$file_type_options_initial_option_props_77843$$.textRender,$default$$jscomp$92$$=$file_type_options_initial_option_props_77843$$.default,$on_click$jscomp$53$$=$file_type_options_initial_option_props_77843$$.onClick;$file_type_options_initial_option_props_77843$$=
function(){var $or__5025__auto__$jscomp$1159$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77839_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__77839_SHARP_$$),$default$$jscomp$92$$)},$options$jscomp$622$$));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1159$$)?$or__5025__auto__$jscomp$1159$$:$APP.$cljs$core$first$$($options$jscomp$622$$)}();var $selected_option_STAR_$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($file_type_options_initial_option_props_77843$$),$selected_option$jscomp$3$$=$APP.$cljs$core$_deref$$($selected_option_STAR_$$),$show_dropdown_QMARK_$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$file_type_options_initial_option_props_77843$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options$jscomp$622$$)],function(){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($option$jscomp$22$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$266$id$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$22$$)),$APP.$cljs$cst$2245$label$$,$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$22$$),$APP.$cljs$cst$4400$aria_label$$,$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$22$$)],null)},$options$jscomp$622$$)});$button_text$jscomp$1_text_render$$=$APP.$cljs$core$truth_$$($button_text$jscomp$1_text_render$$)?
$button_text$jscomp$1_text_render$$.$cljs$core$IFn$_invoke$arity$1$?$button_text$jscomp$1_text_render$$.$cljs$core$IFn$_invoke$arity$1$($selected_option$jscomp$3$$):$button_text$jscomp$1_text_render$$($selected_option$jscomp$3$$):$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($selected_option$jscomp$3$$);var $toggle_dropdown$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$563$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$563$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$563$$);
return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($show_dropdown_QMARK_$jscomp$5$$,$APP.$cljs$core$not$$)}),$close_dropdown$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_dropdown_QMARK_$jscomp$5$$,!1)}),$handle_option_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($options$jscomp$622$$)],function($event$jscomp$564_option$jscomp$23$$){var $option_id$jscomp$1$$=
$APP.$app$util$dom$get_attribute$$($APP.$app$util$dom$get_current_target$$($event$jscomp$564_option$jscomp$23$$),"id");$event$jscomp$564_option$jscomp$23$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77842_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__77842_SHARP_$$)),$option_id$jscomp$1$$)},$options$jscomp$622$$));
$close_dropdown$jscomp$5$$.$cljs$core$IFn$_invoke$arity$0$?$close_dropdown$jscomp$5$$.$cljs$core$IFn$_invoke$arity$0$():$close_dropdown$jscomp$5$$();return $APP.$cljs$core$truth_$$($event$jscomp$564_option$jscomp$23$$)?$APP.$cljs$core$reset_BANG_$$($selected_option_STAR_$$,$event$jscomp$564_option$jscomp$23$$):null}),$handle_main_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$53$$),$APP.$rumext$v2$adapt$$($selected_option$jscomp$3$$)],
function($G__77846_event$jscomp$565$$){$APP.$app$util$dom$prevent_default$$($G__77846_event$jscomp$565$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($selected_option$jscomp$3$$)?$on_click$jscomp$53$$:$selected_option$jscomp$3$$)?($G__77846_event$jscomp$565$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($selected_option$jscomp$3$$),$on_click$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$?$on_click$jscomp$53$$.$cljs$core$IFn$_invoke$arity$1$($G__77846_event$jscomp$565$$):$on_click$jscomp$53$$($G__77846_event$jscomp$565$$)):
null});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_import_modal__dropdown-btn-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",className:"main_ui_workspace_tokens_import_modal__dropdown-btn",onClick:$handle_main_click$$,children:$button_text$jscomp$1_text_render$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",className:"main_ui_workspace_tokens_import_modal__dropdown-trigger-btn",
icon:"arrow-down",onClick:$toggle_dropdown$jscomp$4$$,"aria-label":"Show options"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$APP.$cljs$core$_deref$$($show_dropdown_QMARK_$jscomp$5$$),"on-close":$close_dropdown$jscomp$5$$,children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$controls$shared$options_dropdown$options_dropdown_STAR_$$,{options:$file_type_options_initial_option_props_77843$$,selected:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($selected_option$jscomp$3$$)),
onClick:$handle_option_click$$,setRef:function(){return null}})})]})};$app$main$ui$workspace$tokens$import$0$modal$has_token_files_QMARK_$$=function($file_paths$$){var $and__5023__auto__$jscomp$811$$=$APP.$cljs$core$seq$$($file_paths$$);return $and__5023__auto__$jscomp$811$$?$APP.$cljs$core$some$$(function($p1__77853_SHARP_$$){return $APP.$cuerdas$core$ends_with_QMARK_$$($p1__77853_SHARP_$$,".json")},$file_paths$$):$and__5023__auto__$jscomp$811$$};
$app$main$ui$workspace$tokens$import$0$modal$validate_token_files$$=function($file_stream$jscomp$1$$){return $APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$identity$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($file_entries_file_paths$jscomp$1$$){$file_entries_file_paths$jscomp$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$,$file_entries_file_paths$jscomp$1$$);if($APP.$cljs$core$truth_$$($app$main$ui$workspace$tokens$import$0$modal$has_token_files_QMARK_$$($file_entries_file_paths$jscomp$1$$)))return null;
throw $app$main$data$workspace$tokens$errors$error_ex_info$$($APP.$cljs$cst$4426$error_DOT_import_SLASH_no_token_files_found$$,$file_entries_file_paths$jscomp$1$$,null);},$APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($acc$jscomp$153$$,$file_text$jscomp$2_p__77857$$){var $file_path$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_text$jscomp$2_p__77857$$,0,null);$file_text$jscomp$2_p__77857$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($file_text$jscomp$2_p__77857$$,
1,null);return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($acc$jscomp$153$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$file_path$jscomp$2$$,$file_text$jscomp$2_p__77857$$],null))},$APP.$cljs$core$PersistentVector$EMPTY$$,$file_stream$jscomp$1$$)))};
$app$main$ui$workspace$tokens$import$0$modal$import_modal_body_STAR_$$=function(){var $file_input_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$dir_input_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$zip_input_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$on_display_file_explorer$$=$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_ref$$))}),$on_display_dir_explorer$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($dir_input_ref$$))}),
$on_display_zip_explorer$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($zip_input_ref$$))}),$handle_import_action$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_display_file_explorer$$),$APP.$rumext$v2$adapt$$($on_display_dir_explorer$$),$APP.$rumext$v2$adapt$$($on_display_zip_explorer$$)],function($val$jscomp$217$$){switch($val$jscomp$217$$ instanceof $APP.$cljs$core$Keyword$$?
$val$jscomp$217$$.$fqn$:null){case "file":return $on_display_file_explorer$$.$cljs$core$IFn$_invoke$arity$0$?$on_display_file_explorer$$.$cljs$core$IFn$_invoke$arity$0$():$on_display_file_explorer$$();case "folder":return $on_display_dir_explorer$$.$cljs$core$IFn$_invoke$arity$0$?$on_display_dir_explorer$$.$cljs$core$IFn$_invoke$arity$0$():$on_display_dir_explorer$$();case "zip":return $on_display_zip_explorer$$.$cljs$core$IFn$_invoke$arity$0$?$on_display_zip_explorer$$.$cljs$core$IFn$_invoke$arity$0$():
$on_display_zip_explorer$$();default:return null}}),$on_import_directory$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$566_files$jscomp$30$$){$event$jscomp$566_files$jscomp$30$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($file$jscomp$173$$){var $name$jscomp$447$$=$file$jscomp$173$$.name;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$173$$.type,"application/json")||$APP.$cuerdas$core$ends_with_QMARK_$$($name$jscomp$447$$,
".json")},$APP.$app$util$dom$get_files$$($APP.$app$util$dom$get_target$$($event$jscomp$566_files$jscomp$30$$)));$app$main$ui$workspace$tokens$import$0$modal$on_stream_imported$$("multiple",$app$main$data$workspace$tokens$import_export$import_directory_stream$$($app$main$ui$workspace$tokens$import$0$modal$validate_token_files$$($APP.$beicon$v2$core$mapcat$$(function($file$jscomp$174$$){return $APP.$beicon$v2$core$map$$(function($file_text$jscomp$3$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$file$jscomp$174$$.webkitRelativePath,$file_text$jscomp$3$$],null)},$app$util$webapi$read_file_as_text$$($file$jscomp$174$$))},$APP.$beicon$v2$core$from$$($event$jscomp$566_files$jscomp$30$$)))));return $app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($dir_input_ref$$),"")}),$on_import_zip_file$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$567_zipfile$$){$event$jscomp$567_zipfile$$=$APP.$cljs$core$first$$($APP.$app$util$dom$get_files$$($APP.$app$util$dom$get_target$$($event$jscomp$567_zipfile$$)));
var $zipfile_name$$=$APP.$cuerdas$core$strip_suffix$$($event$jscomp$567_zipfile$$.name,".zip");$app$main$ui$workspace$tokens$import$0$modal$on_stream_imported$$("zip",$app$main$data$workspace$tokens$import_export$import_directory_stream$$($app$main$ui$workspace$tokens$import$0$modal$validate_token_files$$($APP.$beicon$v2$core$mapcat$$(function($file_content_zip_reader$$){$file_content_zip_reader$$=$app$util$zip$reader$$($file_content_zip_reader$$);return $APP.$beicon$v2$core$finalize$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$util$zip$close$$,
$file_content_zip_reader$$),$APP.$beicon$v2$core$mapcat$$(function($entries$jscomp$46$$){return $APP.$beicon$v2$core$merge_map$$(function($content_promise_entry$jscomp$81$$){var $filename$jscomp$11$$=""+($zipfile_name$$??"")+"/"+($content_promise_entry$jscomp$81$$.filename??"");$content_promise_entry$jscomp$81$$=$app$util$zip$read_as_text$$($content_promise_entry$jscomp$81$$);return $APP.$beicon$v2$core$from$$($content_promise_entry$jscomp$81$$.then(function($text$jscomp$136$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$filename$jscomp$11$$,$text$jscomp$136$$],null)}))},$APP.$beicon$v2$core$filter$$(function($entry$jscomp$82$$){return $APP.$cuerdas$core$ends_with_QMARK_$$($entry$jscomp$82$$.filename,".json")},$APP.$beicon$v2$core$from$$($entries$jscomp$46$$)))},$APP.$beicon$v2$core$from$$($file_content_zip_reader$$.getEntries())))},$APP.$app$util$webapi$read_file_as_array_buffer$$($event$jscomp$567_zipfile$$)))));return $app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($zip_input_ref$$),
"")}),$on_import_json_file$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$568_file$jscomp$175$$){$event$jscomp$568_file$jscomp$175$$=$APP.$cljs$core$first$$($APP.$app$util$dom$get_files$$($APP.$app$util$dom$get_target$$($event$jscomp$568_file$jscomp$175$$)));$app$main$ui$workspace$tokens$import$0$modal$on_stream_imported$$("single",$app$main$data$workspace$tokens$import_export$import_file_stream$$($event$jscomp$568_file$jscomp$175$$.name,$app$util$webapi$read_file_as_text$$($event$jscomp$568_file$jscomp$175$$)));
return $app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($file_input_ref$$),"")}),$render_button_text$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($option$jscomp$24$$){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.import-button-prefix",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$2245$label$$.$cljs$core$IFn$_invoke$arity$1$($option$jscomp$24$$)]))});return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_tokens_import_modal__import-modal-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_import_modal__import-modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-tokens")}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"ul",typography:"body-medium",
className:"main_ui_workspace_tokens_import_modal__import-description",children:[(0,$APP.$rumext$v2$jsx$$)("li",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-single-file")}),(0,$APP.$rumext$v2$jsx$$)("li",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-multiple-files")})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$notifications$context_notification$context_notification_STAR_$$,{type:$APP.$cljs$cst$2270$context$$,
appearance:"neutral",level:"default",isHtml:!0,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-warning")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_import_modal__import-actions",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"file",ref:$file_input_ref$$,style:{display:"none"},accept:".json",onChange:$on_import_json_file$$}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"file",ref:$zip_input_ref$$,style:{display:"none"},accept:".zip",
onChange:$on_import_zip_file$$}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"file",ref:$dir_input_ref$$,style:{display:"none"},accept:"",webkitdirectory:"true",onChange:$on_import_directory$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",onClick:$APP.$app$main$data$modal$hide_BANG_$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$import$0$modal$import_type_dropdown_STAR_$$,
{options:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-menu-json-option"),$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$208$file$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-menu-zip-option"),
$APP.$cljs$cst$260$value$$,$cljs$cst$5542$zip$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.import-menu-folder-option"),$APP.$cljs$cst$260$value$$,$cljs$cst$5543$folder$$],null)],null),onClick:$handle_import_action$$,textRender:$render_button_text$$,"default":$APP.$cljs$cst$208$file$$})]})]})};
$app$main$ui$workspace$tokens$import$0$import_modal_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_import__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_import__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{className:"main_ui_workspace_tokens_import__close-btn",onClick:$APP.$app$main$data$modal$hide_BANG_$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),
variant:"ghost",icon:"close"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$import$0$modal$import_modal_body_STAR_$$,{})]})})};
$app$main$ui$forms$form_input_STAR_$$=function($props_77836_touched_QMARK_$jscomp$6$$){var $error$jscomp$138_name$jscomp$448$$=void 0,$trim$jscomp$4$$=void 0,$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$=void 0;({name:$error$jscomp$138_name$jscomp$448$$,trim:$trim$jscomp$4$$,...$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$}=$props_77836_touched_QMARK_$jscomp$6$$);var $form$jscomp$181$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$4$$=$error$jscomp$138_name$jscomp$448$$;
$props_77836_touched_QMARK_$jscomp$6$$=function(){var $and__5023__auto__$jscomp$812$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$181$$)),$input_name$jscomp$4$$);return $and__5023__auto__$jscomp$812$$?$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$181$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,
$input_name$jscomp$4$$],null)):$and__5023__auto__$jscomp$812$$}();$error$jscomp$138_name$jscomp$448$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$181$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$input_name$jscomp$4$$],null));var $value$jscomp$910$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$181$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$input_name$jscomp$4$$],null),""),$on_change$jscomp$80$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($input_name$jscomp$4$$)],function($event$jscomp$569_value__$1$jscomp$57$$){$event$jscomp$569_value__$1$jscomp$57$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$569_value__$1$jscomp$57$$));return $APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$181$$,
$input_name$jscomp$4$$,$event$jscomp$569_value__$1$jscomp$57$$,$trim$jscomp$4$$)});$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$={...$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$,onChange:$on_change$jscomp$80$$,value:$value$jscomp$910$$};$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error$jscomp$138_name$jscomp$448$$)?$props_77836_touched_QMARK_$jscomp$6$$:$error$jscomp$138_name$jscomp$448$$)?{...$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$,
hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$138_name$jscomp$448$$)}:$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$;return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$352_props__$1$jscomp$85_props__$2$jscomp$4$$)};
$app$main$ui$forms$form_submit_STAR_$$=function($disabled_QMARK_$jscomp$8_props_77840$$){var $disabled$jscomp$18_handle_key_down_save$$=void 0,$on_submit$jscomp$15$$=void 0,$props$jscomp$353$$=void 0;({disabled:$disabled$jscomp$18_handle_key_down_save$$,onSubmit:$on_submit$jscomp$15$$,...$props$jscomp$353$$}=$disabled_QMARK_$jscomp$8_props_77840$$);var $form$jscomp$182$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$);$disabled_QMARK_$jscomp$8_props_77840$$=$form$jscomp$182$$!=null&&($APP.$cljs$core$not$$($APP.$cljs$cst$4856$valid$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$182$$)))||
$APP.$cljs$core$seq$$($cljs$cst$5544$async_errors$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$182$$)))||$APP.$cljs$core$seq$$($APP.$cljs$cst$4854$extra_errors$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$182$$))))||$disabled$jscomp$18_handle_key_down_save$$===!0;$disabled$jscomp$18_handle_key_down_save$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit$jscomp$15$$),$APP.$rumext$v2$adapt$$($form$jscomp$182$$)],
function($e$jscomp$357$$){var $JSCompiler_inline_result$jscomp$1824_or__5025__auto__$jscomp$inline_8727$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($e$jscomp$357$$);$JSCompiler_inline_result$jscomp$1824_or__5025__auto__$jscomp$inline_8727$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1824_or__5025__auto__$jscomp$inline_8727$$)?$JSCompiler_inline_result$jscomp$1824_or__5025__auto__$jscomp$inline_8727$$:(0,$APP.$app$util$keyboard$space_QMARK_$$)($e$jscomp$357$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1824_or__5025__auto__$jscomp$inline_8727$$)?
($APP.$app$util$dom$prevent_default$$($e$jscomp$357$$),$on_submit$jscomp$15$$.$cljs$core$IFn$_invoke$arity$2$?$on_submit$jscomp$15$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$182$$,$e$jscomp$357$$):$on_submit$jscomp$15$$($form$jscomp$182$$,$e$jscomp$357$$)):null});return $APP.$rumext$v2$create_element$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{...$props$jscomp$353$$,disabled:$disabled_QMARK_$jscomp$8_props_77840$$,onKeyDown:$disabled$jscomp$18_handle_key_down_save$$,type:"submit"})};
$app$main$ui$forms$form_STAR_$$=function($on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$){var $form$jscomp$183$$=$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$.form,$children$jscomp$309$$=$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$.children,$class$$jscomp$77$$=$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$.className,$on_submit$jscomp$16$$=$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$.onSubmit;$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_submit$jscomp$16$$)],
function($event$jscomp$570$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$570$$);return $APP.$cljs$core$fn_QMARK_$$($on_submit$jscomp$16$$)?$on_submit$jscomp$16$$.$cljs$core$IFn$_invoke$arity$2$?$on_submit$jscomp$16$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$183$$,$event$jscomp$570$$):$on_submit$jscomp$16$$($form$jscomp$183$$,$event$jscomp$570$$):null});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($app$main$ui$forms$context$$),{value:$form$jscomp$183$$,children:(0,$APP.$rumext$v2$jsx$$)("form",
{onSubmit:$on_submit_SINGLEQUOTE_$jscomp$1_props_77841$$,className:$class$$jscomp$77$$,children:$children$jscomp$309$$})})};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$resolve_value$$=function($tokens$jscomp$53_tokens__$1$jscomp$6$$,$prev_token$jscomp$2$$,$token_name$jscomp$26$$,$value$jscomp$911$$){var $valid_token_name_QMARK_$$=function(){var $and__5023__auto__$jscomp$814$$=typeof $token_name$jscomp$26$$==="string";return $and__5023__auto__$jscomp$814$$?$APP.$cljs$core$re_matches$$($APP.$app$common$types$token$token_name_validation_regex$$,$token_name$jscomp$26$$):$and__5023__auto__$jscomp$814$$}(),
$token$jscomp$153$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$value$jscomp$911$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$core$not$$($valid_token_name_QMARK_$$)||$APP.$cuerdas$core$blank_QMARK_$$($token_name$jscomp$26$$)?"__PENPOT__TOKEN__NAME__PLACEHOLDER__":$token_name$jscomp$26$$],null);$tokens$jscomp$53_tokens__$1$jscomp$6$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($tokens$jscomp$53_tokens__$1$jscomp$6$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$2$$)),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$153$$),function($p1__77844_SHARP_$$){return $APP.$app$common$types$tokens_lib$make_token$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__77844_SHARP_$$,$prev_token$jscomp$2$$,
$token$jscomp$153$$]))]))});return $APP.$beicon$v2$core$mapcat$$(function($errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$){$errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$153$$));var $map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$);
$errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$,$APP.$cljs$cst$568$errors$$);$map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$,$APP.$cljs$cst$4441$resolved_value$$);$map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$=
$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$app$main$data$tokenscript$tokenscript_symbols__GT_penpot_unit$$($map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$):$map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$;return $APP.$cljs$core$truth_$$($map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$)?(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$260$value$$,
$map__77845__$1_resolved_value$jscomp$5_resolved_value__$1$jscomp$2$$],null)):(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$APP.$cljs$core$first$$($errors$jscomp$35_map__77845_resolved_tokens$jscomp$26$$)],null))},$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$tokenscript$resolve_tokens$$($tokens$jscomp$53_tokens__$1$jscomp$6$$)):$APP.$app$main$data$style_dictionary$resolve_tokens_interactive$$($tokens$jscomp$53_tokens__$1$jscomp$6$$))};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$hex__GT_color_obj$$=function($hex$jscomp$16_hex__$1$jscomp$3$$){var $alpha$jscomp$17_temp__5825__auto__$jscomp$374$$=$APP.$app$main$data$tinycolor$valid_color$$($hex$jscomp$16_hex__$1$jscomp$3$$);if($APP.$cljs$core$truth_$$($alpha$jscomp$17_temp__5825__auto__$jscomp$374$$)){$hex$jscomp$16_hex__$1$jscomp$3$$=$APP.$app$main$data$tinycolor$__GT_hex_string$$($alpha$jscomp$17_temp__5825__auto__$jscomp$374$$);$alpha$jscomp$17_temp__5825__auto__$jscomp$374$$=
$APP.$app$main$data$tinycolor$alpha$$($alpha$jscomp$17_temp__5825__auto__$jscomp$374$$);var $b$jscomp$365_vec__77847$$=$APP.$app$common$types$color$hex__GT_rgb$$($hex$jscomp$16_hex__$1$jscomp$3$$),$r$jscomp$147$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$365_vec__77847$$,0,null),$g$jscomp$169$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$365_vec__77847$$,1,null);$b$jscomp$365_vec__77847$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$365_vec__77847$$,
2,null);var $v$jscomp$672_vec__77850$$=$app$common$types$color$hex__GT_hsv$$($hex$jscomp$16_hex__$1$jscomp$3$$),$h$jscomp$182$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$672_vec__77850$$,0,null),$s$jscomp$571$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$672_vec__77850$$,1,null);$v$jscomp$672_vec__77850$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$672_vec__77850$$,2,null);return new $APP.$cljs$core$PersistentArrayMap$$(null,8,
[$APP.$cljs$cst$2955$hex$$,$hex$jscomp$16_hex__$1$jscomp$3$$,$APP.$cljs$cst$1727$r$$,$r$jscomp$147$$,$APP.$cljs$cst$1728$g$$,$g$jscomp$169$$,$APP.$cljs$cst$1509$b$$,$b$jscomp$365_vec__77847$$,$APP.$cljs$cst$1884$h$$,$h$jscomp$182$$,$APP.$cljs$cst$4052$s$$,$s$jscomp$571$$,$APP.$cljs$cst$2947$v$$,$v$jscomp$672_vec__77850$$,$APP.$cljs$cst$744$alpha$$,$alpha$jscomp$17_temp__5825__auto__$jscomp$374$$],null)}return null};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$ramp_STAR_$$=function($props_77854_wrapper_node_ref$$){var $on_change$jscomp$81$$=$props_77854_wrapper_node_ref$$.onChange,$color$jscomp$185$$=$props_77854_wrapper_node_ref$$.color;$props_77854_wrapper_node_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);var $dragging_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$on_start_drag$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$3$$,
!0)}),$on_finish_drag$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$3$$,!1)}),$internal_color_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $app$main$ui$workspace$tokens$management$forms$controls$color_input$hex__GT_color_obj$$($color$jscomp$185$$)}),$internal_color$jscomp$1$$=$APP.$cljs$core$_deref$$($internal_color_STAR_$jscomp$1$$),$on_change_SINGLEQUOTE_$jscomp$10$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$81$$)],function($map__77856__$1_p__77855$$){$map__77856__$1_p__77855$$=$APP.$cljs$core$__destructure_map$$($map__77856__$1_p__77855$$);var $hex$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77856__$1_p__77855$$,$APP.$cljs$cst$2955$hex$$),$alpha$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77856__$1_p__77855$$,$APP.$cljs$cst$744$alpha$$),$dragging_QMARK_$jscomp$9$$=
$APP.$rumext$v2$ref_val$$($dragging_ref$jscomp$3$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($dragging_QMARK_$jscomp$9$$)?$hex$jscomp$17$$:$dragging_QMARK_$jscomp$9$$))return null;$APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$jscomp$1$$,$map__77856__$1_p__77855$$);return $on_change$jscomp$81$$.$cljs$core$IFn$_invoke$arity$2$?$on_change$jscomp$81$$.$cljs$core$IFn$_invoke$arity$2$($hex$jscomp$17$$,$alpha$jscomp$18$$):$on_change$jscomp$81$$($hex$jscomp$17$$,$alpha$jscomp$18$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$185$$)],
function(){var $temp__5825__auto__$jscomp$375$$=$APP.$app$main$data$tinycolor$valid_color$$($color$jscomp$185$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$375$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$tinycolor$__GT_hex_string$$($temp__5825__auto__$jscomp$375$$),$APP.$cljs$cst$2955$hex$$.$cljs$core$IFn$_invoke$arity$1$($internal_color$jscomp$1$$))?null:$APP.$cljs$core$reset_BANG_$$($internal_color_STAR_$jscomp$1$$,$app$main$ui$workspace$tokens$management$forms$controls$color_input$hex__GT_color_obj$$($temp__5825__auto__$jscomp$375$$)):
null});$app$main$ui$workspace$colorpicker$use_color_picker_css_variables_BANG_$$($props_77854_wrapper_node_ref$$,$internal_color$jscomp$1$$);return(0,$APP.$rumext$v2$jsx$$)("div",{ref:$props_77854_wrapper_node_ref$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$colorpicker$ramp$ramp_selector_STAR_$$,{color:$internal_color$jscomp$1$$,onStartDrag:$on_start_drag$jscomp$6$$,onFinishDrag:$on_finish_drag$jscomp$6$$,onChange:$on_change_SINGLEQUOTE_$jscomp$10$$})})};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$color_input_STAR_$$=function($props_77861_touched_QMARK_$jscomp$7$$){var $error$jscomp$139_name$jscomp$449$$=void 0,$token$jscomp$154$$=void 0,$tokens$jscomp$54$$=void 0,$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$=void 0;({name:$error$jscomp$139_name$jscomp$449$$,tokens:$tokens$jscomp$54$$,token:$token$jscomp$154$$,...$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$}=$props_77861_touched_QMARK_$jscomp$7$$);
var $form$jscomp$184$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$5$$=$error$jscomp$139_name$jscomp$449$$,$token_name$jscomp$27$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$184$$),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),null);$props_77861_touched_QMARK_$jscomp$7$$=function(){var $and__5023__auto__$jscomp$816$$=
$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$184$$)),$input_name$jscomp$5$$);return $and__5023__auto__$jscomp$816$$?$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$5$$],null)):$and__5023__auto__$jscomp$816$$}();$error$jscomp$139_name$jscomp$449$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$input_name$jscomp$5$$],null));var $extra_error$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,
$input_name$jscomp$5$$],null)),$value$jscomp$912$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$input_name$jscomp$5$$],null),""),$color_resolved$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$142$data$$,$cljs$cst$5545$color_result$$],null),""),$hint$jscomp$21_valid_color$$=function(){var $or__5025__auto__$jscomp$1161$$=$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$912$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1161$$)?$or__5025__auto__$jscomp$1161$$:$APP.$app$main$data$tinycolor$valid_color$$($color_resolved$$)}(),$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);
a:switch($APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$)){case "light":$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$="#eef0f2";break a;default:$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$="#2e3434"}$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$=$APP.$cljs$core$truth_$$($hint$jscomp$21_valid_color$$)?$APP.$app$main$data$tinycolor$__GT_hex_string$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$21_valid_color$$)):
$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$;var $alpha$jscomp$19_swatch$$=$APP.$cljs$core$truth_$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$21_valid_color$$))?$APP.$app$main$data$tinycolor$alpha$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$21_valid_color$$)):1,$resolve_stream$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$154$$)],function(){var $temp__5823__auto__$jscomp$225$$=
$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$154$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$225$$)?$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$225$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$);$hint$jscomp$21_valid_color$$=$APP.$cljs$core$_deref$$($hint_STAR_$$);var $color_ramp_open_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$color_ramp_open_QMARK_$$=$APP.$cljs$core$_deref$$($color_ramp_open_STAR_$$),$on_change$jscomp$82_on_click_swatch$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color_ramp_open_QMARK_$$)],function(){return $APP.$cljs$core$reset_BANG_$$($color_ramp_open_STAR_$$,$APP.$cljs$core$not$$($color_ramp_open_QMARK_$$))});$alpha$jscomp$19_swatch$$=$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1284$color$$,$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$,$APP.$cljs$cst$1718$opacity$$,$alpha$jscomp$19_swatch$$],null),showTooltip:!1,"data-testid":"token-form-color-bullet",className:"main_ui_workspace_tokens_management_forms_controls_color_input__slot-start",onClick:$on_change$jscomp$82_on_click_swatch$$});$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$$),
$APP.$rumext$v2$adapt$$($input_name$jscomp$5$$),$APP.$rumext$v2$adapt$$($value$jscomp$912$$)],function($JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$,$alpha__$1$$){var $G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$=$value$jscomp$912$$==null?null:$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$912$$),$prev_computed_color_to_rgba_QMARK_$$=$APP.$cljs$core$truth_$$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$)?
null:$value$jscomp$912$$==null?null:$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$912$$);$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$=$APP.$cljs$core$truth_$$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$)?$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$:$prev_computed_color_to_rgba_QMARK_$$;$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$=$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$==
null?null:$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$.getFormat();$prev_computed_color_to_rgba_QMARK_$$=$alpha__$1$$<1&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$,"hex")||$APP.$cljs$core$not$$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$));var $to_hex_QMARK_$$=$APP.$cljs$core$not$$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($alpha__$1$$,1);$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$=$prev_computed_color_to_rgba_QMARK_$$?"rgba":$to_hex_QMARK_$$?"hex":$APP.$cljs$core$truth_$$($G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$)?$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$:"hex";$JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$=$APP.$app$main$data$tinycolor$valid_color$$($JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$).setAlpha($APP.$cljs$core$truth_$$($alpha__$1$$)?
$alpha__$1$$:1);$JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$=$app$main$data$tinycolor$__GT_string$$($JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$,$G__77866$jscomp$inline_13015_format$jscomp$43_prev_format_prev_input_color$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$912$$,$JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$)?($APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$184$$,
$input_name$jscomp$5$$,$JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$,!0),$resolve_stream$$.next($JSCompiler_inline_result$jscomp$13401_color_value$jscomp$5_hex__$1$jscomp$4$$)):null});$on_change$jscomp$82_on_click_swatch$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$5$$)],function($event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$){$event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$=
$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$));$event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$=$APP.$cljs$core$truth_$$($app$main$data$tinycolor$hex_without_hash_prefix_QMARK_$$($event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$))?"#"+($event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$??""):$event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$;$APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$184$$,
$input_name$jscomp$5$$,$event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$,!0);return $resolve_stream$$.next($event$jscomp$571_raw_value$jscomp$2_value__$1$jscomp$59$$)});$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$={...$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$,onChange:$on_change$jscomp$82_on_click_swatch$$,value:$APP.$cljs$core$truth_$$($value$jscomp$912$$)?$value$jscomp$912$$:"",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$21_valid_color$$),
variant:"comfortable",slotStart:$alpha$jscomp$19_swatch$$,hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$21_valid_color$$)};$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error$jscomp$139_name$jscomp$449$$)?$props_77861_touched_QMARK_$jscomp$7$$:$error$jscomp$139_name$jscomp$449$$)?{...$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$139_name$jscomp$449$$)}:
$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($extra_error$$)?$props_77861_touched_QMARK_$jscomp$7$$:$extra_error$$)?{...$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($extra_error$$)}:$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$54$$),
$APP.$rumext$v2$adapt$$($token$jscomp$154$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$5$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$27$$)],function(){var $subs$jscomp$20$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error__$1_message$jscomp$114_p__77869$$){var $map__77870__$1_value__$1$jscomp$60$$=$APP.$cljs$core$__destructure_map$$($error__$1_message$jscomp$114_p__77869$$);$error__$1_message$jscomp$114_p__77869$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77870__$1_value__$1$jscomp$60$$,
$APP.$cljs$cst$847$error$$);$map__77870__$1_value__$1$jscomp$60$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77870__$1_value__$1$jscomp$60$$,$APP.$cljs$cst$260$value$$);var $touched_QMARK___$1$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$184$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$5$$],null));if($APP.$cljs$core$truth_$$($touched_QMARK___$1$$)){if($APP.$cljs$core$truth_$$($error__$1_message$jscomp$114_p__77869$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$184$$,
$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$input_name$jscomp$5$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error__$1_message$jscomp$114_p__77869$$],null)),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$184$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$142$data$$,$cljs$cst$5545$color_result$$],null),""),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1_message$jscomp$114_p__77869$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1_message$jscomp$114_p__77869$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$format$format_token_value$$($map__77870__$1_value__$1$jscomp$60$$)]));
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$184$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$5$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$184$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$cljs$cst$5545$color_result$$],
null),$map__77870__$1_value__$1$jscomp$60$$);return $APP.$cljs$core$reset_BANG_$$($hint_STAR_$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1_message$jscomp$114_p__77869$$,$APP.$cljs$cst$139$type$$,"hint"],null))}return null},$APP.$beicon$v2$core$map$$(function($result$jscomp$350$$){return $APP.$app$common$data$update_when$$($result$jscomp$350$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_message$$)},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$color_input$resolve_value$$,
$tokens$jscomp$54$$,$token$jscomp$154$$,$token_name$jscomp$27$$),$APP.$beicon$v2$core$debounce$$(300,$resolve_stream$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$20$$)}});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$354_props__$1$jscomp$87_props__$2$jscomp$5$$),$APP.$cljs$core$truth_$$($color_ramp_open_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$color_input$ramp_STAR_$$,
{color:$value$jscomp$912$$,onChange:$default_bullet_color_hex$jscomp$18_on_change_value$jscomp$2_profile$jscomp$63$$}):null]})};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$=function($form$jscomp$186$$,$field$jscomp$8$$,$index$jscomp$544$$,$value$jscomp$914$$,$value_subfield$jscomp$1$$){function $clean_errors$jscomp$1$$($errors$jscomp$36$$){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$36$$,$field$jscomp$8$$))}$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$186$$,
function($state$jscomp$1091$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc_in$$($state$jscomp$1091$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$1$$,$index$jscomp$544$$,$field$jscomp$8$$],null),$APP.$cljs$core$truth_$$(!0)?$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$914$$):
$value$jscomp$914$$),$APP.$cljs$cst$568$errors$$,$clean_errors$jscomp$1$$),$APP.$cljs$cst$4854$extra_errors$$,$clean_errors$jscomp$1$$)})};
$app$main$ui$workspace$tokens$management$forms$controls$color_input$indexed_color_input_STAR_$$=function($error$jscomp$140_props_77875$$){var $index$jscomp$545$$=void 0,$hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$=void 0,$token$jscomp$155$$=void 0,$value_subfield$jscomp$2$$=void 0,$tokens$jscomp$55$$=void 0,$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$=void 0;({name:$hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$,tokens:$tokens$jscomp$55$$,token:$token$jscomp$155$$,index:$index$jscomp$545$$,
valueSubfield:$value_subfield$jscomp$2$$,...$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$}=$error$jscomp$140_props_77875$$);var $form$jscomp$187$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$6$$=$hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$,$token_name$jscomp$28$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$187$$),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),null);$error$jscomp$140_props_77875$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$187$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$input_name$jscomp$6$$],null));var $value$jscomp$915$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$187$$),
new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$input_name$jscomp$6$$],null),""),$color_resolved$jscomp$1$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$187$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,
$value_subfield$jscomp$2$$,$index$jscomp$545$$,$cljs$cst$5545$color_result$$],null),"");$hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$=function(){var $or__5025__auto__$jscomp$1165$$=$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$915$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1165$$)?$or__5025__auto__$jscomp$1165$$:$APP.$app$main$data$tinycolor$valid_color$$($color_resolved$jscomp$1$$)}();var $default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$);a:switch($APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$)){case "light":$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$="#eef0f2";break a;default:$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$="#2e3434"}$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$=
$APP.$cljs$core$truth_$$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$)?$APP.$app$main$data$tinycolor$__GT_hex_string$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$)):$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$;var $alpha$jscomp$20_swatch$jscomp$1$$=$APP.$cljs$core$truth_$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$))?$APP.$app$main$data$tinycolor$alpha$$($APP.$app$main$data$tinycolor$valid_color$$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$)):
1,$resolve_stream$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$155$$)],function(){var $temp__5823__auto__$jscomp$226$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$155$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$input_name$jscomp$6$$],null));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$226$$)?
$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$226$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$);$hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$1$$);var $color_ramp_open_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$color_ramp_open_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($color_ramp_open_STAR_$jscomp$1$$),
$on_change$jscomp$83_on_click_swatch$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color_ramp_open_QMARK_$jscomp$1$$)],function(){return $APP.$cljs$core$reset_BANG_$$($color_ramp_open_STAR_$jscomp$1$$,$APP.$cljs$core$not$$($color_ramp_open_QMARK_$jscomp$1$$))});$alpha$jscomp$20_swatch$jscomp$1$$=$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,
$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$,$APP.$cljs$cst$1718$opacity$$,$alpha$jscomp$20_swatch$jscomp$1$$],null),showTooltip:!1,"data-testid":"token-form-color-bullet",className:"main_ui_workspace_tokens_management_forms_controls_color_input__slot-start",onClick:$on_change$jscomp$83_on_click_swatch$jscomp$1$$});$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$1$$),
$APP.$rumext$v2$adapt$$($input_name$jscomp$6$$),$APP.$rumext$v2$adapt$$($value$jscomp$915$$),$APP.$rumext$v2$adapt$$($index$jscomp$545$$)],function($JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$,$alpha__$1$jscomp$1$$){var $G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$=$value$jscomp$915$$==null?null:$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$915$$),$prev_computed_color$jscomp$1_to_rgba_QMARK_$jscomp$1$$=
$APP.$cljs$core$truth_$$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$)?null:$value$jscomp$915$$==null?null:$APP.$app$main$data$tinycolor$valid_color$$($value$jscomp$915$$);$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$=$APP.$cljs$core$truth_$$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$)?$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$:
$prev_computed_color$jscomp$1_to_rgba_QMARK_$jscomp$1$$;$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$=$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$==null?null:$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$.getFormat();$prev_computed_color$jscomp$1_to_rgba_QMARK_$jscomp$1$$=$alpha__$1$jscomp$1$$<1&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$,
"hex")||$APP.$cljs$core$not$$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$));var $to_hex_QMARK_$jscomp$1$$=$APP.$cljs$core$not$$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($alpha__$1$jscomp$1$$,1);$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$=$prev_computed_color$jscomp$1_to_rgba_QMARK_$jscomp$1$$?
"rgba":$to_hex_QMARK_$jscomp$1$$?"hex":$APP.$cljs$core$truth_$$($G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$)?$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$:"hex";$JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$=$APP.$app$main$data$tinycolor$valid_color$$($JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$).setAlpha($APP.$cljs$core$truth_$$($alpha__$1$jscomp$1$$)?
$alpha__$1$jscomp$1$$:1);$JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$=$app$main$data$tinycolor$__GT_string$$($JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$,$G__77881$jscomp$inline_13017_format$jscomp$44_prev_format$jscomp$1_prev_input_color$jscomp$1$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$915$$,$JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$)?($app$main$ui$workspace$tokens$management$forms$controls$color_input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$($form$jscomp$187$$,
$input_name$jscomp$6$$,$index$jscomp$545$$,$JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$,$value_subfield$jscomp$2$$),$resolve_stream$jscomp$1$$.next($JSCompiler_inline_result$jscomp$13402_color_value$jscomp$6_hex__$1$jscomp$5$$)):null});$on_change$jscomp$83_on_click_swatch$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$1$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$6$$),$APP.$rumext$v2$adapt$$($index$jscomp$545$$)],
function($event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$){$event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$));$event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$=$APP.$cljs$core$truth_$$($app$main$data$tinycolor$hex_without_hash_prefix_QMARK_$$($event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$))?"#"+($event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$??
""):$event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$;$app$main$ui$workspace$tokens$management$forms$controls$color_input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$($form$jscomp$187$$,$input_name$jscomp$6$$,$index$jscomp$545$$,$event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$,$value_subfield$jscomp$2$$);return $resolve_stream$jscomp$1$$.next($event$jscomp$572_raw_value$jscomp$3_value__$1$jscomp$62$$)});$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$=
{...$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$,onChange:$on_change$jscomp$83_on_click_swatch$jscomp$1$$,value:$APP.$cljs$core$truth_$$($value$jscomp$915$$)?$value$jscomp$915$$:"",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$),slotStart:$alpha$jscomp$20_swatch$jscomp$1$$,hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$22_name$jscomp$450_valid_color$jscomp$1$$)};$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$=
$APP.$cljs$core$truth_$$($error$jscomp$140_props_77875$$)?{...$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$140_props_77875$$)}:$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$1$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$55$$),$APP.$rumext$v2$adapt$$($token$jscomp$155$$),
$APP.$rumext$v2$adapt$$($input_name$jscomp$6$$),$APP.$rumext$v2$adapt$$($index$jscomp$545$$),$APP.$rumext$v2$adapt$$($value_subfield$jscomp$2$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$28$$)],function(){var $subs$jscomp$21$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$){$error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$=$APP.$cljs$core$__destructure_map$$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$);
var $error__$1$jscomp$1_message$jscomp$115$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$,$APP.$cljs$cst$847$error$$);$error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$,$APP.$cljs$cst$260$value$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error__$1$jscomp$1_message$jscomp$115$$)?
$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$1_message$jscomp$115$$)):$error__$1$jscomp$1_message$jscomp$115$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$187$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$],
null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$6$$])),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$187$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$6$$])),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$187$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$cljs$cst$5545$color_result$$],null),""),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$187$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$])),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$);if($error__$1$jscomp$1_message$jscomp$115$$!=null)return $error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$=$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$1_message$jscomp$115$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$187$$,$APP.$cljs$core$assoc_in$$,
new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$input_name$jscomp$6$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$],null)),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$187$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,
5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$cljs$cst$5545$color_result$$],null),""),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$1_message$jscomp$115$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$format$format_token_value$$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$)]));var $input_value$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$187$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,
$input_name$jscomp$6$$],null),"");$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$187$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$568$errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$187$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$187$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$2$$,$index$jscomp$545$$,$cljs$cst$5545$color_result$$],null),$APP.$app$main$data$workspace$tokens$format$format_token_value$$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($input_value$$,
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($error_SINGLEQUOTE__map__77887__$1_p__77885_value__$1$jscomp$63$$))?$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$1$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$):$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$1_message$jscomp$115$$,$APP.$cljs$cst$139$type$$,"hint"],null))},$APP.$beicon$v2$core$map$$(function($result$jscomp$351$$){return $APP.$app$common$data$update_when$$($result$jscomp$351$$,
$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_assoc_message$$)},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$color_input$resolve_value$$,$tokens$jscomp$55$$,$token$jscomp$155$$,$token_name$jscomp$28$$),$APP.$beicon$v2$core$debounce$$(300,$resolve_stream$jscomp$1$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$21$$)}});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,
{children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$355_props__$1$jscomp$88_props__$2$jscomp$6$$),$APP.$cljs$core$truth_$$($color_ramp_open_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$color_input$ramp_STAR_$$,{color:$value$jscomp$915$$,onChange:$default_bullet_color$jscomp$1_hex$jscomp$19_on_change_value$jscomp$3_profile$jscomp$64$$}):null]})};
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$resolve_value$$=function($tokens$jscomp$56_tokens__$1$jscomp$7$$,$prev_token$jscomp$3$$,$_token_name_tmp_value$$,$value$jscomp$916$$){$_token_name_tmp_value$$=$APP.$app$common$types$token$split_font_family$$($value$jscomp$916$$);var $token$jscomp$156$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,"__PENPOT__FONT_FAMILY__PLACEHOLDER__",$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$260$value$$,
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$3$$),$APP.$cljs$cst$1966$typography$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$3$$),$APP.$cljs$cst$1742$font_family$$,$_token_name_tmp_value$$):$_token_name_tmp_value$$],null);$tokens$jscomp$56_tokens__$1$jscomp$7$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($tokens$jscomp$56_tokens__$1$jscomp$7$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$156$$),function($p1__77867_SHARP_$$){return $APP.$app$common$types$tokens_lib$make_token$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__77867_SHARP_$$,$prev_token$jscomp$3$$,$token$jscomp$156$$]))]))});return $APP.$beicon$v2$core$mapcat$$(function($errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$){$errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$156$$));var $map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$=$APP.$cljs$core$__destructure_map$$($errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$);$errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$,
$APP.$cljs$cst$568$errors$$);$map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$,$APP.$cljs$cst$4441$resolved_value$$);$map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$app$main$data$tokenscript$tokenscript_symbols__GT_penpot_unit$$($map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$):
$map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$;return $APP.$cljs$core$truth_$$($map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$)?(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$260$value$$,$map__77868__$1_resolved_value$jscomp$6_resolved_value__$1$jscomp$3$$],null)):(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$APP.$cljs$core$first$$($errors$jscomp$37_map__77868_resolved_tokens$jscomp$27$$)],
null))},$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$tokenscript$resolve_tokens$$($tokens$jscomp$56_tokens__$1$jscomp$7$$)):$APP.$app$main$data$style_dictionary$resolve_tokens_interactive$$($tokens$jscomp$56_tokens__$1$jscomp$7$$))};
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$fonts_combobox_STAR_$$=function($font$jscomp$49_props_77871$$){var $error$jscomp$141_name$jscomp$451$$=void 0,$token$jscomp$157$$=void 0,$tokens$jscomp$57$$=void 0,$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$=void 0;({token:$token$jscomp$157$$,tokens:$tokens$jscomp$57$$,name:$error$jscomp$141_name$jscomp$451$$,...$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$}=$font$jscomp$49_props_77871$$);var $form$jscomp$188$$=
(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$7$$=$error$jscomp$141_name$jscomp$451$$,$token_name$jscomp$29$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$188$$),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),null),$touched_QMARK_$jscomp$8$$=function(){var $and__5023__auto__$jscomp$820$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$188$$)),
$input_name$jscomp$7$$);return $and__5023__auto__$jscomp$820$$?$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$188$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$7$$],null)):$and__5023__auto__$jscomp$820$$}();$error$jscomp$141_name$jscomp$451$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$188$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$input_name$jscomp$7$$],null));var $value$jscomp$917$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$188$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$input_name$jscomp$7$$],null),"");$font$jscomp$49_props_77871$$=$APP.$app$main$fonts$find_font_family$$($value$jscomp$917$$);var $resolve_stream$jscomp$2$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$157$$)],function(){var $temp__5823__auto__$jscomp$227$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$157$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$227$$)?$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$227$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),
$hint$jscomp$23$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$2$$),$font_selector_open_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$font_selector_open_QMARK_$$=$APP.$cljs$core$_deref$$($font_selector_open_STAR_$$),$on_click_dropdown_button_on_close_font_selector$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font_selector_open_QMARK_$$)],function($e$jscomp$358$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$358$$);return $APP.$cljs$core$reset_BANG_$$($font_selector_open_STAR_$$,
$APP.$cljs$core$not$$($font_selector_open_QMARK_$$))}),$font_selector_button$$=(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$on_click_dropdown_button_on_close_font_selector$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-font-family-select"),icon:"arrow-down",variant:"action",type:"button"});$on_click_dropdown_button_on_close_font_selector$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($font_selector_open_STAR_$$,
!1)});var $on_select_font$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font$jscomp$49_props_77871$$)],function($family$jscomp$8_map__77878__$1_p__77877$$){$family$jscomp$8_map__77878__$1_p__77877$$=$APP.$cljs$core$__destructure_map$$($family$jscomp$8_map__77878__$1_p__77877$$);$family$jscomp$8_map__77878__$1_p__77877$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$8_map__77878__$1_p__77877$$,$APP.$cljs$cst$2619$family$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$917$$,
$family$jscomp$8_map__77878__$1_p__77877$$)?($APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$188$$,$input_name$jscomp$7$$,$family$jscomp$8_map__77878__$1_p__77877$$,!0),$resolve_stream$jscomp$2$$.next($family$jscomp$8_map__77878__$1_p__77877$$)):null}),$on_change$jscomp$84$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$2$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$7$$)],function($event$jscomp$573_value__$1$jscomp$65$$){$event$jscomp$573_value__$1$jscomp$65$$=
$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$573_value__$1$jscomp$65$$));$APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$188$$,$input_name$jscomp$7$$,$event$jscomp$573_value__$1$jscomp$65$$,!1);return $resolve_stream$jscomp$2$$.next($event$jscomp$573_value__$1$jscomp$65$$)});$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$={...$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$,onChange:$on_change$jscomp$84$$,
value:$APP.$cljs$core$truth_$$($value$jscomp$917$$)?$value$jscomp$917$$:"",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$23$$),slotEnd:$font_selector_button$$,variant:"comfortable",hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$23$$)};$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error$jscomp$141_name$jscomp$451$$)?$touched_QMARK_$jscomp$8$$:$error$jscomp$141_name$jscomp$451$$)?
{...$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$141_name$jscomp$451$$)}:$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$2$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$57$$),$APP.$rumext$v2$adapt$$($token$jscomp$157$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$7$$),
$APP.$rumext$v2$adapt$$($touched_QMARK_$jscomp$8$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$29$$)],function(){var $subs$jscomp$22$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error__$1$jscomp$2_message$jscomp$116_p__77882$$){var $map__77883__$1_value__$1$jscomp$66$$=$APP.$cljs$core$__destructure_map$$($error__$1$jscomp$2_message$jscomp$116_p__77882$$);$error__$1$jscomp$2_message$jscomp$116_p__77882$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77883__$1_value__$1$jscomp$66$$,
$APP.$cljs$cst$847$error$$);$map__77883__$1_value__$1$jscomp$66$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77883__$1_value__$1$jscomp$66$$,$APP.$cljs$cst$260$value$$);if($APP.$cljs$core$truth_$$($touched_QMARK_$jscomp$8$$)){if($APP.$cljs$core$truth_$$($error__$1$jscomp$2_message$jscomp$116_p__77882$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$188$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$4854$extra_errors$$,$input_name$jscomp$7$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$2_message$jscomp$116_p__77882$$],null)),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$2_message$jscomp$116_p__77882$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$2_message$jscomp$116_p__77882$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__77883__$1_value__$1$jscomp$66$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$188$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$7$$]));return $APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$2$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,
$error__$1$jscomp$2_message$jscomp$116_p__77882$$,$APP.$cljs$cst$139$type$$,"hint"],null))}return null},$APP.$beicon$v2$core$map$$(function($result$jscomp$352$$){return $APP.$app$common$data$update_when$$($result$jscomp$352$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_message$$)},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$resolve_value$$,$tokens$jscomp$57$$,
$token$jscomp$157$$,$token_name$jscomp$29$$),$APP.$beicon$v2$core$debounce$$(300,$resolve_stream$jscomp$2$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$22$$)}});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$356_props__$1$jscomp$89_props__$2$jscomp$7$$),$APP.$cljs$core$truth_$$($font_selector_open_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_controls_fonts_combobox__font-select-wrapper",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_selector_STAR_$$,{currentFont:$font$jscomp$49_props_77871$$,onSelect:$on_select_font$$,onClose:$on_click_dropdown_button_on_close_font_selector$$,fullSize:!0})}):null]})};
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$on_composite_combobox_token_change$cljs$0core$0IFn$0_invoke$0arity$04$$=function($form$jscomp$190$$,$field$jscomp$10$$,$value$jscomp$919$$,$trim_QMARK_$jscomp$5$$){function $clean_errors$jscomp$2$$($errors$jscomp$38$$){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$38$$,$field$jscomp$10$$))}$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$190$$,
function($state$jscomp$1092$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc_in$$($state$jscomp$1092$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$field$jscomp$10$$],null),$APP.$cljs$core$truth_$$($trim_QMARK_$jscomp$5$$)?$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$919$$):
$value$jscomp$919$$),$APP.$cljs$cst$568$errors$$,$clean_errors$jscomp$2$$),$APP.$cljs$cst$4854$extra_errors$$,$clean_errors$jscomp$2$$)})};
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$composite_fonts_combobox_STAR_$$=function($font$jscomp$50_props_77888$$){var $error$jscomp$142_name$jscomp$452$$=void 0,$token$jscomp$158$$=void 0,$tokens$jscomp$58$$=void 0,$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$=void 0;({token:$token$jscomp$158$$,tokens:$tokens$jscomp$58$$,name:$error$jscomp$142_name$jscomp$452$$,...$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$}=$font$jscomp$50_props_77888$$);
var $form$jscomp$191$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$8$$=$error$jscomp$142_name$jscomp$452$$,$token_name$jscomp$30$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$191$$),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),null);$error$jscomp$142_name$jscomp$452$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$191$$),
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$8$$],null));var $value$jscomp$920$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$191$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$8$$],null),"");$font$jscomp$50_props_77888$$=
$APP.$app$main$fonts$find_font_family$$($value$jscomp$920$$);var $resolve_stream$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$158$$)],function(){var $temp__5823__auto__$jscomp$228$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$158$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$input_name$jscomp$8$$],null));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$228$$)?
$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$228$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$hint$jscomp$24$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$3$$),$font_selector_open_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$font_selector_open_QMARK_$jscomp$1$$=$APP.$cljs$core$_deref$$($font_selector_open_STAR_$jscomp$1$$),
$on_click_dropdown_button$jscomp$1_on_close_font_selector$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font_selector_open_QMARK_$jscomp$1$$)],function($e$jscomp$359$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$359$$);return $APP.$cljs$core$reset_BANG_$$($font_selector_open_STAR_$jscomp$1$$,$APP.$cljs$core$not$$($font_selector_open_QMARK_$jscomp$1$$))}),$font_selector_button$jscomp$1$$=(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{onClick:$on_click_dropdown_button$jscomp$1_on_close_font_selector$jscomp$1$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-font-family-select"),icon:"arrow-down",variant:"action",type:"button"});$on_click_dropdown_button$jscomp$1_on_close_font_selector$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($font_selector_open_STAR_$jscomp$1$$,!1)});var $on_select_font$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font$jscomp$50_props_77888$$)],
function($family$jscomp$9_map__77890__$1_p__77889$$){$family$jscomp$9_map__77890__$1_p__77889$$=$APP.$cljs$core$__destructure_map$$($family$jscomp$9_map__77890__$1_p__77889$$);$family$jscomp$9_map__77890__$1_p__77889$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($family$jscomp$9_map__77890__$1_p__77889$$,$APP.$cljs$cst$2619$family$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$920$$,$family$jscomp$9_map__77890__$1_p__77889$$)?($app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$on_composite_combobox_token_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$191$$,
$input_name$jscomp$8$$,$family$jscomp$9_map__77890__$1_p__77889$$,!0),$resolve_stream$jscomp$3$$.next($family$jscomp$9_map__77890__$1_p__77889$$)):null}),$on_change$jscomp$85$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$3$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$8$$)],function($event$jscomp$574_value__$1$jscomp$68$$){$event$jscomp$574_value__$1$jscomp$68$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$574_value__$1$jscomp$68$$));
$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$on_composite_combobox_token_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$191$$,$input_name$jscomp$8$$,$event$jscomp$574_value__$1$jscomp$68$$,!1);return $resolve_stream$jscomp$3$$.next($event$jscomp$574_value__$1$jscomp$68$$)});$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$={...$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$,onChange:$on_change$jscomp$85$$,value:$APP.$cljs$core$truth_$$($value$jscomp$920$$)?
$value$jscomp$920$$:"",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$24$$),slotEnd:$font_selector_button$jscomp$1$$,variant:"comfortable",hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$24$$)};$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$=$APP.$cljs$core$truth_$$($error$jscomp$142_name$jscomp$452$$)?{...$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$142_name$jscomp$452$$)}:
$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$3$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$58$$),$APP.$rumext$v2$adapt$$($token$jscomp$158$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$8$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$30$$)],function(){var $subs$jscomp$23$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$){$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$=
$APP.$cljs$core$__destructure_map$$($error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$);var $error__$1$jscomp$3_message$jscomp$117$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$,$APP.$cljs$cst$847$error$$);$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$,
$APP.$cljs$cst$260$value$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error__$1$jscomp$3_message$jscomp$117$$)?$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$3_message$jscomp$117$$)):$error__$1$jscomp$3_message$jscomp$117$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$191$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$8$$])),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$191$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$8$$])),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$191$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$])),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$3$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$);if($error__$1$jscomp$3_message$jscomp$117$$!=null)return $error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$=$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$3_message$jscomp$117$$),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$191$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$8$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$],null)),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$3$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$3_message$jscomp$117$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$]));var $input_value$jscomp$1$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$191$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$8$$],null),"");$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$191$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$568$errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$191$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));return $APP.$cljs$core$empty_QMARK_$$($error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($input_value$jscomp$1$$,$error_SINGLEQUOTE_$jscomp$1_map__77893__$1_p__77892_value__$1$jscomp$69$$)?
$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$3$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$):$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$3$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$3_message$jscomp$117$$,$APP.$cljs$cst$139$type$$,"hint"],null))},$APP.$beicon$v2$core$map$$(function($result$jscomp$353$$){return $APP.$app$common$data$update_when$$($result$jscomp$353$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_message$$)},
$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$resolve_value$$,$tokens$jscomp$58$$,$token$jscomp$158$$,$token_name$jscomp$30$$),$APP.$beicon$v2$core$debounce$$(300,$resolve_stream$jscomp$3$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$23$$)}});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,
$props$jscomp$357_props__$1$jscomp$90_props__$2$jscomp$8$$),$APP.$cljs$core$truth_$$($font_selector_open_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_controls_fonts_combobox__font-select-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$font_selector_STAR_$$,{currentFont:$font$jscomp$50_props_77888$$,onSelect:$on_select_font$jscomp$1$$,onClose:$on_click_dropdown_button$jscomp$1_on_close_font_selector$jscomp$1$$,
fullSize:!0})}):null]})};
$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value_tokenscript$$=function($token_result_tokens$jscomp$59$$,$prev_token$jscomp$4_token$jscomp$inline_13020$$,$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$){$prev_token$jscomp$4_token$jscomp$inline_13020$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($prev_token$jscomp$4_token$jscomp$inline_13020$$,$APP.$cljs$cst$260$value$$,
$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$);$token_result_tokens$jscomp$59$$=$APP.$app$main$data$tokenscript$process_tokens$$($token_result_tokens$jscomp$59$$).resolver.updateToken({tokenPath:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$4_token$jscomp$inline_13020$$),tokenData:$APP.$app$main$data$tokenscript$clj__GT_token__GT_tokenscript_token$$($prev_token$jscomp$4_token$jscomp$inline_13020$$)}).resolved;
$token_result_tokens$jscomp$59$$ instanceof $APP.$shadow$js$shim$module$0$0penpot$0tokenscript$$.ProcessorError?($G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$=$token_result_tokens$jscomp$59$$.dependencyChain,$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$=$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$==
null?null:$APP.$cljs$core$seq$$($G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$),$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$=$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$==null?null:$APP.$cljs$core$rest$$($G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$),
$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$APP.$app$main$data$workspace$tokens$errors$error_with_value$$($APP.$cljs$cst$4431$error_DOT_style_dictionary_SLASH_missing_reference$$,$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$)],
null)):$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$=$token_result_tokens$jscomp$59$$ instanceof Error?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$APP.$app$main$data$workspace$tokens$errors$error_with_value$$($APP.$cljs$cst$4418$error_DOT_style_dictionary_SLASH_invalid_token_value$$,$G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$)],
null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$260$value$$,$token_result_tokens$jscomp$59$$],null);return(0,$APP.$beicon$v2$core$of$$)($G__77899$jscomp$inline_8731_G__77899__$1$jscomp$inline_8732_JSCompiler_inline_result$jscomp$1826_JSCompiler_temp$jscomp$1825_value$jscomp$921$$)};
$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value$$=function($tokens$jscomp$60_tokens__$1$jscomp$8$$,$prev_token$jscomp$5$$,$token_name$jscomp$31$$,$value$jscomp$922$$){var $valid_token_name_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$823$$=typeof $token_name$jscomp$31$$==="string";return $and__5023__auto__$jscomp$823$$?$APP.$cljs$core$re_matches$$($APP.$app$common$types$token$token_name_validation_regex$$,$token_name$jscomp$31$$):$and__5023__auto__$jscomp$823$$}(),
$token$jscomp$159$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$value$jscomp$922$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$core$not$$($valid_token_name_QMARK_$jscomp$1$$)||$APP.$cuerdas$core$blank_QMARK_$$($token_name$jscomp$31$$)?"__PENPOT__TOKEN__NAME__PLACEHOLDER__":$token_name$jscomp$31$$],null);$tokens$jscomp$60_tokens__$1$jscomp$8$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($tokens$jscomp$60_tokens__$1$jscomp$8$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$5$$)),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$159$$),function($p1__77900_SHARP_$$){return $APP.$app$common$types$tokens_lib$make_token$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__77900_SHARP_$$,$prev_token$jscomp$5$$,
$token$jscomp$159$$]))]))});return $APP.$beicon$v2$core$mapcat$$(function($errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$){$errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$159$$));var $map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$=$APP.$cljs$core$__destructure_map$$($errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$);
$errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$,$APP.$cljs$cst$568$errors$$);$map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$,$APP.$cljs$cst$4441$resolved_value$$);$map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$=
$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$app$main$data$tokenscript$tokenscript_symbols__GT_penpot_unit$$($map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$):$map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$;return $APP.$cljs$core$truth_$$($map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$)?(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$260$value$$,
$map__77901__$1_resolved_value$jscomp$7_resolved_value__$1$jscomp$4$$],null)):(0,$APP.$beicon$v2$core$of$$)(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$847$error$$,$APP.$cljs$core$first$$($errors$jscomp$39_map__77901_resolved_tokens$jscomp$28$$)],null))},$APP.$app$main$data$style_dictionary$resolve_tokens_interactive$$($tokens$jscomp$60_tokens__$1$jscomp$8$$))};
$app$main$ui$workspace$tokens$management$forms$controls$input$input_STAR_$$=function($props_77903_touched_QMARK_$jscomp$9$$){var $error$jscomp$143_name$jscomp$453$$=void 0,$token$jscomp$160$$=void 0,$tokens$jscomp$61$$=void 0,$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$=void 0;({name:$error$jscomp$143_name$jscomp$453$$,tokens:$tokens$jscomp$61$$,token:$token$jscomp$160$$,...$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$}=$props_77903_touched_QMARK_$jscomp$9$$);var $form$jscomp$192$$=
(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$9$$=$error$jscomp$143_name$jscomp$453$$,$token_name$jscomp$32$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$192$$),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),null);$props_77903_touched_QMARK_$jscomp$9$$=function(){var $and__5023__auto__$jscomp$824$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$192$$)),
$input_name$jscomp$9$$);return $and__5023__auto__$jscomp$824$$?$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$192$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$9$$],null)):$and__5023__auto__$jscomp$824$$}();$error$jscomp$143_name$jscomp$453$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$192$$),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$input_name$jscomp$9$$],null));var $value$jscomp$923$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$192$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$input_name$jscomp$9$$],null),""),$resolve_stream$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$160$$)],
function(){return $APP.$cljs$core$contains_QMARK_$$($token$jscomp$160$$,$APP.$cljs$cst$260$value$$)?$APP.$beicon$v2$core$behavior_subject$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$160$$)):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$hint$jscomp$25$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$4$$),$on_change$jscomp$86$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$4$$),
$APP.$rumext$v2$adapt$$($input_name$jscomp$9$$)],function($event$jscomp$575_value__$1$jscomp$70$$){$event$jscomp$575_value__$1$jscomp$70$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$575_value__$1$jscomp$70$$));$APP.$app$util$forms$on_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$192$$,$input_name$jscomp$9$$,$event$jscomp$575_value__$1$jscomp$70$$,!0);return $resolve_stream$jscomp$4$$.next($event$jscomp$575_value__$1$jscomp$70$$)});$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$=
{...$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$,onChange:$on_change$jscomp$86$$,defaultValue:$value$jscomp$923$$,variant:"comfortable",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$25$$),hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$25$$)};$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error$jscomp$143_name$jscomp$453$$)?$props_77903_touched_QMARK_$jscomp$9$$:
$error$jscomp$143_name$jscomp$453$$)?{...$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$143_name$jscomp$453$$)}:$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$4$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$61$$),$APP.$rumext$v2$adapt$$($token$jscomp$160$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$9$$),
$APP.$rumext$v2$adapt$$($token_name$jscomp$32$$)],function(){var $resolve_value$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value_tokenscript$$:$app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value$$,$subs$jscomp$24$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error__$1$jscomp$4_message$jscomp$118_p__77904$$){var $map__77905__$1_value__$1$jscomp$71$$=
$APP.$cljs$core$__destructure_map$$($error__$1$jscomp$4_message$jscomp$118_p__77904$$);$error__$1$jscomp$4_message$jscomp$118_p__77904$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77905__$1_value__$1$jscomp$71$$,$APP.$cljs$cst$847$error$$);$map__77905__$1_value__$1$jscomp$71$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77905__$1_value__$1$jscomp$71$$,$APP.$cljs$cst$260$value$$);var $touched_QMARK___$1$jscomp$1$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$192$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$input_name$jscomp$9$$],null));if($APP.$cljs$core$truth_$$($touched_QMARK___$1$jscomp$1$$)){if($APP.$cljs$core$truth_$$($error__$1$jscomp$4_message$jscomp$118_p__77904$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$192$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$4854$extra_errors$$,$input_name$jscomp$9$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$4_message$jscomp$118_p__77904$$],null)),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$4$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$4_message$jscomp$118_p__77904$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$4_message$jscomp$118_p__77904$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__77905__$1_value__$1$jscomp$71$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$192$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$9$$]));return $APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$4$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,
$error__$1$jscomp$4_message$jscomp$118_p__77904$$,$APP.$cljs$cst$139$type$$,"hint"],null))}return null},$APP.$beicon$v2$core$map$$(function($result$jscomp$355$$){return $APP.$app$common$data$update_when$$($result$jscomp$355$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_message$$)},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($resolve_value$$,$tokens$jscomp$61$$,$token$jscomp$160$$,$token_name$jscomp$32$$),$APP.$beicon$v2$core$debounce$$(300,
$resolve_stream$jscomp$4$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$24$$)}});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$358_props__$1$jscomp$91_props__$2$jscomp$9$$)};
$app$main$ui$workspace$tokens$management$forms$controls$input$on_composite_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$=function($form$jscomp$194$$,$field$jscomp$12$$,$value$jscomp$925$$){function $clean_errors$jscomp$3$$($G__77911__$1_G__77911__$2_errors$jscomp$40$$){$G__77911__$1_G__77911__$2_errors$jscomp$40$$=$G__77911__$1_G__77911__$2_errors$jscomp$40$$==null?null:$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($G__77911__$1_G__77911__$2_errors$jscomp$40$$,$APP.$cljs$cst$260$value$$,
function($p1__77906_SHARP_$$){return $APP.$cljs$core$map_QMARK_$$($p1__77906_SHARP_$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($p1__77906_SHARP_$$,$field$jscomp$12$$):null});$G__77911__$1_G__77911__$2_errors$jscomp$40$$=$G__77911__$1_G__77911__$2_errors$jscomp$40$$==null?null:$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($G__77911__$1_G__77911__$2_errors$jscomp$40$$,$APP.$cljs$cst$260$value$$,function($p1__77907_SHARP_$$){return $APP.$cljs$core$seq$$($p1__77907_SHARP_$$)?
$p1__77907_SHARP_$$:null});return $G__77911__$1_G__77911__$2_errors$jscomp$40$$==null?null:$APP.$cljs$core$not_empty$$($G__77911__$1_G__77911__$2_errors$jscomp$40$$)}$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$194$$,function($state$jscomp$1093$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc_in$$($APP.$cljs$core$assoc_in$$($state$jscomp$1093$$,new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$field$jscomp$12$$],null),$APP.$cljs$core$truth_$$(!0)?$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$925$$):$value$jscomp$925$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$APP.$cljs$cst$260$value$$,$field$jscomp$12$$],null),!0),$APP.$cljs$cst$568$errors$$,$clean_errors$jscomp$3$$),$APP.$cljs$cst$4854$extra_errors$$,
$clean_errors$jscomp$3$$)})};
$app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$=function($error$jscomp$144_props_77912_props__$3$jscomp$1$$){var $name$jscomp$454$$=void 0,$token$jscomp$161$$=void 0,$tokens$jscomp$62$$=void 0,$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$=void 0;({name:$name$jscomp$454$$,tokens:$tokens$jscomp$62$$,token:$token$jscomp$161$$,...$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$}=$error$jscomp$144_props_77912_props__$3$jscomp$1$$);var $form$jscomp$195$$=
(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$10$$=$name$jscomp$454$$,$token_name$jscomp$33$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$195$$),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),null);$error$jscomp$144_props_77912_props__$3$jscomp$1$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$195$$),
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null));var $value$jscomp$926$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$195$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null),""),$touched_QMARK_$jscomp$10$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$195$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1610$touched$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null)),$resolve_stream$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$161$$)],function(){var $temp__5823__auto__$jscomp$229$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$161$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$229$$)?$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$229$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$hint$jscomp$26$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$5$$),
$on_change$jscomp$87$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$5$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$10$$)],function($event$jscomp$576_value__$1$jscomp$73$$){$event$jscomp$576_value__$1$jscomp$73$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$576_value__$1$jscomp$73$$));$app$main$ui$workspace$tokens$management$forms$controls$input$on_composite_input_change$cljs$0core$0IFn$0_invoke$0arity$04$$($form$jscomp$195$$,
$input_name$jscomp$10$$,$event$jscomp$576_value__$1$jscomp$73$$);return $resolve_stream$jscomp$5$$.next($event$jscomp$576_value__$1$jscomp$73$$)});$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$={...$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$,onChange:$on_change$jscomp$87$$,defaultValue:$value$jscomp$926$$,variant:"comfortable",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$26$$),hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$26$$)};
$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($touched_QMARK_$jscomp$10$$)?$error$jscomp$144_props_77912_props__$3$jscomp$1$$:$touched_QMARK_$jscomp$10$$)?{...$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$144_props_77912_props__$3$jscomp$1$$)}:$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$;$error$jscomp$144_props_77912_props__$3$jscomp$1$$=
$APP.$cljs$core$not$$($error$jscomp$144_props_77912_props__$3$jscomp$1$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($input_name$jscomp$10$$,$cljs$cst$5546$reference$$)?{...$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$,hintFormated:!0}:$props$jscomp$359_props__$1$jscomp$92_props__$2$jscomp$10$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$5$$),$APP.$rumext$v2$adapt$$($tokens$jscomp$62$$),$APP.$rumext$v2$adapt$$($token$jscomp$161$$),
$APP.$rumext$v2$adapt$$($input_name$jscomp$10$$),$APP.$rumext$v2$adapt$$($name$jscomp$454$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$33$$)],function(){var $subs$jscomp$25$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$){$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$=$APP.$cljs$core$__destructure_map$$($error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$);
var $error__$1$jscomp$5_input_value$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$,$APP.$cljs$cst$847$error$$);$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$,$APP.$cljs$cst$260$value$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error__$1$jscomp$5_input_value$jscomp$2$$)?
$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$5_input_value$jscomp$2$$)):$error__$1$jscomp$5_input_value$jscomp$2$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$10$$])),
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$10$$])),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,
$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$])),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$5$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$);if($error__$1$jscomp$5_input_value$jscomp$2$$!=null)return $error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$=$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$5_input_value$jscomp$2$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$195$$,
$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$],null)),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$5$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,
$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$5_input_value$jscomp$2$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$195$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$input_name$jscomp$10$$],null),"");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$454$$,
$APP.$cljs$cst$1749$line_height$$)){var $JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=$APP.$app$common$files$tokens$parse_token_value$$($error__$1$jscomp$5_input_value$jscomp$2$$);if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)){var $map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$=
$APP.$cljs$core$__destructure_map$$($JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$);$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$,$APP.$cljs$cst$4411$unit$$);$map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$,$APP.$cljs$cst$260$value$$);var $font_size$jscomp$inline_13026$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$195$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1744$font_size$$],null),"");$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("%",$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)?$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$)/100:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("px",$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)?
$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$)/$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($font_size$jscomp$inline_13026$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(null,$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)?$map__77915__$1$jscomp$inline_13023_value__$2$jscomp$inline_13025$$:
null;$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=$APP.$app$main$data$workspace$tokens$format$format_token_value$$($JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)}else $JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=
null}else $JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$=$APP.$app$main$data$workspace$tokens$format$format_token_value$$($error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$);$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$)?$JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$:$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,
$APP.$cljs$core$update$$,$APP.$cljs$cst$568$errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$195$$,
$APP.$cljs$core$update$$,$cljs$cst$5544$async_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5546$reference$$]));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($error__$1$jscomp$5_input_value$jscomp$2$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10602_calculated$jscomp$inline_13027_resolved_value$jscomp$8_temp__5825__auto__$jscomp$inline_13022_unit$jscomp$inline_13024$$))?$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$5$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$):$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$5$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$2_map__77914__$1_message$jscomp$119_p__77913_value__$1$jscomp$74$$,$APP.$cljs$cst$139$type$$,"hint"],null))},$APP.$beicon$v2$core$map$$(function($result$jscomp$356$$){return $APP.$app$common$data$update_when$$($result$jscomp$356$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_assoc_message$$)},
$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value$$,$tokens$jscomp$62$$,$token$jscomp$161$$,$token_name$jscomp$33$$),$APP.$beicon$v2$core$debounce$$(300,$resolve_stream$jscomp$5$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$25$$)}});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$error$jscomp$144_props_77912_props__$3$jscomp$1$$)};
$app$main$ui$workspace$tokens$management$forms$controls$input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$=function($form$jscomp$197$$,$field$jscomp$14$$,$index$jscomp$547$$,$value$jscomp$928$$,$value_subfield$jscomp$4$$){function $clean_errors$jscomp$4$$($errors$jscomp$41$$){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($errors$jscomp$41$$,$field$jscomp$14$$))}$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($form$jscomp$197$$,
function($state$jscomp$1094$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc_in$$($state$jscomp$1094$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$4$$,$index$jscomp$547$$,$field$jscomp$14$$],null),$APP.$cljs$core$truth_$$(!0)?$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$928$$):
$value$jscomp$928$$),$APP.$cljs$cst$568$errors$$,$clean_errors$jscomp$4$$),$APP.$cljs$cst$4854$extra_errors$$,$clean_errors$jscomp$4$$)})};
$app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$=function($error$jscomp$145_props_77919$$){var $index$jscomp$548$$=void 0,$name$jscomp$455_value_from_form$$=void 0,$token$jscomp$162$$=void 0,$value_subfield$jscomp$5$$=void 0,$tokens$jscomp$63$$=void 0,$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$=void 0;({name:$name$jscomp$455_value_from_form$$,tokens:$tokens$jscomp$63$$,token:$token$jscomp$162$$,index:$index$jscomp$548$$,valueSubfield:$value_subfield$jscomp$5$$,
...$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$}=$error$jscomp$145_props_77919$$);var $form$jscomp$198$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$11$$=$name$jscomp$455_value_from_form$$,$token_name$jscomp$34$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$198$$),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),null);$error$jscomp$145_props_77919$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form$jscomp$198$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,$index$jscomp$548$$,$input_name$jscomp$11$$],null));$name$jscomp$455_value_from_form$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$198$$),
new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,$index$jscomp$548$$,$input_name$jscomp$11$$],null),"");var $resolve_stream$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$162$$),$APP.$rumext$v2$adapt$$($index$jscomp$548$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$11$$)],function(){var $temp__5823__auto__$jscomp$230$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$162$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,$index$jscomp$548$$,$input_name$jscomp$11$$],null));return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$230$$)?$APP.$beicon$v2$core$behavior_subject$$($temp__5823__auto__$jscomp$230$$):$APP.$beicon$v2$core$subject$$()}),$hint_STAR_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),
$hint$jscomp$27$$=$APP.$cljs$core$_deref$$($hint_STAR_$jscomp$6$$),$on_change$jscomp$88$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$6$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$11$$),$APP.$rumext$v2$adapt$$($index$jscomp$548$$)],function($event$jscomp$577_value$jscomp$930$$){$event$jscomp$577_value$jscomp$930$$=$APP.$app$util$dom$get_input_value$$($APP.$app$util$dom$get_target$$($event$jscomp$577_value$jscomp$930$$));$app$main$ui$workspace$tokens$management$forms$controls$input$on_indexed_input_change$cljs$0core$0IFn$0_invoke$0arity$06$$($form$jscomp$198$$,
$input_name$jscomp$11$$,$index$jscomp$548$$,$event$jscomp$577_value$jscomp$930$$,$value_subfield$jscomp$5$$);return $resolve_stream$jscomp$6$$.next($event$jscomp$577_value$jscomp$930$$)});$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$={...$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$,onChange:$on_change$jscomp$88$$,value:$name$jscomp$455_value_from_form$$,variant:"comfortable",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$27$$),
hintType:$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hint$jscomp$27$$)};$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$=$APP.$cljs$core$truth_$$($error$jscomp$145_props_77919$$)?{...$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$,hintType:"error",hintMessage:$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error$jscomp$145_props_77919$$)}:$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$;
$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$=$APP.$cljs$core$not$$($error$jscomp$145_props_77919$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($input_name$jscomp$11$$,$cljs$cst$5546$reference$$)?{...$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$,hintFormated:!0}:$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($resolve_stream$jscomp$6$$),
$APP.$rumext$v2$adapt$$($tokens$jscomp$63$$),$APP.$rumext$v2$adapt$$($token$jscomp$162$$),$APP.$rumext$v2$adapt$$($input_name$jscomp$11$$),$APP.$rumext$v2$adapt$$($index$jscomp$548$$),$APP.$rumext$v2$adapt$$($value_subfield$jscomp$5$$),$APP.$rumext$v2$adapt$$($token_name$jscomp$34$$)],function(){var $subs$jscomp$26$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$){$error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$=
$APP.$cljs$core$__destructure_map$$($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$);var $error__$1$jscomp$6_message$jscomp$120$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$,$APP.$cljs$cst$847$error$$);$error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$,
$APP.$cljs$cst$260$value$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($error__$1$jscomp$6_message$jscomp$120$$)?$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$4439$error_SLASH_value$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$6_message$jscomp$120$$)):$error__$1$jscomp$6_message$jscomp$120$$))return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$198$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$568$errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,$index$jscomp$548$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$11$$])),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$198$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,
$index$jscomp$548$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$input_name$jscomp$11$$])),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$198$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$])),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$6$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$);
if($error__$1$jscomp$6_message$jscomp$120$$!=null)return $error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$=$APP.$cljs$cst$141$message$$.$cljs$core$IFn$_invoke$arity$1$($error__$1$jscomp$6_message$jscomp$120$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$198$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,
$index$jscomp$548$$,$input_name$jscomp$11$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$],null)),$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$6$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$,$APP.$cljs$cst$139$type$$,"error"],null));$error__$1$jscomp$6_message$jscomp$120$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$format$format_token_value$$($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$)]));var $input_value$jscomp$3$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$198$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$5$$,
$index$jscomp$548$$,$input_name$jscomp$11$$],null),"");$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$198$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$568$errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$198$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$]));
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($input_value$jscomp$3$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($error_SINGLEQUOTE_$jscomp$3_map__77921__$1_p__77920_value$jscomp$931$$))?$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$6$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$):$APP.$cljs$core$reset_BANG_$$($hint_STAR_$jscomp$6$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$141$message$$,$error__$1$jscomp$6_message$jscomp$120$$,$APP.$cljs$cst$139$type$$,
"hint"],null))},$APP.$beicon$v2$core$map$$(function($result$jscomp$357$$){return $APP.$app$common$data$update_when$$($result$jscomp$357$$,$APP.$cljs$cst$847$error$$,$app$main$data$workspace$tokens$errors$resolve_error_assoc_message$$)},$APP.$beicon$v2$core$mapcat$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$04$$($app$main$ui$workspace$tokens$management$forms$controls$input$resolve_value$$,$tokens$jscomp$63$$,$token$jscomp$162$$,$token_name$jscomp$34$$),$APP.$beicon$v2$core$debounce$$(300,
$resolve_stream$jscomp$6$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$26$$)}});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$input$input_STAR_$$,$props$jscomp$360_props__$1$jscomp$93_props__$2$jscomp$11_props__$3$jscomp$2$$)};
$app$main$ui$workspace$tokens$management$forms$controls$select$select_indexed_STAR_$$=function($props_77902_value$jscomp$932$$){var $index$jscomp$549$$=void 0,$name$jscomp$456_on_change$jscomp$89$$=void 0,$indexed_type$$=void 0,$props$jscomp$361$$=void 0;({name:$name$jscomp$456_on_change$jscomp$89$$,index:$index$jscomp$549$$,indexedType:$indexed_type$$,...$props$jscomp$361$$}=$props_77902_value$jscomp$932$$);var $form$jscomp$199$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$input_name$jscomp$12$$=
$name$jscomp$456_on_change$jscomp$89$$;$props_77902_value$jscomp$932$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$_deref$$($form$jscomp$199$$),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$indexed_type$$,$index$jscomp$549$$,$input_name$jscomp$12$$],null),!1);$name$jscomp$456_on_change$jscomp$89$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($input_name$jscomp$12$$)],
function($id$jscomp$964_is_inner_QMARK_$$){$id$jscomp$964_is_inner_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$964_is_inner_QMARK_$$,"inner");return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$199$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$indexed_type$$,$index$jscomp$549$$,$input_name$jscomp$12$$],null),
$id$jscomp$964_is_inner_QMARK_$$)});return $APP.$rumext$v2$create_element$$($APP.$app$main$ui$ds$controls$select$select_STAR_$$,{...$props$jscomp$361$$,defaultSelected:$APP.$cljs$core$truth_$$($props_77902_value$jscomp$932$$)?"inner":"drop",variant:"ghost",onChange:$name$jscomp$456_on_change$jscomp$89$$})};
$app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens$$=function($shape$jscomp$1001$$,$token_name$jscomp$35$$,$container$jscomp$91$$){var $temp__5825__auto__$jscomp$377$$=$APP.$cljs$cst$1857$applied_tokens$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1001$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$377$$)?function $app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens_$_iter__77924$$($s__77925$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(var $s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$=
$s__77925$$;;)if($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$=$APP.$cljs$core$seq$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$)){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$)){var $JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$=$APP.$cljs$core$_chunked_first$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$),$size__5502__auto__$jscomp$49$$=
$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$),$attribute$jscomp$3_b__77927$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$49$$);a:{for(var $i__77926$jscomp$inline_8734$$=0;;)if($i__77926$jscomp$inline_8734$$<$size__5502__auto__$jscomp$49$$){var $b$jscomp$inline_13029_vec__77928$jscomp$inline_8735$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$,
$i__77926$jscomp$inline_8734$$),$attribute$jscomp$inline_8736_x$jscomp$inline_13030$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_13029_vec__77928$jscomp$inline_8735$$,0,null),$applied_token_name$jscomp$inline_8737$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_13029_vec__77928$jscomp$inline_8735$$,1,null);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($applied_token_name$jscomp$inline_8737$$,$token_name$jscomp$35$$)&&($b$jscomp$inline_13029_vec__77928$jscomp$inline_8735$$=
$attribute$jscomp$3_b__77927$$,$attribute$jscomp$inline_8736_x$jscomp$inline_13030$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$cljs$cst$5324$applied_token$$,$APP.$cljs$cst$2500$shape_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1001$$),$cljs$cst$5547$attribute$$,$attribute$jscomp$inline_8736_x$jscomp$inline_13030$$,$APP.$cljs$cst$4070$token_name$$,$applied_token_name$jscomp$inline_8737$$,$APP.$cljs$cst$2541$container$$,$container$jscomp$91$$],
null),$b$jscomp$inline_13029_vec__77928$jscomp$inline_8735$$.add($attribute$jscomp$inline_8736_x$jscomp$inline_13030$$));$i__77926$jscomp$inline_8734$$+=1}else{$JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$=!0;break a}$JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$=void 0}return $JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($attribute$jscomp$3_b__77927$$),
$app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens_$_iter__77924$$($APP.$cljs$core$_chunked_rest$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($attribute$jscomp$3_b__77927$$),null)}$JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$=$APP.$cljs$core$first$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$);$attribute$jscomp$3_b__77927$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$,
0,null);$JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$,1,null);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$,$token_name$jscomp$35$$))return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
5,[$APP.$cljs$cst$139$type$$,$cljs$cst$5324$applied_token$$,$APP.$cljs$cst$2500$shape_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1001$$),$cljs$cst$5547$attribute$$,$attribute$jscomp$3_b__77927$$,$APP.$cljs$cst$4070$token_name$$,$JSCompiler_inline_result$jscomp$1827_applied_token_name$jscomp$1_c__5501__auto__$jscomp$49_vec__77931$$,$APP.$cljs$cst$2541$container$$,$container$jscomp$91$$],null),$app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens_$_iter__77924$$($APP.$cljs$core$rest$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$)));
$s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$=$APP.$cljs$core$rest$$($s__77925__$1_s__77925__$2_temp__5825__auto____$1$jscomp$24$$)}else return null},null,null)}($temp__5825__auto__$jscomp$377$$):null};
$app$main$data$workspace$tokens$remapping$scan_token_value_references$$=function($token$jscomp$163$$,$token_name$jscomp$36$$){var $find_all_token_value_references$$=function $app$main$data$workspace$tokens$remapping$scan_token_value_references_$_find_all_token_value_references$$($token_value$jscomp$9$$){return typeof $token_value$jscomp$9$$==="string"?$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77934_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77934_SHARP_$$,
$token_name$jscomp$36$$)},$APP.$app$common$types$token$find_token_value_references$$($token_value$jscomp$9$$)):$APP.$cljs$core$map_QMARK_$$($token_value$jscomp$9$$)?$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$data$workspace$tokens$remapping$scan_token_value_references_$_find_all_token_value_references$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vals$$($token_value$jscomp$9$$)])):$APP.$cljs$core$sequential_QMARK_$$($token_value$jscomp$9$$)?
$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$data$workspace$tokens$remapping$scan_token_value_references_$_find_all_token_value_references$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$token_value$jscomp$9$$])):$APP.$cljs$core$PersistentVector$EMPTY$$},$temp__5825__auto__$jscomp$378$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$163$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$378$$)?function $app$main$data$workspace$tokens$remapping$scan_token_value_references_$_iter__77935$$($s__77936$$){return new $APP.$cljs$core$LazySeq$$(null,
function(){for(;;){var $s__77936__$2_temp__5825__auto____$1$jscomp$25$$=$APP.$cljs$core$seq$$($s__77936$$);if($s__77936__$2_temp__5825__auto____$1$jscomp$25$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__77936__$2_temp__5825__auto____$1$jscomp$25$$)){var $JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$=$APP.$cljs$core$_chunked_first$$($s__77936__$2_temp__5825__auto____$1$jscomp$25$$),$size__5502__auto__$jscomp$50$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$),
$b__77938_referenced_token_name$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$50$$);a:{for(var $i__77937$jscomp$inline_8739$$=0;;)if($i__77937$jscomp$inline_8739$$<$size__5502__auto__$jscomp$50$$){var $referenced_token_name$jscomp$inline_8740_x$jscomp$inline_13033$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$,$i__77937$jscomp$inline_8739$$),$b$jscomp$inline_13032$$=$b__77938_referenced_token_name$$;$referenced_token_name$jscomp$inline_8740_x$jscomp$inline_13033$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$cljs$cst$5548$token_alias$$,$cljs$cst$5549$source_token_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$163$$),$cljs$cst$5550$referenced_token_name$$,$referenced_token_name$jscomp$inline_8740_x$jscomp$inline_13033$$],null);$b$jscomp$inline_13032$$.add($referenced_token_name$jscomp$inline_8740_x$jscomp$inline_13033$$);$i__77937$jscomp$inline_8739$$+=1}else{$JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$=
!0;break a}$JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$=void 0}return $JSCompiler_inline_result$jscomp$1828_c__5501__auto__$jscomp$50$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77938_referenced_token_name$$),$app$main$data$workspace$tokens$remapping$scan_token_value_references_$_iter__77935$$($APP.$cljs$core$_chunked_rest$$($s__77936__$2_temp__5825__auto____$1$jscomp$25$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__77938_referenced_token_name$$),
null)}$b__77938_referenced_token_name$$=$APP.$cljs$core$first$$($s__77936__$2_temp__5825__auto____$1$jscomp$25$$);return $APP.$cljs$core$cons$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$cljs$cst$5548$token_alias$$,$cljs$cst$5549$source_token_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$163$$),$cljs$cst$5550$referenced_token_name$$,$b__77938_referenced_token_name$$],null),$app$main$data$workspace$tokens$remapping$scan_token_value_references_$_iter__77935$$($APP.$cljs$core$rest$$($s__77936__$2_temp__5825__auto____$1$jscomp$25$$)))}return null}},
null,null)}($find_all_token_value_references$$($temp__5825__auto__$jscomp$378$$)):null};
$app$main$data$workspace$tokens$remapping$scan_workspace_token_references$$=function($file_data$jscomp$110$$,$old_token_name$$){var $tokens_lib$jscomp$51$$=$APP.$cljs$cst$2121$tokens_lib$$.$cljs$core$IFn$_invoke$arity$1$($file_data$jscomp$110$$),$containers$jscomp$1$$=$APP.$app$common$types$file$object_containers_seq$$($file_data$jscomp$110$$),$matching_applied$$=$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($container$jscomp$92$$){var $shapes$jscomp$223$$=$APP.$cljs$core$vals$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($container$jscomp$92$$));
return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__77941_SHARP_$$){return $app$main$data$workspace$tokens$remapping$scan_shape_applied_tokens$$($p1__77941_SHARP_$$,$old_token_name$$,$container$jscomp$92$$)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$shapes$jscomp$223$$]))},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$containers$jscomp$1$$])),$matching_aliases$$=$APP.$cljs$core$truth_$$($tokens_lib$jscomp$51$$)?function(){var $all_tokens$$=
$app$common$types$tokens_lib$get_all_tokens$$($tokens_lib$jscomp$51$$);return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__77942_SHARP_$$){return $app$main$data$workspace$tokens$remapping$scan_token_value_references$$($p1__77942_SHARP_$$,$old_token_name$$)},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$all_tokens$$]))}():$APP.$cljs$core$PersistentVector$EMPTY$$;$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.tokens.remapping",
$APP.$cljs$cst$1159$info$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,7,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$$,"token-scan-details"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4070$token_name$$,$old_token_name$$],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5551$containers_count$$,$APP.$cljs$core$count$$($containers$jscomp$1$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5552$total_applied_refs$$,$APP.$cljs$core$count$$($matching_applied$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5553$matching_applied$$,
$APP.$cljs$core$count$$($matching_applied$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5554$total_alias_refs$$,$APP.$cljs$core$count$$($matching_aliases$$)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5555$matching_aliases$$,$APP.$cljs$core$count$$($matching_aliases$$)],null)],null)}),null,"app.main.data.workspace.tokens.remapping",$APP.$cljs$cst$1159$info$$,!1);
return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1857$applied_tokens$$,$matching_applied$$,$cljs$cst$5556$token_aliases$$,$matching_aliases$$,$cljs$cst$5557$total_references$$,$APP.$cljs$core$count$$($matching_applied$$)+$APP.$cljs$core$count$$($matching_aliases$$)],null)};
$app$main$data$workspace$tokens$remapping$remap_tokens$$=function($old_token_name$jscomp$1$$,$new_token_name$$){typeof $app$main$data$workspace$tokens$remapping$remap_tokens_77949$$==="undefined"&&($app$main$data$workspace$tokens$remapping$remap_tokens_77949$$=function($old_token_name$jscomp$2$$,$new_token_name$jscomp$1$$,$meta77950$$){this.$old_token_name$=$old_token_name$jscomp$2$$;this.$new_token_name$=$new_token_name$jscomp$1$$;this.$meta77950$=$meta77950$$;this.$cljs$lang$protocol_mask$partition0$$=
393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5558$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_remapping_SLASH_remap_tokens$$},$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_77951$$,$meta77950__$1$$){return new $app$main$data$workspace$tokens$remapping$remap_tokens_77949$$(this.$old_token_name$,this.$new_token_name$,$meta77950__$1$$)},$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta77950$},$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$remapping$remap_tokens_77949$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$,$refs_by_container_sets$jscomp$21_state$jscomp$1095$$){var $self__$jscomp$7134$$=this;$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($refs_by_container_sets$jscomp$21_state$jscomp$1095$$);var $scan_results$$=$app$main$data$workspace$tokens$remapping$scan_workspace_token_references$$($_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$,
$self__$jscomp$7134$$.$old_token_name$),$tokens_lib$jscomp$52$$=$APP.$cljs$cst$2121$tokens_lib$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$);$refs_by_container_sets$jscomp$21_state$jscomp$1095$$=$APP.$app$common$types$tokens_lib$get_sets$$($tokens_lib$jscomp$52$$);var $tokens_with_sets$$=$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($set$jscomp$19$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($token$jscomp$164$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1134$token$$,$token$jscomp$164$$,$APP.$cljs$cst$203$set$$,$set$jscomp$19$$],null)},$APP.$cljs$core$vals$$($APP.$app$common$types$tokens_lib$get_tokens$$($tokens_lib$jscomp$52$$,$APP.$app$common$types$tokens_lib$get_id$$($set$jscomp$19$$))))},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$refs_by_container_sets$jscomp$21_state$jscomp$1095$$]));$refs_by_container_sets$jscomp$21_state$jscomp$1095$$=$APP.$cljs$core$group_by$$($APP.$cljs$cst$2541$container$$,$APP.$cljs$cst$1857$applied_tokens$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$$));
$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$=$APP.$cljs$core$reduce_kv$$(function($changes$jscomp$310$$,$container$jscomp$93$$,$refs$jscomp$1$$){var $shape_ids$jscomp$115$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2500$shape_id$$,$refs$jscomp$1$$),$token$jscomp$165$$=function(){var $or__5025__auto__$jscomp$1172$$=$APP.$cljs$core$some$$(function($p1__77945_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($p1__77945_SHARP_$$)),
$self__$jscomp$7134$$.$new_token_name$)?$p1__77945_SHARP_$$:null},$tokens_with_sets$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1172$$)?$or__5025__auto__$jscomp$1172$$:$APP.$cljs$core$some$$(function($p1__77946_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($p1__77946_SHARP_$$)),$self__$jscomp$7134$$.$old_token_name$)?$p1__77946_SHARP_$$:null},
$tokens_with_sets$$)}(),$attributes$jscomp$84$$=$APP.$cljs$core$set$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5547$attribute$$,$refs$jscomp$1$$));return $APP.$cljs$core$truth_$$($token$jscomp$165$$)?$APP.$app$common$files$changes_builder$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$changes_builder$with_container$$($changes$jscomp$310$$,$container$jscomp$93$$),$shape_ids$jscomp$115$$,function($shape$jscomp$1002$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$1002$$,
$APP.$cljs$cst$1857$applied_tokens$$,function($p1__77947_SHARP_$$){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__77947_SHARP_$$,$APP.$app$common$files$tokens$attributes_map$$($attributes$jscomp$84$$,$APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$165$$))]))})}):$changes$jscomp$310$$},$APP.$app$common$files$changes_builder$with_library_data$$($APP.$app$common$files$changes_builder$with_file_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$00$$(),
$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$),$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$),$refs_by_container_sets$jscomp$21_state$jscomp$1095$$);$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($changes$jscomp$311$$,$ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$){var $source_token_id$$=$cljs$cst$5549$source_token_id$$.$cljs$core$IFn$_invoke$arity$1$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$);
$ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$=$APP.$cljs$core$some$$(function($p1__77948_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($p1__77948_SHARP_$$)),$source_token_id$$)?$p1__77948_SHARP_$$:null},$tokens_with_sets$$);if($APP.$cljs$core$truth_$$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$)){var $map__77957__$1_set$jscomp$20$$=
$APP.$cljs$core$__destructure_map$$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$);$ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77957__$1_set$jscomp$20$$,$APP.$cljs$cst$1134$token$$);$map__77957__$1_set$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77957__$1_set$jscomp$20$$,$APP.$cljs$cst$203$set$$);var $new_value$jscomp$26_old_value$jscomp$3$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$);
$new_value$jscomp$26_old_value$jscomp$3$$=$app$common$types$token$update_token_value_references$$($new_value$jscomp$26_old_value$jscomp$3$$,$self__$jscomp$7134$$.$old_token_name$,$self__$jscomp$7134$$.$new_token_name$);return $APP.$app$common$files$changes_builder$set_token$$($changes$jscomp$311$$,$APP.$app$common$types$tokens_lib$get_id$$($map__77957__$1_set$jscomp$20$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$),$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($ref$jscomp$55_temp__5825__auto__$jscomp$379_token$jscomp$166$$,
$APP.$cljs$cst$260$value$$,$new_value$jscomp$26_old_value$jscomp$3$$))}return null},$_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$,$cljs$cst$5556$token_aliases$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$$));$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.tokens.remapping",$APP.$cljs$cst$1159$info$$)&&$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$$,"token-remapping"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5559$old_name$$,$self__$jscomp$7134$$.$old_token_name$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5560$new_name$$,$self__$jscomp$7134$$.$new_token_name$],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5561$references_count$$,$cljs$cst$5557$total_references$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$$)],null)],null)}),null,"app.main.data.workspace.tokens.remapping",$APP.$cljs$cst$1159$info$$,!1);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($_$jscomp$2918_file_data$jscomp$111_shape_changes$jscomp$3_token_changes$$))});return new $app$main$data$workspace$tokens$remapping$remap_tokens_77949$$($old_token_name$jscomp$1$$,
$new_token_name$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$tokens$remapping$count_token_references$$=function($file_data$jscomp$112$$,$token_name$jscomp$37$$){var $scan_results$jscomp$1$$=$app$main$data$workspace$tokens$remapping$scan_workspace_token_references$$($file_data$jscomp$112$$,$token_name$jscomp$37$$);$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.workspace.tokens.remapping",$APP.$cljs$cst$1159$info$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,5,
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$$,"token-reference-scan"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$37$$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5565$applied_refs$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1857$applied_tokens$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$jscomp$1$$))],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5566$alias_refs$$,$APP.$cljs$core$count$$($cljs$cst$5556$token_aliases$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$jscomp$1$$))],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2286$total$$,$cljs$cst$5557$total_references$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$jscomp$1$$)],null)],null)}),null,"app.main.data.workspace.tokens.remapping",
$APP.$cljs$cst$1159$info$$,!1);return $cljs$cst$5557$total_references$$.$cljs$core$IFn$_invoke$arity$1$($scan_results$jscomp$1$$)};
$app$main$ui$workspace$tokens$management$forms$validators$check_self_reference$$=function($token_name$jscomp$38$$,$token_value$jscomp$11$$){return $APP.$app$common$types$token$token_value_self_reference_QMARK_$$($token_name$jscomp$38$$,$token_value$jscomp$11$$)?$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4428$error_DOT_token_SLASH_direct_self_reference$$):null};
$app$main$ui$workspace$tokens$management$forms$validators$validate_resolve_token$$=function($token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$,$prev_token$jscomp$6$$,$tokens$jscomp$64$$){var $token__$1$jscomp$2$$=$APP.$cljs$core$not$$($app$common$schema$valid_QMARK_$$($APP.$app$common$types$token$schema_COLON_token_name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$)))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$,
$APP.$cljs$cst$723$name$$,"__PENPOT__TOKEN__NAME__PLACEHOLDER__"):$token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$;$token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$=function(){var $G__77943__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$2$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$6$$))?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($tokens$jscomp$64$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($prev_token$jscomp$6$$)):
$tokens$jscomp$64$$;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($G__77943__$1$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$2$$),function($p1__77939_SHARP_$$){return $APP.$app$common$types$tokens_lib$make_token$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__77939_SHARP_$$,
$prev_token$jscomp$6$$,$token__$1$jscomp$2$$]))]))})}();return $APP.$beicon$v2$core$mapcat$$(function($resolved_tokens$jscomp$29$$){var $resolved_token$jscomp$21$$=function(){var $G__77944$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($resolved_tokens$jscomp$29$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$2$$));return $APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($G__77944$$,
$APP.$cljs$cst$4441$resolved_value$$,$APP.$app$main$data$tokenscript$tokenscript_symbols__GT_penpot_unit$$):$G__77944$$}();return $APP.$cljs$core$truth_$$($APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($resolved_token$jscomp$21$$))?(0,$APP.$beicon$v2$core$of$$)($resolved_token$jscomp$21$$):$APP.$beicon$v2$core$throw$0$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$568$errors$$,function(){var $or__5025__auto__$jscomp$1173$$=$APP.$cljs$core$seq$$($APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($resolved_token$jscomp$21$$));
return $or__5025__auto__$jscomp$1173$$?$or__5025__auto__$jscomp$1173$$:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($cljs$cst$5567$error_SLASH_unknown_error$$)],null)}()],null))},$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$tokenscript$resolve_tokens$$($token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$)):
$APP.$app$main$data$style_dictionary$resolve_tokens_interactive$$($token$jscomp$168_tokens_SINGLEQUOTE_$jscomp$2$$))};
$app$main$ui$workspace$tokens$management$forms$validators$validate_token_with$$=function($token$jscomp$169$$,$temp__5823__auto__$jscomp$231_validators$jscomp$9$$){$temp__5823__auto__$jscomp$231_validators$jscomp$9$$=$APP.$cljs$core$some$$(function($validate$jscomp$5$$){return $validate$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$validate$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$169$$):$validate$jscomp$5$$($token$jscomp$169$$)},$temp__5823__auto__$jscomp$231_validators$jscomp$9$$);
return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$231_validators$jscomp$9$$)?$APP.$beicon$v2$core$throw$0$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$568$errors$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$temp__5823__auto__$jscomp$231_validators$jscomp$9$$],null)],null)):(0,$APP.$beicon$v2$core$of$$)($token$jscomp$169$$)};
$app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$=function($map__77955__$1_p__77954_token$jscomp$170$$){$map__77955__$1_p__77954_token$jscomp$170$$=$APP.$cljs$core$__destructure_map$$($map__77955__$1_p__77954_token$jscomp$170$$);var $token_name$jscomp$39$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77955__$1_p__77954_token$jscomp$170$$,$APP.$cljs$cst$4070$token_name$$),$token_value$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77955__$1_p__77954_token$jscomp$170$$,
$cljs$cst$5568$token_value$$),$token_description$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77955__$1_p__77954_token$jscomp$170$$,$cljs$cst$5569$token_description$$),$prev_token$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77955__$1_p__77954_token$jscomp$170$$,$cljs$cst$5570$prev_token$$),$tokens$jscomp$65$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77955__$1_p__77954_token$jscomp$170$$,$APP.$cljs$cst$2082$tokens$$),$validators$jscomp$10$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__77955__$1_p__77954_token$jscomp$170$$,$APP.$cljs$cst$4853$validators$$,$app$main$ui$workspace$tokens$management$forms$validators$default_validators$$);$map__77955__$1_p__77954_token$jscomp$170$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$token_name$jscomp$39$$,$APP.$cljs$cst$260$value$$,$token_value$jscomp$12$$,$APP.$cljs$cst$934$description$$,
$token_description$$],null));return $APP.$beicon$v2$core$mapcat$$(function($p1__77953_SHARP_$$){return $app$main$ui$workspace$tokens$management$forms$validators$validate_resolve_token$$($p1__77953_SHARP_$$,$prev_token$jscomp$7$$,$tokens$jscomp$65$$)},$APP.$beicon$v2$core$mapcat$$(function($p1__77952_SHARP_$$){return $app$main$ui$workspace$tokens$management$forms$validators$validate_token_with$$($p1__77952_SHARP_$$,$validators$jscomp$10$$)},(0,$APP.$beicon$v2$core$of$$)($map__77955__$1_p__77954_token$jscomp$170$$)))};
$app$main$ui$workspace$tokens$management$forms$validators$check_coll_self_reference$$=function($token_name$jscomp$40$$,$token_vals$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$some$$(function($p1__77956_SHARP_$$){return $APP.$app$common$types$token$token_value_self_reference_QMARK_$$($token_name$jscomp$40$$,$p1__77956_SHARP_$$)},$token_vals$$))?$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4428$error_DOT_token_SLASH_direct_self_reference$$):null};
$app$main$ui$workspace$tokens$management$forms$generic_form$get_value_for_validator$$=function($active_tab$$,$value$jscomp$934$$,$value_subfield$jscomp$6$$,$value_type$$){switch($value_type$$ instanceof $APP.$cljs$core$Keyword$$?$value_type$$.$fqn$:null){case "indexed":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_tab$$,$cljs$cst$5546$reference$$)?$cljs$cst$5546$reference$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$934$$):$value_subfield$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?
$value_subfield$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$934$$):$value_subfield$jscomp$6$$($value$jscomp$934$$);case "composite":return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_tab$$,$cljs$cst$5546$reference$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$934$$,$cljs$cst$5546$reference$$):$value$jscomp$934$$;default:return $value$jscomp$934$$}};
$app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$=function($props_77964_token_properties_token_title$$){var $is_create$$=$props_77964_token_properties_token_title$$.isCreate,$value_type$jscomp$1$$=$props_77964_token_properties_token_title$$.valueType,$make_schema$$=$props_77964_token_properties_token_title$$.makeSchema,$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$=$props_77964_token_properties_token_title$$.validator,$input_value_placeholder$$=$props_77964_token_properties_token_title$$.inputValuePlaceholder,
$tokens_tree_in_selected_set$$=$props_77964_token_properties_token_title$$.tokensTreeInSelectedSet,$selected_token_set_id$jscomp$8$$=$props_77964_token_properties_token_title$$.selectedTokenSetId,$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$=$props_77964_token_properties_token_title$$.inputComponent,$token$jscomp$171$$=$props_77964_token_properties_token_title$$.token,$token_type$jscomp$17$$=$props_77964_token_properties_token_title$$.tokenType,$value_subfield$jscomp$7$$=$props_77964_token_properties_token_title$$.valueSubfield,
$initial$jscomp$36$$=$props_77964_token_properties_token_title$$.initial,$action$jscomp$7$$=$props_77964_token_properties_token_title$$.action,$make_schema__$1$$=function(){return $APP.$cljs$core$truth_$$($make_schema$$)?$make_schema$$:function($p1__77963_SHARP_$$){return $APP.$app$common$schema$dissoc_key$$($APP.$app$common$files$tokens$make_token_schema$$($p1__77963_SHARP_$$,$token_type$jscomp$17$$))}}(),$input_component__$1$$=$APP.$cljs$core$truth_$$($handle_key_down_cancel_initial__$1$jscomp$3_input_component$$)?
$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$:$app$main$ui$workspace$tokens$management$forms$controls$input$input_STAR_$$,$validate_token$$=$APP.$cljs$core$truth_$$($handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$)?$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$:$app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$,$active_tab_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$truth_$$($APP.$cuerdas$core$includes_QMARK_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$171$$),
"{"))?$cljs$cst$5546$reference$$:$cljs$cst$5571$composite$$}),$active_tab$jscomp$1$$=$APP.$cljs$core$_deref$$($active_tab_STAR_$$),$token__$1$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$171$$)],function(){return $APP.$cljs$core$truth_$$($token$jscomp$171$$)?$token$jscomp$171$$:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$17$$],null)});$props_77964_token_properties_token_title$$=$app$main$data$workspace$tokens$application$get_token_properties$$($token__$1$jscomp$3$$);
$props_77964_token_properties_token_title$$=$APP.$cuerdas$core$lower$$($APP.$cljs$cst$937$title$$.$cljs$core$IFn$_invoke$arity$1$($props_77964_token_properties_token_title$$));var $tokens$jscomp$66$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_all_tokens_map$$),$tokens_in_selected_set$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_all_tokens_in_selected_set$$),$tokens__$1$jscomp$9$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens$jscomp$66$$),
$APP.$rumext$v2$adapt$$($tokens_in_selected_set$$),$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$)],function(){var $G__77965$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$tokens$jscomp$66$$,$tokens_in_selected_set$$]));var $JSCompiler_inline_result$jscomp$1829_and__5023__auto__$jscomp$inline_8742$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$);$JSCompiler_inline_result$jscomp$1829_and__5023__auto__$jscomp$inline_8742$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1829_and__5023__auto__$jscomp$inline_8742$$)?$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$):$JSCompiler_inline_result$jscomp$1829_and__5023__auto__$jscomp$inline_8742$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1829_and__5023__auto__$jscomp$inline_8742$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77965$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$),
$token__$1$jscomp$3$$):$G__77965$$});$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($tokens_tree_in_selected_set$$),$APP.$rumext$v2$adapt$$($active_tab$jscomp$1$$)],function(){return $make_schema__$1$$.$cljs$core$IFn$_invoke$arity$2$?$make_schema__$1$$.$cljs$core$IFn$_invoke$arity$2$($tokens_tree_in_selected_set$$,$active_tab$jscomp$1$$):$make_schema__$1$$($tokens_tree_in_selected_set$$,$active_tab$jscomp$1$$)});
$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$),$APP.$rumext$v2$adapt$$($initial$jscomp$36$$)],function(){return $APP.$cljs$core$truth_$$($initial$jscomp$36$$)?$initial$jscomp$36$$:new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$17$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($token__$1$jscomp$3$$,
""),$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$2$($token__$1$jscomp$3$$,""),$APP.$cljs$cst$934$description$$,$APP.$cljs$cst$934$description$$.$cljs$core$IFn$_invoke$arity$2$($token__$1$jscomp$3$$,"")],null)});var $form$jscomp$200$$=$APP.$app$util$forms$use_form$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$296$schema$$,$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$,
$APP.$cljs$cst$4857$initial$$,$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$])),$on_toggle_tab$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($form$jscomp$200$$)],function($new_tab_new_tab__$1$$){$new_tab_new_tab__$1$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($new_tab_new_tab__$1$$);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_tab_new_tab__$1$$,$cljs$cst$5546$reference$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$200$$,
$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5544$async_errors$$,$cljs$cst$5546$reference$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,"Need valid reference"],null)):$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$200$$,$APP.$cljs$core$update$$,$cljs$cst$5544$async_errors$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5546$reference$$]));
return $APP.$cljs$core$reset_BANG_$$($active_tab_STAR_$$,$new_tab_new_tab__$1$$)}),$on_cancel$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$360$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$360$$);return $APP.$app$main$data$modal$hide_BANG_$$()}),$on_delete_token$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_token_set_id$jscomp$8$$),$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$)],function($e$jscomp$361$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$361$$);
$APP.$app$main$data$modal$hide_BANG_$$();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token$$($selected_token_set_id$jscomp$8$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$)))});$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_delete_token$jscomp$3$$)],function($e$jscomp$362$$){var $JSCompiler_inline_result$jscomp$1830_or__5025__auto__$jscomp$inline_8744$$=
(0,$APP.$app$util$keyboard$enter_QMARK_$$)($e$jscomp$362$$);$JSCompiler_inline_result$jscomp$1830_or__5025__auto__$jscomp$inline_8744$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1830_or__5025__auto__$jscomp$inline_8744$$)?$JSCompiler_inline_result$jscomp$1830_or__5025__auto__$jscomp$inline_8744$$:(0,$APP.$app$util$keyboard$space_QMARK_$$)($e$jscomp$362$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1830_or__5025__auto__$jscomp$inline_8744$$)?$on_delete_token$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?
$on_delete_token$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$362$$):$on_delete_token$jscomp$3$$($e$jscomp$362$$):null});$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_cancel$jscomp$9$$)],function($e$jscomp$363$$){var $JSCompiler_inline_result$jscomp$1831_or__5025__auto__$jscomp$inline_8746$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($e$jscomp$363$$);$JSCompiler_inline_result$jscomp$1831_or__5025__auto__$jscomp$inline_8746$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1831_or__5025__auto__$jscomp$inline_8746$$)?$JSCompiler_inline_result$jscomp$1831_or__5025__auto__$jscomp$inline_8746$$:(0,$APP.$app$util$keyboard$space_QMARK_$$)($e$jscomp$363$$);return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1831_or__5025__auto__$jscomp$inline_8746$$)?$on_cancel$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$?$on_cancel$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$363$$):$on_cancel$jscomp$9$$($e$jscomp$363$$):
null});var $on_remap_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$)],function($valid_token$$,$name$jscomp$457$$,$old_name$jscomp$2$$,$description$jscomp$18$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$723$name$$,$name$jscomp$457$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($valid_token$$),$APP.$cljs$cst$934$description$$,$description$jscomp$18$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$remapping$remap_tokens$$($old_name$jscomp$2$$,$name$jscomp$457$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$(),$APP.$app$main$data$modal$hide_BANG_$$()]))}),
$on_rename_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$)],function($valid_token$jscomp$1$$,$name$jscomp$458$$,$description$jscomp$19$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$723$name$$,$name$jscomp$458$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($valid_token$jscomp$1$$),$APP.$cljs$cst$934$description$$,$description$jscomp$19$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide_BANG_$$()]))}),$on_submit$jscomp$17$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($validate_token$$),$APP.$rumext$v2$adapt$$($token__$1$jscomp$3$$),
$APP.$rumext$v2$adapt$$($tokens__$1$jscomp$9$$),$APP.$rumext$v2$adapt$$($token_type$jscomp$17$$),$APP.$rumext$v2$adapt$$($value_subfield$jscomp$7$$),$APP.$rumext$v2$adapt$$($value_type$jscomp$1$$),$APP.$rumext$v2$adapt$$($active_tab$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_remap_token$$),$APP.$rumext$v2$adapt$$($on_rename_token$$),$APP.$rumext$v2$adapt$$($is_create$$)],function($form__$1$jscomp$20$$){var $name$jscomp$459$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$20$$),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$APP.$cljs$cst$723$name$$],null)),$path$jscomp$294$$=[$APP.$app$common$data$name$$($token_type$jscomp$17$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($name$jscomp$459$$)].join(""),$description$jscomp$20$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$20$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$APP.$cljs$cst$934$description$$],null)),$value$jscomp$935$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($form__$1$jscomp$20$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4855$clean_data$$,$APP.$cljs$cst$260$value$$],null)),$value_for_validation$$=$app$main$ui$workspace$tokens$management$forms$generic_form$get_value_for_validator$$($active_tab$jscomp$1$$,
$value$jscomp$935$$,$value_subfield$jscomp$7$$,$value_type$jscomp$1$$);return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$(function($valid_token$jscomp$2$$){var $is_rename_state$jscomp$1096$$=$APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),$file_data$jscomp$113_references_count$$=$APP.$app$main$data$helpers$lookup_file_data$$.$cljs$core$IFn$_invoke$arity$1$($is_rename_state$jscomp$1096$$),$old_name$jscomp$3$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$);
$is_rename_state$jscomp$1096$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$7$$,"edit")&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$459$$,$old_name$jscomp$3$$);$file_data$jscomp$113_references_count$$=$app$main$data$workspace$tokens$remapping$count_token_references$$($file_data$jscomp$113_references_count$$,$old_name$jscomp$3$$);return $is_rename_state$jscomp$1096$$&&$file_data$jscomp$113_references_count$$>0?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($cljs$cst$5572$tokens_SLASH_remapping_confirmation$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$5573$old_token_name$$,$old_name$jscomp$3$$,$cljs$cst$5574$new_token_name$$,$name$jscomp$459$$,$cljs$cst$5561$references_count$$,$file_data$jscomp$113_references_count$$,$cljs$cst$5575$on_remap$$,function(){return $on_remap_token$$.$cljs$core$IFn$_invoke$arity$4$?$on_remap_token$$.$cljs$core$IFn$_invoke$arity$4$($valid_token$jscomp$2$$,$name$jscomp$459$$,$old_name$jscomp$3$$,$description$jscomp$20$$):$on_remap_token$$($valid_token$jscomp$2$$,
$name$jscomp$459$$,$old_name$jscomp$3$$,$description$jscomp$20$$)},$cljs$cst$5576$on_rename$$,function(){return $on_rename_token$$.$cljs$core$IFn$_invoke$arity$3$?$on_rename_token$$.$cljs$core$IFn$_invoke$arity$3$($valid_token$jscomp$2$$,$name$jscomp$459$$,$description$jscomp$20$$):$on_rename_token$$($valid_token$jscomp$2$$,$name$jscomp$459$$,$description$jscomp$20$$)}],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$truth_$$($is_create$$)?$app$main$data$workspace$tokens$library_edit$create_token$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$types$tokens_lib$make_token$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,
4,[$APP.$cljs$cst$723$name$$,$name$jscomp$459$$,$APP.$cljs$cst$139$type$$,$token_type$jscomp$17$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($valid_token$jscomp$2$$),$APP.$cljs$cst$934$description$$,$description$jscomp$20$$],null)]))):$app$main$data$workspace$tokens$library_edit$update_token$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$3$$),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,
$name$jscomp$459$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($valid_token$jscomp$2$$),$APP.$cljs$cst$934$description$$,$description$jscomp$20$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$tokens$library_edit$toggle_token_path$$($path$jscomp$294$$),$APP.$app$main$data$workspace$tokens$propagation$propagate_workspace_tokens$$(),$APP.$app$main$data$modal$hide_BANG_$$()]))},function($error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$){$error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$=
$APP.$cljs$core$__destructure_map$$($error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$);$error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$,$APP.$cljs$cst$568$errors$$);$error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$=$app$main$data$workspace$tokens$errors$humanize_errors$$($error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$);
$error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$=$APP.$cljs$core$first$$($error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form__$1$jscomp$20$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4854$extra_errors$$,$APP.$cljs$cst$260$value$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$141$message$$,
$error_message_error_messages_errors$jscomp$42_map__77967__$1_p__77966$$],null))},function(){var $G__77968$$=new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$5568$token_value$$,$value_for_validation$$,$APP.$cljs$cst$4070$token_name$$,$name$jscomp$459$$,$cljs$cst$5569$token_description$$,$description$jscomp$20$$,$cljs$cst$5570$prev_token$$,$token__$1$jscomp$3$$,$APP.$cljs$cst$2082$tokens$$,$tokens__$1$jscomp$9$$],null);return $validate_token$$.$cljs$core$IFn$_invoke$arity$1$?$validate_token$$.$cljs$core$IFn$_invoke$arity$1$($G__77968$$):
$validate_token$$($G__77968$$)}())});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$forms$form_STAR_$$,{className:"main_ui_workspace_tokens_management_forms_generic_form__form-wrapper",form:$form$jscomp$200$$,onSubmit:$on_submit$jscomp$17$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_generic_form__token-rows",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_management_forms_generic_form__form-modal-title",
children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$7$$,"edit")?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.edit-token",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$token_type$jscomp$17$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.create-token",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$token_type$jscomp$17$$]))}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_generic_form__input-row",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$forms$form_input_STAR_$$,{id:"token-name",name:$APP.$cljs$cst$723$name$$,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name"),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.enter-token-name",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$props_77964_token_properties_token_title$$])),maxLength:255,variant:"comfortable",trim:!0,autoFocus:!0})}),(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_tokens_management_forms_generic_form__input-row",children:function(){switch($value_type$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$value_type$jscomp$1$$.$fqn$:null){case "indexed":return(0,$APP.$rumext$v2$jsx$$)($input_component__$1$$,{token:$token__$1$jscomp$3$$,tokens:$tokens__$1$jscomp$9$$,tab:$active_tab$jscomp$1$$,valueSubfield:$value_subfield$jscomp$7$$,handleToggle:$on_toggle_tab$$});case "composite":return(0,$APP.$rumext$v2$jsx$$)($input_component__$1$$,
{token:$token__$1$jscomp$3$$,tokens:$tokens__$1$jscomp$9$$,tab:$active_tab$jscomp$1$$,handleToggle:$on_toggle_tab$$});default:return(0,$APP.$rumext$v2$jsx$$)($input_component__$1$$,{placeholder:$APP.$cljs$core$truth_$$($input_value_placeholder$$)?$input_value_placeholder$$:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-value-enter"),label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-value"),name:$APP.$cljs$cst$260$value$$,token:$token__$1$jscomp$3$$,
tokens:$tokens__$1$jscomp$9$$})}}()}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_generic_form__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$forms$form_input_STAR_$$,{id:"token-description",name:$APP.$cljs$cst$934$description$$,label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-description"),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-description"),maxLength:255,
variant:"comfortable",isOptional:!0})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_generic_form__button-row "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$7$$,"edit")?"main_ui_workspace_tokens_management_forms_generic_form__with-delete":""),children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($action$jscomp$7$$,"edit")?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$on_delete_token$jscomp$3$$,
onKeyDown:$handle_key_down_delete_schema$jscomp$245_validator$jscomp$35$$,className:"main_ui_workspace_tokens_management_forms_generic_form__delete-btn",type:"button",icon:"delete",variant:"secondary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete")}):null,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$on_cancel$jscomp$9$$,onKeyDown:$handle_key_down_cancel_initial__$1$jscomp$3_input_component$$,type:"button",id:"token-modal-cancel",
variant:"secondary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$forms$form_submit_STAR_$$,{variant:"primary",onSubmit:$on_submit$jscomp$17$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.save")})]})]})})};
$app$main$ui$workspace$tokens$management$forms$color$form_STAR_$$=function($props_77972$$){var $token$jscomp$172$$=$props_77972$$.token,$token_type$jscomp$18$$=$props_77972$$.tokenType,$initial$jscomp$37$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token_type$jscomp$18$$),$APP.$rumext$v2$adapt$$($token$jscomp$172$$)],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$18$$,$APP.$cljs$cst$723$name$$,
$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$172$$,""),$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$172$$,""),$APP.$cljs$cst$934$description$$,$APP.$cljs$cst$934$description$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$172$$,""),$cljs$cst$5545$color_result$$,""],null)});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,{...$props_77972$$,makeSchema:function($p1__77971_SHARP__s$jscomp$inline_8748$$){$p1__77971_SHARP__s$jscomp$inline_8748$$=
$APP.$app$common$schema$dissoc_key$$($APP.$app$common$files$tokens$make_token_schema$$($p1__77971_SHARP__s$jscomp$inline_8748$$,$token_type$jscomp$18$$));return $app$common$schema$assoc_key$cljs$0core$0IFn$0_invoke$0arity$04$$($p1__77971_SHARP__s$jscomp$inline_8748$$,$cljs$cst$5545$color_result$$,$APP.$cljs$cst$198$string$$)},initial:$initial$jscomp$37$$,inputComponent:$app$main$ui$workspace$tokens$management$forms$controls$color_input$color_input_STAR_$$})};
$app$main$ui$workspace$tokens$management$forms$font_family$check_font_family_token_self_reference$$=function($token$jscomp$173$$){return $app$main$ui$workspace$tokens$management$forms$validators$check_coll_self_reference$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$173$$),$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$173$$))};
$app$main$ui$workspace$tokens$management$forms$font_family$validate_font_family_token$$=function($props$jscomp$364$$){return $app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($props$jscomp$364$$,$cljs$cst$5568$token_value$$,$APP.$app$common$types$token$split_font_family$$),$APP.$cljs$cst$4853$validators$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[function($token$jscomp$174$$){return $APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$174$$))?$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4416$error_DOT_token_SLASH_empty_input$$):null},$app$main$ui$workspace$tokens$management$forms$font_family$check_font_family_token_self_reference$$],null)))};
$app$main$ui$workspace$tokens$management$forms$font_family$form_STAR_$$=function($props_77975_token__$1$jscomp$4$$){var $token$jscomp$175$$=void 0,$token_type$jscomp$19$$=void 0,$props$jscomp$365$$=void 0;({token:$token$jscomp$175$$,tokenType:$token_type$jscomp$19$$,...$props$jscomp$365$$}=$props_77975_token__$1$jscomp$4$$);$props_77975_token__$1$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$175$$)],function(){return $APP.$cljs$core$truth_$$($token$jscomp$175$$)?
$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($token$jscomp$175$$,$APP.$cljs$cst$260$value$$,$app$common$types$token$join_font_family$$):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$19$$],null)});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,{...$props$jscomp$365$$,token:$props_77975_token__$1$jscomp$4$$,tokenType:$token_type$jscomp$19$$,makeSchema:function($p1__77974_SHARP__s$jscomp$inline_8752$$){$p1__77974_SHARP__s$jscomp$inline_8752$$=
$APP.$app$common$schema$dissoc_key$$($APP.$app$common$files$tokens$make_token_schema$$($p1__77974_SHARP__s$jscomp$inline_8752$$,$token_type$jscomp$19$$));return $app$common$schema$assoc_key$cljs$0core$0IFn$0_invoke$0arity$04$$($p1__77974_SHARP__s$jscomp$inline_8752$$,$APP.$cljs$cst$260$value$$,$APP.$app$common$files$tokens$schema_COLON_token_value_generic$$)},validator:$app$main$ui$workspace$tokens$management$forms$font_family$validate_font_family_token$$,inputComponent:$app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$fonts_combobox_STAR_$$})};
$app$main$ui$workspace$tokens$management$forms$shadow$check_shadow_token_self_reference$$=function($shadow_values$jscomp$1_token$jscomp$176$$){var $token_name$jscomp$41$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shadow_values$jscomp$1_token$jscomp$176$$);$shadow_values$jscomp$1_token$jscomp$176$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($shadow_values$jscomp$1_token$jscomp$176$$);return $APP.$cljs$core$some$$(function($p__77976_shadow_map$jscomp$2$$){var $shadow_idx$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77976_shadow_map$jscomp$2$$,0,null);$p__77976_shadow_map$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77976_shadow_map$jscomp$2$$,1,null);return $APP.$cljs$core$some$$(function($p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$){var $k$jscomp$692$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$,0,null);$p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$,1,null);$p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$=$app$main$ui$workspace$tokens$management$forms$validators$check_self_reference$$($token_name$jscomp$41$$,$p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$);return $APP.$cljs$core$truth_$$($p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($p__77980_temp__5825__auto__$jscomp$380_v$jscomp$673$$,
$APP.$cljs$cst$4458$shadow_key$$,$k$jscomp$692$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4459$shadow_index$$,$shadow_idx$$])):null},$p__77976_shadow_map$jscomp$2$$)},$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($shadow_values$jscomp$1_token$jscomp$176$$))};
$app$main$ui$workspace$tokens$management$forms$shadow$check_empty_shadow_token$$=function($token$jscomp$177$$){return $APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1182$$=$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$177$$));return $or__5025__auto__$jscomp$1182$$?$or__5025__auto__$jscomp$1182$$:$APP.$cljs$core$some$$(function($shadow__$1$jscomp$22$$){return $cljs$core$not_every_QMARK_$$(function($p1__77984_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($shadow__$1$jscomp$22$$,
$p1__77984_SHARP_$$)},new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1634$offset_x$$,$APP.$cljs$cst$1635$offset_y$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1636$spread$$,$APP.$cljs$cst$1284$color$$],null))},$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$177$$))}())?$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4416$error_DOT_token_SLASH_empty_input$$):null};
$app$main$ui$workspace$tokens$management$forms$shadow$validate_shadow_token$$=function($map__77987__$1_p__77986_params__$1$jscomp$58$$){$map__77987__$1_p__77986_params__$1$jscomp$58$$=$APP.$cljs$core$__destructure_map$$($map__77987__$1_p__77986_params__$1$jscomp$58$$);var $token_value$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77987__$1_p__77986_params__$1$jscomp$58$$,$cljs$cst$5568$token_value$$);if($token_value$jscomp$13$$==null)return(0,$APP.$beicon$v2$core$of$$)(null);
if(typeof $token_value$jscomp$13$$==="string")return $app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$($map__77987__$1_p__77986_params__$1$jscomp$58$$);$map__77987__$1_p__77986_params__$1$jscomp$58$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($map__77987__$1_p__77986_params__$1$jscomp$58$$,$cljs$cst$5568$token_value$$,function($value$jscomp$936$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($shadow__$1$jscomp$23$$){return $APP.$app$common$data$update_when$$($shadow__$1$jscomp$23$$,
$APP.$cljs$cst$2115$inset$$,function($p1__77985_SHARP_$$){return $APP.$cljs$core$boolean_QMARK_$$($p1__77985_SHARP_$$)?$p1__77985_SHARP_$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("true",$p1__77985_SHARP_$$)?!0:!1})},$APP.$cljs$core$truth_$$($value$jscomp$936$$)?$value$jscomp$936$$:$APP.$cljs$core$PersistentVector$EMPTY$$)}),$APP.$cljs$cst$4853$validators$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$app$main$ui$workspace$tokens$management$forms$shadow$check_empty_shadow_token$$,
$app$main$ui$workspace$tokens$management$forms$shadow$check_shadow_token_self_reference$$],null));return $app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$($map__77987__$1_p__77986_params__$1$jscomp$58$$)};
$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$=function($token$jscomp$178_value$jscomp$937$$,$index$jscomp$550$$,$prop$jscomp$40$$,$value_subfield$jscomp$8$$){$token$jscomp$178_value$jscomp$937$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$178_value$jscomp$937$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$8$$,$index$jscomp$550$$,$prop$jscomp$40$$],null));
return $APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$40$$,$APP.$cljs$cst$1284$color$$)?$APP.$cljs$cst$1284$color$$:$APP.$cljs$cst$1965$dimensions$$,$APP.$cljs$cst$260$value$$,$token$jscomp$178_value$jscomp$937$$],null))};
$app$main$ui$workspace$tokens$management$forms$shadow$shadow_formset_STAR_$$=function($props_77988_tokens$jscomp$67$$){var $index$jscomp$551$$=$props_77988_tokens$jscomp$67$$.index,$show_button$$=$props_77988_tokens$jscomp$67$$.showButton,$spread_token_spread_token__$1_token$jscomp$179$$=$props_77988_tokens$jscomp$67$$.token,$remove_shadow_block$$=$props_77988_tokens$jscomp$67$$.removeShadowBlock,$value_subfield$jscomp$9$$=$props_77988_tokens$jscomp$67$$.valueSubfield;$props_77988_tokens$jscomp$67$$=
$props_77988_tokens$jscomp$67$$.tokens;var $inset_token_inset_token__$1$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,$index$jscomp$551$$,$APP.$cljs$cst$2115$inset$$,$value_subfield$jscomp$9$$);$inset_token_inset_token__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($inset_token_inset_token__$1$$);var $color_token_color_token__$1$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,
$index$jscomp$551$$,$APP.$cljs$cst$1284$color$$,$value_subfield$jscomp$9$$);$color_token_color_token__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($color_token_color_token__$1$$);var $offset_x_token_offset_x_token__$1$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,$index$jscomp$551$$,$APP.$cljs$cst$1634$offset_x$$,$value_subfield$jscomp$9$$);$offset_x_token_offset_x_token__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($offset_x_token_offset_x_token__$1$$);
var $offset_y_token_offset_y_token__$1$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,$index$jscomp$551$$,$APP.$cljs$cst$1635$offset_y$$,$value_subfield$jscomp$9$$);$offset_y_token_offset_y_token__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($offset_y_token_offset_y_token__$1$$);var $blur_token_blur_token__$1$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,
$index$jscomp$551$$,$APP.$cljs$cst$1637$blur$$,$value_subfield$jscomp$9$$);$blur_token_blur_token__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($blur_token_blur_token__$1$$);$spread_token_spread_token__$1_token$jscomp$179$$=$app$main$ui$workspace$tokens$management$forms$shadow$get_subtoken$$($spread_token_spread_token__$1_token$jscomp$179$$,$index$jscomp$551$$,$APP.$cljs$cst$1636$spread$$,$value_subfield$jscomp$9$$);$spread_token_spread_token__$1_token$jscomp$179$$=$APP.$app$main$ui$hooks$use_equal_memo$$($spread_token_spread_token__$1_token$jscomp$179$$);
var $on_button_click$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$551$$)],function($event$jscomp$578$$){return $remove_shadow_block$$.$cljs$core$IFn$_invoke$arity$2$?$remove_shadow_block$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$551$$,$event$jscomp$578$$):$remove_shadow_block$$($index$jscomp$551$$,$event$jscomp$578$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":["shadow-input-fields-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$551$$)].join(""),
className:"main_ui_workspace_tokens_management_forms_shadow__shadow-block",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__select-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$select$select_indexed_STAR_$$,{options:new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,"drop",
$APP.$cljs$cst$2245$label$$,"drop shadow",$APP.$cljs$cst$1705$icon$$,"drop-shadow"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$266$id$$,"inner",$APP.$cljs$cst$2245$label$$,"inner shadow",$APP.$cljs$cst$1705$icon$$,"inner-shadow"],null)],null),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-inset"),token:$inset_token_inset_token__$1$$,tokens:$props_77988_tokens$jscomp$67$$,index:$index$jscomp$551$$,indexedType:$value_subfield$jscomp$9$$,
name:$APP.$cljs$cst$2115$inset$$}),$APP.$cljs$core$truth_$$($show_button$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",type:"button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-remove-shadow"),onClick:$on_button_click$jscomp$1$$,icon:"remove"}):null]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__inputs-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_tokens_management_forms_shadow__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$color_input$indexed_color_input_STAR_$$,{placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-value-enter"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.color"),name:$APP.$cljs$cst$1284$color$$,token:$color_token_color_token__$1$$,valueSubfield:$value_subfield$jscomp$9$$,
index:$index$jscomp$551$$,tokens:$props_77988_tokens$jscomp$67$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$,{"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-x"),icon:"character-x",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-x"),
name:$APP.$cljs$cst$1634$offset_x$$,token:$offset_x_token_offset_x_token__$1$$,index:$index$jscomp$551$$,valueSubfield:$value_subfield$jscomp$9$$,tokens:$props_77988_tokens$jscomp$67$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$,{"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-y"),
icon:"character-y",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-y"),name:$APP.$cljs$cst$1635$offset_y$$,token:$offset_y_token_offset_y_token__$1$$,index:$index$jscomp$551$$,valueSubfield:$value_subfield$jscomp$9$$,tokens:$props_77988_tokens$jscomp$67$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$,
{"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-blur"),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-blur"),name:$APP.$cljs$cst$1637$blur$$,slotStart:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_tokens_management_forms_shadow__visible-label",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-blur")),
":"].join("")}),token:$blur_token_blur_token__$1$$,index:$index$jscomp$551$$,valueSubfield:$value_subfield$jscomp$9$$,tokens:$props_77988_tokens$jscomp$67$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_indexed_STAR_$$,{"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-spread"),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-spread"),
name:$APP.$cljs$cst$1636$spread$$,slotStart:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_tokens_management_forms_shadow__visible-label",children:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-spread")),":"].join("")}),token:$spread_token_spread_token__$1_token$jscomp$179$$,valueSubfield:$value_subfield$jscomp$9$$,index:$index$jscomp$551$$,tokens:$props_77988_tokens$jscomp$67$$})})]})]})};
$app$main$ui$workspace$tokens$management$forms$shadow$composite_form_STAR_$$=function($props_77989$$){var $token$jscomp$180$$=$props_77989$$.token,$remove_shadow_block$jscomp$1$$=$props_77989$$.removeShadowBlock,$value_subfield$jscomp$10$$=$props_77989$$.valueSubfield,$tokens$jscomp$68$$=$props_77989$$.tokens,$form$jscomp$201$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$),$length$jscomp$57$$=$APP.$cljs$core$count$$(function(){var $G__77990$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($form$jscomp$201$$)));
return $value_subfield$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$?$value_subfield$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$($G__77990$$):$value_subfield$jscomp$10$$($G__77990$$)}());return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$211$$,$index$jscomp$552$$){$out_arr__44057__auto__$jscomp$211$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$shadow$shadow_formset_STAR_$$,{index:$index$jscomp$552$$,token:$token$jscomp$180$$,
tokens:$tokens$jscomp$68$$,valueSubfield:$value_subfield$jscomp$10$$,removeShadowBlock:$remove_shadow_block$jscomp$1$$,showButton:$length$jscomp$57$$>1},$index$jscomp$552$$));return $out_arr__44057__auto__$jscomp$211$$},[],$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$01$$($length$jscomp$57$$))};
$app$main$ui$workspace$tokens$management$forms$shadow$reference_form_STAR_$$=function($props_77991_tokens$jscomp$69$$){var $token$jscomp$181$$=$props_77991_tokens$jscomp$69$$.token;$props_77991_tokens$jscomp$69$$=$props_77991_tokens$jscomp$69$$.tokens;return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__input-row-reference",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.reference-composite-shadow"),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.reference"),icon:"drop-shadow",name:$cljs$cst$5546$reference$$,token:$token$jscomp$181$$,tokens:$props_77991_tokens$jscomp$69$$})})};
$app$main$ui$workspace$tokens$management$forms$shadow$tabs_wrapper_STAR_$$=function($on_add_shadow_block_props_77993$$){var $tab$jscomp$9$$=void 0,$handle_toggle$jscomp$1$$=void 0,$token$jscomp$182$$=void 0,$value_subfield$jscomp$11$$=void 0,$tokens$jscomp$70$$=void 0;({token:$token$jscomp$182$$,tokens:$tokens$jscomp$70$$,tab:$tab$jscomp$9$$,handleToggle:$handle_toggle$jscomp$1$$,valueSubfield:$value_subfield$jscomp$11$$}=$on_add_shadow_block_props_77993$$);var $form$jscomp$202$$=(0,$APP.$rumext$v2$use_ctx$$)($app$main$ui$forms$context$$);
$on_add_shadow_block_props_77993$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value_subfield$jscomp$11$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($form$jscomp$202$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,$value_subfield$jscomp$11$$],null),$APP.$cljs$core$conj$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$workspace$tokens$management$forms$shadow$default_token_shadow$$]))});
var $remove_shadow_block$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value_subfield$jscomp$11$$)],function($index$jscomp$553$$,$event$jscomp$579$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$579$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($form$jscomp$202$$,$APP.$cljs$core$update_in$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$260$value$$,
$value_subfield$jscomp$11$$],null),function($p1__77992_SHARP_$$){return $APP.$app$common$data$remove_at_index$$($p1__77992_SHARP_$$,$index$jscomp$553$$)})});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__title-bar",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_shadow__title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.shadow")}),
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",type:"button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-add-shadow"),onClick:$on_add_shadow_block_props_77993$$,icon:"add"}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_tokens_management_forms_shadow__listing-options",selected:$APP.$app$common$data$name$$($tab$jscomp$9$$),"on-change":$handle_toggle$jscomp$1$$,
name:"reference-composite-tab",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"layers",value:"composite",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.individual-tokens"),id:"composite-opt"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"tokens",value:"reference",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.use-reference"),id:"reference-opt"})]})]}),
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($tab$jscomp$9$$,$cljs$cst$5571$composite$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$shadow$composite_form_STAR_$$,{token:$token$jscomp$182$$,tokens:$tokens$jscomp$70$$,removeShadowBlock:$remove_shadow_block$jscomp$2$$,valueSubfield:$value_subfield$jscomp$11$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$shadow$reference_form_STAR_$$,{token:$token$jscomp$182$$,tokens:$tokens$jscomp$70$$})]})};
$app$main$ui$workspace$tokens$management$forms$shadow$make_schema$$=function($tokens_tree$jscomp$9$$,$active_tab$jscomp$2$$){return $APP.$app$common$schema$schema$$(new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$723$name$$,
new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$336$min$$,1,$APP.$cljs$cst$337$max$$,255,$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__77994_SHARP_$$){return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__77994_SHARP_$$)),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name-length-validation-error"))].join("")}],null)],null),$APP.$app$common$schema$update_properties$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$types$token$schema_COLON_token_name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__77995_SHARP_$$){return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__77995_SHARP_$$)),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name-validation-error"))].join("")}])),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__77996_SHARP_$$){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.token-name-duplication-validation-error",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__77996_SHARP_$$)]))}],null),function($p1__77997_SHARP_$$){return!$APP.$app$common$types$tokens_lib$token_name_path_exists_QMARK_$$($p1__77997_SHARP_$$,$tokens_tree$jscomp$9$$)}],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1638$shadow$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$200$vector$$,new $APP.$cljs$core$PersistentVector$$(null,8,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1634$offset_x$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1635$offset_y$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.shadow-token-blur-value-error")}],
null),function($blur$jscomp$13_n$jscomp$302$$){$blur$jscomp$13_n$jscomp$302$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($blur$jscomp$13_n$jscomp$302$$);return $blur$jscomp$13_n$jscomp$302$$==null||!($blur$jscomp$13_n$jscomp$302$$<0)}],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1636$spread$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5545$color_result$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),$APP.$cljs$cst$972$app_DOT_common_DOT_schema_SLASH_any$$],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2115$inset$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$419$boolean$$],null)],null)],null)],null)],null),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_tab$jscomp$2$$,$cljs$cst$5546$reference$$)?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5546$reference$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!1],null),$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$],null):new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5546$reference$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$934$description$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$337$max$$,2048,$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.field-max-length",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([2048]))}],null)],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$4410$error_SLASH_field$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$cljs$cst$5546$reference$$],null),$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.self-reference")}],null),function($name$jscomp$460_p__77998$$){var $map__77999__$1_reference$jscomp$1_value$jscomp$938$$=
$APP.$cljs$core$__destructure_map$$($name$jscomp$460_p__77998$$);$name$jscomp$460_p__77998$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77999__$1_reference$jscomp$1_value$jscomp$938$$,$APP.$cljs$cst$723$name$$);$map__77999__$1_reference$jscomp$1_value$jscomp$938$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77999__$1_reference$jscomp$1_value$jscomp$938$$,$APP.$cljs$cst$260$value$$);$map__77999__$1_reference$jscomp$1_value$jscomp$938$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77999__$1_reference$jscomp$1_value$jscomp$938$$,
$cljs$cst$5546$reference$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($map__77999__$1_reference$jscomp$1_value$jscomp$938$$)?$name$jscomp$460_p__77998$$:$map__77999__$1_reference$jscomp$1_value$jscomp$938$$)?!$APP.$app$common$types$token$token_value_self_reference_QMARK_$$($name$jscomp$460_p__77998$$,$map__77999__$1_reference$jscomp$1_value$jscomp$938$$):!0}],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return"Must be a valid shadow or reference"},$APP.$cljs$cst$4410$error_SLASH_field$$,$APP.$cljs$cst$260$value$$],null),function($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$){$map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$);var $shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$,$APP.$cljs$cst$260$value$$);$map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$,$cljs$cst$5546$reference$$);$map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$=$APP.$cljs$core$truth_$$($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$)?
!$APP.$cuerdas$core$blank_QMARK_$$($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$):$map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$;$shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$,$APP.$cljs$cst$1638$shadow$$);$shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$=$APP.$cljs$core$seq$$($shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$)&&
$APP.$cljs$core$every_QMARK_$$(function($offset_x$jscomp$12_p__78002$$){var $color$jscomp$186_map__78003__$1$$=$APP.$cljs$core$__destructure_map$$($offset_x$jscomp$12_p__78002$$);$offset_x$jscomp$12_p__78002$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$186_map__78003__$1$$,$APP.$cljs$cst$1634$offset_x$$);var $offset_y$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$186_map__78003__$1$$,$APP.$cljs$cst$1635$offset_y$$),$blur$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$186_map__78003__$1$$,
$APP.$cljs$cst$1637$blur$$),$spread$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$186_map__78003__$1$$,$APP.$cljs$cst$1636$spread$$);$color$jscomp$186_map__78003__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$186_map__78003__$1$$,$APP.$cljs$cst$1284$color$$);return!$APP.$cuerdas$core$blank_QMARK_$$($offset_x$jscomp$12_p__78002$$)&&!$APP.$cuerdas$core$blank_QMARK_$$($offset_y$jscomp$12$$)&&!$APP.$cuerdas$core$blank_QMARK_$$($blur$jscomp$14$$)&&
!$APP.$cuerdas$core$blank_QMARK_$$($spread$jscomp$8$$)&&!$APP.$cuerdas$core$blank_QMARK_$$($color$jscomp$186_map__78003__$1$$)},$shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$);return $APP.$cljs$core$truth_$$($map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$)?$map__78001__$1_p__78000_ref_valid_QMARK__reference$jscomp$2$$:$shadows$jscomp$5_valid_composite_shadow_QMARK__value$jscomp$939$$}],null)],null))};
$app$main$ui$workspace$tokens$management$forms$shadow$make_default_value$$=function($value$jscomp$940$$){return typeof $value$jscomp$940$$==="string"?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5546$reference$$,$value$jscomp$940$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$core$PersistentVector$EMPTY$$],null):$APP.$cljs$core$vector_QMARK_$$($value$jscomp$940$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5546$reference$$,null,$APP.$cljs$cst$1638$shadow$$,$value$jscomp$940$$],
null):new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5546$reference$$,null,$APP.$cljs$cst$1638$shadow$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$app$main$ui$workspace$tokens$management$forms$shadow$default_token_shadow$$],null)],null)};
$app$main$ui$workspace$tokens$management$forms$shadow$form_STAR_$$=function($props_78009$$){var $token$jscomp$183$$=$props_78009$$.token,$token_type$jscomp$20$$=$props_78009$$.tokenType,$token__$1$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$183$$)],function(){if($APP.$cljs$core$truth_$$($token$jscomp$183$$))return $token$jscomp$183$$;var $temp__5823__auto__$jscomp$232$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$183$$,
$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$232$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$20$$,$APP.$cljs$cst$260$value$$,$app$main$ui$workspace$tokens$management$forms$shadow$make_default_value$$($temp__5823__auto__$jscomp$232$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$token_type$jscomp$20$$,$APP.$cljs$cst$260$value$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$cljs$cst$5546$reference$$,null,$APP.$cljs$cst$1638$shadow$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$app$main$ui$workspace$tokens$management$forms$shadow$default_token_shadow$$],null)],null)],null)}),$initial$jscomp$38$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token__$1$jscomp$5$$)],function(){var $raw_value$jscomp$4_value$jscomp$942$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token__$1$jscomp$5$$);
$raw_value$jscomp$4_value$jscomp$942$$=$app$main$ui$workspace$tokens$management$forms$shadow$make_default_value$$($raw_value$jscomp$4_value$jscomp$942$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($token__$1$jscomp$5$$,""),$APP.$cljs$cst$934$description$$,$APP.$cljs$cst$934$description$$.$cljs$core$IFn$_invoke$arity$2$($token__$1$jscomp$5$$,""),$APP.$cljs$cst$260$value$$,$raw_value$jscomp$4_value$jscomp$942$$],
null)});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,{...$props_78009$$,token:$token__$1$jscomp$5$$,tokenType:$token_type$jscomp$20$$,initial:$initial$jscomp$38$$,makeSchema:$app$main$ui$workspace$tokens$management$forms$shadow$make_schema$$,valueType:$cljs$cst$5577$indexed$$,valueSubfield:$APP.$cljs$cst$1638$shadow$$,inputComponent:$app$main$ui$workspace$tokens$management$forms$shadow$tabs_wrapper_STAR_$$,validator:$app$main$ui$workspace$tokens$management$forms$shadow$validate_shadow_token$$})};
$app$main$ui$workspace$tokens$management$forms$typography$check_typography_token_self_reference$$=function($token$jscomp$184_token_values$$){var $token_name$jscomp$42$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$184_token_values$$);$token$jscomp$184_token_values$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$184_token_values$$);return $APP.$cljs$core$some$$(function($p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$){var $k$jscomp$693$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$,0,null);$p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$,1,null);a:switch($k$jscomp$693$$ instanceof $APP.$cljs$core$Keyword$$?$k$jscomp$693$$.$fqn$:null){case "font-family":$p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$=$app$main$ui$workspace$tokens$management$forms$validators$check_coll_self_reference$$($token_name$jscomp$42$$,
$p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$);break a;default:$p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$=$app$main$ui$workspace$tokens$management$forms$validators$check_self_reference$$($token_name$jscomp$42$$,$p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$)}return $APP.$cljs$core$truth_$$($p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p__78004_temp__5825__auto__$jscomp$381_v$jscomp$674$$,$APP.$cljs$cst$4457$typography_key$$,
$k$jscomp$693$$):null},$token$jscomp$184_token_values$$)};$app$main$ui$workspace$tokens$management$forms$typography$check_empty_typography_token$$=function($token$jscomp$185$$){return $APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$185$$))?$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4416$error_DOT_token_SLASH_empty_input$$):null};
$app$main$ui$workspace$tokens$management$forms$typography$validate_typography_token$$=function($map__78012__$1_p__78011$$){$map__78012__$1_p__78011$$=$APP.$cljs$core$__destructure_map$$($map__78012__$1_p__78011$$);var $token_value$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78012__$1_p__78011$$,$cljs$cst$5568$token_value$$);return $token_value$jscomp$14$$==null?(0,$APP.$beicon$v2$core$of$$)(null):typeof $token_value$jscomp$14$$==="string"?$app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$($map__78012__$1_p__78011$$):
$app$main$ui$workspace$tokens$management$forms$validators$default_validate_token$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($map__78012__$1_p__78011$$,$cljs$cst$5568$token_value$$,function($v$jscomp$675$$){return $APP.$app$common$data$update_when$$($APP.$cljs$core$truth_$$($v$jscomp$675$$)?$v$jscomp$675$$:$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$cst$1742$font_family$$,function($p1__78010_SHARP_$$){return typeof $p1__78010_SHARP_$$===
"string"?$APP.$app$common$types$token$split_font_family$$($p1__78010_SHARP_$$):$p1__78010_SHARP_$$})}),$APP.$cljs$cst$4853$validators$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$app$main$ui$workspace$tokens$management$forms$typography$check_empty_typography_token$$,$app$main$ui$workspace$tokens$management$forms$typography$check_typography_token_self_reference$$],null)))};
$app$main$ui$workspace$tokens$management$forms$typography$composite_form_STAR_$$=function($props_78013_tokens$jscomp$71$$){var $token$jscomp$186$$=$props_78013_tokens$jscomp$71$$.token;$props_78013_tokens$jscomp$71$$=$props_78013_tokens$jscomp$71$$.tokens;var $letter_spacing_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],function(){var $temp__5823__auto__$jscomp$233$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,
$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$233$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1750$letter_spacing$$,$APP.$cljs$cst$260$value$$,$app$common$types$token$join_font_family$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$233$$,$APP.$cljs$cst$1750$letter_spacing$$))],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1750$letter_spacing$$],
null)}),$font_family_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],function(){var $temp__5823__auto__$jscomp$234$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$234$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$234$$,
$APP.$cljs$cst$1742$font_family$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1742$font_family$$],null)}),$font_size_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],function(){var $temp__5823__auto__$jscomp$235$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$235$$)?
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1744$font_size$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$235$$,$APP.$cljs$cst$1744$font_size$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1744$font_size$$],null)}),$font_weight_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],
function(){var $temp__5823__auto__$jscomp$236$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$236$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1745$font_weight$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$236$$,$APP.$cljs$cst$1745$font_weight$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1745$font_weight$$],null)}),$line_height_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],function(){var $temp__5823__auto__$jscomp$237$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$237$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1965$dimensions$$,
$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$237$$,$APP.$cljs$cst$1749$line_height$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1965$dimensions$$],null)}),$text_case_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],function(){var $temp__5823__auto__$jscomp$238$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,
$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$238$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1964$text_case$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$238$$,$APP.$cljs$cst$1964$text_case$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1964$text_case$$],null)}),$text_decoration_sub_token$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$186$$)],
function(){var $temp__5823__auto__$jscomp$239$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$186$$,$APP.$cljs$cst$260$value$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$239$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1752$text_decoration$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$239$$,$APP.$cljs$cst$1752$text_decoration$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1752$text_decoration$$],null)});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$fonts_combobox$composite_fonts_combobox_STAR_$$,{icon:"text-font-family",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-font-family-value-enter"),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-font-family-value"),name:$APP.$cljs$cst$1742$font_family$$,token:$font_family_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Font Size",icon:"text-font-size",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.font-size-value-enter"),name:$APP.$cljs$cst$1744$font_size$$,token:$font_size_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Font Weight",icon:"text-font-weight",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.font-weight-value-enter"),name:$APP.$cljs$cst$1745$font_weight$$,token:$font_weight_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Line Height",icon:"text-lineheight",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.line-height-value-enter"),name:$APP.$cljs$cst$1749$line_height$$,token:$line_height_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Letter Spacing",icon:"text-letterspacing",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.letter-spacing-value-enter-composite"),name:$APP.$cljs$cst$1750$letter_spacing$$,token:$letter_spacing_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Text Case",
icon:"text-mixed",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.text-case-value-enter"),name:$APP.$cljs$cst$1964$text_case$$,token:$text_case_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{"aria-label":"Text Decoration",icon:"text-underlined",
placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.text-decoration-value-enter"),name:$APP.$cljs$cst$1752$text_decoration$$,token:$text_decoration_sub_token$$,tokens:$props_78013_tokens$jscomp$71$$})})]})};
$app$main$ui$workspace$tokens$management$forms$typography$reference_form_STAR_$$=function($props_78014_tokens$jscomp$72$$){var $token$jscomp$187$$=$props_78014_tokens$jscomp$72$$.token;$props_78014_tokens$jscomp$72$$=$props_78014_tokens$jscomp$72$$.tokens;return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__input-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$controls$input$input_composite_STAR_$$,{placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.reference-composite"),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.reference"),icon:"text-typography",name:$cljs$cst$5546$reference$$,token:$token$jscomp$187$$,tokens:$props_78014_tokens$jscomp$72$$})})};
$app$main$ui$workspace$tokens$management$forms$typography$tabs_wrapper_STAR_$$=function($props_78015$$){var $tab$jscomp$10$$=void 0,$handle_toggle$jscomp$2$$=void 0,$token$jscomp$188$$=void 0,$tokens$jscomp$73$$=void 0;({token:$token$jscomp$188$$,tokens:$tokens$jscomp$73$$,tab:$tab$jscomp$10$$,handleToggle:$handle_toggle$jscomp$2$$}=$props_78015$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__title-bar",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.typography")}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{"class":"main_ui_workspace_tokens_management_forms_typography__listing-options",selected:$APP.$app$common$data$name$$($tab$jscomp$10$$),"on-change":$handle_toggle$jscomp$2$$,name:"reference-composite-tab",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,
{icon:"layers",value:"composite",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.individual-tokens"),id:"composite-opt"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{icon:"tokens",value:"reference",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.use-reference"),id:"reference-opt"})]})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_management_forms_typography__inputs-wrapper",
children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($tab$jscomp$10$$,$cljs$cst$5571$composite$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$typography$composite_form_STAR_$$,{token:$token$jscomp$188$$,tokens:$tokens$jscomp$73$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$typography$reference_form_STAR_$$,{token:$token$jscomp$188$$,tokens:$tokens$jscomp$73$$})})]})};
$app$main$ui$workspace$tokens$management$forms$typography$make_schema$$=function($tokens_tree$jscomp$10$$,$active_tab$jscomp$3$$){return $APP.$app$common$schema$schema$$(new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$723$name$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$427$and$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$336$min$$,1,$APP.$cljs$cst$337$max$$,255,$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__78016_SHARP_$$){return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__78016_SHARP_$$)),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name-length-validation-error"))].join("")}],null)],null),$APP.$app$common$schema$update_properties$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$common$types$token$schema_COLON_token_name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__78017_SHARP_$$){return[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__78017_SHARP_$$)),
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.token-name-validation-error"))].join("")}])),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$882$error_SLASH_fn$$,function($p1__78018_SHARP_$$){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.token-name-duplication-validation-error",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($p1__78018_SHARP_$$)]))}],null),function($p1__78019_SHARP_$$){return!$APP.$app$common$types$tokens_lib$token_name_path_exists_QMARK_$$($p1__78019_SHARP_$$,$tokens_tree$jscomp$10$$)}],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,new $APP.$cljs$core$PersistentVector$$(null,9,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1744$font_size$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1745$font_weight$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1749$line_height$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,
$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1750$letter_spacing$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1964$text_case$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1752$text_decoration$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($active_tab$jscomp$3$$,$cljs$cst$5546$reference$$)?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5546$reference$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!1],null),$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$],
null):new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5546$reference$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$520$maybe$$,$APP.$cljs$cst$198$string$$],null)],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$934$description$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$448$optional$$,!0],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$198$string$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$337$max$$,2048,$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("errors.field-max-length",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([2048]))}],
null)],null)],null)],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$4410$error_SLASH_field$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$cljs$cst$5546$reference$$],null),$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.self-reference")}],
null),function($name$jscomp$461_p__78020$$){var $map__78021__$1_reference$jscomp$3_value$jscomp$950$$=$APP.$cljs$core$__destructure_map$$($name$jscomp$461_p__78020$$);$name$jscomp$461_p__78020$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78021__$1_reference$jscomp$3_value$jscomp$950$$,$APP.$cljs$cst$723$name$$);$map__78021__$1_reference$jscomp$3_value$jscomp$950$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78021__$1_reference$jscomp$3_value$jscomp$950$$,$APP.$cljs$cst$260$value$$);
$map__78021__$1_reference$jscomp$3_value$jscomp$950$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78021__$1_reference$jscomp$3_value$jscomp$950$$,$cljs$cst$5546$reference$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($map__78021__$1_reference$jscomp$3_value$jscomp$950$$)?$name$jscomp$461_p__78020$$:$map__78021__$1_reference$jscomp$3_value$jscomp$950$$)?!$APP.$app$common$types$token$token_value_self_reference_QMARK_$$($name$jscomp$461_p__78020$$,$map__78021__$1_reference$jscomp$3_value$jscomp$950$$):
!0}],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$4410$error_SLASH_field$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1749$line_height$$],null),$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.composite-line-height-needs-font-size")}],
null),function($line_heigh_map__78023__$1_p__78022$$){$line_heigh_map__78023__$1_p__78022$$=$APP.$cljs$core$__destructure_map$$($line_heigh_map__78023__$1_p__78022$$);var $font_size$jscomp$15_value$jscomp$951$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_heigh_map__78023__$1_p__78022$$,$APP.$cljs$cst$260$value$$);$line_heigh_map__78023__$1_p__78022$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_size$jscomp$15_value$jscomp$951$$,$APP.$cljs$cst$1749$line_height$$);$font_size$jscomp$15_value$jscomp$951$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($font_size$jscomp$15_value$jscomp$951$$,$APP.$cljs$cst$1744$font_size$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($line_heigh_map__78023__$1_p__78022$$)?$APP.$cljs$core$not$$($font_size$jscomp$15_value$jscomp$951$$):$line_heigh_map__78023__$1_p__78022$$)?!1:!0}],null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$514$fn$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$882$error_SLASH_fn$$,function(){return"At least one composite field must be set"},$APP.$cljs$cst$4410$error_SLASH_field$$,$APP.$cljs$cst$260$value$$],null),function($attrs$jscomp$171$$){return $APP.$cljs$core$reduce_kv$$(function($_$jscomp$2921$$,$___$1$jscomp$1990$$,$v$jscomp$676$$){return $APP.$cuerdas$core$empty_QMARK_$$($v$jscomp$676$$)?!1:$APP.$cljs$core$reduced$$(!0)},!1,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($attrs$jscomp$171$$,$APP.$cljs$cst$260$value$$))}],
null)],null))};
$app$main$ui$workspace$tokens$management$forms$typography$form_STAR_$$=function($props_78024$$){var $token$jscomp$189$$=$props_78024$$.token,$initial$jscomp$39$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$189$$)],function(){var $JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$189$$);typeof $JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$===
"string"?$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5546$reference$$,$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$],null):$APP.$cljs$core$map_QMARK_$$($JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$)?($JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$=
$APP.$cljs$core$truth_$$($APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$))?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$,$APP.$cljs$cst$1742$font_family$$,$app$common$types$token$join_font_family$$):$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$,
$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$=$APP.$cljs$core$select_keys$$($JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$,new $APP.$cljs$core$PersistentVector$$(null,7,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$1744$font_size$$,$APP.$cljs$cst$1745$font_weight$$,$APP.$cljs$cst$1749$line_height$$,
$APP.$cljs$cst$1750$letter_spacing$$,$APP.$cljs$cst$1964$text_case$$,$APP.$cljs$cst$1752$text_decoration$$],null))):$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$=$APP.$cljs$core$PersistentArrayMap$EMPTY$$;return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$189$$,""),$APP.$cljs$cst$260$value$$,$JSCompiler_temp$jscomp$10603_JSCompiler_temp$jscomp$10604_processed_value_value$jscomp$952_value__$1$jscomp$inline_13035$$,
$APP.$cljs$cst$934$description$$,$APP.$cljs$cst$934$description$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$189$$,"")],null)});return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,{...$props_78024$$,initial:$initial$jscomp$39$$,makeSchema:$app$main$ui$workspace$tokens$management$forms$typography$make_schema$$,token:$token$jscomp$189$$,validator:$app$main$ui$workspace$tokens$management$forms$typography$validate_typography_token$$,valueType:$cljs$cst$5571$composite$$,
inputComponent:$app$main$ui$workspace$tokens$management$forms$typography$tabs_wrapper_STAR_$$})};
$app$main$ui$workspace$tokens$management$forms$form_container$form_container_STAR_$$=function($props_78027_token_type__$1$$){var $token$jscomp$190$$=void 0,$token_type$jscomp$21$$=void 0,$props$jscomp$376_props__$1$jscomp$99$$=void 0;({token:$token$jscomp$190$$,tokenType:$token_type$jscomp$21$$,...$props$jscomp$376_props__$1$jscomp$99$$}=$props_78027_token_type__$1$$);$props_78027_token_type__$1$$=function(){var $or__5025__auto__$jscomp$1187$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$190$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1187$$)?$or__5025__auto__$jscomp$1187$$:$token_type$jscomp$21$$}();var $tokens_in_selected_set$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_all_tokens_in_selected_set$$),$token_path$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token$jscomp$190$$)],function(){return $APP.$app$common$types$tokens_lib$get_token_path$$($token$jscomp$190$$)}),$text_case_props_tokens_tree_in_selected_set$jscomp$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token_path$$),$APP.$rumext$v2$adapt$$($tokens_in_selected_set$jscomp$1$$)],function(){return $APP.$app$common$data$dissoc_in$$($APP.$app$common$types$tokens_lib$tokens_tree$$($tokens_in_selected_set$jscomp$1$$),$token_path$$)});$props$jscomp$376_props__$1$jscomp$99$$={...$props$jscomp$376_props__$1$jscomp$99$$,tokenType:$props_78027_token_type__$1$$,tokensTreeInSelectedSet:$text_case_props_tokens_tree_in_selected_set$jscomp$1$$,
token:$token$jscomp$190$$};$text_case_props_tokens_tree_in_selected_set$jscomp$1$$={...$props$jscomp$376_props__$1$jscomp$99$$,inputValuePlaceholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.text-case-value-enter")};var $text_decoration_props$$={...$props$jscomp$376_props__$1$jscomp$99$$,inputValuePlaceholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.text-decoration-value-enter")},$font_weight_props$$={...$props$jscomp$376_props__$1$jscomp$99$$,
inputValuePlaceholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.font-weight-value-enter")};switch($props_78027_token_type__$1$$ instanceof $APP.$cljs$core$Keyword$$?$props_78027_token_type__$1$$.$fqn$:null){case "color":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$color$form_STAR_$$,$props$jscomp$376_props__$1$jscomp$99$$);case "typography":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$typography$form_STAR_$$,
$props$jscomp$376_props__$1$jscomp$99$$);case "shadow":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$shadow$form_STAR_$$,$props$jscomp$376_props__$1$jscomp$99$$);case "font-family":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$font_family$form_STAR_$$,$props$jscomp$376_props__$1$jscomp$99$$);case "text-case":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,
$text_case_props_tokens_tree_in_selected_set$jscomp$1$$);case "text-decoration":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,$text_decoration_props$$);case "font-weight":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,$font_weight_props$$);default:return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$generic_form$form_STAR_$$,
$props$jscomp$376_props__$1$jscomp$99$$)}};
$app$main$ui$workspace$tokens$management$forms$modals$calculate_position$$=function($map__78031__$1_max_y$jscomp$3_p__78030$$,$position$jscomp$192$$,$x$jscomp$1250$$,$y$jscomp$473$$,$token_type$jscomp$22$$){$map__78031__$1_max_y$jscomp$3_p__78030$$=$APP.$cljs$core$__destructure_map$$($map__78031__$1_max_y$jscomp$3_p__78030$$);var $vh$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78031__$1_max_y$jscomp$3_p__78030$$,$APP.$cljs$cst$1511$height$$),$modal_height$jscomp$1$$=function(){switch($token_type$jscomp$22$$ instanceof
$APP.$cljs$core$Keyword$$?$token_type$jscomp$22$$.$fqn$:null){case "color":return 500;case "typography":return 660;case "shadow":return 660;default:return 400}}();$map__78031__$1_max_y$jscomp$3_p__78030$$=$vh$jscomp$6$$-$modal_height$jscomp$1$$;var $overflow_fix$$=function(){var $y__5111__auto__$jscomp$141$$=$y$jscomp$473$$+-50+$modal_height$jscomp$1$$+-$vh$jscomp$6$$;return 0>$y__5111__auto__$jscomp$141$$?0:$y__5111__auto__$jscomp$141$$}(),$max_height_top$jscomp$1$$=["calc(100vh - ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(""+
($y$jscomp$473$$-70)+"px")].join(""),$left_offset$jscomp$1_rulers_QMARK_$jscomp$3$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$rulers_QMARK_$$);$left_offset$jscomp$1_rulers_QMARK_$jscomp$3$$=$APP.$cljs$core$truth_$$($left_offset$jscomp$1_rulers_QMARK_$jscomp$3$$)?80:58;var $left_position$$=""+($x$jscomp$1250$$-325)+"px";return $x$jscomp$1250$$==null||$y$jscomp$473$$==null?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$257$left$$,"auto",$APP.$cljs$cst$258$right$$,"16rem",$APP.$cljs$cst$1546$top$$,
"4rem"],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$192$$,$APP.$cljs$cst$257$left$$)?$y$jscomp$473$$>$map__78031__$1_max_y$jscomp$3_p__78030$$?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$257$left$$,$left_position$$,$APP.$cljs$cst$1547$bottom$$,"1rem",$APP.$cljs$cst$5578$maxHeight$$,"calc(100vh -1rem"],null):new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$257$left$$,$left_position$$,$APP.$cljs$cst$5578$maxHeight$$,$max_height_top$jscomp$1$$,
$APP.$cljs$cst$1546$top$$,""+($y$jscomp$473$$-50-$overflow_fix$$)+"px"],null):$y$jscomp$473$$>$map__78031__$1_max_y$jscomp$3_p__78030$$?new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$257$left$$,""+($x$jscomp$1250$$+$left_offset$jscomp$1_rulers_QMARK_$jscomp$3$$??"")+"px",$APP.$cljs$cst$1547$bottom$$,"1rem",$APP.$cljs$cst$5578$maxHeight$$,"calc(100vh -1rem"],null):new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$257$left$$,""+($x$jscomp$1250$$+$left_offset$jscomp$1_rulers_QMARK_$jscomp$3$$??
"")+"px",$APP.$cljs$cst$1546$top$$,""+($y$jscomp$473$$-70-$overflow_fix$$)+"px",$APP.$cljs$cst$5578$maxHeight$$,$max_height_top$jscomp$1$$],null)};
$app$main$ui$workspace$tokens$management$forms$modals$use_viewport_position_style$$=function($x$jscomp$1251$$,$y$jscomp$474$$,$position$jscomp$193$$,$token_type$jscomp$23$$){var $vport$jscomp$10$$=$APP.$rumext$v2$deref$$($APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2165$vport$$,$APP.$app$main$refs$workspace_local$$));return $APP.$cljs$core$clj__GT_js$$($app$main$ui$workspace$tokens$management$forms$modals$calculate_position$$($vport$jscomp$10$$,$position$jscomp$193$$,
$x$jscomp$1251$$,$y$jscomp$474$$,$token_type$jscomp$23$$))};
$app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$=function($props_78033_wrapper_style$$){var $selected_token_set_id$jscomp$9$$=$props_78033_wrapper_style$$["selected-token-set-id"],$token$jscomp$191$$=$props_78033_wrapper_style$$.token,$token_type$jscomp$24$$=$props_78033_wrapper_style$$["token-type"],$action$jscomp$8$$=$props_78033_wrapper_style$$.action;$props_78033_wrapper_style$$=$app$main$ui$workspace$tokens$management$forms$modals$use_viewport_position_style$$($props_78033_wrapper_style$$.x,$props_78033_wrapper_style$$.y,
$props_78033_wrapper_style$$.position,$token_type$jscomp$24$$);var $modal_size_large_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token_type$jscomp$24$$,$APP.$cljs$cst$1966$typography$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token_type$jscomp$24$$,$APP.$cljs$cst$1284$color$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($token_type$jscomp$24$$,$APP.$cljs$cst$1638$shadow$$)),$modal_size_large_QMARK_$$=
$APP.$cljs$core$_deref$$($modal_size_large_STAR_$$),$close_modal$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$data$modal$hide_BANG_$$()}),$update_modal_size$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($visible$jscomp$4$$){return $APP.$cljs$core$reset_BANG_$$($modal_size_large_STAR_$$,$visible$jscomp$4$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{style:$props_78033_wrapper_style$$,"data-testid":"token-update-create-modal",
className:"main_ui_workspace_tokens_management_forms_modals__token-modal-wrapper "+($APP.$cljs$core$truth_$$($modal_size_large_QMARK_$$)?"main_ui_workspace_tokens_management_forms_modals__token-modal-large":""),children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{onClick:$close_modal$$,className:"main_ui_workspace_tokens_management_forms_modals__close-btn",icon:"close",variant:"action","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$forms$form_container$form_container_STAR_$$,{isCreate:!$APP.$app$common$types$tokens_lib$token_QMARK_$$($token$jscomp$191$$),token:$token$jscomp$191$$,action:$action$jscomp$8$$,selectedTokenSetId:$selected_token_set_id$jscomp$9$$,tokenType:$token_type$jscomp$24$$,onDisplayColorpicker:$update_modal_size$$})]})};
$app$main$ui$workspace$tokens$management$forms$modals$boolean_modal$$=function($properties$jscomp$109_props_78034$$){$properties$jscomp$109_props_78034$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$109_props_78034$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$109_props_78034$$))};
$app$main$ui$workspace$tokens$management$forms$modals$border_radius_modal$$=function($properties$jscomp$110_props_78035$$){$properties$jscomp$110_props_78035$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$110_props_78035$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$110_props_78035$$))};
$app$main$ui$workspace$tokens$management$forms$modals$color_modal$$=function($properties$jscomp$111_props_78037$$){$properties$jscomp$111_props_78037$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$111_props_78037$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$111_props_78037$$))};
$app$main$ui$workspace$tokens$management$forms$modals$stroke_width_modal$$=function($properties$jscomp$112_props_78039$$){$properties$jscomp$112_props_78039$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$112_props_78039$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$112_props_78039$$))};
$app$main$ui$workspace$tokens$management$forms$modals$box_shadow_modal$$=function($properties$jscomp$113_props_78043$$){$properties$jscomp$113_props_78043$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$113_props_78043$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$113_props_78043$$))};
$app$main$ui$workspace$tokens$management$forms$modals$sizing_modal$$=function($properties$jscomp$114_props_78044$$){$properties$jscomp$114_props_78044$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$114_props_78044$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$114_props_78044$$))};
$app$main$ui$workspace$tokens$management$forms$modals$dimensions_modal$$=function($properties$jscomp$115_props_78045$$){$properties$jscomp$115_props_78045$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$115_props_78045$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$115_props_78045$$))};
$app$main$ui$workspace$tokens$management$forms$modals$number_modal$$=function($properties$jscomp$116_props_78048$$){$properties$jscomp$116_props_78048$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$116_props_78048$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$116_props_78048$$))};
$app$main$ui$workspace$tokens$management$forms$modals$opacity_modal$$=function($properties$jscomp$117_props_78049$$){$properties$jscomp$117_props_78049$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$117_props_78049$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$117_props_78049$$))};
$app$main$ui$workspace$tokens$management$forms$modals$other_modal$$=function($properties$jscomp$118_props_78050$$){$properties$jscomp$118_props_78050$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$118_props_78050$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$118_props_78050$$))};
$app$main$ui$workspace$tokens$management$forms$modals$rotation_modal$$=function($properties$jscomp$119_props_78051$$){$properties$jscomp$119_props_78051$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$119_props_78051$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$119_props_78051$$))};
$app$main$ui$workspace$tokens$management$forms$modals$spacing_modal$$=function($properties$jscomp$120_props_78052$$){$properties$jscomp$120_props_78052$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$120_props_78052$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$120_props_78052$$))};
$app$main$ui$workspace$tokens$management$forms$modals$string_modal$$=function($properties$jscomp$121_props_78053$$){$properties$jscomp$121_props_78053$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$121_props_78053$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$121_props_78053$$))};
$app$main$ui$workspace$tokens$management$forms$modals$typography_modal$$=function($properties$jscomp$122_props_78054$$){$properties$jscomp$122_props_78054$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$122_props_78054$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$122_props_78054$$))};
$app$main$ui$workspace$tokens$management$forms$modals$font_size_modal$$=function($properties$jscomp$123_props_78055$$){$properties$jscomp$123_props_78055$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$123_props_78055$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$123_props_78055$$))};
$app$main$ui$workspace$tokens$management$forms$modals$letter_spacing_modal$$=function($properties$jscomp$124_props_78056$$){$properties$jscomp$124_props_78056$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$124_props_78056$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$124_props_78056$$))};
$app$main$ui$workspace$tokens$management$forms$modals$font_familiy_modal$$=function($properties$jscomp$125_props_78057$$){$properties$jscomp$125_props_78057$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$125_props_78057$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$125_props_78057$$))};
$app$main$ui$workspace$tokens$management$forms$modals$text_case_modal$$=function($properties$jscomp$126_props_78058$$){$properties$jscomp$126_props_78058$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$126_props_78058$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$126_props_78058$$))};
$app$main$ui$workspace$tokens$management$forms$modals$text_decoration_modal$$=function($properties$jscomp$127_props_78060$$){$properties$jscomp$127_props_78060$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$127_props_78060$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$127_props_78060$$))};
$app$main$ui$workspace$tokens$management$forms$modals$font_weight_modal$$=function($properties$jscomp$128_props_78061$$){$properties$jscomp$128_props_78061$$=$APP.$rumext$v2$util$wrap_props$$($properties$jscomp$128_props_78061$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$forms$modals$token_update_create_modal$$,$APP.$rumext$v2$util$map__GT_obj$$($properties$jscomp$128_props_78061$$))};
$app$main$ui$workspace$tokens$remapping_modal$token_remapping_modal$$=function($map__78038_old_token_name$jscomp$3_props_78036$$){$map__78038_old_token_name$jscomp$3_props_78036$$=$APP.$rumext$v2$util$wrap_props$$($map__78038_old_token_name$jscomp$3_props_78036$$);var $confirm_remap_map__78038__$1$$=$APP.$cljs$core$__destructure_map$$($map__78038_old_token_name$jscomp$3_props_78036$$);$map__78038_old_token_name$jscomp$3_props_78036$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($confirm_remap_map__78038__$1$$,
$cljs$cst$5573$old_token_name$$);var $new_token_name$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($confirm_remap_map__78038__$1$$,$cljs$cst$5574$new_token_name$$),$on_remap$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($confirm_remap_map__78038__$1$$,$cljs$cst$5575$on_remap$$),$on_rename$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($confirm_remap_map__78038__$1$$,$cljs$cst$5576$on_rename$$),$remap_modal$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),
$cljs$cst$5582$remap_modal$$);$confirm_remap_map__78038__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_remap$jscomp$1$$),$APP.$rumext$v2$adapt$$($remap_modal$$)],function(){var $old_token_name_78046__$1$$=$cljs$cst$5573$old_token_name$$.$cljs$core$IFn$_invoke$arity$1$($remap_modal$$),$new_token_name_78047__$1$$=$cljs$cst$5574$new_token_name$$.$cljs$core$IFn$_invoke$arity$1$($remap_modal$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5583$tokens_SLASH_remap_tokens$$,$old_token_name_78046__$1$$,$new_token_name_78047__$1$$],null));return $APP.$cljs$core$fn_QMARK_$$($on_remap$jscomp$1$$)?$on_remap$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$on_remap$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_remap$jscomp$1$$():null});var $rename_token$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_rename$jscomp$4$$)],function(){return $APP.$cljs$core$fn_QMARK_$$($on_rename$jscomp$4$$)?
$on_rename$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$?$on_rename$jscomp$4$$.$cljs$core$IFn$_invoke$arity$0$():$on_rename$jscomp$4$$():null}),$cancel_action$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$hide$$())}),$on_key_down$jscomp$18$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($cancel_action$$)],function($event$jscomp$580$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$580$$))?
$cancel_action$$.$cljs$core$IFn$_invoke$arity$0$?$cancel_action$$.$cljs$core$IFn$_invoke$arity$0$():$cancel_action$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{onKeyDown:$on_key_down$jscomp$18$$,role:"alertdialog","aria-modal":"true","aria-labelledby":"modal-title",className:"main_ui_workspace_tokens_remapping_modal__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"token-remapping-modal",className:"main_ui_workspace_tokens_remapping_modal__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{onClick:$cancel_action$$,className:"main_ui_workspace_tokens_remapping_modal__close-btn",icon:"close",variant:"action","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_remapping_modal__modal-header",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,id:"modal-title",typography:"headline-large",className:"main_ui_workspace_tokens_remapping_modal__modal-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.remap-token-references-title",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$map__78038_old_token_name$jscomp$3_props_78036$$,$new_token_name$jscomp$2$$]))})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_remapping_modal__modal-content",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"p",typography:"body-medium",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.remap-warning-effects")}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"p",typography:"body-medium",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.remap-warning-time")})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_remapping_modal__modal-footer",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_remapping_modal__action-buttons",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,
{onClick:$rename_token$$,type:"button",variant:"secondary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.not-remap")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$confirm_remap_map__78038__$1$$,type:"button",variant:"primary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.remap")})]})})]})})};
$app$main$data$workspace$tokens$typography$set_base_font_size$$=function($base_font_size$jscomp$2$$){typeof $app$main$data$workspace$tokens$typography$set_base_font_size_78040$$==="undefined"&&($app$main$data$workspace$tokens$typography$set_base_font_size_78040$$=function($base_font_size$jscomp$3$$,$meta78041$$){this.$base_font_size$=$base_font_size$jscomp$3$$;this.$meta78041$=$meta78041$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $cljs$cst$5584$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_typography_SLASH_set_base_font_size$$},$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_78042$$,$meta78041__$1$$){return new $app$main$data$workspace$tokens$typography$set_base_font_size_78040$$(this.$base_font_size$,
$meta78041__$1$$)},$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta78041$},$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$tokens$typography$set_base_font_size_78040$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($file_id$jscomp$393_it$jscomp$253_new_base_font_size$jscomp$inline_8758$$,
$changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$){$file_id$jscomp$393_it$jscomp$253_new_base_font_size$jscomp$inline_8758$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$,$APP.$cljs$cst$2489$workspace$$),$APP.$cljs$cst$1902$current_file_id$$);$changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$,$APP.$cljs$cst$1901$files$$),$file_id$jscomp$393_it$jscomp$253_new_base_font_size$jscomp$inline_8758$$),$APP.$cljs$cst$142$data$$);$changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$=$APP.$app$common$files$changes_builder$with_file_data$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$01$$(this),
$changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$);$file_id$jscomp$393_it$jscomp$253_new_base_font_size$jscomp$inline_8758$$=this.$base_font_size$;var $file_data$jscomp$inline_8759_previous_font_size$jscomp$inline_8760$$=$APP.$cljs$cst$3120$app_DOT_common_DOT_files_DOT_changes_builder_SLASH_file_data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$));$file_data$jscomp$inline_8759_previous_font_size$jscomp$inline_8760$$=
$app$common$types$file$get_base_font_size$$($file_data$jscomp$inline_8759_previous_font_size$jscomp$inline_8760$$);$changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$=$APP.$app$common$files$changes_builder$apply_changes_local$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$,$APP.$cljs$cst$3086$redo_changes$$,
$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2609$set_base_font_size$$,$APP.$cljs$cst$2528$base_font_size$$,$file_id$jscomp$393_it$jscomp$253_new_base_font_size$jscomp$inline_8758$$],null)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$conj$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2609$set_base_font_size$$,$APP.$cljs$cst$2528$base_font_size$$,$file_data$jscomp$inline_8759_previous_font_size$jscomp$inline_8760$$],
null)));return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$changes$commit_changes$$($changes$jscomp$312_changes$jscomp$inline_8757_file_data$jscomp$114_state$jscomp$1097$$))});return new $app$main$data$workspace$tokens$typography$set_base_font_size_78040$$($base_font_size$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$workspace$tokens$settings$menu$token_settings_STAR_$$=function(){var $file_data$jscomp$115$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_data$$),$base_font_size_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $app$common$types$file$get_base_font_size$$($file_data$jscomp$115$$)}),$base_font_size$jscomp$4$$=$APP.$cljs$core$_deref$$($base_font_size_STAR_$$),$valid_QMARK__STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),
$is_valid$$=$APP.$cljs$core$_deref$$($valid_QMARK__STAR_$$),$hint_message$jscomp$1$$=$APP.$cljs$core$truth_$$($is_valid$$)?["1rem \x3d ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($base_font_size$jscomp$4$$)].join(""):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.base-font-size.error"),$on_change_base_font_size$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_font_size_STAR_$$)],function($e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$){$e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$=
(0,$APP.$app$util$dom$get_target_val$$)($e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$);$APP.$cljs$core$reset_BANG_$$($valid_QMARK__STAR_$$,$APP.$cljs$core$boolean$0$$($APP.$cljs$core$re_matches$$(/^\d+(\.\d+)?(px)?$/,$e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$)));return $APP.$cljs$core$boolean$0$$($APP.$cljs$core$re_matches$$(/^\d+(\.\d+)?(px)?$/,$e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$))?($e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$=$APP.$cuerdas$core$ends_with_QMARK_$$($e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$,
"px")?$e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$),"px"].join(""),$APP.$cljs$core$reset_BANG_$$($base_font_size_STAR_$$,$e$jscomp$364_unit_value$jscomp$1_value$jscomp$954$$)):null}),$on_set_font$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_font_size$jscomp$4$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$tokens$typography$set_base_font_size$$($base_font_size$jscomp$4$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$hide$$()]))}),$handle_key_down$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_font_size$jscomp$4$$),$APP.$rumext$v2$adapt$$($is_valid$$)],function($and__5023__auto__$jscomp$inline_8762_e$jscomp$365$$){$and__5023__auto__$jscomp$inline_8762_e$jscomp$365$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($and__5023__auto__$jscomp$inline_8762_e$jscomp$365$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8762_e$jscomp$365$$)?
$is_valid$$:$and__5023__auto__$jscomp$inline_8762_e$jscomp$365$$)?$on_set_font$$.$cljs$core$IFn$_invoke$arity$0$?$on_set_font$$.$cljs$core$IFn$_invoke$arity$0$():$on_set_font$$():null});return(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"token-font-settings-modal",className:"main_ui_workspace_tokens_settings_menu__setting-modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_settings_menu__setting-modal",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{onClick:$APP.$app$main$data$modal$hide_BANG_$$,className:"main_ui_workspace_tokens_settings_menu__close-btn",icon:"close",variant:"action","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_settings_menu__settings-modal-layout",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_settings_menu__settings-modal-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.settings")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_settings_menu__settings-modal-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_settings_menu__settings-modal-subtitle-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-large",className:"main_ui_workspace_tokens_settings_menu__settings-subtitle",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.base-font-size")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-medium",className:"main_ui_workspace_tokens_settings_menu__settings-modal-description",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.setting-description")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$input$input_STAR_$$,{type:"text",placeholder:"16",
defaultValue:$base_font_size$jscomp$4$$,hintMessage:$hint_message$jscomp$1$$,hintType:$APP.$cljs$core$truth_$$($is_valid$$)?"hint":"error",onKeyDown:$handle_key_down$jscomp$10$$,onChange:$on_change_base_font_size$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_settings_menu__settings-modal-actions",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$APP.$app$main$data$modal$hide_BANG_$$,type:"button",variant:"secondary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel")}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{onClick:$on_set_font$$,type:"button",disabled:$APP.$cljs$core$not$$($is_valid$$),variant:"primary",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.save")})]})]})]})]})})};$app$main$ui$workspace$tokens$settings$token_settings_modal_STAR_$$=function(){return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$settings$menu$token_settings_STAR_$$,{})};
$app$main$ui$workspace$tokens$themes$create_modal$empty_themes$$=function($create_theme_map__78065_map__78065__$1_props_78064$$){$create_theme_map__78065_map__78065__$1_props_78064$$=$APP.$rumext$v2$util$wrap_props$$($create_theme_map__78065_map__78065__$1_props_78064$$);$create_theme_map__78065_map__78065__$1_props_78064$$=$APP.$cljs$core$__destructure_map$$($create_theme_map__78065_map__78065__$1_props_78064$$);var $change_view$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($create_theme_map__78065_map__78065__$1_props_78064$$,
$cljs$cst$5585$change_view$$);$create_theme_map__78065_map__78065__$1_props_78064$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_view$$)],function(){return $change_view$$.$cljs$core$IFn$_invoke$arity$1$?$change_view$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5586$create_theme$$):$change_view$$($cljs$cst$5586$create_theme$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,
{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.themes-list")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__empty-themes-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__empty-themes-message",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,
{as:"span",typography:"title-medium",className:"main_ui_workspace_tokens_themes_create_modal__empty-theme-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-themes-currently")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",className:"main_ui_workspace_tokens_themes_create_modal__empty-theme-subtitle",typography:"body-medium",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.create-new-theme")})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__button-footer",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",onClick:$APP.$app$main$data$modal$hide_BANG_$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",onClick:$create_theme_map__78065_map__78065__$1_props_78064$$,
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.add-new-theme")})]})]})]})};
$app$main$ui$workspace$tokens$themes$create_modal$themes_overview$$=function($props_78066$$){var $map__78067$$=$APP.$rumext$v2$util$wrap_props$$($props_78066$$),$map__78067__$1$$=$APP.$cljs$core$__destructure_map$$($map__78067$$),$change_view$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78067__$1$$,$cljs$cst$5585$change_view$$),$active_theme_paths$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_active_theme_paths$$),$themes_groups$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_theme_tree_no_hidden$$),
$create_theme$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_view$jscomp$1$$)],function($e$jscomp$366$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$366$$);$APP.$app$util$dom$stop_propagation$$($e$jscomp$366$$);return $change_view$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$change_view$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5586$create_theme$$):$change_view$jscomp$1$$($cljs$cst$5586$create_theme$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.themes-list")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"div",typography:"body-medium",
className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-description",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.themes-description")}),(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_themes_create_modal__theme-group-wrapper",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$212$$,$p__78068$$){var $group$jscomp$52$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78068$$,
0,null),$themes$jscomp$13$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78068$$,1,null);$out_arr__44057__auto__$jscomp$212$$.push((0,$APP.$rumext$v2$jsxs$$)("li",{children:[$APP.$cljs$core$seq$$($group$jscomp$52$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:3,className:"main_ui_workspace_tokens_themes_create_modal__theme-group-label",typography:"body-large",children:(0,$APP.$rumext$v2$jsxs$$)("div",{title:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.group-name")),
": ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($group$jscomp$52$$)].join(""),className:"main_ui_workspace_tokens_themes_create_modal__group-title",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"group",className:"main_ui_workspace_tokens_themes_create_modal__group-title-icon"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-medium",className:"main_ui_workspace_tokens_themes_create_modal__group-title-name",
children:$group$jscomp$52$$})]})}):null,(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_themes_create_modal__theme-group-rows-wrapper",children:$APP.$cljs$core$into_array$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return function $app$main$ui$workspace$tokens$themes$create_modal$themes_overview_$_iter__78072$$($s__78073$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $temp__5825__auto__$jscomp$382$$=$APP.$cljs$core$seq$$($s__78073$$);if($temp__5825__auto__$jscomp$382$$){var $s__78073__$2$$=
$temp__5825__auto__$jscomp$382$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($s__78073__$2$$)){var $c__5501__auto__$jscomp$51$$=$APP.$cljs$core$_chunked_first$$($s__78073__$2$$),$size__5502__auto__$jscomp$51$$=$APP.$cljs$core$count$$($c__5501__auto__$jscomp$51$$),$b__78075$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$51$$);return function(){for(var $i__78074$$=0;;)if($i__78074$$<$size__5502__auto__$jscomp$51$$){var $vec__78076$$=$APP.$cljs$core$_nth$$($c__5501__auto__$jscomp$51$$,$i__78074$$),
$_$jscomp$2924$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78076$$,0,null),$map__78079$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78076$$,1,null),$map__78079__$1$$=$APP.$cljs$core$__destructure_map$$($map__78079$$),$theme$jscomp$18$$=$map__78079__$1$$,$id$jscomp$966$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78079__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$463$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78079__$1$$,$APP.$cljs$cst$723$name$$),
$theme_path$jscomp$2$$=$APP.$app$common$types$tokens_lib$get_theme_path$$($theme$jscomp$18$$),$selected_QMARK_$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_paths$jscomp$6$$,$theme_path$jscomp$2$$)!=null,$delete_theme$jscomp$1$$=function($i__78074$jscomp$1$$,$theme_path$jscomp$3$$,$selected_QMARK_$jscomp$18$$,$vec__78076$jscomp$1$$,$_$jscomp$2925$$,$map__78079$jscomp$1$$,$map__78079__$1$jscomp$1$$,$theme$jscomp$19$$,$id$jscomp$967$$){return function($e$jscomp$367$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$367$$);
$APP.$app$util$dom$stop_propagation$$($e$jscomp$367$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token_theme$$($id$jscomp$967$$))}}($i__78074$$,$theme_path$jscomp$2$$,$selected_QMARK_$jscomp$17$$,$vec__78076$$,$_$jscomp$2924$$,$map__78079$$,$map__78079__$1$$,$theme$jscomp$18$$,$id$jscomp$966$$,$name$jscomp$463$$,$c__5501__auto__$jscomp$51$$,$size__5502__auto__$jscomp$51$$,$b__78075$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,
$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$),$on_switch_theme$jscomp$1$$=function($i__78074$jscomp$2$$,$theme_path$jscomp$4$$,$selected_QMARK_$jscomp$19$$,$delete_theme$jscomp$2$$,$vec__78076$jscomp$2$$,$_$jscomp$2926$$,$map__78079$jscomp$2$$,$map__78079__$1$jscomp$2$$,$theme$jscomp$20$$,$id$jscomp$968$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$toggle_token_theme_active$$($id$jscomp$968$$))}}($i__78074$$,
$theme_path$jscomp$2$$,$selected_QMARK_$jscomp$17$$,$delete_theme$jscomp$1$$,$vec__78076$$,$_$jscomp$2924$$,$map__78079$$,$map__78079__$1$$,$theme$jscomp$18$$,$id$jscomp$966$$,$name$jscomp$463$$,$c__5501__auto__$jscomp$51$$,$size__5502__auto__$jscomp$51$$,$b__78075$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$),$on_edit_theme$jscomp$1$$=
function($i__78074$jscomp$3$$,$theme_path$jscomp$5$$,$selected_QMARK_$jscomp$20$$,$delete_theme$jscomp$3$$,$on_switch_theme$jscomp$2$$,$vec__78076$jscomp$3$$,$_$jscomp$2927$$,$map__78079$jscomp$3$$,$map__78079__$1$jscomp$3$$,$theme$jscomp$21$$,$id$jscomp$969$$,$name$jscomp$466$$,$c__5501__auto__$jscomp$54$$,$size__5502__auto__$jscomp$54$$,$b__78075$jscomp$3$$,$s__78073__$2$jscomp$3$$,$temp__5825__auto__$jscomp$385$$,$vec__78069$jscomp$3$$,$group$jscomp$55$$,$themes$jscomp$16$$,$active_theme_paths$jscomp$9$$,
$themes_groups$jscomp$3$$,$create_theme$jscomp$4$$,$map__78067$jscomp$3$$,$map__78067__$1$jscomp$3$$,$change_view$jscomp$4$$){return function($G__78081_e$jscomp$368$$){$APP.$app$util$dom$prevent_default$$($G__78081_e$jscomp$368$$);$APP.$app$util$dom$stop_propagation$$($G__78081_e$jscomp$368$$);$G__78081_e$jscomp$368$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5588$theme_info$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$21$$),
$APP.$cljs$cst$1592$group$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$21$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$21$$)],null)],null);return $change_view$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$?$change_view$jscomp$4$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5587$edit_theme$$,$G__78081_e$jscomp$368$$):$change_view$jscomp$4$$($cljs$cst$5587$edit_theme$$,$G__78081_e$jscomp$368$$)}}($i__78074$$,$theme_path$jscomp$2$$,$selected_QMARK_$jscomp$17$$,$delete_theme$jscomp$1$$,
$on_switch_theme$jscomp$1$$,$vec__78076$$,$_$jscomp$2924$$,$map__78079$$,$map__78079__$1$$,$theme$jscomp$18$$,$id$jscomp$966$$,$name$jscomp$463$$,$c__5501__auto__$jscomp$51$$,$size__5502__auto__$jscomp$51$$,$b__78075$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$);$APP.$cljs$core$chunk_append$$($b__78075$$,(0,$APP.$rumext$v2$jsxs$$)("li",
{className:"main_ui_workspace_tokens_themes_create_modal__theme-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__theme-switch-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$switch$0$switch_STAR_$$,{id:$name$jscomp$463$$,label:$name$jscomp$463$$,onChange:$on_switch_theme$jscomp$1$$,defaultChecked:$selected_QMARK_$jscomp$17$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__theme-actions-row",
children:[function(){var $G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$=$theme$jscomp$18$$;$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$=$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$==null?null:$APP.$cljs$cst$2090$sets$$.$cljs$core$IFn$_invoke$arity$1$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$);
$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$=$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$==null?null:$APP.$cljs$core$seq$$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$);$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$=$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$==
null?null:$APP.$cljs$core$count$$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$);return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{className:($APP.$cljs$core$truth_$$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$)?"main_ui_workspace_tokens_themes_create_modal__sets-count-button":"")+" "+($APP.$cljs$core$not$$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$)?
"main_ui_workspace_tokens_themes_create_modal__sets-count-empty-button":""),variant:"secondary",type:"button",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.sets-hint"),onClick:$on_edit_theme$jscomp$1$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__label-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-medium",children:$APP.$cljs$core$truth_$$($G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$)?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.num-active-sets",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__78082$jscomp$inline_8764_G__78082__$1$jscomp$inline_8765_G__78082__$2$jscomp$inline_8766_sets_count$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-active-sets")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-right"})]})})}(),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{onClick:$delete_theme$jscomp$1$$,variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.delete-theme-title"),icon:"delete"})]})]},$theme_path$jscomp$2$$));$i__78074$$+=1}else return!0}()?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__78075$$),$app$main$ui$workspace$tokens$themes$create_modal$themes_overview_$_iter__78072$$($APP.$cljs$core$_chunked_rest$$($s__78073__$2$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__78075$$),
null)}var $vec__78083$$=$APP.$cljs$core$first$$($s__78073__$2$$),$_$jscomp$2923$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78083$$,0,null),$map__78086$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78083$$,1,null),$map__78086__$1$$=$APP.$cljs$core$__destructure_map$$($map__78086$$),$theme$jscomp$17$$=$map__78086__$1$$,$id$jscomp$965$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78086__$1$$,$APP.$cljs$cst$266$id$$),$name$jscomp$462$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78086__$1$$,
$APP.$cljs$cst$723$name$$),$theme_path$jscomp$1$$=$APP.$app$common$types$tokens_lib$get_theme_path$$($theme$jscomp$17$$),$selected_QMARK_$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_paths$jscomp$6$$,$theme_path$jscomp$1$$)!=null,$delete_theme$$=function($theme_path$jscomp$6$$,$selected_QMARK_$jscomp$21$$,$vec__78083$jscomp$1$$,$_$jscomp$2928$$,$map__78086$jscomp$1$$,$map__78086__$1$jscomp$1$$,$theme$jscomp$22$$,$id$jscomp$970$$){return function($e$jscomp$369$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$369$$);
$APP.$app$util$dom$stop_propagation$$($e$jscomp$369$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token_theme$$($id$jscomp$970$$))}}($theme_path$jscomp$1$$,$selected_QMARK_$jscomp$16$$,$vec__78083$$,$_$jscomp$2923$$,$map__78086$$,$map__78086__$1$$,$theme$jscomp$17$$,$id$jscomp$965$$,$name$jscomp$462$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,
$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$),$on_switch_theme$$=function($theme_path$jscomp$7$$,$selected_QMARK_$jscomp$22$$,$delete_theme$jscomp$4$$,$vec__78083$jscomp$2$$,$_$jscomp$2929$$,$map__78086$jscomp$2$$,$map__78086__$1$jscomp$2$$,$theme$jscomp$23$$,$id$jscomp$971$$){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$toggle_token_theme_active$$($id$jscomp$971$$))}}($theme_path$jscomp$1$$,
$selected_QMARK_$jscomp$16$$,$delete_theme$$,$vec__78083$$,$_$jscomp$2923$$,$map__78086$$,$map__78086__$1$$,$theme$jscomp$17$$,$id$jscomp$965$$,$name$jscomp$462$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$),$on_edit_theme$$=function($theme_path$jscomp$8$$,$selected_QMARK_$jscomp$23$$,$delete_theme$jscomp$5$$,$on_switch_theme$jscomp$3$$,
$vec__78083$jscomp$3$$,$_$jscomp$2930$$,$map__78086$jscomp$3$$,$map__78086__$1$jscomp$3$$,$theme$jscomp$24$$,$id$jscomp$972$$,$name$jscomp$469$$,$s__78073__$2$jscomp$6$$,$temp__5825__auto__$jscomp$388$$,$vec__78069$jscomp$6$$,$group$jscomp$58$$,$themes$jscomp$19$$,$active_theme_paths$jscomp$12$$,$themes_groups$jscomp$6$$,$create_theme$jscomp$7$$,$map__78067$jscomp$6$$,$map__78067__$1$jscomp$6$$,$change_view$jscomp$7$$){return function($G__78088_e$jscomp$370$$){$APP.$app$util$dom$prevent_default$$($G__78088_e$jscomp$370$$);
$APP.$app$util$dom$stop_propagation$$($G__78088_e$jscomp$370$$);$G__78088_e$jscomp$370$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5588$theme_info$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$24$$),$APP.$cljs$cst$1592$group$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$24$$),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$24$$)],null)],
null);return $change_view$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$?$change_view$jscomp$7$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5587$edit_theme$$,$G__78088_e$jscomp$370$$):$change_view$jscomp$7$$($cljs$cst$5587$edit_theme$$,$G__78088_e$jscomp$370$$)}}($theme_path$jscomp$1$$,$selected_QMARK_$jscomp$16$$,$delete_theme$$,$on_switch_theme$$,$vec__78083$$,$_$jscomp$2923$$,$map__78086$$,$map__78086__$1$$,$theme$jscomp$17$$,$id$jscomp$965$$,$name$jscomp$462$$,$s__78073__$2$$,$temp__5825__auto__$jscomp$382$$,
$p__78068$$,$group$jscomp$52$$,$themes$jscomp$13$$,$active_theme_paths$jscomp$6$$,$themes_groups$$,$create_theme$jscomp$1$$,$map__78067$$,$map__78067__$1$$,$change_view$jscomp$1$$);return $APP.$cljs$core$cons$$((0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_tokens_themes_create_modal__theme-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__theme-switch-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$switch$0$switch_STAR_$$,
{id:$name$jscomp$462$$,label:$name$jscomp$462$$,onChange:$on_switch_theme$$,defaultChecked:$selected_QMARK_$jscomp$16$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__theme-actions-row",children:[function(){var $G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$=$theme$jscomp$17$$;$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$=
$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$==null?null:$APP.$cljs$cst$2090$sets$$.$cljs$core$IFn$_invoke$arity$1$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$);$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$=$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$==
null?null:$APP.$cljs$core$seq$$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$);$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$=$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$==null?null:$APP.$cljs$core$count$$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$);
return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{className:($APP.$cljs$core$truth_$$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$)?"main_ui_workspace_tokens_themes_create_modal__sets-count-button":"")+" "+($APP.$cljs$core$not$$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$)?"main_ui_workspace_tokens_themes_create_modal__sets-count-empty-button":
""),variant:"secondary",type:"button",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.sets-hint"),onClick:$on_edit_theme$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__label-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-medium",children:$APP.$cljs$core$truth_$$($G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$)?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.num-active-sets",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__78089$jscomp$inline_8768_G__78089__$1$jscomp$inline_8769_G__78089__$2$jscomp$inline_8770_sets_count$jscomp$1$$])):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.no-active-sets")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow-right"})]})})}(),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{onClick:$delete_theme$$,variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.delete-theme-title"),icon:"delete"})]})]},$theme_path$jscomp$1$$),$app$main$ui$workspace$tokens$themes$create_modal$themes_overview_$_iter__78072$$($APP.$cljs$core$rest$$($s__78073__$2$$)))}return null}},null,null)}($themes$jscomp$13$$)}())})]},"token-theme-group"+($group$jscomp$52$$??"")));return $out_arr__44057__auto__$jscomp$212$$},[],$themes_groups$$)}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_tokens_themes_create_modal__button-footer",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",onClick:$APP.$app$main$data$modal$hide_BANG_$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close")}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"button",onClick:$create_theme$jscomp$1$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.add-new-theme")})]})]})};
$app$main$ui$workspace$tokens$themes$create_modal$theme_inputs_STAR_$$=function($options$jscomp$623_props_78090_theme_groups$$){var $theme$jscomp$25$$=$options$jscomp$623_props_78090_theme_groups$$.theme,$on_change_field$$=$options$jscomp$623_props_78090_theme_groups$$.onChangeField,$tokens_lib$jscomp$53$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$tokens_lib$$);$options$jscomp$623_props_78090_theme_groups$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_theme_groups$$);var $theme_name_ref$$=
(0,$APP.$rumext$v2$use_ref$$)($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$25$$));$options$jscomp$623_props_78090_theme_groups$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($group$jscomp$59$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$group$jscomp$59$$,$APP.$cljs$cst$266$id$$,$group$jscomp$59$$],null)},$options$jscomp$623_props_78090_theme_groups$$);var $current_group_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1592$group$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$25$$)),
$current_group$$=$APP.$cljs$core$_deref$$($current_group_STAR_$$),$current_name_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$25$$)),$current_name$$=$APP.$cljs$core$_deref$$($current_name_STAR_$$),$group_errors_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$group_errors$$=$APP.$cljs$core$_deref$$($group_errors_STAR_$$),$name_errors_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$name_errors$$=$APP.$cljs$core$_deref$$($name_errors_STAR_$$),$on_update_group$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_field$$),$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$53$$),$APP.$rumext$v2$adapt$$($current_name$$)],function($value$jscomp$955$$){var $errors$jscomp$43$$=$app$common$schema$validation_errors$$($value$jscomp$955$$,$APP.$app$common$files$tokens$make_token_theme_group_schema$$($tokens_lib$jscomp$53$$,$current_name$$,$APP.$app$common$types$tokens_lib$get_id$$($theme$jscomp$25$$)));
$APP.$cljs$core$reset_BANG_$$($group_errors_STAR_$$,$errors$jscomp$43$$);return $APP.$cljs$core$empty_QMARK_$$($errors$jscomp$43$$)?($APP.$cljs$core$reset_BANG_$$($current_group_STAR_$$,$value$jscomp$955$$),$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1592$group$$,$value$jscomp$955$$):$on_change_field$$($APP.$cljs$cst$1592$group$$,$value$jscomp$955$$)):$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1592$group$$,
""):$on_change_field$$($APP.$cljs$cst$1592$group$$,"")}),$on_update_name$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change_field$$),$APP.$rumext$v2$adapt$$($tokens_lib$jscomp$53$$),$APP.$rumext$v2$adapt$$($current_group$$)],function($event$jscomp$581_value$jscomp$956$$){$event$jscomp$581_value$jscomp$956$$=$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$581_value$jscomp$956$$));var $errors$jscomp$44$$=$app$common$schema$validation_errors$$($event$jscomp$581_value$jscomp$956$$,
$APP.$app$common$files$tokens$make_token_theme_name_schema$$($tokens_lib$jscomp$53$$,$current_group$$,$APP.$app$common$types$tokens_lib$get_id$$($theme$jscomp$25$$)));$APP.$cljs$core$reset_BANG_$$($name_errors_STAR_$$,$errors$jscomp$44$$);$APP.$rumext$v2$set_ref_val_BANG_$$($theme_name_ref$$,$event$jscomp$581_value$jscomp$956$$);return $APP.$cljs$core$empty_QMARK_$$($errors$jscomp$44$$)?($APP.$cljs$core$reset_BANG_$$($current_name_STAR_$$,$event$jscomp$581_value$jscomp$956$$),$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$?
$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,$event$jscomp$581_value$jscomp$956$$):$on_change_field$$($APP.$cljs$cst$723$name$$,$event$jscomp$581_value$jscomp$956$$)):$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$?$on_change_field$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$723$name$$,""):$on_change_field$$($APP.$cljs$cst$723$name$$,"")});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__edit-theme-inputs-wrapper",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__group-input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$utilities$label$label_STAR_$$,{htmlFor:"groups-dropdown",isOptional:!0,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.label.group")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$combobox$combobox_STAR_$$,{id:"groups-dropdown",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.label.group-placeholder"),
defaultSelected:$APP.$cljs$cst$1592$group$$.$cljs$core$IFn$_invoke$arity$1$($theme$jscomp$25$$),options:$APP.$cljs$core$clj__GT_js$$($options$jscomp$623_props_78090_theme_groups$$),hasError:$APP.$app$common$data$not_empty_QMARK_$$($group_errors$$),onChange:$on_update_group$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__group-input-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$input$input_STAR_$$,{onChange:$on_update_name$$,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.label.theme-placeholder"),
label:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.label.theme"),hintType:$APP.$cljs$core$empty_QMARK_$$($name_errors$$)?null:"error",hintMessage:$APP.$cljs$core$first$$($name_errors$$),maxLength:255,defaultValue:$APP.$rumext$v2$ref_val$$($theme_name_ref$$),variant:"comfortable",autoFocus:!0})})]})};
$app$main$ui$workspace$tokens$themes$create_modal$theme_modal_buttons_STAR_$$=function($handle_key_down_cancel$jscomp$1_props_78091$$){var $disabled_QMARK_$jscomp$9$$=$handle_key_down_cancel$jscomp$1_props_78091$$["disabled?"],$close_modal$jscomp$1$$=$handle_key_down_cancel$jscomp$1_props_78091$$.closeModal,$on_save_form$$=$handle_key_down_cancel$jscomp$1_props_78091$$.onSaveForm;$handle_key_down_cancel$jscomp$1_props_78091$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($close_modal$jscomp$1$$)],
function($event$jscomp$582$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$582$$))?$close_modal$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$close_modal$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$582$$):$close_modal$jscomp$1$$($event$jscomp$582$$):null});var $handle_key_down_save$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_save_form$$)],function($event$jscomp$583$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$583$$))?
$on_save_form$$.$cljs$core$IFn$_invoke$arity$1$?$on_save_form$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$583$$):$on_save_form$$($event$jscomp$583$$):null});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",onClick:$close_modal$jscomp$1$$,onKeyDown:$handle_key_down_cancel$jscomp$1_props_78091$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel")}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"primary",type:"submit",onClick:$on_save_form$$,onKeyDown:$handle_key_down_save$jscomp$1$$,disabled:$disabled_QMARK_$jscomp$9$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.save-theme")})]})};
$app$main$ui$workspace$tokens$themes$create_modal$make_lib_with_theme$$=function($theme$jscomp$26$$,$sets$jscomp$22_tlib__$1$$){var $tlib$jscomp$2$$=$APP.$app$common$types$tokens_lib$make_tokens_lib$$().$app$common$types$tokens_lib$ITokenThemes$add_theme$arity$2$(null,$theme$jscomp$26$$);$sets$jscomp$22_tlib__$1$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$types$tokens_lib$add_set$$,$tlib$jscomp$2$$,$sets$jscomp$22_tlib__$1$$);return $APP.$app$common$types$tokens_lib$activate_theme$$($sets$jscomp$22_tlib__$1$$,
$APP.$app$common$types$tokens_lib$get_id$$($theme$jscomp$26$$))};
$app$main$ui$workspace$tokens$themes$create_modal$edit_create_theme_STAR_$$=function($is_editing$jscomp$5_props_78094$$){var $has_prev_view$$=$is_editing$jscomp$5_props_78094$$.hasPrevView,$change_view$jscomp$8$$=$is_editing$jscomp$5_props_78094$$.changeView,$on_save$jscomp$1$$=$is_editing$jscomp$5_props_78094$$.onSave,$disabled_QMARK_$jscomp$10_theme$jscomp$27$$=$is_editing$jscomp$5_props_78094$$.theme;$is_editing$jscomp$5_props_78094$$=$is_editing$jscomp$5_props_78094$$.isEditing;var $ordered_token_sets$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_ordered_token_sets$$),$tokens_lib$jscomp$54$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$tokens_lib$$),$token_sets$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_sets_tree$$),$current_theme_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($disabled_QMARK_$jscomp$10_theme$jscomp$27$$),$current_theme$$=$APP.$cljs$core$_deref$$($current_theme_STAR_$$),$lib$jscomp$16$$=$app$main$ui$workspace$tokens$themes$create_modal$make_lib_with_theme$$($current_theme$$,
$ordered_token_sets$$),$on_back$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_view$jscomp$8$$)],function(){return $change_view$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$?$change_view$jscomp$8$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$5589$themes_overview$$):$change_view$jscomp$8$$($cljs$cst$5589$themes_overview$$)});$disabled_QMARK_$jscomp$10_theme$jscomp$27$$=$APP.$cuerdas$core$empty_QMARK_$$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($current_theme$$)));
var $on_change_field$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($field$jscomp$15$$,$value$jscomp$957$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($current_theme_STAR_$$,function($p1__78092_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78092_SHARP_$$,$field$jscomp$15$$,$value$jscomp$957$$)})}),$on_save_form$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$),
$APP.$rumext$v2$adapt$$($on_save$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_back$$)],function($e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$);$e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($current_theme$$,$APP.$cljs$cst$723$name$$,$APP.$cuerdas$core$trim$$),
$APP.$cljs$cst$1592$group$$,$APP.$cuerdas$core$trim$$),$APP.$cljs$cst$934$description$$,$APP.$cuerdas$core$trim$$);$APP.$cuerdas$core$empty_QMARK_$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$))||($on_save$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_save$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$):$on_save$jscomp$1$$($e$jscomp$371_theme_SINGLEQUOTE_$jscomp$1$$));return $on_back$$.$cljs$core$IFn$_invoke$arity$0$?
$on_back$$.$cljs$core$IFn$_invoke$arity$0$():$on_back$$()}),$close_modal$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$372$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$372$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$hide$$())}),$on_delete_theme$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$),$APP.$rumext$v2$adapt$$($on_back$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$delete_token_theme$$($APP.$app$common$types$tokens_lib$get_id$$($current_theme$$)));
return $on_back$$.$cljs$core$IFn$_invoke$arity$0$?$on_back$$.$cljs$core$IFn$_invoke$arity$0$():$on_back$$()}),$token_set_group_active_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$)],function($group_path$jscomp$10$$){return $app$common$types$tokens_lib$sets_at_path_all_active_QMARK_$$($lib$jscomp$16$$,$group_path$jscomp$10$$)}),$token_set_active_QMARK_$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$)],
function($name$jscomp$470$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$2090$sets$$.$cljs$core$IFn$_invoke$arity$1$($current_theme$$),$name$jscomp$470$$)}),$on_toggle_token_set$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$)],function($set_name$jscomp$30$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($current_theme_STAR_$$,function($p1__78093_SHARP_$$){return $APP.$app$common$types$tokens_lib$toggle_set$$($p1__78093_SHARP_$$,
$set_name$jscomp$30$$)})}),$on_toggle_token_set_group$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_theme$$),$APP.$rumext$v2$adapt$$($ordered_token_sets$$)],function($group_path$jscomp$11$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($current_theme_STAR_$$,function($theme_SINGLEQUOTE_$jscomp$2$$){var $lib_SINGLEQUOTE_$jscomp$3$$=$app$main$ui$workspace$tokens$themes$create_modal$make_lib_with_theme$$($theme_SINGLEQUOTE_$jscomp$2$$,
$ordered_token_sets$$);return $app$common$logic$tokens$toggle_token_set_group$$($group_path$jscomp$11$$,$lib_SINGLEQUOTE_$jscomp$3$$,$theme_SINGLEQUOTE_$jscomp$2$$)})}),$on_click_token_set$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_toggle_token_set$jscomp$1$$)],function($G__78095_set$jscomp$21_set_id$jscomp$33$$){$G__78095_set$jscomp$21_set_id$jscomp$33$$=$APP.$app$common$types$tokens_lib$get_set$$($lib$jscomp$16$$,$G__78095_set$jscomp$21_set_id$jscomp$33$$);
$G__78095_set$jscomp$21_set_id$jscomp$33$$=$APP.$app$common$types$tokens_lib$get_name$$($G__78095_set$jscomp$21_set_id$jscomp$33$$);return $on_toggle_token_set$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_toggle_token_set$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78095_set$jscomp$21_set_id$jscomp$33$$):$on_toggle_token_set$jscomp$1$$($G__78095_set$jscomp$21_set_id$jscomp$33$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-wrapper",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$typography$heading$heading_STAR_$$,{level:2,typography:"headline-medium",className:"main_ui_workspace_tokens_themes_create_modal__themes-modal-title",children:$APP.$cljs$core$truth_$$($is_editing$jscomp$5_props_78094$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.edit-theme-title"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.add-new-theme")}),(0,$APP.$rumext$v2$jsx$$)("form",
{onSubmit:$on_save_form$jscomp$1$$,className:"main_ui_workspace_tokens_themes_create_modal__edit-theme-form",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__edit-theme-wrapper",children:[$APP.$cljs$core$truth_$$($has_prev_view$$)?(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$on_back$$,type:"button",className:"main_ui_workspace_tokens_themes_create_modal__back-btn",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:"arrow-left","aria-hidden":!0}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.back-to-themes")]}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$create_modal$theme_inputs_STAR_$$,{theme:$current_theme$$,onChangeField:$on_change_field$jscomp$1$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$typography$text$text_STAR_$$,{as:"span",typography:"body-small",className:"main_ui_workspace_tokens_themes_create_modal__select-sets-message",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.set-selection-theme")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__sets-list-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sets$lists$controlled_sets_list_STAR_$$,{tokenSets:$token_sets$jscomp$4$$,origin:"theme-modal",onToggleTokenSet:$on_toggle_token_set$jscomp$1$$,tokensLib:$tokens_lib$jscomp$54$$,isTokenSetActive:$token_set_active_QMARK_$jscomp$2$$,
canEdit:!1,onToggleTokenSetGroup:$on_toggle_token_set_group$jscomp$1$$,onSelect:$on_click_token_set$$,isTokenSetGroupActive:$token_set_group_active_QMARK_$jscomp$1$$})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__edit-theme-footer",children:[$APP.$cljs$core$truth_$$($is_editing$jscomp$5_props_78094$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$buttons$button$button_STAR_$$,{variant:"secondary",type:"button",icon:"delete",onClick:$on_delete_theme$$,children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.delete")}):
null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__button-footer",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$create_modal$theme_modal_buttons_STAR_$$,{closeModal:$close_modal$jscomp$2$$,onSaveForm:$on_save_form$jscomp$1$$,"disabled?":$disabled_QMARK_$jscomp$10_theme$jscomp$27$$})})]})]})})]})};
$app$main$ui$workspace$tokens$themes$create_modal$has_prev_view$$=function($prev_view_type$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5589$themes_overview$$,null,$cljs$cst$5590$empty_themes$$,null],null),null),$prev_view_type$$)};
$app$main$ui$workspace$tokens$themes$create_modal$edit_theme$$=function($change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$){$change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$=$APP.$rumext$v2$util$wrap_props$$($change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$);$change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$=$APP.$cljs$core$__destructure_map$$($change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$);var $has_prev_view$jscomp$1_state$jscomp$1098$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$,$APP.$cljs$cst$767$state$$);$change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$,$cljs$cst$5585$change_view$$);var $map__78098__$1_on_save$jscomp$2_vec__78099$$=$APP.$cljs$core$__destructure_map$$($has_prev_view$jscomp$1_state$jscomp$1098$$);$map__78098__$1_on_save$jscomp$2_vec__78099$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78098__$1_on_save$jscomp$2_vec__78099$$,$cljs$cst$5588$theme_info$$);var $theme_id$jscomp$10$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78098__$1_on_save$jscomp$2_vec__78099$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78098__$1_on_save$jscomp$2_vec__78099$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78098__$1_on_save$jscomp$2_vec__78099$$,2,null);var $theme$jscomp$28$$=
$APP.$rumext$v2$deref$$($app$main$refs$workspace_token_theme$$($theme_id$jscomp$10$$));$has_prev_view$jscomp$1_state$jscomp$1098$$=$app$main$ui$workspace$tokens$themes$create_modal$has_prev_view$$($cljs$cst$5591$prev_type$$.$cljs$core$IFn$_invoke$arity$1$($has_prev_view$jscomp$1_state$jscomp$1098$$));$map__78098__$1_on_save$jscomp$2_vec__78099$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($theme$jscomp$28$$)],function($theme_SINGLEQUOTE_$jscomp$3$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$library_edit$update_token_theme$$($APP.$app$common$types$tokens_lib$get_id$$($theme$jscomp$28$$),
$theme_SINGLEQUOTE_$jscomp$3$$))});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$create_modal$edit_create_theme_STAR_$$,{changeView:$change_view$jscomp$9_map__78097_map__78097__$1_props_78096$$,theme:$theme$jscomp$28$$,onSave:$map__78098__$1_on_save$jscomp$2_vec__78099$$,isEditing:!0,hasPrevView:$has_prev_view$jscomp$1_state$jscomp$1098$$})};
$app$main$ui$workspace$tokens$themes$create_modal$create_theme$$=function($has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$){$has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$=$APP.$rumext$v2$util$wrap_props$$($has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$);var $change_view$jscomp$10_map__78103__$1$$=$APP.$cljs$core$__destructure_map$$($has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$);$has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_view$jscomp$10_map__78103__$1$$,$APP.$cljs$cst$767$state$$);$change_view$jscomp$10_map__78103__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($change_view$jscomp$10_map__78103__$1$$,$cljs$cst$5585$change_view$$);var $theme$jscomp$29$$=$APP.$app$common$types$tokens_lib$make_token_theme$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$723$name$$,""])),$on_save$jscomp$3$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($theme__$1$$){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,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-tokens-theme"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$library_edit$create_token_theme$$($theme__$1$$)]))});
$has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$=$app$main$ui$workspace$tokens$themes$create_modal$has_prev_view$$($cljs$cst$5591$prev_type$$.$cljs$core$IFn$_invoke$arity$1$($has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$));return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$create_modal$edit_create_theme_STAR_$$,{changeView:$change_view$jscomp$10_map__78103__$1$$,theme:$theme$jscomp$29$$,onSave:$on_save$jscomp$3$$,hasPrevView:$has_prev_view$jscomp$2_map__78103_props_78102_state$jscomp$1099$$})};
$app$main$ui$workspace$tokens$themes$create_modal$themes_modal_body_STAR_$$=function(){var $themes$jscomp$20$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_token_themes_no_hidden$$),$state_STAR_$jscomp$26$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$empty_QMARK_$$($themes$jscomp$20$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$cljs$cst$5586$create_theme$$],null):new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$cljs$cst$5589$themes_overview$$],null)}),$state$jscomp$1100$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$26$$),$change_view$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){function $G__78111$$($type$jscomp$671$$,$var_args$jscomp$1428$$){var $G__78112__i_p__78105$jscomp$1$$=null;if(arguments.length>1){$G__78112__i_p__78105$jscomp$1$$=0;for(var $G__78112__a$$=Array(arguments.length-1);$G__78112__i_p__78105$jscomp$1$$<$G__78112__a$$.length;)$G__78112__a$$[$G__78112__i_p__78105$jscomp$1$$]=
arguments[$G__78112__i_p__78105$jscomp$1$$+1],++$G__78112__i_p__78105$jscomp$1$$;$G__78112__i_p__78105$jscomp$1$$=new $APP.$cljs$core$IndexedSeq$$($G__78112__a$$,0,null)}return $G__78111__delegate$$.call(this,$type$jscomp$671$$,$G__78112__i_p__78105$jscomp$1$$)}function $G__78111__delegate$$($type$jscomp$670$$,$map__78106__$1_p__78105$$){$map__78106__$1_p__78105$$=$APP.$cljs$core$__destructure_map$$($map__78106__$1_p__78105$$);var $theme_info$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78106__$1_p__78105$$,
$cljs$cst$5588$theme_info$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($state_STAR_$jscomp$26$$,function($G__78107__$1_current_state$$){$G__78107__$1_current_state$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__78107__$1_current_state$$,$APP.$cljs$cst$139$type$$,$type$jscomp$670$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5591$prev_type$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__78107__$1_current_state$$)]));
return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78107__$1_current_state$$,$cljs$cst$5588$theme_info$$,$theme_info$jscomp$1$$)})}$G__78111$$.$cljs$lang$maxFixedArity$=1;$G__78111$$.$cljs$lang$applyTo$=function($arglist__78113_p__78105$jscomp$2$$){var $type$jscomp$672$$=$APP.$cljs$core$first$$($arglist__78113_p__78105$jscomp$2$$);$arglist__78113_p__78105$jscomp$2$$=$APP.$cljs$core$rest$$($arglist__78113_p__78105$jscomp$2$$);return $G__78111__delegate$$($type$jscomp$672$$,$arglist__78113_p__78105$jscomp$2$$)};
$G__78111$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__78111__delegate$$;return $G__78111$$}()),$component$jscomp$130$$=function(){var $G__78108_G__78108__$1$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1100$$);$G__78108_G__78108__$1$$=$G__78108_G__78108__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__78108_G__78108__$1$$.$fqn$:null;switch($G__78108_G__78108__$1$$){case "empty-themes":return $app$main$ui$workspace$tokens$themes$create_modal$empty_themes$$;case "themes-overview":return $APP.$cljs$core$empty_QMARK_$$($themes$jscomp$20$$)?
$app$main$ui$workspace$tokens$themes$create_modal$empty_themes$$:$app$main$ui$workspace$tokens$themes$create_modal$themes_overview$$;case "edit-theme":return $app$main$ui$workspace$tokens$themes$create_modal$edit_theme$$;case "create-theme":return $app$main$ui$workspace$tokens$themes$create_modal$create_theme$$;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78108_G__78108__$1$$)].join(""));}}();return(0,$APP.$rumext$v2$jsx$$)($component$jscomp$130$$,
{state:$state$jscomp$1100$$,"change-view":$change_view$jscomp$11$$})};
$app$main$ui$workspace$tokens$themes$create_modal$token_themes_modal$$=function(){return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_tokens_themes_create_modal__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"token-theme-update-create-modal",className:"main_ui_workspace_tokens_themes_create_modal__modal-dialog",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{className:"main_ui_workspace_tokens_themes_create_modal__close-btn",
onClick:$APP.$app$main$data$modal$hide_BANG_$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),variant:"action",icon:"close"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$themes$create_modal$themes_modal_body_STAR_$$,{})]})})};
$app$main$ui$flex_controls$common$flex_display_pill$$=function($map__78116_props_78115_x$jscomp$1253$$){$map__78116_props_78115_x$jscomp$1253$$=$APP.$rumext$v2$util$wrap_props$$($map__78116_props_78115_x$jscomp$1253$$);var $color$jscomp$187_map__78116__$1$$=$APP.$cljs$core$__destructure_map$$($map__78116_props_78115_x$jscomp$1253$$);$map__78116_props_78115_x$jscomp$1253$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$476$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$205$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$173$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$1511$height$$),$font_size$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,
$APP.$cljs$cst$1744$font_size$$),$border_radius$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$1967$border_radius$$),$value$jscomp$958$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$260$value$$);$color$jscomp$187_map__78116__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$187_map__78116__$1$$,$APP.$cljs$cst$1284$color$$);return(0,$APP.$rumext$v2$jsxs$$)("g",
{className:"distance-pill",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$map__78116_props_78115_x$jscomp$1253$$,y:$y$jscomp$476$$,width:$width$jscomp$205$$,height:$height$jscomp$173$$,rx:$border_radius$jscomp$1$$,ry:$border_radius$jscomp$1$$,style:{fill:$color$jscomp$187_map__78116__$1$$}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$map__78116_props_78115_x$jscomp$1253$$+$width$jscomp$205$$/2,y:$y$jscomp$476$$+$height$jscomp$173$$/2,textAnchor:"middle",dominantBaseline:"central",style:{fill:"var(--app-white)",
fontSize:$font_size$jscomp$16$$},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$truth_$$($value$jscomp$958$$)?$value$jscomp$958$$:0)})]})};
$app$main$ui$workspace$viewport$viewport_ref$init_observer$$=function($node$jscomp$433$$){var $observer$jscomp$8$$=new ResizeObserver($app$main$ui$workspace$viewport$viewport_ref$on_change_bounds$$);$APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$current_observer$$)!=null&&$APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$current_observer$$).disconnect();$APP.$cljs$core$reset_BANG_$$($app$main$ui$workspace$viewport$viewport_ref$current_observer$$,$observer$jscomp$8$$);
return $node$jscomp$433$$!=null?$observer$jscomp$8$$.observe($node$jscomp$433$$):null};
$app$main$ui$workspace$viewport$viewport_ref$on_change_bounds$$=function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$))){var $brect_brect__$1$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$));$brect_brect__$1$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($brect_brect__$1$$)),$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1546$top$$.$cljs$core$IFn$_invoke$arity$1$($brect_brect__$1$$)));
return $APP.$cljs$core$reset_BANG_$$($app$main$ui$workspace$viewport$viewport_ref$viewport_brect$$,$brect_brect__$1$$)}return null};
$app$main$ui$workspace$viewport$viewport_ref$create_viewport_ref$$=function(){var $ref$jscomp$56$$=(0,$APP.$rumext$v2$use_ref$$)(null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$ref$jscomp$56$$,$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return function($node$jscomp$434$$){$APP.$rumext$v2$set_ref_val_BANG_$$($ref$jscomp$56$$,$node$jscomp$434$$);$APP.$cljs$core$reset_BANG_$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$,
$node$jscomp$434$$);$node$jscomp$434$$!=null&&$APP.$goog$events$listen$$($node$jscomp$434$$,"mouseleave",function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$BlurEvent$$(null,null,null))});return $app$main$ui$workspace$viewport$viewport_ref$init_observer$$($node$jscomp$434$$)}})],null)};
$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$=function($pt$jscomp$26$$){var $zoom$jscomp$65_zoom__$1$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),$APP.$cljs$cst$1905$workspace_local$$),$APP.$cljs$cst$2158$zoom$$,1);if($APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$)!=null&&$APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_brect$$)!=
null){var $box_vbox$jscomp$33$$=$APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$).viewBox.baseVal,$brect$jscomp$1$$=$APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_brect$$);$box_vbox$jscomp$33$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($box_vbox$jscomp$33$$.x,$box_vbox$jscomp$33$$.y);$zoom$jscomp$65_zoom__$1$jscomp$1$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($zoom$jscomp$65_zoom__$1$jscomp$1$$);
return $APP.$app$common$geom$point$add$$($APP.$app$common$geom$point$divide$$($APP.$app$common$geom$point$subtract$$($pt$jscomp$26$$,$brect$jscomp$1$$),$zoom$jscomp$65_zoom__$1$jscomp$1$$),$box_vbox$jscomp$33$$)}return null};
$app$main$ui$flex_controls$gap$gap_display$$=function($map__78118_map__78118__$1_props_78117$$){$map__78118_map__78118__$1_props_78117$$=$APP.$rumext$v2$util$wrap_props$$($map__78118_map__78118__$1_props_78117$$);$map__78118_map__78118__$1_props_78117$$=$APP.$cljs$core$__destructure_map$$($map__78118_map__78118__$1_props_78117$$);var $on_change$jscomp$90$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$APP.$cljs$cst$4041$on_change$$),$selected_QMARK_$jscomp$24$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$APP.$cljs$cst$5510$selected_QMARK_$$),$hover_QMARK_$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5328$hover_QMARK_$$),$zoom$jscomp$66$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$APP.$cljs$cst$2158$zoom$$),$on_pointer_leave$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,
$cljs$cst$5592$on_pointer_leave$$),$gap_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5593$gap_type$$),$on_pointer_enter$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5594$on_pointer_enter$$),$mouse_pos$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5595$mouse_pos$$),$on_context_menu$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,
$cljs$cst$5524$on_context_menu$$),$on_move_selected$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5596$on_move_selected$$),$hover_value$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5597$hover_value$$),$rect_data$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$cljs$cst$5598$rect_data$$),$gap$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,
$APP.$cljs$cst$3952$gap$$),$frame_id$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78118_map__78118__$1_props_78117$$,$APP.$cljs$cst$1591$frame_id$$),$resizing$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$start$jscomp$245$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$original_value$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$last_pos$jscomp$2$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$negate_QMARK_$jscomp$3$$=$cljs$cst$5599$resize_negate_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),$axis$jscomp$39$$=$cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),$on_pointer_down$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$138$$),$APP.$rumext$v2$adapt$$($gap_type$$),$APP.$rumext$v2$adapt$$($gap$jscomp$5$$)],function($event$jscomp$584$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$584$$);
$APP.$cljs$core$reset_BANG_$$($resizing$$,$gap_type$$);$APP.$cljs$core$reset_BANG_$$($start$jscomp$245$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$584$$));return $APP.$cljs$core$reset_BANG_$$($original_value$$,$cljs$cst$5601$initial_value$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$))}),$calc_modifiers$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$138$$),$APP.$rumext$v2$adapt$$($gap_type$$),$APP.$rumext$v2$adapt$$($gap$jscomp$5$$)],
function($pos$jscomp$150$$){var $delta$jscomp$62$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$(function(){var $G__78119$$=$APP.$app$common$geom$point$to_vec$$($APP.$cljs$core$_deref$$($start$jscomp$245$$),$pos$jscomp$150$$);return $APP.$cljs$core$truth_$$($negate_QMARK_$jscomp$3$$)?$APP.$app$common$geom$point$negate$$($G__78119$$):$G__78119$$}(),$axis$jscomp$39$$),$val$jscomp$218$$=function(){var $x__5110__auto__$jscomp$142$$=$APP.$cljs$core$_deref$$($original_value$$)+$delta$jscomp$62$$/
$zoom$jscomp$66$$;return $x__5110__auto__$jscomp$142$$>0?$x__5110__auto__$jscomp$142$$:0}()|0,$layout_gap$jscomp$4$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($gap$jscomp$5$$,$gap_type$$,$val$jscomp$218$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val$jscomp$218$$,$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_id$jscomp$138$$],
null),$APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),$APP.$cljs$cst$1664$layout_gap$$,$layout_gap$jscomp$4$$))],null)}),$on_lost_pointer_capture$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$$)],function($event$jscomp$585_modifiers_78152_vec__78120_78150$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$585_modifiers_78152_vec__78120_78150$$);$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$835$$=
$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1");return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$835$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($resizing$$),$gap_type$$):$and__5023__auto__$jscomp$835$$}())&&($event$jscomp$585_modifiers_78152_vec__78120_78150$$=function(){var $G__78123$$=$APP.$cljs$core$_deref$$($last_pos$jscomp$2$$);return $calc_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?
$calc_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($G__78123$$):$calc_modifiers$$($G__78123$$)}(),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$585_modifiers_78152_vec__78120_78150$$,0,null),$event$jscomp$585_modifiers_78152_vec__78120_78150$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($event$jscomp$585_modifiers_78152_vec__78120_78150$$,1,null),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($event$jscomp$585_modifiers_78152_vec__78120_78150$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$transforms$finish_transform$$()])));$APP.$cljs$core$reset_BANG_$$($resizing$$,null);$APP.$cljs$core$reset_BANG_$$($start$jscomp$245$$,null);$APP.$cljs$core$reset_BANG_$$($original_value$$,0);return $APP.$cljs$core$not$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null)):
null}),$on_pointer_move$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$90$$)],function($event$jscomp$586_pos$jscomp$151_val$jscomp$219$$){$event$jscomp$586_pos$jscomp$151_val$jscomp$219$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$586_pos$jscomp$151_val$jscomp$219$$);$APP.$cljs$core$reset_BANG_$$($last_pos$jscomp$2$$,$event$jscomp$586_pos$jscomp$151_val$jscomp$219$$);$APP.$cljs$core$reset_BANG_$$($mouse_pos$$,
$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event$jscomp$586_pos$jscomp$151_val$jscomp$219$$));if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($resizing$$),$gap_type$$)){var $modifiers$jscomp$113_vec__78124$$=$calc_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?$calc_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$586_pos$jscomp$151_val$jscomp$219$$):$calc_modifiers$$($event$jscomp$586_pos$jscomp$151_val$jscomp$219$$);$event$jscomp$586_pos$jscomp$151_val$jscomp$219$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$113_vec__78124$$,0,null);$modifiers$jscomp$113_vec__78124$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$113_vec__78124$$,1,null);$APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$1$$,$event$jscomp$586_pos$jscomp$151_val$jscomp$219$$);$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$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modifiers$jscomp$113_vec__78124$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modifiers$jscomp$113_vec__78124$$,!1,!1,null));return $APP.$cljs$core$truth_$$($on_change$jscomp$90$$)?$on_change$jscomp$90$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$90$$.$cljs$core$IFn$_invoke$arity$1$($modifiers$jscomp$113_vec__78124$$):$on_change$jscomp$90$$($modifiers$jscomp$113_vec__78124$$):null}return null});return(0,$APP.$rumext$v2$jsxs$$)("g",
{className:"gap-rect",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),className:"info-area",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),onContextMenu:$on_context_menu$jscomp$16$$,style:{fill:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$8$$)?$hover_QMARK_$jscomp$8$$:$selected_QMARK_$jscomp$24$$)?
"var(--color-accent-quaternary)":"none",opacity:$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$24$$)?.5:.25},y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),onPointerMove:$on_pointer_move$jscomp$6$$,onPointerDown:$on_move_selected$$,onPointerLeave:$on_pointer_leave$jscomp$7$$,onPointerEnter:$on_pointer_enter$jscomp$7$$}),function(){var $handle_width$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$39$$,$APP.$cljs$cst$1499$x$$)?2/$zoom$jscomp$66$$:function(){var $x__5113__auto__$jscomp$82$$=
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)*.5,$y__5114__auto__$jscomp$82$$=20/$zoom$jscomp$66$$;return $x__5113__auto__$jscomp$82$$<$y__5114__auto__$jscomp$82$$?$x__5113__auto__$jscomp$82$$:$y__5114__auto__$jscomp$82$$}(),$handle_height$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$39$$,$APP.$cljs$cst$1500$y$$)?2/$zoom$jscomp$66$$:function(){var $x__5113__auto__$jscomp$83$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)*
.5,$y__5114__auto__$jscomp$83$$=30/$zoom$jscomp$66$$;return $x__5113__auto__$jscomp$83$$<$y__5114__auto__$jscomp$83$$?$x__5113__auto__$jscomp$83$$:$y__5114__auto__$jscomp$83$$}();return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$handle_width$$,height:$handle_height$$,className:"handle "+(($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$8$$)?$hover_QMARK_$jscomp$8$$:$selected_QMARK_$jscomp$24$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$),
$APP.$cljs$cst$1499$x$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",0):$app$main$ui$css_cursors$get_dynamic$$("resize-ew",90):null)??""),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)-$handle_width$$)/2,onContextMenu:$on_context_menu$jscomp$16$$,style:{fill:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$8$$)?$hover_QMARK_$jscomp$8$$:$selected_QMARK_$jscomp$24$$)?"var(--color-accent-quaternary)":
"none",opacity:$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$24$$)?0:1},onLostPointerCapture:$on_lost_pointer_capture$jscomp$5$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$$)-$handle_height$$)/2,onPointerMove:$on_pointer_move$jscomp$6$$,onPointerDown:$on_pointer_down$jscomp$7$$,onPointerLeave:$on_pointer_leave$jscomp$7$$,onPointerEnter:$on_pointer_enter$jscomp$7$$})}()]})};
$app$main$ui$flex_controls$gap$gap_rects$$=function($map__78134_map__78134__$1_pill_width_props_78133$$){function $create_rgdd_block$$($block$jscomp$9_y$jscomp$482$$){var $x$jscomp$1259$$=$APP.$cljs$core$truth_$$($flip_x$jscomp$9$$)?$x1$jscomp$40$$+$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$):$x1$jscomp$40$$+$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$);$block$jscomp$9_y$jscomp$482$$=$APP.$cljs$core$truth_$$($flip_y$jscomp$9$$)?$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$9_y$jscomp$482$$)-
$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$):$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$9_y$jscomp$482$$);var $w$jscomp$44$$=$width$jscomp$206$$-($APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$)+$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$));return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,
$cljs$cst$5593$gap_type$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$block$jscomp$9_y$jscomp$482$$,$APP.$cljs$cst$1547$bottom$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($negate$$),$is_col_QMARK_$jscomp$2$$?$APP.$cljs$cst$1666$column_gap$$:$APP.$cljs$cst$1665$row_gap$$,$w$jscomp$44$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),$x$jscomp$1259$$,
$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$)])}function $create_rgdd$$($shape$jscomp$1006_y$jscomp$481$$){var $block$jscomp$8_w$jscomp$43$$=$get_container_block$$($shape$jscomp$1006_y$jscomp$481$$),$x$jscomp$1258$$=$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$8_w$jscomp$43$$);$shape$jscomp$1006_y$jscomp$481$$=$APP.$cljs$core$truth_$$($flip_y$jscomp$9$$)?$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1006_y$jscomp$481$$))-
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1006_y$jscomp$481$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1683$layout_item_margin$$,$APP.$cljs$cst$1686$m3$$],null))-$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$):$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1006_y$jscomp$481$$))+$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1006_y$jscomp$481$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1683$layout_item_margin$$,$APP.$cljs$cst$1686$m3$$],null));$block$jscomp$8_w$jscomp$43$$=$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$8_w$jscomp$43$$)-$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$8_w$jscomp$43$$);return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,
$cljs$cst$5593$gap_type$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$shape$jscomp$1006_y$jscomp$481$$,$APP.$cljs$cst$1547$bottom$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($negate$$),$is_col_QMARK_$jscomp$2$$?$APP.$cljs$cst$1665$row_gap$$:$APP.$cljs$cst$1666$column_gap$$,$block$jscomp$8_w$jscomp$43$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),
$x$jscomp$1258$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1665$row_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$)])}function $create_cgdd_block$$($block$jscomp$7_x$jscomp$1257$$){$block$jscomp$7_x$jscomp$1257$$=$APP.$cljs$core$truth_$$($flip_x$jscomp$9$$)?$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$7_x$jscomp$1257$$)-$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$):$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$7_x$jscomp$1257$$);
var $y$jscomp$480$$=$APP.$cljs$core$truth_$$($flip_y$jscomp$9$$)?$y1$jscomp$42$$+$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$):$y1$jscomp$42$$+$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$),$h$jscomp$184$$=$height$jscomp$174$$-($APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$)+$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$11$$));return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,
$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$cljs$cst$5593$gap_type$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$y$jscomp$480$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($negate$$),$is_col_QMARK_$jscomp$2$$?$APP.$cljs$cst$1666$column_gap$$:$APP.$cljs$cst$1665$row_gap$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),
$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),$block$jscomp$7_x$jscomp$1257$$,$APP.$cljs$cst$1499$x$$,$h$jscomp$184$$])}function $create_cgdd$$($shape$jscomp$1005_x$jscomp$1256$$){var $block$jscomp$6_h$jscomp$183$$=$get_container_block$$($shape$jscomp$1005_x$jscomp$1256$$);$shape$jscomp$1005_x$jscomp$1256$$=$APP.$cljs$core$truth_$$($flip_x$jscomp$9$$)?$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1005_x$jscomp$1256$$))-
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1005_x$jscomp$1256$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1683$layout_item_margin$$,$APP.$cljs$cst$1685$m2$$],null))-$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$):$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1005_x$jscomp$1256$$))+$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1005_x$jscomp$1256$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1683$layout_item_margin$$,$APP.$cljs$cst$1685$m2$$],null));var $y$jscomp$479$$=$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$6_h$jscomp$183$$);$block$jscomp$6_h$jscomp$183$$=$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$6_h$jscomp$183$$)-$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($block$jscomp$6_h$jscomp$183$$);return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,
$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$cljs$cst$5593$gap_type$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$y$jscomp$479$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($negate$$),$is_col_QMARK_$jscomp$2$$?$APP.$cljs$cst$1665$row_gap$$:$APP.$cljs$cst$1666$column_gap$$,$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),
$APP.$cljs$cst$1666$column_gap$$.$cljs$core$IFn$_invoke$arity$1$($gap$jscomp$6$$),$shape$jscomp$1005_x$jscomp$1256$$,$APP.$cljs$cst$1499$x$$,$block$jscomp$6_h$jscomp$183$$])}function $get_container_block$$($selrect$jscomp$78_shape$jscomp$1004$$){$selrect$jscomp$78_shape$jscomp$1004$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$78_shape$jscomp$1004$$);var $x$jscomp$1255$$=($APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$78_shape$jscomp$1004$$)+
$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$78_shape$jscomp$1004$$))/2,$y$jscomp$478$$=($APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$78_shape$jscomp$1004$$)+$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$78_shape$jscomp$1004$$))/2;return $APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78132_SHARP_$$){return $is_col_QMARK_$jscomp$2$$?$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($p1__78132_SHARP_$$)<=
$x$jscomp$1255$$&&$x$jscomp$1255$$<=$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($p1__78132_SHARP_$$):$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($p1__78132_SHARP_$$)<=$y$jscomp$478$$&&$y$jscomp$478$$<=$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($p1__78132_SHARP_$$)},$wrap_blocks$$))}function $on_pointer_leave$jscomp$8$$(){return $APP.$cljs$core$reset_BANG_$$($hover$jscomp$1$$,null)}function $on_pointer_enter$jscomp$8$$($hover_type$$,$val$jscomp$220$$){$APP.$cljs$core$reset_BANG_$$($hover$jscomp$1$$,
$hover_type$$);return $APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$2$$,$val$jscomp$220$$)}$map__78134_map__78134__$1_pill_width_props_78133$$=$APP.$rumext$v2$util$wrap_props$$($map__78134_map__78134__$1_pill_width_props_78133$$);$map__78134_map__78134__$1_pill_width_props_78133$$=$APP.$cljs$core$__destructure_map$$($map__78134_map__78134__$1_pill_width_props_78133$$);var $children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78134_map__78134__$1_pill_width_props_78133$$,
$APP.$cljs$cst$1590$frame$$),$zoom$jscomp$67$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78134_map__78134__$1_pill_width_props_78133$$,$APP.$cljs$cst$2158$zoom$$),$on_move_selected$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78134_map__78134__$1_pill_width_props_78133$$,$cljs$cst$5596$on_move_selected$$),$on_context_menu$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78134_map__78134__$1_pill_width_props_78133$$,$cljs$cst$5524$on_context_menu$$),
$frame_id$jscomp$139$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$),$display_blocks_saved_dir$jscomp$1$$=$APP.$cljs$cst$1663$layout_flex_dir$$.$cljs$core$IFn$_invoke$arity$1$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$),$is_col_QMARK_$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$display_blocks_saved_dir$jscomp$1$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1646$column_reverse$$,$display_blocks_saved_dir$jscomp$1$$),$flip_x$jscomp$9$$=$APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$),$flip_y$jscomp$9$$=$APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$);$map__78134_map__78134__$1_pill_width_props_78133$$=
40/$zoom$jscomp$67$$;var $pill_height$$=20/$zoom$jscomp$67$$,$workspace_modifiers$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_modifiers$$),$workspace_wasm_modifiers$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_wasm_modifiers$$),$gap_selected$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_gap_selected$$),$hover$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover_value$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),
$mouse_pos$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$current_modifiers$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$frame__$1$jscomp$6$$=$APP.$app$common$types$modifiers$apply_structure_modifiers$$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($current_modifiers$jscomp$1$$),
$frame_id$jscomp$139$$),$APP.$cljs$cst$1794$modifiers$$)),$padding$jscomp$11$$=$APP.$cljs$cst$1670$layout_padding$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$6$$),$gap$jscomp$6$$=$APP.$cljs$cst$1664$layout_gap$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$6$$);$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$6$$);$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$=
$APP.$cljs$core$__destructure_map$$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$);var $width$jscomp$206$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$,$APP.$cljs$cst$288$width$$),$height$jscomp$174$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$,$APP.$cljs$cst$1511$height$$),
$x1$jscomp$40$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$,$APP.$cljs$cst$1512$x1$$),$y1$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$,$APP.$cljs$cst$1513$y1$$),$on_change$jscomp$91$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($modifiers$jscomp$114$$){return $APP.$cljs$core$reset_BANG_$$($current_modifiers$jscomp$1$$,
$modifiers$jscomp$114$$)}),$negate$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1666$column_gap$$,$APP.$cljs$core$truth_$$($flip_x$jscomp$9$$)?!0:!1,$APP.$cljs$cst$1665$row_gap$$,$APP.$cljs$core$truth_$$($flip_y$jscomp$9$$)?!0:!1],null),$objects$jscomp$779$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$)),$children$jscomp$310$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$shape$layout$position_absolute_QMARK_$$,
$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$779$$,$frame_id$jscomp$139$$)),$children_to_display$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1645$row_reverse$$,$display_blocks_saved_dir$jscomp$1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1646$column_reverse$$,$display_blocks_saved_dir$jscomp$1$$)?$APP.$cljs$core$drop_last$cljs$0core$0IFn$0_invoke$0arity$01$$($children$jscomp$310$$):
$APP.$cljs$core$rest$$($children$jscomp$310$$);$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?function(){var $modifiers$jscomp$115$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$workspace_wasm_modifiers$$);return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($shape$jscomp$1003$$){return $APP.$app$common$geom$shapes$apply_transform$$($shape$jscomp$1003$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$115$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1003$$)))},$children_to_display$$)}():$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78127_SHARP_$$){return $APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($p1__78127_SHARP_$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($workspace_modifiers$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__78127_SHARP_$$),$APP.$cljs$cst$1794$modifiers$$],null)))},$children_to_display$$);var $wrap_blocks$$=function(){var $block_children_layout_data$jscomp$17$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78128_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$shapes$points$parent_coords_bounds$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($p1__78128_SHARP_$$),
$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$6$$)),$p1__78128_SHARP_$$],null)},$children$jscomp$310$$),$bounds$jscomp$80$$=$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$779$$),function($p1__78129_SHARP_$$){return $APP.$app$common$geom$shapes$shape__GT_points$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$779$$,$p1__78129_SHARP_$$))});$block_children_layout_data$jscomp$17$$=$APP.$app$common$geom$shapes$flex_layout$calc_layout_data$$.$cljs$core$IFn$_invoke$arity$5$($frame__$1$jscomp$6$$,
$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$6$$),$block_children_layout_data$jscomp$17$$,$bounds$jscomp$80$$,$objects$jscomp$779$$);var $layout_bounds$jscomp$11$$=$APP.$cljs$cst$2943$layout_bounds$$.$cljs$core$IFn$_invoke$arity$1$($block_children_layout_data$jscomp$17$$);return function $app$main$ui$flex_controls$gap$gap_rects_$_iter__78136$$($s__78137$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__78137__$2_temp__5825__auto__$jscomp$389$$=
$APP.$cljs$core$seq$$($s__78137$$);if($s__78137__$2_temp__5825__auto__$jscomp$389$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__78137__$2_temp__5825__auto__$jscomp$389$$)){var $c__5501__auto__$jscomp$55$$=$APP.$cljs$core$_chunked_first$$($s__78137__$2_temp__5825__auto__$jscomp$389$$),$size__5502__auto__$jscomp$55$$=$APP.$cljs$core$count$$($c__5501__auto__$jscomp$55$$),$b__78139$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$55$$);return function(){for(var $i__78138$$=0;;)if($i__78138$$<
$size__5502__auto__$jscomp$55$$){var $map__78140_map__78140__$1$$=$APP.$cljs$core$_nth$$($c__5501__auto__$jscomp$55$$,$i__78138$$);$map__78140_map__78140__$1$$=$APP.$cljs$core$__destructure_map$$($map__78140_map__78140__$1$$);var $start_p$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,$APP.$cljs$cst$2938$start_p$$),$line_width$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,$APP.$cljs$cst$3649$line_width$$),
$line_height$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,$APP.$cljs$cst$1749$line_height$$),$layout_gap_row$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,$APP.$cljs$cst$3651$layout_gap_row$$),$layout_gap_col$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,$APP.$cljs$cst$3652$layout_gap_col$$),$num_children$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78140_map__78140__$1$$,
$APP.$cljs$cst$3650$num_children$$);$APP.$cljs$core$chunk_append$$($b__78139$$,function(){var $line_height__$1$jscomp$7$$=$is_col_QMARK_$jscomp$2$$?$line_height$jscomp$23$$+($num_children$jscomp$7$$-1)*$layout_gap_col$jscomp$12$$:$line_height$jscomp$23$$,$end_p$jscomp$3$$=$APP.$app$common$geom$point$add$$($APP.$app$common$geom$point$add$$($start_p$jscomp$11$$,$APP.$app$common$geom$shapes$points$start_hv$$($layout_bounds$jscomp$11$$,$is_col_QMARK_$jscomp$2$$?$line_width$jscomp$10$$:$line_width$jscomp$10$$+
($num_children$jscomp$7$$-1)*$layout_gap_row$jscomp$12$$)),$APP.$app$common$geom$shapes$points$start_vv$$($layout_bounds$jscomp$11$$,$line_height__$1$jscomp$7$$));return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1512$x1$$,function(){var $x__5113__auto__$jscomp$84$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$11$$),$y__5114__auto__$jscomp$84$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$3$$);return $x__5113__auto__$jscomp$84$$<
$y__5114__auto__$jscomp$84$$?$x__5113__auto__$jscomp$84$$:$y__5114__auto__$jscomp$84$$}(),$APP.$cljs$cst$1513$y1$$,function(){var $x__5113__auto__$jscomp$85$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$11$$),$y__5114__auto__$jscomp$85$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$3$$);return $x__5113__auto__$jscomp$85$$<$y__5114__auto__$jscomp$85$$?$x__5113__auto__$jscomp$85$$:$y__5114__auto__$jscomp$85$$}(),$APP.$cljs$cst$1514$x2$$,function(){var $x__5110__auto__$jscomp$143$$=
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$11$$),$y__5111__auto__$jscomp$143$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$3$$);return $x__5110__auto__$jscomp$143$$>$y__5111__auto__$jscomp$143$$?$x__5110__auto__$jscomp$143$$:$y__5111__auto__$jscomp$143$$}(),$APP.$cljs$cst$1515$y2$$,function(){var $x__5110__auto__$jscomp$144$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$11$$),$y__5111__auto__$jscomp$144$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$3$$);
return $x__5110__auto__$jscomp$144$$>$y__5111__auto__$jscomp$144$$?$x__5110__auto__$jscomp$144$$:$y__5111__auto__$jscomp$144$$}()],null)}());$i__78138$$+=1}else return!0}()?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__78139$$),$app$main$ui$flex_controls$gap$gap_rects_$_iter__78136$$($APP.$cljs$core$_chunked_rest$$($s__78137__$2_temp__5825__auto__$jscomp$389$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__78139$$),null)}var $map__78141_map__78141__$1$$=$APP.$cljs$core$first$$($s__78137__$2_temp__5825__auto__$jscomp$389$$);
$map__78141_map__78141__$1$$=$APP.$cljs$core$__destructure_map$$($map__78141_map__78141__$1$$);var $start_p$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$2938$start_p$$),$line_width$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$3649$line_width$$),$line_height$jscomp$22$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$1749$line_height$$),
$layout_gap_row$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$3651$layout_gap_row$$),$layout_gap_col$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$3652$layout_gap_col$$),$num_children$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78141_map__78141__$1$$,$APP.$cljs$cst$3650$num_children$$);return $APP.$cljs$core$cons$$(function(){var $line_height__$1$jscomp$8$$=
$is_col_QMARK_$jscomp$2$$?$line_height$jscomp$22$$+($num_children$jscomp$6$$-1)*$layout_gap_col$jscomp$11$$:$line_height$jscomp$22$$,$end_p$jscomp$4$$=$APP.$app$common$geom$point$add$$($APP.$app$common$geom$point$add$$($start_p$jscomp$10$$,$APP.$app$common$geom$shapes$points$start_hv$$($layout_bounds$jscomp$11$$,$is_col_QMARK_$jscomp$2$$?$line_width$jscomp$9$$:$line_width$jscomp$9$$+($num_children$jscomp$6$$-1)*$layout_gap_row$jscomp$11$$)),$APP.$app$common$geom$shapes$points$start_vv$$($layout_bounds$jscomp$11$$,
$line_height__$1$jscomp$8$$));return new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1512$x1$$,function(){var $x__5113__auto__$jscomp$86$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$10$$),$y__5114__auto__$jscomp$86$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$4$$);return $x__5113__auto__$jscomp$86$$<$y__5114__auto__$jscomp$86$$?$x__5113__auto__$jscomp$86$$:$y__5114__auto__$jscomp$86$$}(),$APP.$cljs$cst$1513$y1$$,function(){var $x__5113__auto__$jscomp$87$$=
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$10$$),$y__5114__auto__$jscomp$87$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$4$$);return $x__5113__auto__$jscomp$87$$<$y__5114__auto__$jscomp$87$$?$x__5113__auto__$jscomp$87$$:$y__5114__auto__$jscomp$87$$}(),$APP.$cljs$cst$1514$x2$$,function(){var $x__5110__auto__$jscomp$145$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$10$$),$y__5111__auto__$jscomp$145$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$4$$);
return $x__5110__auto__$jscomp$145$$>$y__5111__auto__$jscomp$145$$?$x__5110__auto__$jscomp$145$$:$y__5111__auto__$jscomp$145$$}(),$APP.$cljs$cst$1515$y2$$,function(){var $x__5110__auto__$jscomp$146$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($start_p$jscomp$10$$),$y__5111__auto__$jscomp$146$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$4$$);return $x__5110__auto__$jscomp$146$$>$y__5111__auto__$jscomp$146$$?$x__5110__auto__$jscomp$146$$:$y__5111__auto__$jscomp$146$$}()],
null)}(),$app$main$ui$flex_controls$gap$gap_rects_$_iter__78136$$($APP.$cljs$core$rest$$($s__78137__$2_temp__5825__auto__$jscomp$389$$)))}return null}},null,null)}($APP.$cljs$cst$2913$layout_lines$$.$cljs$core$IFn$_invoke$arity$1$($block_children_layout_data$jscomp$17$$))}();$display_blocks_saved_dir$jscomp$1$$=$is_col_QMARK_$jscomp$2$$?$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($create_cgdd_block$$,$APP.$cljs$core$drop_last$cljs$0core$0IFn$0_invoke$0arity$01$$($wrap_blocks$$)):$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($create_rgdd_block$$,
$APP.$cljs$core$drop_last$cljs$0core$0IFn$0_invoke$0arity$01$$($wrap_blocks$$));$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$=$is_col_QMARK_$jscomp$2$$?$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($create_rgdd$$,$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$):$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($create_cgdd$$,$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$);
return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"gaps",pointerEvents:"visible",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$213$$,$JSCompiler_temp_const$jscomp$1834_p__78142$$){var $JSCompiler_inline_result$jscomp$1836_index$jscomp$554$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1834_p__78142$$,0,null),$display_item$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1834_p__78142$$,
1,null);$JSCompiler_temp_const$jscomp$1834_p__78142$$=$out_arr__44057__auto__$jscomp$213$$.push;var $gap_type$jscomp$inline_8776$$=$cljs$cst$5593$gap_type$$.$cljs$core$IFn$_invoke$arity$1$($display_item$$);$JSCompiler_inline_result$jscomp$1836_index$jscomp$554$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$gap$gap_display$$,{zoom:$zoom$jscomp$67$$,"on-pointer-leave":$on_pointer_leave$jscomp$8$$,"gap-type":$gap_type$jscomp$inline_8776$$,"mouse-pos":$mouse_pos$jscomp$1$$,"on-pointer-enter":$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_pointer_enter$jscomp$8$$,
$gap_type$jscomp$inline_8776$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gap$jscomp$6$$,$gap_type$jscomp$inline_8776$$)),"on-context-menu":$on_context_menu$jscomp$17$$,"on-move-selected":$on_move_selected$jscomp$1$$,"hover-value":$hover_value$jscomp$2$$,gap:$gap$jscomp$6$$,"rect-data":$display_item$$,"frame-id":$frame_id$jscomp$139$$,"on-change":$on_change$jscomp$91$$,"selected?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($gap_selected$jscomp$2$$,$gap_type$jscomp$inline_8776$$),
"hover?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$1$$),$gap_type$jscomp$inline_8776$$)},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$139$$),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1836_index$jscomp$554$$)].join(""));$JSCompiler_temp_const$jscomp$1834_p__78142$$.call($out_arr__44057__auto__$jscomp$213$$,$JSCompiler_inline_result$jscomp$1836_index$jscomp$554$$);return $out_arr__44057__auto__$jscomp$213$$},
[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($display_blocks_saved_dir$jscomp$1$$,$children_to_display__$1_display_children_frame$jscomp$72_map__78135_map__78135__$1$$))),$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover$jscomp$1$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$common$flex_display_pill$$,{height:$pill_height$$,width:$map__78134_map__78134__$1_pill_width_props_78133$$,"font-size":11/
$zoom$jscomp$67$$,"border-radius":4/$zoom$jscomp$67$$,color:"var(--color-accent-quaternary)",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$1$$)),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$1$$))-$map__78134_map__78134__$1_pill_width_props_78133$$,value:$APP.$cljs$core$_deref$$($hover_value$jscomp$2$$)}):null]})};
$app$main$ui$flex_controls$gap$gap_control$$=function($frame$jscomp$73_map__78147_props_78146$$){$frame$jscomp$73_map__78147_props_78146$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$73_map__78147_props_78146$$);var $map__78147__$1_on_context_menu$jscomp$18$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$73_map__78147_props_78146$$);$frame$jscomp$73_map__78147_props_78146$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78147__$1_on_context_menu$jscomp$18$$,$APP.$cljs$cst$1590$frame$$);
var $zoom$jscomp$68$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78147__$1_on_context_menu$jscomp$18$$,$APP.$cljs$cst$2158$zoom$$),$on_move_selected$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78147__$1_on_context_menu$jscomp$18$$,$cljs$cst$5596$on_move_selected$$);$map__78147__$1_on_context_menu$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78147__$1_on_context_menu$jscomp$18$$,$cljs$cst$5524$on_context_menu$$);return $APP.$cljs$core$truth_$$($frame$jscomp$73_map__78147_props_78146$$)?
(0,$APP.$rumext$v2$jsx$$)("g",{className:"measurement-gaps",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)("g",{className:"hover-shapes",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$gap$gap_rects$$,{frame:$frame$jscomp$73_map__78147_props_78146$$,zoom:$zoom$jscomp$68$$,"on-move-selected":$on_move_selected$jscomp$2$$,"on-context-menu":$map__78147__$1_on_context_menu$jscomp$18$$})})}):null};
$app$main$ui$flex_controls$margin$margin_display$$=function($map__78149_props_78148_selected_QMARK_$jscomp$25$$){$map__78149_props_78148_selected_QMARK_$jscomp$25$$=$APP.$rumext$v2$util$wrap_props$$($map__78149_props_78148_selected_QMARK_$jscomp$25$$);var $map__78149__$1_on_pointer_down$jscomp$8$$=$APP.$cljs$core$__destructure_map$$($map__78149_props_78148_selected_QMARK_$jscomp$25$$),$hover_all_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,
$cljs$cst$5603$hover_all_QMARK_$$),$hover_h_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5604$hover_h_QMARK_$$),$on_change$jscomp$92$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$APP.$cljs$cst$4041$on_change$$);$map__78149_props_78148_selected_QMARK_$jscomp$25$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$APP.$cljs$cst$5510$selected_QMARK_$$);
var $hover_QMARK_$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5328$hover_QMARK_$$),$margin$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$APP.$cljs$cst$1914$margin$$),$zoom$jscomp$69$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$APP.$cljs$cst$2158$zoom$$),$on_pointer_leave$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,
$cljs$cst$5592$on_pointer_leave$$),$margin_num$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5605$margin_num$$),$on_pointer_enter$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5594$on_pointer_enter$$),$mouse_pos$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5595$mouse_pos$$),$hover_v_QMARK_$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5606$hover_v_QMARK_$$),$shape_id$jscomp$160$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$APP.$cljs$cst$2500$shape_id$$),$hover_value$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,$cljs$cst$5597$hover_value$$),$rect_data$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78149__$1_on_pointer_down$jscomp$8$$,
$cljs$cst$5598$rect_data$$),$resizing_QMARK_$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$start$jscomp$246$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$original_value$jscomp$1$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$last_pos$jscomp$3$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$negate_QMARK_$jscomp$4$$=$cljs$cst$5599$resize_negate_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$)===!0,
$axis$jscomp$40$$=$cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$);$map__78149__$1_on_pointer_down$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$160$$),$APP.$rumext$v2$adapt$$($margin_num$$),$APP.$rumext$v2$adapt$$($margin$jscomp$6$$)],function($event$jscomp$587$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$587$$);$APP.$cljs$core$reset_BANG_$$($resizing_QMARK_$$,!0);$APP.$cljs$core$reset_BANG_$$($start$jscomp$246$$,
$APP.$app$util$dom$get_client_position$$($event$jscomp$587$$));return $APP.$cljs$core$reset_BANG_$$($original_value$jscomp$1$$,$cljs$cst$5601$initial_value$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$))});var $calc_modifiers$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$160$$),$APP.$rumext$v2$adapt$$($margin_num$$),$APP.$rumext$v2$adapt$$($margin$jscomp$6$$),$APP.$rumext$v2$adapt$$($hover_all_QMARK_$$),$APP.$rumext$v2$adapt$$($hover_v_QMARK_$$),
$APP.$rumext$v2$adapt$$($hover_h_QMARK_$$)],function($pos$jscomp$152$$){var $delta$jscomp$63$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$(function(){var $G__78153$$=$APP.$app$common$geom$point$to_vec$$($APP.$cljs$core$_deref$$($start$jscomp$246$$),$pos$jscomp$152$$);return $negate_QMARK_$jscomp$4$$?$APP.$app$common$geom$point$negate$$($G__78153$$):$G__78153$$}(),$axis$jscomp$40$$),$val$jscomp$221$$=function(){var $x__5110__auto__$jscomp$147$$=$APP.$cljs$core$_deref$$($original_value$jscomp$1$$)+
$delta$jscomp$63$$/$zoom$jscomp$69$$;return $x__5110__auto__$jscomp$147$$>0?$x__5110__auto__$jscomp$147$$:0}()|0,$layout_item_margin$jscomp$6$$=$APP.$cljs$core$truth_$$($hover_all_QMARK_$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($margin$jscomp$6$$,$APP.$cljs$cst$1684$m1$$,$val$jscomp$221$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1685$m2$$,$val$jscomp$221$$,$APP.$cljs$cst$1686$m3$$,$val$jscomp$221$$,$APP.$cljs$cst$1687$m4$$,$val$jscomp$221$$])):
$APP.$cljs$core$truth_$$($hover_v_QMARK_$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($margin$jscomp$6$$,$APP.$cljs$cst$1684$m1$$,$val$jscomp$221$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1686$m3$$,$val$jscomp$221$$])):$APP.$cljs$core$truth_$$($hover_h_QMARK_$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($margin$jscomp$6$$,$APP.$cljs$cst$1685$m2$$,$val$jscomp$221$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1687$m4$$,
$val$jscomp$221$$])):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($margin$jscomp$6$$,$margin_num$$,$val$jscomp$221$$),$layout_item_margin_type$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$6$$),$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$6$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$6$$),
$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$6$$)]))?$APP.$cljs$cst$1647$simple$$:$APP.$cljs$cst$1600$multiple$$;return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val$jscomp$221$$,$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape_id$jscomp$160$$],null),$APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),
$APP.$cljs$cst$1683$layout_item_margin$$,$layout_item_margin$jscomp$6$$),$APP.$cljs$cst$1682$layout_item_margin_type$$,$layout_item_margin_type$jscomp$2$$))],null)}),$on_lost_pointer_capture$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$jscomp$1$$)],function($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$){$APP.$app$util$dom$release_pointer$$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$);
$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))&&($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$=$APP.$cljs$core$_deref$$($last_pos$jscomp$3$$),$G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$=$calc_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$calc_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$):
$calc_modifiers$jscomp$1$$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$,0,null),$G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$,1,null),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($G__78157$jscomp$inline_8778_event$jscomp$588_modifiers_78183_vec__78154_78181$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$transforms$finish_transform$$()])));$APP.$cljs$core$reset_BANG_$$($resizing_QMARK_$$,!1);$APP.$cljs$core$reset_BANG_$$($start$jscomp$246$$,null);$APP.$cljs$core$reset_BANG_$$($original_value$jscomp$1$$,0);return $APP.$cljs$core$not$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null)):
null}),$on_pointer_move$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$92$$)],function($event$jscomp$589_pos$jscomp$153_val$jscomp$222$$){$event$jscomp$589_pos$jscomp$153_val$jscomp$222$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$589_pos$jscomp$153_val$jscomp$222$$);$APP.$cljs$core$reset_BANG_$$($mouse_pos$jscomp$2$$,$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event$jscomp$589_pos$jscomp$153_val$jscomp$222$$));
$APP.$cljs$core$reset_BANG_$$($last_pos$jscomp$3$$,$event$jscomp$589_pos$jscomp$153_val$jscomp$222$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($resizing_QMARK_$$))){var $modifiers$jscomp$116_vec__78158$$=$calc_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$calc_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$589_pos$jscomp$153_val$jscomp$222$$):$calc_modifiers$jscomp$1$$($event$jscomp$589_pos$jscomp$153_val$jscomp$222$$);$event$jscomp$589_pos$jscomp$153_val$jscomp$222$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$116_vec__78158$$,0,null);$modifiers$jscomp$116_vec__78158$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$116_vec__78158$$,1,null);$APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$3$$,$event$jscomp$589_pos$jscomp$153_val$jscomp$222$$);$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$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modifiers$jscomp$116_vec__78158$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modifiers$jscomp$116_vec__78158$$,!1,!1,null));return $APP.$cljs$core$truth_$$($on_change$jscomp$92$$)?$on_change$jscomp$92$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$92$$.$cljs$core$IFn$_invoke$arity$1$($modifiers$jscomp$116_vec__78158$$):$on_change$jscomp$92$$($modifiers$jscomp$116_vec__78158$$):null}return null});return(0,$APP.$rumext$v2$jsx$$)("rect",
{width:function(){var $y__5111__auto__$jscomp$148$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$);return 0>$y__5111__auto__$jscomp$148$$?0:$y__5111__auto__$jscomp$148$$}(),height:function(){var $y__5111__auto__$jscomp$149$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$);return 0>$y__5111__auto__$jscomp$149$$?0:$y__5111__auto__$jscomp$149$$}(),className:"margin-rect "+(($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$9$$)?
$hover_QMARK_$jscomp$9$$:$map__78149_props_78148_selected_QMARK_$jscomp$25$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$),$APP.$cljs$cst$1499$x$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",0):$app$main$ui$css_cursors$get_dynamic$$("resize-ew",90):null)??""),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$),style:{fill:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$9$$)?
$hover_QMARK_$jscomp$9$$:$map__78149_props_78148_selected_QMARK_$jscomp$25$$)?"var(--status-color-warning-500)":"none",opacity:$APP.$cljs$core$truth_$$($map__78149_props_78148_selected_QMARK_$jscomp$25$$)?.5:.25},onLostPointerCapture:$on_lost_pointer_capture$jscomp$6$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$1$$),onPointerMove:$on_pointer_move$jscomp$7$$,onPointerDown:$map__78149__$1_on_pointer_down$jscomp$8$$,onPointerLeave:$on_pointer_leave$jscomp$9$$,onPointerEnter:$on_pointer_enter$jscomp$9$$})};
$app$main$ui$flex_controls$margin$margin_rects$$=function($frame$jscomp$74_map__78162_margin_display_data_props_78161$$){function $hover_QMARK_$jscomp$10$$($value$jscomp$959$$){if($APP.$cljs$core$truth_$$($hover_all_QMARK_$jscomp$1$$))return $hover_all_QMARK_$jscomp$1$$;var $or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$=function(){var $and__5023__auto__$jscomp$839$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$959$$,$APP.$cljs$cst$1684$m1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$959$$,
$APP.$cljs$cst$1686$m3$$);return $and__5023__auto__$jscomp$839$$?$hover_v_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$839$$}();if($APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$))return $or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$;$or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$=function(){var $and__5023__auto__$jscomp$840$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$959$$,$APP.$cljs$cst$1685$m2$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$959$$,$APP.$cljs$cst$1687$m4$$);return $and__5023__auto__$jscomp$840$$?$hover_h_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$840$$}();return $APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$)?$or__5025__auto____$1$jscomp$126_or__5025__auto____$2$jscomp$31$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$2$$),$value$jscomp$959$$)}$frame$jscomp$74_map__78162_margin_display_data_props_78161$$=
$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$);var $map__78162__$1_pill_width$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$),$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78162__$1_pill_width$jscomp$1$$,$APP.$cljs$cst$1795$shape$$);$frame$jscomp$74_map__78162_margin_display_data_props_78161$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78162__$1_pill_width$jscomp$1$$,
$APP.$cljs$cst$1590$frame$$);var $zoom$jscomp$70$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78162__$1_pill_width$jscomp$1$$,$APP.$cljs$cst$2158$zoom$$),$alt_QMARK_$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78162__$1_pill_width$jscomp$1$$,$APP.$cljs$cst$4088$alt_QMARK_$$),$shift_QMARK_$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78162__$1_pill_width$jscomp$1$$,$APP.$cljs$cst$4087$shift_QMARK_$$),$shape_id$jscomp$161$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$);
$map__78162__$1_pill_width$jscomp$1$$=40/$zoom$jscomp$70$$;var $pill_height$jscomp$1$$=20/$zoom$jscomp$70$$,$margins_selected$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_margins_selected$$),$current_modifiers$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$=$APP.$app$common$types$modifiers$apply_structure_modifiers$$($map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($current_modifiers$jscomp$2$$),$shape_id$jscomp$161$$),$APP.$cljs$cst$1794$modifiers$$));var $hover_value$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$mouse_pos$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover_all_QMARK_$jscomp$1$$=
function(){var $and__5023__auto__$jscomp$836$$=$APP.$cljs$core$_deref$$($hover$jscomp$2$$)!=null;return $and__5023__auto__$jscomp$836$$?$alt_QMARK_$jscomp$13$$:$and__5023__auto__$jscomp$836$$}(),$hover_v_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$837$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$2$$),$APP.$cljs$cst$1684$m1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$2$$),$APP.$cljs$cst$1686$m3$$);
return $and__5023__auto__$jscomp$837$$?$shift_QMARK_$jscomp$31$$:$and__5023__auto__$jscomp$837$$}(),$hover_h_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$838$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$2$$),$APP.$cljs$cst$1685$m2$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$2$$),$APP.$cljs$cst$1687$m4$$);return $and__5023__auto__$jscomp$838$$?$shift_QMARK_$jscomp$31$$:$and__5023__auto__$jscomp$838$$}(),
$margin$jscomp$7$$=$APP.$cljs$cst$1683$layout_item_margin$$.$cljs$core$IFn$_invoke$arity$1$($map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$);$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$);var $map__78163__$1_y2$jscomp$40$$=$APP.$cljs$core$__destructure_map$$($map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$);
$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$288$width$$);var $height$jscomp$175$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$1511$height$$),$x1$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$1512$x1$$),$x2$jscomp$38$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,
$APP.$cljs$cst$1514$x2$$),$y1$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$1513$y1$$);$map__78163__$1_y2$jscomp$40$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$1515$y2$$);var $on_pointer_enter$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($hover_type$jscomp$1$$,$val$jscomp$223$$){$APP.$cljs$core$reset_BANG_$$($hover$jscomp$2$$,$hover_type$jscomp$1$$);
return $APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$4$$,$val$jscomp$223$$)}),$on_pointer_leave$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($hover$jscomp$2$$,null)}),$on_change$jscomp$93$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($modifiers$jscomp$117$$){return $APP.$cljs$core$reset_BANG_$$($current_modifiers$jscomp$2$$,$modifiers$jscomp$117$$)});$frame$jscomp$74_map__78162_margin_display_data_props_78161$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1684$m1$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$))?
$map__78163__$1_y2$jscomp$40$$:$y1$jscomp$43$$-$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),$APP.$cljs$cst$1546$top$$,$APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$161$$),"-m1"].join(""),$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$,$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),
$x1$jscomp$41$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1684$m1$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$)]),$APP.$cljs$cst$1685$m2$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$y1$jscomp$43$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$),
[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$161$$),"-m2"].join(""),$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$))?$x1$jscomp$41$$-$APP.$cljs$cst$1685$m2$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$):$x2$jscomp$38$$,
$APP.$cljs$cst$1499$x$$,$height$jscomp$175$$]),$APP.$cljs$cst$1686$m3$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$))?
$y1$jscomp$43$$-$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$):$map__78163__$1_y2$jscomp$40$$,$APP.$cljs$cst$1546$top$$,$APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$161$$),"-m3"].join(""),$map__78163_shape$jscomp$1007_shape__$1$jscomp$109_width$jscomp$207$$,$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),
$x1$jscomp$41$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1686$m3$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$)]),$APP.$cljs$cst$1687$m4$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$y1$jscomp$43$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$),
[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($shape_id$jscomp$161$$),"-m4"].join(""),$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$74_map__78162_margin_display_data_props_78161$$))?$x2$jscomp$38$$:$x1$jscomp$41$$-$APP.$cljs$cst$1687$m4$$.$cljs$core$IFn$_invoke$arity$1$($margin$jscomp$7$$),
$APP.$cljs$cst$1499$x$$,$height$jscomp$175$$])],null);return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"margins",pointerEvents:"visible",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$214$$,$p__78168_rect_data$jscomp$2$$){var $margin_num$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78168_rect_data$jscomp$2$$,0,null);$p__78168_rect_data$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78168_rect_data$jscomp$2$$,
1,null);$out_arr__44057__auto__$jscomp$214$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$margin$margin_display$$,{zoom:$zoom$jscomp$70$$,"on-pointer-leave":$on_pointer_leave$jscomp$10$$,"margin-num":$margin_num$jscomp$1$$,"mouse-pos":$mouse_pos$jscomp$3$$,"on-pointer-enter":$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_pointer_enter$jscomp$10$$,$margin_num$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($margin$jscomp$7$$,$margin_num$jscomp$1$$)),
"hover-v?":$hover_v_QMARK_$jscomp$1$$,"shape-id":$shape_id$jscomp$161$$,"hover-value":$hover_value$jscomp$4$$,"rect-data":$p__78168_rect_data$jscomp$2$$,"hover-all?":$hover_all_QMARK_$jscomp$1$$,"hover-h?":$hover_h_QMARK_$jscomp$1$$,"on-change":$on_change$jscomp$93$$,"selected?":$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($margins_selected$jscomp$2$$,$margin_num$jscomp$1$$),"hover?":$hover_QMARK_$jscomp$10$$($margin_num$jscomp$1$$),margin:$margin$jscomp$7$$},$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($p__78168_rect_data$jscomp$2$$)));
return $out_arr__44057__auto__$jscomp$214$$},[],$frame$jscomp$74_map__78162_margin_display_data_props_78161$$),$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover$jscomp$2$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$common$flex_display_pill$$,{height:$pill_height$jscomp$1$$,width:$map__78162__$1_pill_width$jscomp$1$$,"font-size":11/$zoom$jscomp$70$$,"border-radius":4/$zoom$jscomp$70$$,color:"var(--status-color-warning-500)",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$3$$)),
y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$3$$))-$map__78162__$1_pill_width$jscomp$1$$,value:$APP.$cljs$core$_deref$$($hover_value$jscomp$4$$)}):null]})};
$app$main$ui$flex_controls$margin$margin_control$$=function($map__78177_props_78175_shape$jscomp$1008$$){$map__78177_props_78175_shape$jscomp$1008$$=$APP.$rumext$v2$util$wrap_props$$($map__78177_props_78175_shape$jscomp$1008$$);var $map__78177__$1_shift_QMARK_$jscomp$32$$=$APP.$cljs$core$__destructure_map$$($map__78177_props_78175_shape$jscomp$1008$$);$map__78177_props_78175_shape$jscomp$1008$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78177__$1_shift_QMARK_$jscomp$32$$,$APP.$cljs$cst$1795$shape$$);
var $parent$jscomp$303$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78177__$1_shift_QMARK_$jscomp$32$$,$APP.$cljs$cst$1354$parent$$),$zoom$jscomp$71$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78177__$1_shift_QMARK_$jscomp$32$$,$APP.$cljs$cst$2158$zoom$$),$alt_QMARK_$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78177__$1_shift_QMARK_$jscomp$32$$,$APP.$cljs$cst$4088$alt_QMARK_$$);$map__78177__$1_shift_QMARK_$jscomp$32$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78177__$1_shift_QMARK_$jscomp$32$$,
$APP.$cljs$cst$4087$shift_QMARK_$$);return $APP.$cljs$core$truth_$$($map__78177_props_78175_shape$jscomp$1008$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"measurement-gaps",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)("g",{className:"hover-shapes",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$margin$margin_rects$$,{shape:$map__78177_props_78175_shape$jscomp$1008$$,frame:$parent$jscomp$303$$,zoom:$zoom$jscomp$71$$,"alt?":$alt_QMARK_$jscomp$14$$,"shift?":$map__78177__$1_shift_QMARK_$jscomp$32$$})})}):
null};
$app$main$ui$flex_controls$padding$padding_display$$=function($map__78166_map__78166__$1_props_78165$$){$map__78166_map__78166__$1_props_78165$$=$APP.$rumext$v2$util$wrap_props$$($map__78166_map__78166__$1_props_78165$$);$map__78166_map__78166__$1_props_78165$$=$APP.$cljs$core$__destructure_map$$($map__78166_map__78166__$1_props_78165$$);var $hover_all_QMARK_$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5603$hover_all_QMARK_$$),$hover_h_QMARK_$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5604$hover_h_QMARK_$$),$on_change$jscomp$94$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$APP.$cljs$cst$4041$on_change$$),$selected_QMARK_$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$APP.$cljs$cst$5510$selected_QMARK_$$),$hover_QMARK_$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,
$cljs$cst$5328$hover_QMARK_$$),$zoom$jscomp$72$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$APP.$cljs$cst$2158$zoom$$),$on_pointer_leave$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5592$on_pointer_leave$$),$on_pointer_enter$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5594$on_pointer_enter$$),$mouse_pos$jscomp$4$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5595$mouse_pos$$),$hover_v_QMARK_$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5606$hover_v_QMARK_$$),$padding_num$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5607$padding_num$$),$on_context_menu$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,
$cljs$cst$5524$on_context_menu$$),$on_move_selected$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5596$on_move_selected$$),$hover_value$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5597$hover_value$$),$padding$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$APP.$cljs$cst$256$padding$$),$rect_data$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$cljs$cst$5598$rect_data$$),$frame_id$jscomp$140$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78166_map__78166__$1_props_78165$$,$APP.$cljs$cst$1591$frame_id$$),$resizing_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$start$jscomp$247$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$original_value$jscomp$2$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(0),
$last_pos$jscomp$4$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$negate_QMARK_$jscomp$5$$=$cljs$cst$5599$resize_negate_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)===!0,$axis$jscomp$41$$=$cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$),$on_pointer_down$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$140$$),$APP.$rumext$v2$adapt$$($rect_data$jscomp$3$$),$APP.$rumext$v2$adapt$$($padding_num$$)],
function($event$jscomp$590$$){$APP.$app$util$dom$capture_pointer$$($event$jscomp$590$$);$APP.$cljs$core$reset_BANG_$$($resizing_QMARK_$jscomp$1$$,!0);$APP.$cljs$core$reset_BANG_$$($start$jscomp$247$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$590$$));return $APP.$cljs$core$reset_BANG_$$($original_value$jscomp$2$$,$cljs$cst$5601$initial_value$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$))}),$calc_modifiers$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$140$$),
$APP.$rumext$v2$adapt$$($padding_num$$),$APP.$rumext$v2$adapt$$($padding$jscomp$12$$),$APP.$rumext$v2$adapt$$($hover_all_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($hover_v_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($hover_h_QMARK_$jscomp$2$$)],function($pos$jscomp$154$$){var $delta$jscomp$64$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$(function(){var $G__78167$$=$APP.$app$common$geom$point$to_vec$$($APP.$cljs$core$_deref$$($start$jscomp$247$$),$pos$jscomp$154$$);return $negate_QMARK_$jscomp$5$$?
$APP.$app$common$geom$point$negate$$($G__78167$$):$G__78167$$}(),$axis$jscomp$41$$),$val$jscomp$224$$=function(){var $x__5110__auto__$jscomp$150$$=$APP.$cljs$core$_deref$$($original_value$jscomp$2$$)+$delta$jscomp$64$$/$zoom$jscomp$72$$;return $x__5110__auto__$jscomp$150$$>0?$x__5110__auto__$jscomp$150$$:0}()|0,$layout_padding$jscomp$11$$=$APP.$cljs$core$truth_$$($hover_all_QMARK_$jscomp$2$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($padding$jscomp$12$$,$APP.$cljs$cst$1091$p1$$,
$val$jscomp$224$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1089$p2$$,$val$jscomp$224$$,$APP.$cljs$cst$1671$p3$$,$val$jscomp$224$$,$APP.$cljs$cst$1672$p4$$,$val$jscomp$224$$])):$APP.$cljs$core$truth_$$($hover_v_QMARK_$jscomp$2$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($padding$jscomp$12$$,$APP.$cljs$cst$1091$p1$$,$val$jscomp$224$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1671$p3$$,$val$jscomp$224$$])):
$APP.$cljs$core$truth_$$($hover_h_QMARK_$jscomp$2$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($padding$jscomp$12$$,$APP.$cljs$cst$1089$p2$$,$val$jscomp$224$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1672$p4$$,$val$jscomp$224$$])):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($padding$jscomp$12$$,$padding_num$$,$val$jscomp$224$$),$layout_padding_type$jscomp$4$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$12$$),
$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$12$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$12$$),$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$12$$)]))?$APP.$cljs$cst$1647$simple$$:$APP.$cljs$cst$1600$multiple$$;return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$val$jscomp$224$$,$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_id$jscomp$140$$],null),$APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),$APP.$cljs$cst$1670$layout_padding$$,$layout_padding$jscomp$11$$),$APP.$cljs$cst$1669$layout_padding_type$$,$layout_padding_type$jscomp$4$$))],null)}),$on_lost_pointer_capture$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$jscomp$2$$)],
function($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$){$APP.$app$util$dom$release_pointer$$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$);$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))&&($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$=$APP.$cljs$core$_deref$$($last_pos$jscomp$4$$),$G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$=
$calc_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$calc_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$):$calc_modifiers$jscomp$2$$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$),$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$,0,null),$G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$,1,null),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($G__78176$jscomp$inline_8780_event$jscomp$591_modifiers_78196_vec__78172_78194$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$transforms$finish_transform$$()])));$APP.$cljs$core$reset_BANG_$$($resizing_QMARK_$jscomp$1$$,
!1);$APP.$cljs$core$reset_BANG_$$($start$jscomp$247$$,null);$APP.$cljs$core$reset_BANG_$$($original_value$jscomp$2$$,0);return $APP.$cljs$core$not$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null)):null}),$on_pointer_move$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calc_modifiers$jscomp$2$$),
$APP.$rumext$v2$adapt$$($on_change$jscomp$94$$)],function($event$jscomp$592_pos$jscomp$155_val$jscomp$225$$){$event$jscomp$592_pos$jscomp$155_val$jscomp$225$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$592_pos$jscomp$155_val$jscomp$225$$);$APP.$cljs$core$reset_BANG_$$($mouse_pos$jscomp$4$$,$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event$jscomp$592_pos$jscomp$155_val$jscomp$225$$));$APP.$cljs$core$reset_BANG_$$($last_pos$jscomp$4$$,$event$jscomp$592_pos$jscomp$155_val$jscomp$225$$);
if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($resizing_QMARK_$jscomp$1$$))){var $modifiers$jscomp$118_vec__78178$$=$calc_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$calc_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$592_pos$jscomp$155_val$jscomp$225$$):$calc_modifiers$jscomp$2$$($event$jscomp$592_pos$jscomp$155_val$jscomp$225$$);$event$jscomp$592_pos$jscomp$155_val$jscomp$225$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$118_vec__78178$$,
0,null);$modifiers$jscomp$118_vec__78178$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers$jscomp$118_vec__78178$$,1,null);$APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$5$$,$event$jscomp$592_pos$jscomp$155_val$jscomp$225$$);$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$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modifiers$jscomp$118_vec__78178$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modifiers$jscomp$118_vec__78178$$,!1,!1,null));return $APP.$cljs$core$truth_$$($on_change$jscomp$94$$)?$on_change$jscomp$94$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$94$$.$cljs$core$IFn$_invoke$arity$1$($modifiers$jscomp$118_vec__78178$$):$on_change$jscomp$94$$($modifiers$jscomp$118_vec__78178$$):null}return null});return(0,$APP.$rumext$v2$jsxs$$)("g",
{className:"padding-rect",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{width:function(){var $y__5111__auto__$jscomp$151$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$);return 0>$y__5111__auto__$jscomp$151$$?0:$y__5111__auto__$jscomp$151$$}(),height:function(){var $y__5111__auto__$jscomp$152$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$);return 0>$y__5111__auto__$jscomp$152$$?0:$y__5111__auto__$jscomp$152$$}(),className:"info-area",
x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$),onContextMenu:$on_context_menu$jscomp$19$$,style:{fill:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$11$$)?$hover_QMARK_$jscomp$11$$:$selected_QMARK_$jscomp$26$$)?"var(--color-accent-quaternary)":"none",opacity:$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$26$$)?.5:.25},y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$),onPointerMove:$on_pointer_move$jscomp$8$$,
onPointerDown:$on_move_selected$jscomp$3$$,onPointerLeave:$on_pointer_leave$jscomp$11$$,onPointerEnter:$on_pointer_enter$jscomp$11$$}),function(){var $handle_width$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$41$$,$APP.$cljs$cst$1499$x$$)?2/$zoom$jscomp$72$$:function(){var $x__5113__auto__$jscomp$88$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)*.5,$y__5114__auto__$jscomp$88$$=20/$zoom$jscomp$72$$;return $x__5113__auto__$jscomp$88$$<
$y__5114__auto__$jscomp$88$$?$x__5113__auto__$jscomp$88$$:$y__5114__auto__$jscomp$88$$}(),$handle_height$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$41$$,$APP.$cljs$cst$1500$y$$)?2/$zoom$jscomp$72$$:function(){var $x__5113__auto__$jscomp$89$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)*.5,$y__5114__auto__$jscomp$89$$=30/$zoom$jscomp$72$$;return $x__5113__auto__$jscomp$89$$<$y__5114__auto__$jscomp$89$$?$x__5113__auto__$jscomp$89$$:
$y__5114__auto__$jscomp$89$$}();return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$handle_width$jscomp$1$$,height:$handle_height$jscomp$1$$,className:"handle "+(($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$11$$)?$hover_QMARK_$jscomp$11$$:$selected_QMARK_$jscomp$26$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5600$resize_axis$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$),$APP.$cljs$cst$1499$x$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",
0):$app$main$ui$css_cursors$get_dynamic$$("resize-ew",90):null)??""),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)-$handle_width$jscomp$1$$)/2,onContextMenu:$on_context_menu$jscomp$19$$,style:{fill:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hover_QMARK_$jscomp$11$$)?$hover_QMARK_$jscomp$11$$:$selected_QMARK_$jscomp$26$$)?"var(--color-accent-quaternary)":"none",opacity:$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$26$$)?
0:1},onLostPointerCapture:$on_lost_pointer_capture$jscomp$7$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect_data$jscomp$3$$)-$handle_height$jscomp$1$$)/2,onPointerMove:$on_pointer_move$jscomp$8$$,onPointerDown:$on_pointer_down$jscomp$9$$,onPointerLeave:$on_pointer_leave$jscomp$11$$,onPointerEnter:$on_pointer_enter$jscomp$11$$})}()]})};
$app$main$ui$flex_controls$padding$padding_rects$$=function($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$){function $hover_QMARK_$jscomp$12$$($value$jscomp$960$$){if($APP.$cljs$core$truth_$$($hover_all_QMARK_$jscomp$3$$))return $hover_all_QMARK_$jscomp$3$$;var $or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$=function(){var $and__5023__auto__$jscomp$844$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$960$$,$APP.$cljs$cst$1091$p1$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$960$$,$APP.$cljs$cst$1671$p3$$);return $and__5023__auto__$jscomp$844$$?$hover_v_QMARK_$jscomp$3$$:$and__5023__auto__$jscomp$844$$}();if($APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$))return $or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$;$or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$=function(){var $and__5023__auto__$jscomp$845$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$960$$,
$APP.$cljs$cst$1089$p2$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$960$$,$APP.$cljs$cst$1672$p4$$);return $and__5023__auto__$jscomp$845$$?$hover_h_QMARK_$jscomp$3$$:$and__5023__auto__$jscomp$845$$}();return $APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$)?$or__5025__auto____$1$jscomp$127_or__5025__auto____$2$jscomp$32$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$3$$),$value$jscomp$960$$)}
$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$=$APP.$rumext$v2$util$wrap_props$$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$);$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$=$APP.$cljs$core$__destructure_map$$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$);var $frame$jscomp$75_height$jscomp$176$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,
$APP.$cljs$cst$1590$frame$$),$zoom$jscomp$73$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,$APP.$cljs$cst$2158$zoom$$),$alt_QMARK_$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,$APP.$cljs$cst$4088$alt_QMARK_$$),$shift_QMARK_$jscomp$33$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,
$APP.$cljs$cst$4087$shift_QMARK_$$),$on_move_selected$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,$cljs$cst$5596$on_move_selected$$),$on_context_menu$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,$cljs$cst$5524$on_context_menu$$),$frame_id$jscomp$141$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$75_height$jscomp$176$$),
$paddings_selected$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_paddings_selected$$),$current_modifiers$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$frame__$1$jscomp$7$$=$APP.$app$common$types$modifiers$apply_structure_modifiers$$($frame$jscomp$75_height$jscomp$176$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($current_modifiers$jscomp$3$$),$frame_id$jscomp$141$$),
$APP.$cljs$cst$1794$modifiers$$)),$hover_value$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$mouse_pos$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover_all_QMARK_$jscomp$3$$=function(){var $and__5023__auto__$jscomp$841$$=$APP.$cljs$core$_deref$$($hover$jscomp$3$$)!=null;return $and__5023__auto__$jscomp$841$$?$alt_QMARK_$jscomp$15$$:$and__5023__auto__$jscomp$841$$}(),
$hover_v_QMARK_$jscomp$3$$=function(){var $and__5023__auto__$jscomp$842$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$3$$),$APP.$cljs$cst$1091$p1$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$3$$),$APP.$cljs$cst$1671$p3$$);return $and__5023__auto__$jscomp$842$$?$shift_QMARK_$jscomp$33$$:$and__5023__auto__$jscomp$842$$}(),$hover_h_QMARK_$jscomp$3$$=function(){var $and__5023__auto__$jscomp$843$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$3$$),
$APP.$cljs$cst$1089$p2$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover$jscomp$3$$),$APP.$cljs$cst$1672$p4$$);return $and__5023__auto__$jscomp$843$$?$shift_QMARK_$jscomp$33$$:$and__5023__auto__$jscomp$843$$}(),$padding$jscomp$13$$=$APP.$cljs$cst$1670$layout_padding$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$);$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$);
var $map__78186__$1_pill_width$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$);$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,$APP.$cljs$cst$288$width$$);$frame$jscomp$75_height$jscomp$176$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,
$APP.$cljs$cst$1511$height$$);var $x1$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,$APP.$cljs$cst$1512$x1$$),$x2$jscomp$39$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,$APP.$cljs$cst$1514$x2$$),$y1$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,$APP.$cljs$cst$1513$y1$$),$y2$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78186__$1_pill_width$jscomp$2$$,
$APP.$cljs$cst$1515$y2$$);$map__78186__$1_pill_width$jscomp$2$$=40/$zoom$jscomp$73$$;var $pill_height$jscomp$2$$=20/$zoom$jscomp$73$$,$negate$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1091$p1$$,$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?!0:!1,$APP.$cljs$cst$1089$p2$$,$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?!0:!1,$APP.$cljs$cst$1671$p3$$,
$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?!0:!1,$APP.$cljs$cst$1672$p4$$,$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?!0:!1],null),$negate__$1$$=function(){var $G__78187__$1$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1656$auto$$,$APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($negate$jscomp$1$$,
$APP.$cljs$cst$1089$p2$$,$APP.$cljs$core$not$$($APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($negate$jscomp$1$$))):$negate$jscomp$1$$;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1656$auto$$,$APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78187__$1$$,$APP.$cljs$cst$1671$p3$$,$APP.$cljs$core$not$$($APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($negate$jscomp$1$$))):
$G__78187__$1$$}();$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1091$p1$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?
$y2$jscomp$41$$-$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$):$y1$jscomp$44$$,$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?$APP.$cljs$cst$1547$bottom$$:$APP.$cljs$cst$1546$top$$,$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($negate__$1$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$141$$),"-p1"].join(""),$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,
$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$x1$jscomp$42$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1091$p1$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$)]),$APP.$cljs$cst$1089$p2$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],
[$y1$jscomp$44$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($negate__$1$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$141$$),"-p2"].join(""),$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?$x1$jscomp$42$$:$x2$jscomp$39$$-
$APP.$cljs$cst$1089$p2$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$cst$1499$x$$,$frame$jscomp$75_height$jscomp$176$$]),$APP.$cljs$cst$1671$p3$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1864$flip_y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?
$y1$jscomp$44$$:$y2$jscomp$41$$-$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$cst$1547$bottom$$,$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($negate__$1$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$141$$),"-p3"].join(""),$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$,$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$x1$jscomp$42$$,$APP.$cljs$cst$1500$y$$,
$APP.$cljs$cst$1671$p3$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$)]),$APP.$cljs$cst$1672$p4$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$cljs$cst$5602$resize_type$$,$cljs$cst$5599$resize_negate_QMARK_$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$288$width$$,$cljs$cst$5601$initial_value$$,$APP.$cljs$cst$1499$x$$,$cljs$cst$5600$resize_axis$$,$APP.$cljs$cst$1511$height$$],[$y1$jscomp$44$$,$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?
$APP.$cljs$cst$258$right$$:$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($negate__$1$$),[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$141$$),"-p4"].join(""),$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1863$flip_x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$7$$))?$x2$jscomp$39$$-
$APP.$cljs$cst$1672$p4$$.$cljs$core$IFn$_invoke$arity$1$($padding$jscomp$13$$):$x1$jscomp$42$$,$APP.$cljs$cst$1499$x$$,$frame$jscomp$75_height$jscomp$176$$])],null);var $on_pointer_enter$jscomp$12$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($hover_type$jscomp$2$$,$val$jscomp$226$$){$APP.$cljs$core$reset_BANG_$$($hover$jscomp$3$$,$hover_type$jscomp$2$$);return $APP.$cljs$core$reset_BANG_$$($hover_value$jscomp$6$$,$val$jscomp$226$$)}),$on_pointer_leave$jscomp$12$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($hover$jscomp$3$$,
null)}),$on_change$jscomp$95$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($modifiers$jscomp$119$$){return $APP.$cljs$core$reset_BANG_$$($current_modifiers$jscomp$3$$,$modifiers$jscomp$119$$)});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"paddings",pointerEvents:"visible",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$215$$,$p__78188_rect_data$jscomp$4$$){var $padding_num$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78188_rect_data$jscomp$4$$,
0,null);$p__78188_rect_data$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78188_rect_data$jscomp$4$$,1,null);$out_arr__44057__auto__$jscomp$215$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$padding$padding_display$$,{zoom:$zoom$jscomp$73$$,"on-pointer-leave":$on_pointer_leave$jscomp$12$$,"mouse-pos":$mouse_pos$jscomp$5$$,"on-pointer-enter":$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_pointer_enter$jscomp$12$$,$padding_num$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($padding$jscomp$13$$,
$padding_num$jscomp$1$$)),"hover-v?":$hover_v_QMARK_$jscomp$3$$,"padding-num":$padding_num$jscomp$1$$,"on-context-menu":$on_context_menu$jscomp$20$$,"on-move-selected":$on_move_selected$jscomp$4$$,"hover-value":$hover_value$jscomp$6$$,padding:$padding$jscomp$13$$,"rect-data":$p__78188_rect_data$jscomp$4$$,"frame-id":$frame_id$jscomp$141$$,"hover-all?":$hover_all_QMARK_$jscomp$3$$,"hover-h?":$hover_h_QMARK_$jscomp$3$$,"on-change":$on_change$jscomp$95$$,"selected?":$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($paddings_selected$jscomp$2$$,
$padding_num$jscomp$1$$),"hover?":$hover_QMARK_$jscomp$12$$($padding_num$jscomp$1$$)},$APP.$cljs$cst$300$key$$.$cljs$core$IFn$_invoke$arity$1$($p__78188_rect_data$jscomp$4$$)));return $out_arr__44057__auto__$jscomp$215$$},[],$map__78185_map__78185__$1_map__78186_padding_rect_data_props_78184_width$jscomp$208$$),$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover$jscomp$3$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$common$flex_display_pill$$,{height:$pill_height$jscomp$2$$,width:$map__78186__$1_pill_width$jscomp$2$$,
"font-size":11/$zoom$jscomp$73$$,"border-radius":4/$zoom$jscomp$73$$,color:"var(--color-accent-quaternary)",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$5$$)),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($mouse_pos$jscomp$5$$))-$map__78186__$1_pill_width$jscomp$2$$,value:$APP.$cljs$core$_deref$$($hover_value$jscomp$6$$)}):null]})};
$app$main$ui$flex_controls$padding$padding_control$$=function($frame$jscomp$76_map__78193_props_78192$$){$frame$jscomp$76_map__78193_props_78192$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$76_map__78193_props_78192$$);var $map__78193__$1_on_context_menu$jscomp$21$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$76_map__78193_props_78192$$);$frame$jscomp$76_map__78193_props_78192$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,$APP.$cljs$cst$1590$frame$$);
var $zoom$jscomp$74$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,$APP.$cljs$cst$2158$zoom$$),$alt_QMARK_$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,$APP.$cljs$cst$4088$alt_QMARK_$$),$shift_QMARK_$jscomp$34$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,$APP.$cljs$cst$4087$shift_QMARK_$$),$on_move_selected$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,
$cljs$cst$5596$on_move_selected$$);$map__78193__$1_on_context_menu$jscomp$21$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78193__$1_on_context_menu$jscomp$21$$,$cljs$cst$5524$on_context_menu$$);return $APP.$cljs$core$truth_$$($frame$jscomp$76_map__78193_props_78192$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"measurement-gaps",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)("g",{className:"hover-shapes",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$padding$padding_rects$$,
{frame:$frame$jscomp$76_map__78193_props_78192$$,zoom:$zoom$jscomp$74$$,"alt?":$alt_QMARK_$jscomp$16$$,"shift?":$shift_QMARK_$jscomp$34$$,"on-move-selected":$on_move_selected$jscomp$5$$,"on-context-menu":$map__78193__$1_on_context_menu$jscomp$21$$})})}):null};
$app$main$ui$workspace$shapes$path$editor$path_point_STAR_$$=function($props_78197_x$jscomp$1260$$){var $is_last$$=$props_78197_x$jscomp$1260$$.isLast,$edit_mode_is_active$jscomp$6$$=$props_78197_x$jscomp$1260$$.editMode,$is_new$jscomp$2$$=$props_78197_x$jscomp$1260$$.isNew,$zoom$jscomp$75$$=$props_78197_x$jscomp$1260$$.zoom,$is_selected$jscomp$6$$=$props_78197_x$jscomp$1260$$.isSelected,$is_start_path$$=$props_78197_x$jscomp$1260$$.isStartPath,$is_curve$$=$props_78197_x$jscomp$1260$$.isCurve,$is_preview$$=
$props_78197_x$jscomp$1260$$.isPreview,$is_hover_on_enter$$=$props_78197_x$jscomp$1260$$.isHover,$position$jscomp$195$$=$props_78197_x$jscomp$1260$$.position,$map__78198__$1_y$jscomp$483$$=$APP.$cljs$core$__destructure_map$$($position$jscomp$195$$);$props_78197_x$jscomp$1260$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78198__$1_y$jscomp$483$$,$APP.$cljs$cst$1499$x$$);$map__78198__$1_y$jscomp$483$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78198__$1_y$jscomp$483$$,
$APP.$cljs$cst$1500$y$$);var $is_draw$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode_is_active$jscomp$6$$,$APP.$cljs$cst$4108$draw$$),$is_move$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode_is_active$jscomp$6$$,$APP.$cljs$cst$1782$move$$);$edit_mode_is_active$jscomp$6$$=$is_selected$jscomp$6$$||$is_hover_on_enter$$;$is_hover_on_enter$$=$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$workspace$path$selection$path_pointer_enter$$($position$jscomp$195$$))});
var $on_leave$jscomp$2$$=$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$workspace$path$selection$path_pointer_leave$$($position$jscomp$195$$))});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"path-point",children:[(0,$APP.$rumext$v2$jsx$$)("circle",{className:"path-point",cx:$props_78197_x$jscomp$1260$$,cy:$map__78198__$1_y$jscomp$483$$,r:$edit_mode_is_active$jscomp$6$$?5/$zoom$jscomp$75$$:
4/$zoom$jscomp$75$$,style:{strokeWidth:1/$zoom$jscomp$75$$,stroke:$edit_mode_is_active$jscomp$6$$?"var(--app-black)":$is_preview$$?"var(--color-accent-quaternary)":"var(--color-accent-tertiary)",fill:$APP.$cljs$core$truth_$$($is_selected$jscomp$6$$)?"var(--color-accent-tertiary)":"var(--app-white)"}}),(0,$APP.$rumext$v2$jsx$$)("circle",{cy:$map__78198__$1_y$jscomp$483$$,className:$is_draw$$?$APP.$app$main$ui$css_cursors$get_static$$("pen-node"):$is_move$$?$APP.$app$main$ui$css_cursors$get_static$$("pointer-node"):
null,style:{strokeWidth:0,fill:"none"},r:15/$zoom$jscomp$75$$,onPointerDown:function($event$jscomp$593_is_mod$$){if($app$util$dom$left_mouse_QMARK_$$($event$jscomp$593_is_mod$$)){$APP.$app$util$dom$stop_propagation$$($event$jscomp$593_is_mod$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$593_is_mod$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_new$jscomp$2$$)?$APP.$cljs$core$meta$$($position$jscomp$195$$)!=null:$is_new$jscomp$2$$)){var $JSCompiler_temp_const$jscomp$10580_is_shift$$=
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$10582_param68407$jscomp$inline_13037$$=$APP.$cljs$core$meta$$($position$jscomp$195$$);$JSCompiler_inline_result$jscomp$10582_param68407$jscomp$inline_13037$$=$app$main$data$workspace$path$edition$create_node_at_position$$($JSCompiler_inline_result$jscomp$10582_param68407$jscomp$inline_13037$$);$JSCompiler_temp_const$jscomp$10580_is_shift$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$10582_param68407$jscomp$inline_13037$$)}$JSCompiler_temp_const$jscomp$10580_is_shift$$=
$event$jscomp$593_is_mod$$.shiftKey;$event$jscomp$593_is_mod$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$593_is_mod$$);return $APP.$cljs$core$truth_$$($is_last$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$drawing$reset_last_handler$$()):$is_move$$&&$event$jscomp$593_is_mod$$&&$APP.$cljs$core$not$$($is_curve$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$make_curve$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$195$$)):
$APP.$cljs$core$truth_$$($is_move$$?$event$jscomp$593_is_mod$$?$is_curve$$:$event$jscomp$593_is_mod$$:$is_move$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$make_corner$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$195$$)):$is_move$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$edition$start_move_path_point$$($position$jscomp$195$$,$JSCompiler_temp_const$jscomp$10580_is_shift$$)):$APP.$cljs$core$truth_$$($is_draw$$?
$is_start_path$$:$is_draw$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$drawing$start_path_from_point$$($position$jscomp$195$$)):$is_draw$$&&$APP.$cljs$core$not$$($is_start_path$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$drawing$close_path_drag_start$$($position$jscomp$195$$)):null}return null},onPointerLeave:$on_leave$jscomp$2$$,cx:$props_78197_x$jscomp$1260$$,onPointerEnter:$is_hover_on_enter$$,
pointerEvents:$is_preview$$?null:"visible"})]})};
$app$main$ui$workspace$shapes$path$editor$path_handler_STAR_$$=function($point$jscomp$80_props_78200$$){var $handler$jscomp$43_y$jscomp$484$$=$point$jscomp$80_props_78200$$.handler,$edit_mode$jscomp$1_is_active$jscomp$7$$=$point$jscomp$80_props_78200$$.editMode,$zoom$jscomp$76$$=$point$jscomp$80_props_78200$$.zoom,$index$jscomp$555$$=$point$jscomp$80_props_78200$$.index,$is_selected$jscomp$7$$=$point$jscomp$80_props_78200$$.isSelected,$prefix$jscomp$71$$=$point$jscomp$80_props_78200$$.prefix,$is_hover$jscomp$1$$=
$point$jscomp$80_props_78200$$.isHover,$snap_angle$$=$point$jscomp$80_props_78200$$.snapAngle;$point$jscomp$80_props_78200$$=$point$jscomp$80_props_78200$$.point;var $x$jscomp$1261$$=$handler$jscomp$43_y$jscomp$484$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$43_y$jscomp$484$$,$APP.$cljs$cst$1499$x$$);$handler$jscomp$43_y$jscomp$484$$=$handler$jscomp$43_y$jscomp$484$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handler$jscomp$43_y$jscomp$484$$,$APP.$cljs$cst$1500$y$$);
var $is_draw$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$1_is_active$jscomp$7$$,$APP.$cljs$cst$4108$draw$$),$is_move$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$1_is_active$jscomp$7$$,$APP.$cljs$cst$1782$move$$);$edit_mode$jscomp$1_is_active$jscomp$7$$=$is_selected$jscomp$7$$||$is_hover$jscomp$1$$;var $on_enter$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$555$$),
$APP.$rumext$v2$adapt$$($prefix$jscomp$71$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$selection$path_handler_enter$$($index$jscomp$555$$,$prefix$jscomp$71$$))}),$on_leave$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$555$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$71$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$selection$path_handler_leave$$($index$jscomp$555$$,
$prefix$jscomp$71$$))}),$on_pointer_down$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$555$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$71$$),$APP.$rumext$v2$adapt$$($is_move$jscomp$1$$)],function($event$jscomp$594$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$594$$)?($APP.$app$util$dom$stop_propagation$$($event$jscomp$594$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$594$$),$is_move$jscomp$1$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$edition$start_move_handler$$($index$jscomp$555$$,
$prefix$jscomp$71$$)):null):null});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"handler",pointerEvents:$is_draw$jscomp$1$$?"none":"visible",children:[(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$80_props_78200$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$80_props_78200$$),x2:$x$jscomp$1261$$,y2:$handler$jscomp$43_y$jscomp$484$$,style:{stroke:$is_hover$jscomp$1$$?"var(--app-black)":"var(--df-secondary)",
strokeWidth:1/$zoom$jscomp$76$$}}),$snap_angle$$?(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$80_props_78200$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$80_props_78200$$),x2:$x$jscomp$1261$$,y2:$handler$jscomp$43_y$jscomp$484$$,style:{stroke:"var(--color-accent-quaternary)",strokeWidth:1/$zoom$jscomp$76$$}}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{x:$x$jscomp$1261$$-3/$zoom$jscomp$76$$,y:$handler$jscomp$43_y$jscomp$484$$-
3/$zoom$jscomp$76$$,width:6/$zoom$jscomp$76$$,height:6/$zoom$jscomp$76$$,style:{strokeWidth:1/$zoom$jscomp$76$$,stroke:$edit_mode$jscomp$1_is_active$jscomp$7$$?"var(--app-black)":"var(--color-accent-tertiary)",fill:$is_selected$jscomp$7$$?"var(--color-accent-tertiary)":"var(--app-white)"}}),(0,$APP.$rumext$v2$jsx$$)("circle",{cx:$x$jscomp$1261$$,cy:$handler$jscomp$43_y$jscomp$484$$,r:15/$zoom$jscomp$76$$,onPointerDown:$on_pointer_down$jscomp$11$$,onPointerEnter:$on_enter$jscomp$1$$,onPointerLeave:$on_leave$jscomp$3$$,
style:{fill:"none",strokeWidth:0},className:$is_move$jscomp$1$$?$APP.$app$main$ui$css_cursors$get_static$$("pointer-move"):null})]})};
$app$main$ui$workspace$shapes$path$editor$path_preview_STAR_$$=function($path$jscomp$295_props_78203$$){var $zoom$jscomp$77$$=$path$jscomp$295_props_78203$$.zoom,$from$jscomp$30$$=$path$jscomp$295_props_78203$$.from,$segment$jscomp$60$$=$path$jscomp$295_props_78203$$.segment;$path$jscomp$295_props_78203$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1797$move_to$$,$APP.$cljs$cst$1796$command$$.$cljs$core$IFn$_invoke$arity$1$($segment$jscomp$60$$))?function(){var $segments__$1$jscomp$4$$=
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1796$command$$,$APP.$cljs$cst$1797$move_to$$,$APP.$cljs$cst$1419$params$$,$from$jscomp$30$$],null)],null),$segment$jscomp$60$$);return $APP.$app$common$types$path$impl$path_data$$($segments__$1$jscomp$4$$)}():null;var $position$jscomp$196$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($segment$jscomp$60$$)],
function(){return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($segment$jscomp$60$$))});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"preview",style:{pointerEvents:"none"},children:[$path$jscomp$295_props_78203$$!=null?(0,$APP.$rumext$v2$jsx$$)("path",{style:{fill:"none",stroke:"var(--app-black)",strokeWidth:1/$zoom$jscomp$77$$,strokeDasharray:4/$zoom$jscomp$77$$},d:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($path$jscomp$295_props_78203$$)}):
null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_point_STAR_$$,{position:$position$jscomp$196$$,isPreview:!0,zoom:$zoom$jscomp$77$$})]})};
$app$main$ui$workspace$shapes$path$editor$path_snap_STAR_$$=function($matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$){var $zoom$jscomp$78$$=$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$.zoom,$selected$jscomp$179$$=$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$.selected,$points$jscomp$101$$=$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$.points;$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$179$$),
$APP.$rumext$v2$adapt$$($points$jscomp$101$$)],function(){return $APP.$app$main$snap$create_ranges$$.$cljs$core$IFn$_invoke$arity$2$($points$jscomp$101$$,$selected$jscomp$179$$)});$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$=$APP.$app$main$snap$get_snap_delta_match$$($selected$jscomp$179$$,$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$,1/$zoom$jscomp$78$$);$matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$=$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$)),
$APP.$cljs$core$second$$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$)));return(0,$APP.$rumext$v2$jsx$$)("g",{className:"snap-paths",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$216$$,$from$jscomp$31_p__78225$$){var $idx$jscomp$120$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($from$jscomp$31_p__78225$$,0,null),$to$jscomp$27_vec__78231$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($from$jscomp$31_p__78225$$,
1,null);$from$jscomp$31_p__78225$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($to$jscomp$27_vec__78231$$,0,null);$to$jscomp$27_vec__78231$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($to$jscomp$27_vec__78231$$,1,null);$out_arr__44057__auto__$jscomp$216$$.push((0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$31_p__78225$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($from$jscomp$31_p__78225$$),x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$27_vec__78231$$),
y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($to$jscomp$27_vec__78231$$),style:{stroke:"var(--color-accent-quaternary)",strokeWidth:1/$zoom$jscomp$78$$}},"snap-"+($idx$jscomp$120$$??"")+"-"+($from$jscomp$31_p__78225$$??"")+"-"+($to$jscomp$27_vec__78231$$??"")));return $out_arr__44057__auto__$jscomp$216$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($matches$jscomp$11_props_78212_ranges$jscomp$10_snap_matches$$))})};
$app$main$ui$workspace$shapes$path$editor$path_editor_STAR_$$=function($editor_ref_props_78251$$){var $zoom$jscomp$79$$=$editor_ref_props_78251$$.zoom,$prev_handler$jscomp$6_state$jscomp$1101$$=$editor_ref_props_78251$$.state,$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$=$editor_ref_props_78251$$.shape,$hover_point$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$editor_ref_props_78251$$=(0,$APP.$rumext$v2$use_ref$$)(null);var $map__78256__$1_show_snap_QMARK_$$=
$APP.$cljs$core$__destructure_map$$($prev_handler$jscomp$6_state$jscomp$1101$$);$prev_handler$jscomp$6_state$jscomp$1101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$3426$prev_handler$$);var $edit_mode$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$4107$edit_mode$$),$moving_handler$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,
$APP.$cljs$cst$4133$moving_handler$$),$hover_points$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$4119$hover_points$$),$snap_toggled$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$4086$snap_toggled$$),$moving_nodes$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$4135$moving_nodes$$),$hover_handlers$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,
$APP.$cljs$cst$4122$hover_handlers$$),$last_point$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$3425$last_point$$),$selected_points$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$4125$selected_points$$),$content_modifiers$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$1909$content_modifiers$$),$preview$jscomp$5$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$3428$preview$$),$drag_handler$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78256__$1_show_snap_QMARK_$$,$APP.$cljs$cst$3427$drag_handler$$),$selected_points__$1$jscomp$3$$=$APP.$cljs$core$truth_$$($selected_points$jscomp$7$$)?$selected_points$jscomp$7$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$,$base_content$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$,
$APP.$cljs$cst$1621$content$$);$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_content$jscomp$1$$)],function(){return $APP.$app$common$types$path$get_points$$($base_content$jscomp$1$$)});var $content$jscomp$243$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_content$jscomp$1$$),$APP.$rumext$v2$adapt$$($content_modifiers$jscomp$5$$)],function(){return $APP.$app$common$types$path$apply_content_modifiers$$($base_content$jscomp$1$$,
$content_modifiers$jscomp$5$$)}),$content_points$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($content$jscomp$243$$)],function(){return $APP.$app$common$types$path$get_points$$($content$jscomp$243$$)}),$point__GT_base$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$merge$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$hash_map$$,$content_points$$,$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$)),
$base__GT_point$$=$APP.$clojure$set$map_invert$$($point__GT_base$$),$points$jscomp$102$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($content_points$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$content_points$$)});$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$=$APP.$app$common$types$path$helpers$segment__GT_point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$last$$($content$jscomp$243$$));
var $handlers$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($content$jscomp$243$$)],function(){return $app$common$types$path$get_handlers$$($content$jscomp$243$$)}),$is_path_start$$=$last_point$jscomp$4$$==null;$map__78256__$1_show_snap_QMARK_$$=function(){if($snap_toggled$jscomp$3$$){var $or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$=$drag_handler$$!=null;return $or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$||
($or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$=$preview$jscomp$5$$!=null)?$or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$:($or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$=$moving_handler$$!=null)?$or__5025__auto__$jscomp$1200_or__5025__auto____$1$jscomp$128_or__5025__auto____$2$jscomp$33$$:$moving_nodes$$}return $snap_toggled$jscomp$3$$}();$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($edit_mode$jscomp$2$$)],
function(){var $key$jscomp$416$$=$APP.$goog$events$listen$$($APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$util$globals$document$$,"#app"),"dblclick",function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$2$$,$APP.$cljs$cst$1782$move$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3430$interrupt$$):null});return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$416$$)}});$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$main$streams$mouse_position$$,
[$APP.$rumext$v2$adapt$$($base_content$jscomp$1$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$79$$)],function($position$jscomp$197$$){var $precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$=.01/$zoom$jscomp$79$$;var $content__$1$jscomp$inline_8785$$=$APP.$app$common$types$path$impl$path_data$$($base_content$jscomp$1$$);$precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$=$APP.$cljs$core$count$$($content__$1$jscomp$inline_8785$$)>0?$app$common$types$path$segment$closest_point$$($content__$1$jscomp$inline_8785$$,
$position$jscomp$197$$,$precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$):null;return $APP.$cljs$core$truth_$$($precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$)?$APP.$cljs$core$reset_BANG_$$($hover_point$$,$APP.$app$common$geom$point$distance$$($position$jscomp$197$$,$precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$)<10/$zoom$jscomp$79$$?$precision$jscomp$inline_8784_temp__5825__auto__$jscomp$390$$:null):null});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"path-editor",
ref:$editor_ref_props_78251$$,children:[(0,$APP.$rumext$v2$jsx$$)("path",{d:$content$jscomp$243$$.toString(),style:{fill:"none",stroke:"var(--color-accent-tertiary)",strokeWidth:1/$zoom$jscomp$79$$}}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($preview$jscomp$5$$)?$APP.$cljs$core$not$$($drag_handler$$):$preview$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_preview_STAR_$$,{segment:$preview$jscomp$5$$,from:$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$,
zoom:$zoom$jscomp$79$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($drag_handler$$)?$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$:$drag_handler$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"drag-handler",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_handler_STAR_$$,{point:$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$,handler:$drag_handler$$,editMode:$edit_mode$jscomp$2$$,zoom:$zoom$jscomp$79$$})}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($hover_point$$))?
(0,$APP.$rumext$v2$jsx$$)("g",{className:"hover-point",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_point_STAR_$$,{position:$APP.$cljs$core$_deref$$($hover_point$$),editMode:$edit_mode$jscomp$2$$,isNew:!0,isStartPath:$is_path_start$$,zoom:$zoom$jscomp$79$$})}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$217$$,$position$jscomp$198$$){$out_arr__44057__auto__$jscomp$217$$.push(function(){var $pos_x$jscomp$5$$=
$position$jscomp$198$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$198$$,$APP.$cljs$cst$1499$x$$),$pos_y$jscomp$5$$=$position$jscomp$198$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$198$$,$APP.$cljs$cst$1500$y$$),$position_handlers$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78264_prefix$jscomp$72$$){var $handler_position$jscomp$1_index$jscomp$556$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78264_prefix$jscomp$72$$,
0,null);$p__78264_prefix$jscomp$72$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78264_prefix$jscomp$72$$,1,null);$handler_position$jscomp$1_index$jscomp$556$$=$APP.$app$common$types$path$get_handler_point$$($content$jscomp$243$$,$handler_position$jscomp$1_index$jscomp$556$$,$p__78264_prefix$jscomp$72$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$198$$,$handler_position$jscomp$1_index$jscomp$556$$)},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handlers$jscomp$7$$,
$position$jscomp$198$$))),$point_selected_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($selected_points__$1$jscomp$3$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point__GT_base$$,$position$jscomp$198$$)),$point_hover_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($hover_points$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point__GT_base$$,$position$jscomp$198$$)),$is_last$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($last_point$jscomp$4$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point__GT_base$$,
$position$jscomp$198$$)),$is_curve$jscomp$1$$=$APP.$cljs$core$boolean$0$$($position_handlers$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"path-node",children:[(0,$APP.$rumext$v2$jsx$$)("g",{className:"point-handlers",pointerEvents:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$2$$,$APP.$cljs$cst$4108$draw$$)?"none":null,children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$21$$,$JSCompiler_temp_const$jscomp$10605_p__78272$$){var $JSCompiler_inline_result$jscomp$10607_hindex$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$10605_p__78272$$,0,null),$prefix$jscomp$73$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$10605_p__78272$$,1,null);$JSCompiler_temp_const$jscomp$10605_p__78272$$=$out_arr__44057__auto____$1$jscomp$21$$.push;var $handler_position$jscomp$inline_13039$$=$APP.$app$common$types$path$get_handler_point$$($content$jscomp$243$$,$JSCompiler_inline_result$jscomp$10607_hindex$$,$prefix$jscomp$73$$),
$handler_hover_QMARK_$jscomp$inline_13040$$=$APP.$cljs$core$contains_QMARK_$$($hover_handlers$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_inline_result$jscomp$10607_hindex$$,$prefix$jscomp$73$$],null)),$moving_handler_QMARK_$jscomp$inline_13041$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($handler_position$jscomp$inline_13039$$,$moving_handler$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(2,$APP.$cljs$core$count$$($position_handlers$$))){var $i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($position_handlers$$,0,null);var $i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$,0,null);var $p1$jscomp$inline_13929$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$,
1,null),$p2$jscomp$inline_13932_vec__78244$jscomp$inline_13930$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($position_handlers$$,1,null);$i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p2$jscomp$inline_13932_vec__78244$jscomp$inline_13930$$,0,null);$p2$jscomp$inline_13932_vec__78244$jscomp$inline_13930$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p2$jscomp$inline_13932_vec__78244$jscomp$inline_13930$$,
1,null);$i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$=$APP.$app$common$types$path$get_handler_point$$($content$jscomp$243$$,$i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$,$p1$jscomp$inline_13929$$);$i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$=$APP.$app$common$types$path$get_handler_point$$($content$jscomp$243$$,
$i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$,$p2$jscomp$inline_13932_vec__78244$jscomp$inline_13930$$);$i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$=$APP.$app$common$geom$point$subtract$$($i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$,$position$jscomp$198$$);$i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$=
$APP.$app$common$geom$point$subtract$$($i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$,$position$jscomp$198$$);$i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$=180-$APP.$app$common$geom$point$angle_with_other$$($i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$,$i2$jscomp$inline_13931_p2__$1$jscomp$inline_13934_v2$jscomp$inline_13936_vec__78241$jscomp$inline_13927$$)<=
.1}else $i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$=null;$JSCompiler_inline_result$jscomp$10607_hindex$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($position$jscomp$198$$)?$handler_position$jscomp$inline_13039$$:$position$jscomp$198$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_handler_STAR_$$,{editMode:$edit_mode$jscomp$2$$,zoom:$zoom$jscomp$79$$,index:$JSCompiler_inline_result$jscomp$10607_hindex$$,
prefix:$prefix$jscomp$73$$,isHover:$handler_hover_QMARK_$jscomp$inline_13040$$,point:$position$jscomp$198$$,snapAngle:$moving_handler_QMARK_$jscomp$inline_13041$$?$i1$jscomp$inline_13928_matching_handler_QMARK_$jscomp$inline_13042_p1__$1$jscomp$inline_13933_v1$jscomp$inline_13935$$:$moving_handler_QMARK_$jscomp$inline_13041$$,handler:$handler_position$jscomp$inline_13039$$},""+($JSCompiler_inline_result$jscomp$10607_hindex$$??"")+"-"+($APP.$app$common$data$name$$($prefix$jscomp$73$$)??"")):null;$JSCompiler_temp_const$jscomp$10605_p__78272$$.call($out_arr__44057__auto____$1$jscomp$21$$,
$JSCompiler_inline_result$jscomp$10607_hindex$$);return $out_arr__44057__auto____$1$jscomp$21$$},[],$position_handlers$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_point_STAR_$$,{position:$position$jscomp$198$$,zoom:$zoom$jscomp$79$$,editMode:$edit_mode$jscomp$2$$,isSelected:$point_selected_QMARK_$$,isHover:$point_hover_QMARK_$$,isLast:$is_last$jscomp$1$$,isStartPath:$is_path_start$$,isCurve:$is_curve$jscomp$1$$})]},""+($pos_x$jscomp$5$$??"")+"-"+($pos_y$jscomp$5$$??
""))}());return $out_arr__44057__auto__$jscomp$217$$},[],$points$jscomp$102$$),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($prev_handler$jscomp$6_state$jscomp$1101$$)?$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$:$prev_handler$jscomp$6_state$jscomp$1101$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"prev-handler",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_handler_STAR_$$,{point:$base_points$jscomp$1_last_p$jscomp$1_shape$jscomp$1009$$,
editMode:$edit_mode$jscomp$2$$,handler:$prev_handler$jscomp$6_state$jscomp$1101$$,zoom:$zoom$jscomp$79$$})}):null,$map__78256__$1_show_snap_QMARK_$$?function(){var $snap_points$jscomp$1_vec__78279$$=$drag_handler$$!=null?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$drag_handler$$]),$points$jscomp$102$$],null):$preview$jscomp$5$$!=null?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$app$common$types$path$helpers$segment__GT_point$$.$cljs$core$IFn$_invoke$arity$1$($preview$jscomp$5$$)]),$points$jscomp$102$$],null):$moving_handler$$!=null?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$moving_handler$$]),$points$jscomp$102$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($base__GT_point$$,$selected_points__$1$jscomp$3$$)),$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($selected_points__$1$jscomp$3$$,$points$jscomp$102$$))],null),$snap_selected$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($snap_points$jscomp$1_vec__78279$$,
0,null);$snap_points$jscomp$1_vec__78279$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($snap_points$jscomp$1_vec__78279$$,1,null);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"path-snap",pointerEvents:"none",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_snap_STAR_$$,{selected:$snap_selected$$,points:$snap_points$jscomp$1_vec__78279$$,zoom:$zoom$jscomp$79$$})})}():null]})};
$app$main$ui$workspace$shapes$text$editor$block_component$$=function($props_78199$$){var $bprops_style$jscomp$75$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78199$$,"blockProps"),$data$jscomp$484_dir$jscomp$9$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($bprops_style$jscomp$75$$,"data");$bprops_style$jscomp$75$$=$APP.$app$main$ui$shapes$text$styles$generate_paragraph_styles$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($bprops_style$jscomp$75$$,
"data"));$data$jscomp$484_dir$jscomp$9$$=$APP.$cljs$cst$1748$text_direction$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$484_dir$jscomp$9$$,"auto");return(0,$APP.$rumext$v2$jsx$$)("div",{style:$bprops_style$jscomp$75$$,dir:$data$jscomp$484_dir$jscomp$9$$,children:(0,$APP.$rumext$v2$create_element$$)($APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.EditorBlock,$props_78199$$)})};
$app$main$ui$workspace$shapes$text$editor$styles_fn$$=function($shape$jscomp$1011$$,$data$jscomp$485_styles$jscomp$27$$,$content$jscomp$244$$){$data$jscomp$485_styles$jscomp$27$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$244$$.getText(),"")?$APP.$cljs$core$js__GT_clj$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($content$jscomp$244$$.getData().toJS(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$127$keywordize_keys$$,!0])):$APP.$app$common$text$styles_to_attrs$$($data$jscomp$485_styles$jscomp$27$$);
return $APP.$app$main$ui$shapes$text$styles$generate_text_styles$cljs$0core$0IFn$0_invoke$0arity$03$$($shape$jscomp$1011$$,$data$jscomp$485_styles$jscomp$27$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2953$show_text_QMARK_$$,!1],null))};
$app$main$ui$workspace$shapes$text$editor$get_blocks_to_setup$$=function($block_changes$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78204_v$jscomp$677$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78204_v$jscomp$677$$,0,null);$p__78204_v$jscomp$677$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78204_v$jscomp$677$$,1,null);return $APP.$cljs$cst$3838$old$$.$cljs$core$IFn$_invoke$arity$1$($p__78204_v$jscomp$677$$)==
null},$block_changes$$))};
$app$main$ui$workspace$shapes$text$editor$get_blocks_to_add_styles$$=function($block_changes$jscomp$1$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78208_v$jscomp$678$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78208_v$jscomp$678$$,0,null);$p__78208_v$jscomp$678$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78208_v$jscomp$678$$,1,null);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3838$old$$.$cljs$core$IFn$_invoke$arity$1$($p__78208_v$jscomp$678$$),
$APP.$cljs$cst$3839$new$$.$cljs$core$IFn$_invoke$arity$1$($p__78208_v$jscomp$678$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3838$old$$.$cljs$core$IFn$_invoke$arity$1$($p__78208_v$jscomp$678$$),"")},$block_changes$jscomp$1$$))};
$app$main$ui$workspace$shapes$text$editor$shape__GT_justify$$=function($content$jscomp$245_map__78215__$1_p__78214$$){$content$jscomp$245_map__78215__$1_p__78214$$=$APP.$cljs$core$__destructure_map$$($content$jscomp$245_map__78215__$1_p__78214$$);$content$jscomp$245_map__78215__$1_p__78214$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$245_map__78215__$1_p__78214$$,$APP.$cljs$cst$1621$content$$);switch($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$245_map__78215__$1_p__78214$$),
"top")){case "center":return"center";case "top":return"flex-start";case "bottom":return"flex-end";default:return null}};
$app$main$ui$workspace$shapes$text$editor$text_editor_svg$$=function($clip_id$jscomp$2_props_78277$$){var $modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$=$clip_id$jscomp$2_props_78277$$.modifiers,$shape$jscomp$1013$$=$clip_id$jscomp$2_props_78277$$.shape,$shape_id$jscomp$162$$=$shape$jscomp$1013$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1013$$,$APP.$cljs$cst$266$id$$),$modifiers__$1$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$,
$shape_id$jscomp$162$$),$APP.$cljs$cst$1794$modifiers$$);$clip_id$jscomp$2_props_78277$$="text-edition-clip"+($shape_id$jscomp$162$$??"");$modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$162$$)],function(){return $APP.$app$main$refs$workspace_text_modifier_by_id$$($shape_id$jscomp$162$$)});var $text_modifier$jscomp$4$$=$APP.$rumext$v2$deref$$($modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$),
$maybe_zoom$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1338$safari_16$$)?$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_zoom$$):null,$shape__$1$jscomp$111$$=function(){var $G__78282__$1$$=$text_modifier$jscomp$4$$!=null?$APP.$app$main$data$workspace$texts$apply_text_modifier$$($shape$jscomp$1013$$,$text_modifier$jscomp$4$$):$shape$jscomp$1013$$;return $modifiers__$1$jscomp$18$$!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($G__78282__$1$$,
$modifiers__$1$jscomp$18$$):$G__78282__$1$$}(),$bounds$jscomp$81_height$jscomp$177$$=$APP.$app$common$geom$shapes$text$shape__GT_rect$$($shape__$1$jscomp$111$$),$x$jscomp$1262$$=Math.min($bounds$jscomp$81_height$jscomp$177$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$81_height$jscomp$177$$,$APP.$cljs$cst$1499$x$$),$shape__$1$jscomp$111$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$1499$x$$)),$y$jscomp$485$$=Math.min($bounds$jscomp$81_height$jscomp$177$$?.y??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$81_height$jscomp$177$$,$APP.$cljs$cst$1500$y$$),$shape__$1$jscomp$111$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$1500$y$$));$modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$=Math.max($bounds$jscomp$81_height$jscomp$177$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$81_height$jscomp$177$$,$APP.$cljs$cst$288$width$$),$shape__$1$jscomp$111$$?.width??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$288$width$$));$bounds$jscomp$81_height$jscomp$177$$=Math.max($bounds$jscomp$81_height$jscomp$177$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$81_height$jscomp$177$$,$APP.$cljs$cst$1511$height$$),$shape__$1$jscomp$111$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$1511$height$$));var $style$jscomp$76$$=function(){var $G__78283_G__78283__$1_G__78283__$2$$=
{pointerEvents:"all"};$G__78283_G__78283__$1_G__78283__$2$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1337$safari$$)?$G__78283_G__78283__$1_G__78283__$2$$:$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78283_G__78283__$1_G__78283__$2$$,{transform:"translate("+(($shape__$1$jscomp$111$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$1499$x$$))-$x$jscomp$1262$$)+"px, "+(($shape__$1$jscomp$111$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,
$APP.$cljs$cst$1500$y$$))-$y$jscomp$485$$)+"px)"});$G__78283_G__78283__$1_G__78283__$2$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1342$safari_17$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78283_G__78283__$1_G__78283__$2$$,{height:"100%",display:"flex",flexDirection:"column",justifyContent:$app$main$ui$workspace$shapes$text$editor$shape__GT_justify$$($shape__$1$jscomp$111$$)}):$G__78283_G__78283__$1_G__78283__$2$$;return $APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1338$safari_16$$)?
$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78283_G__78283__$1_G__78283__$2$$,{position:"fixed",left:0,top:($shape__$1$jscomp$111$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$111$$,$APP.$cljs$cst$1500$y$$))-$y$jscomp$485$$,"transform-origin":"top left",transform:$maybe_zoom$$!=null?"scale("+($maybe_zoom$$??"")+")":null}):$G__78283_G__78283__$1_G__78283__$2$$}();return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"text-editor",clipPath:"url(#"+
($clip_id$jscomp$2_props_78277$$??"")+")",transform:""+($APP.$app$common$geom$shapes$transform_matrix$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$111$$)??""),children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:$clip_id$jscomp$2_props_78277$$,children:(0,$APP.$rumext$v2$jsx$$)("rect",{x:$x$jscomp$1262$$,y:$y$jscomp$485$$,width:$modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$,height:$bounds$jscomp$81_height$jscomp$177$$})})}),(0,$APP.$rumext$v2$jsx$$)("foreignObject",
{x:$x$jscomp$1262$$,y:$y$jscomp$485$$,width:$modifiers$jscomp$120_text_modifier_ref$jscomp$2_width$jscomp$209$$,height:$bounds$jscomp$81_height$jscomp$177$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{style:$style$jscomp$76$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$editor$text_shape_edit_html$$,{shape:$shape__$1$jscomp$111$$},""+($shape_id$jscomp$162$$??""))})})]})};
$app$main$ui$workspace$shapes$text$text_edition_outline$text_edition_outline$$=function($map__78217_props_78213_zoom$jscomp$81$$){$map__78217_props_78213_zoom$jscomp$81$$=$APP.$rumext$v2$util$wrap_props$$($map__78217_props_78213_zoom$jscomp$81$$);var $map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$cljs$core$__destructure_map$$($map__78217_props_78213_zoom$jscomp$81$$),$shape$jscomp$1014$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
$APP.$cljs$cst$1795$shape$$);$map__78217_props_78213_zoom$jscomp$81$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,$APP.$cljs$cst$2158$zoom$$);$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
$APP.$cljs$cst$1794$modifiers$$);if($APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))){$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_selrect$$);$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$app$main$data$helpers$get_selrect$$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
$shape$jscomp$1014$$);var $selrect$jscomp$79$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,0,null);$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
1,null);var $sr_height$jscomp$4_vec__78221_y$jscomp$486$$=$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1201$$=$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$),.01);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1201$$)?$or__5025__auto__$jscomp$1201$$:$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$),
.01)}())?function(){var $map__78224_width$jscomp$211$$=$APP.$app$render_wasm$api$get_text_dimensions$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1014$$)),$height$jscomp$179_map__78224__$1$$=$APP.$cljs$core$__destructure_map$$($map__78224_width$jscomp$211$$);$map__78224_width$jscomp$211$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$179_map__78224__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$179_map__78224__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$179_map__78224__$1$$,$APP.$cljs$cst$1511$height$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$map__78224_width$jscomp$211$$,$height$jscomp$179_map__78224__$1$$],null)}():new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$),$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$)],
null),$shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($sr_height$jscomp$4_vec__78221_y$jscomp$486$$,0,null);$sr_height$jscomp$4_vec__78221_y$jscomp$486$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($sr_height$jscomp$4_vec__78221_y$jscomp$486$$,1,null);return(0,$APP.$rumext$v2$jsx$$)("rect",{className:"main viewport-selrect",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$79$$),
width:$shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$,height:$sr_height$jscomp$4_vec__78221_y$jscomp$486$$,transform:$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,style:{stroke:"var(--color-accent-tertiary)",strokeWidth:1/$map__78217_props_78213_zoom$jscomp$81$$,fill:"none"}})}var $modifiers__$1$jscomp$19$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1014$$),$APP.$cljs$cst$1794$modifiers$$],null));$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1014$$))],
function(){return $APP.$app$main$refs$workspace_text_modifier_by_id$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1014$$))});var $text_modifier$jscomp$5$$=$APP.$rumext$v2$deref$$($map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$);$shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$=function(){var $G__78235__$1$$=$modifiers__$1$jscomp$19$$!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1014$$,
$modifiers__$1$jscomp$19$$):$shape$jscomp$1014$$;return $text_modifier$jscomp$5$$!=null?$APP.$app$main$data$workspace$texts$apply_text_modifier$$($G__78235__$1$$,$text_modifier$jscomp$5$$):$G__78235__$1$$}();$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$=$APP.$app$common$geom$shapes$transform_str$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$);var $height$jscomp$178_map__78234__$1$$=
$APP.$cljs$core$__destructure_map$$($shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$);$shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$178_map__78234__$1$$,$APP.$cljs$cst$1499$x$$);$sr_height$jscomp$4_vec__78221_y$jscomp$486$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$178_map__78234__$1$$,$APP.$cljs$cst$1500$y$$);var $width$jscomp$210$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$178_map__78234__$1$$,
$APP.$cljs$cst$288$width$$);$height$jscomp$178_map__78234__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$178_map__78234__$1$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("rect",{className:"main viewport-selrect",x:$shape__$1$jscomp$112_sr_width$jscomp$4_x$jscomp$1263$$,y:$sr_height$jscomp$4_vec__78221_y$jscomp$486$$,width:$width$jscomp$210$$,height:$height$jscomp$178_map__78234__$1$$,transform:$map__78217__$1_modifiers$jscomp$121_selrect_transform$jscomp$1_text_modifier_ref$jscomp$3_transform$jscomp$107_vec__78218$$,
style:{stroke:"var(--color-accent-tertiary)",strokeWidth:1/$map__78217_props_78213_zoom$jscomp$81$$,fill:"none"}})};
$app$main$ui$workspace$shapes$text$v2_editor$get_contrast_color$$=function($JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$){if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$)){var $b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$=$APP.$app$common$types$color$hex__GT_rgb$$($JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$);$JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$,0,null);var $g$jscomp$inline_8806$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$,1,null);$b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$,2,null);$JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$=
Math.sqrt(.241*$JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$+.691*$g$jscomp$inline_8806$$+.068*$b$jscomp$inline_8807_vec__45126$jscomp$inline_8804$$)>.5?"#000000":"#ffffff"}else $JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$=null;return $JSCompiler_temp$jscomp$1475_background_color$jscomp$1_r$jscomp$inline_8805$$};
$app$main$ui$workspace$shapes$text$v2_editor$load_fonts_BANG_$$=function($fonts$jscomp$33$$){return $APP.$cljs$core$run_BANG_$$(function($p__78252_variant_id$jscomp$52$$){var $font_id$jscomp$32$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78252_variant_id$jscomp$52$$,0,null);$p__78252_variant_id$jscomp$52$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78252_variant_id$jscomp$52$$,1,null);return $font_id$jscomp$32$$!=null?$APP.$app$main$fonts$ensure_loaded_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($font_id$jscomp$32$$,
$p__78252_variant_id$jscomp$52$$):null},$fonts$jscomp$33$$)};
$app$main$ui$workspace$shapes$text$v2_editor$initialize_event_handlers$$=function($shape_id$jscomp$163$$,$content$jscomp$248$$,$editor_node_editor_ref$jscomp$1$$,$canvas_node$jscomp$1_canvas_ref$jscomp$1$$,$container_ref$jscomp$2$$,$options$jscomp$624_text_color$jscomp$2$$){function $on_clipboard_change$$($event$jscomp$600$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_clipboard_style$$($event$jscomp$600$$.detail))}function $on_change$jscomp$97$$(){var $is_empty_QMARK_$jscomp$1_save_undo_QMARK_$jscomp$11$$=
(0,$APP.$app$main$data$workspace$texts$is_empty_QMARK_$$)($instance$jscomp$13$$);$is_empty_QMARK_$jscomp$1_save_undo_QMARK_$jscomp$11$$=$APP.$cljs$core$not$$($is_empty_QMARK_$jscomp$1_save_undo_QMARK_$jscomp$11$$);var $temp__5825__auto__$jscomp$393$$=$app$util$text$content$dom__GT_cljs$$((0,$APP.$app$main$data$workspace$texts$get_editor_root$$)($instance$jscomp$13$$));return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$393$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape_id$jscomp$163$$,
$temp__5825__auto__$jscomp$393$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3870$update_name_QMARK_$$,!0,$APP.$cljs$cst$3092$save_undo_QMARK_$$,$is_empty_QMARK_$jscomp$1_save_undo_QMARK_$jscomp$11$$]))):null}function $on_needs_layout$$(){var $temp__5825__auto__$jscomp$392$$=$app$util$text$content$dom__GT_cljs$$((0,$APP.$app$main$data$workspace$texts$get_editor_root$$)($instance$jscomp$13$$));return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$392$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape_id$jscomp$163$$,
$temp__5825__auto__$jscomp$392$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3870$update_name_QMARK_$$,!0,$APP.$cljs$cst$3092$save_undo_QMARK_$$,!1]))):null}function $on_style_change$jscomp$2$$($event$jscomp$599_styles$jscomp$28$$){$event$jscomp$599_styles$jscomp$28$$=$APP.$app$util$text$content$styles$get_styles_from_style_declaration$$($event$jscomp$599_styles$jscomp$28$$.detail);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_editor_styles$$($shape_id$jscomp$163$$,
$event$jscomp$599_styles$jscomp$28$$))}function $on_focus$jscomp$19$$(){return $app$util$dom$set_style_BANG_$$($APP.$rumext$v2$ref_val$$($container_ref$jscomp$2$$),"opacity",1)}function $on_key_up$jscomp$2$$($event$jscomp$598$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$598$$);return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$598$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()])):
null}$editor_node_editor_ref$jscomp$1$$=$APP.$rumext$v2$ref_val$$($editor_node_editor_ref$jscomp$1$$);$canvas_node$jscomp$1_canvas_ref$jscomp$1$$=$APP.$rumext$v2$ref_val$$($canvas_node$jscomp$1_canvas_ref$jscomp$1$$);var $default_font$jscomp$1$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$default_font$$);$options$jscomp$624_text_color$jscomp$2$$={styleDefaults:$app$util$text$content$styles$get_style_defaults$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$get_default_text_attrs$$(),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1618$fills$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1730$fill_color$$,$options$jscomp$624_text_color$jscomp$2$$,$APP.$cljs$cst$1731$fill_opacity$$,1],null)],null)],null),$APP.$app$common$types$text$default_root_attrs$$,$default_font$jscomp$1$$]))),allowHTMLPaste:$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),
"text-editor/v2-html-paste")};var $instance$jscomp$13$$=(0,$APP.$app$main$data$workspace$texts$create_editor$$)($editor_node_editor_ref$jscomp$1$$,$canvas_node$jscomp$1_canvas_ref$jscomp$1$$,$options$jscomp$624_text_color$jscomp$2$$);$APP.$app$util$globals$document$$.addEventListener("keyup",$on_key_up$jscomp$2$$);$instance$jscomp$13$$.addEventListener("focus",$on_focus$jscomp$19$$);$instance$jscomp$13$$.addEventListener("needslayout",$on_needs_layout$$);$instance$jscomp$13$$.addEventListener("stylechange",
$on_style_change$jscomp$2$$);$instance$jscomp$13$$.addEventListener("change",$on_change$jscomp$97$$);$instance$jscomp$13$$.addEventListener("clipboardchange",$on_clipboard_change$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$update_editor$$($instance$jscomp$13$$));$content$jscomp$248$$!=null&&(0,$APP.$app$main$data$workspace$texts$set_editor_root_BANG_$$)($instance$jscomp$13$$,$app$util$text$content$to_dom$create_root$$($content$jscomp$248$$));
$instance$jscomp$13$$!=null&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$focus_editor$$());return function(){var $temp__5825__auto___78329$jscomp$inline_8809$$=$app$util$text$content$dom__GT_cljs$$((0,$APP.$app$main$data$workspace$texts$get_editor_root$$)($instance$jscomp$13$$));if($APP.$cljs$core$truth_$$($temp__5825__auto___78329$jscomp$inline_8809$$)){var $current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$=
$APP.$cljs$core$_deref$$($APP.$app$main$store$state$$);$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$1$($current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$);$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$,$shape_id$jscomp$163$$);$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$);
if($instance$jscomp$13$$!=null){var $generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$=$instance$jscomp$13$$.root.textContent;$generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$,"")?$generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$:null}else $generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$=null;
$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$=$content$jscomp$248$$==null||$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$!=null&&$content$jscomp$248$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$,
$APP.$app$common$types$text$generate_shape_name$$($APP.$app$common$types$text$content__GT_text$$($content$jscomp$248$$)));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape_id$jscomp$163$$,$temp__5825__auto___78329$jscomp$inline_8809$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3870$update_name_QMARK_$$,$current_name_78334$jscomp$inline_8813_objects_78332$jscomp$inline_8811_shape_78333$jscomp$inline_8812_state_78331$jscomp$inline_8810_update_name_QMARK__78336$jscomp$inline_8815$$,
$APP.$cljs$cst$723$name$$,$generated_name_78335$jscomp$inline_8814_result$jscomp$inline_13047$$,$APP.$cljs$cst$3876$finalize_QMARK_$$,!0,$APP.$cljs$cst$3092$save_undo_QMARK_$$,!1])))}$app$util$dom$set_style_BANG_$$($APP.$rumext$v2$ref_val$$($container_ref$jscomp$2$$),"opacity",0);$APP.$app$util$globals$document$$.removeEventListener("keyup",$on_key_up$jscomp$2$$);$instance$jscomp$13$$.removeEventListener("focus",$on_focus$jscomp$19$$);$instance$jscomp$13$$.removeEventListener("needslayout",$on_needs_layout$$);
$instance$jscomp$13$$.removeEventListener("stylechange",$on_style_change$jscomp$2$$);$instance$jscomp$13$$.removeEventListener("change",$on_change$jscomp$97$$);$instance$jscomp$13$$.removeEventListener("clipboardchange",$on_clipboard_change$$);(0,$APP.$app$main$data$workspace$texts$dispose_BANG_$$)($instance$jscomp$13$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$update_editor$$(null))}};
$app$main$ui$workspace$shapes$text$v2_editor$get_color_from_content$$=function($content$jscomp$249_fills$jscomp$31$$){$content$jscomp$249_fills$jscomp$31$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1730$fill_color$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$cst$1618$fills$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$tree_seq$$($APP.$cljs$core$map_QMARK_$$,$APP.$cljs$cst$340$children$$,$content$jscomp$249_fills$jscomp$31$$)])));
return $APP.$cljs$core$some$$($APP.$cljs$cst$1730$fill_color$$,$content$jscomp$249_fills$jscomp$31$$)};
$app$main$ui$workspace$shapes$text$v2_editor$get_default_text_color$$=function($fill_color$jscomp$3_frame$jscomp$77_p__78271$$){var $background_color$jscomp$2_map__78273__$1$$=$APP.$cljs$core$__destructure_map$$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$);$fill_color$jscomp$3_frame$jscomp$77_p__78271$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($background_color$jscomp$2_map__78273__$1$$,$APP.$cljs$cst$1590$frame$$);$background_color$jscomp$2_map__78273__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($background_color$jscomp$2_map__78273__$1$$,
$APP.$cljs$cst$2961$background_color$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$)?!$APP.$app$common$files$helpers$root_QMARK_$$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$)&&$APP.$cljs$core$seq$$($APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$)):$fill_color$jscomp$3_frame$jscomp$77_p__78271$$)?($fill_color$jscomp$3_frame$jscomp$77_p__78271$$=$APP.$cljs$core$some$$(function($p1__78268_SHARP_$$){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$1730$fill_color$$.$cljs$core$IFn$_invoke$arity$1$($p1__78268_SHARP_$$))?
$APP.$cljs$cst$1730$fill_color$$.$cljs$core$IFn$_invoke$arity$1$($p1__78268_SHARP_$$):null},$APP.$cljs$cst$1618$fills$$.$cljs$core$IFn$_invoke$arity$1$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$)),$APP.$cljs$core$truth_$$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$)?$app$main$ui$workspace$shapes$text$v2_editor$get_contrast_color$$($fill_color$jscomp$3_frame$jscomp$77_p__78271$$):$app$main$ui$workspace$shapes$text$v2_editor$get_contrast_color$$($background_color$jscomp$2_map__78273__$1$$)):
$app$main$ui$workspace$shapes$text$v2_editor$get_contrast_color$$($background_color$jscomp$2_map__78273__$1$$)};
$app$main$ui$workspace$shapes$text$v2_editor$shape__GT_justify$$=function($content$jscomp$251_map__78285__$1_p__78284$$){$content$jscomp$251_map__78285__$1_p__78284$$=$APP.$cljs$core$__destructure_map$$($content$jscomp$251_map__78285__$1_p__78284$$);$content$jscomp$251_map__78285__$1_p__78284$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$251_map__78285__$1_p__78284$$,$APP.$cljs$cst$1621$content$$);switch($APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$251_map__78285__$1_p__78284$$),
"top")){case "center":return"center";case "top":return"flex-start";case "bottom":return"flex-end";default:return null}};
$$jscomp$scope$m743970774$0$getRangeRects$$=function($node$jscomp$436$$,$start$jscomp$248$$,$end$jscomp$107$$){const $range$jscomp$18$$=$APP.$goog$global$$.document.createRange();$range$jscomp$18$$.setStart($node$jscomp$436$$,$start$jscomp$248$$);$range$jscomp$18$$.setEnd($node$jscomp$436$$,$end$jscomp$107$$);return[...$range$jscomp$18$$.getClientRects()].filter($r$jscomp$148$$=>$r$jscomp$148$$.width>0)};
$app$util$text_position_data$parse_text_nodes$$=function($parent$jscomp$304$$,$rects$jscomp$1_textNode$jscomp$1$$,$textAlign$$){const $content$jscomp$252$$=$rects$jscomp$1_textNode$jscomp$1$$.textContent,$textSize$$=$content$jscomp$252$$.length;let $from$jscomp$32$$=0,$to$jscomp$28$$=0,$current$jscomp$58$$="",$result$jscomp$360$$=[],$prevRect$$=null,$safeguard$$=!1;for(;$to$jscomp$28$$<$textSize$$;){const $rects$jscomp$2$$=$$jscomp$scope$m743970774$0$getRangeRects$$($rects$jscomp$1_textNode$jscomp$1$$,
$from$jscomp$32$$,$to$jscomp$28$$+1),$splitByWords$$=$textAlign$$=="justify"&&$content$jscomp$252$$[$to$jscomp$28$$].trim()=="";$rects$jscomp$2$$.length>1&&$safeguard$$?($from$jscomp$32$$++,$to$jscomp$28$$++,$safeguard$$=!1):$rects$jscomp$2$$.length>1||$splitByWords$$?($result$jscomp$360$$.push({node:$parent$jscomp$304$$,position:$prevRect$$,text:$current$jscomp$58$$}),$splitByWords$$&&$to$jscomp$28$$++,$from$jscomp$32$$=$to$jscomp$28$$,$current$jscomp$58$$="",$safeguard$$=!0):($prevRect$$=$rects$jscomp$2$$[0],
$current$jscomp$58$$+=$content$jscomp$252$$[$to$jscomp$28$$],$to$jscomp$28$$+=1,$safeguard$$=!1)}$rects$jscomp$1_textNode$jscomp$1$$=$$jscomp$scope$m743970774$0$getRangeRects$$($rects$jscomp$1_textNode$jscomp$1$$,$from$jscomp$32$$,$to$jscomp$28$$);$result$jscomp$360$$.push({node:$parent$jscomp$304$$,position:$rects$jscomp$1_textNode$jscomp$1$$[0],text:$current$jscomp$58$$});return $result$jscomp$360$$};
$app$util$text_svg_position$parse_text_nodes$$=function($parent_node$jscomp$2$$,$direction$jscomp$29$$,$text_node$jscomp$1$$,$text_align$jscomp$4$$){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($entry$jscomp$83$$){return $entry$jscomp$83$$.position!=null?new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$3636$node$$,$entry$jscomp$83$$.node,$APP.$cljs$cst$1660$position$$,
$app$util$dom$bounding_rect__GT_rect$$($entry$jscomp$83$$.position),$APP.$cljs$cst$1572$text$$,$entry$jscomp$83$$.text,$APP.$cljs$cst$1948$direction$$,$direction$jscomp$29$$],null):null}),$app$util$text_position_data$parse_text_nodes$$($parent_node$jscomp$2$$,$text_node$jscomp$1$$,$text_align$jscomp$4$$))};
$app$util$text_svg_position$resolve_font$$=function($node$jscomp$437_styles$jscomp$29$$){$node$jscomp$437_styles$jscomp$29$$=getComputedStyle($node$jscomp$437_styles$jscomp$29$$);var $font$jscomp$53$$=$node$jscomp$437_styles$jscomp$29$$.getPropertyValue("font"),$font__$1$jscomp$3$$=$APP.$cljs$core$not$$($font$jscomp$53$$)||$APP.$cljs$core$empty_QMARK_$$($font$jscomp$53$$)?""+($node$jscomp$437_styles$jscomp$29$$.getPropertyValue("font-size")??"")+" "+($node$jscomp$437_styles$jscomp$29$$.getPropertyValue("font-family")??
""):$font$jscomp$53$$,$font_id$jscomp$34$$=$node$jscomp$437_styles$jscomp$29$$.getPropertyValue("--font-id");return $APP.$promesa$core$merr$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){console.error("Cannot load font "+($font_id$jscomp$34$$??""));return $APP.$promesa$impl$promise$resolved$$(null)},$APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){if($APP.$app$util$globals$document$$.fonts.check($font__$1$jscomp$3$$))var $JSCompiler_temp$jscomp$1840_load_promise$jscomp$inline_8825$$=
null;else $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$_deref$$($app$util$text_svg_position$load_promises$$),$font__$1$jscomp$3$$)?$JSCompiler_temp$jscomp$1840_load_promise$jscomp$inline_8825$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($app$util$text_svg_position$load_promises$$),$font__$1$jscomp$3$$):($JSCompiler_temp$jscomp$1840_load_promise$jscomp$inline_8825$$=$APP.$app$util$globals$document$$.fonts.load($font__$1$jscomp$3$$),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($app$util$text_svg_position$load_promises$$,
$APP.$cljs$core$assoc$$,$font__$1$jscomp$3$$,$JSCompiler_temp$jscomp$1840_load_promise$jscomp$inline_8825$$));return $JSCompiler_temp$jscomp$1840_load_promise$jscomp$inline_8825$$},$APP.$app$main$fonts$ensure_loaded_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($font_id$jscomp$34$$)))};
$app$util$text_svg_position$process_text_node$$=function($parent_node$jscomp$3$$){var $root$jscomp$68$$=$app$util$dom$get_parent_with_selector$$($parent_node$jscomp$3$$,".text-node-html"),$paragraph$jscomp$15$$=$app$util$dom$get_parent_with_selector$$($parent_node$jscomp$3$$,".paragraph"),$shape_x$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_attribute$$($root$jscomp$68$$,"data-x")),$shape_y$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_attribute$$($root$jscomp$68$$,
"data-y")),$direction$jscomp$30$$=getComputedStyle($parent_node$jscomp$3$$).direction,$text_align$jscomp$5$$=getComputedStyle($paragraph$jscomp$15$$).textAlign;return $APP.$cljs$core$sequence$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__78257_SHARP_$$){return $app$util$text_svg_position$parse_text_nodes$$($parent_node$jscomp$3$$,$direction$jscomp$30$$,$p1__78257_SHARP_$$,$text_align$jscomp$5$$)}),
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78258_SHARP_$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($p1__78258_SHARP_$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1499$x$$],null),$APP.$cljs$core$_PLUS_$$,$shape_x$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1500$y$$],null),$APP.$cljs$core$_PLUS_$$,$shape_y$$)})),$APP.$cljs$core$seq$$($parent_node$jscomp$3$$.childNodes))};
$app$util$text_svg_position$calc_text_node_positions$$=function($shape_id$jscomp$166$$){var $text_nodes$$=$APP.$app$util$dom$query_all$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$01$$("#html-text-node-"+($shape_id$jscomp$166$$??"")),".text-node");return $APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function(){return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$util$text_svg_position$process_text_node$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$text_nodes$$]))},
$promesa$core$all$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($app$util$text_svg_position$resolve_font$$,$text_nodes$$)))};
$app$util$text_svg_position$calc_position_data$$=function($shape_id$jscomp$167$$){function $transform_data$$($p__78269_text$jscomp$138$$){var $direction$jscomp$31_map__78270__$1$$=$APP.$cljs$core$__destructure_map$$($p__78269_text$jscomp$138$$),$node$jscomp$438_styles$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($direction$jscomp$31_map__78270__$1$$,$APP.$cljs$cst$3636$node$$),$position$jscomp$200_position__$1$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($direction$jscomp$31_map__78270__$1$$,
$APP.$cljs$cst$1660$position$$);$p__78269_text$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($direction$jscomp$31_map__78270__$1$$,$APP.$cljs$cst$1572$text$$);$direction$jscomp$31_map__78270__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($direction$jscomp$31_map__78270__$1$$,$APP.$cljs$cst$1948$direction$$);$node$jscomp$438_styles$jscomp$31$$=getComputedStyle($node$jscomp$438_styles$jscomp$31$$);$position$jscomp$200_position__$1$jscomp$9$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($position$jscomp$200_position__$1$jscomp$9$$,
$APP.$cljs$cst$1500$y$$,($position$jscomp$200_position__$1$jscomp$9$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$200_position__$1$jscomp$9$$,$APP.$cljs$cst$1500$y$$))+($position$jscomp$200_position__$1$jscomp$9$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$200_position__$1$jscomp$9$$,$APP.$cljs$cst$1511$height$$)));return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($position$jscomp$200_position__$1$jscomp$9$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$val$$),
$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1746$font_style$$,$APP.$cljs$cst$1753$text_transform$$,$APP.$cljs$cst$1744$font_size$$,$APP.$cljs$cst$1745$font_weight$$,$APP.$cljs$cst$1752$text_decoration$$,$APP.$cljs$cst$1750$letter_spacing$$,$APP.$cljs$cst$1618$fills$$,$APP.$cljs$cst$1948$direction$$,$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$1572$text$$],[""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"font-style")??""),""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,
"text-transform")??""),""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"font-size")??""),""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"font-weight")??""),""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"text-decoration")??""),""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"letter-spacing")??""),$APP.$app$common$transit$decode_str$$.$cljs$core$IFn$_invoke$arity$1$($get_prop$$($node$jscomp$438_styles$jscomp$31$$,"--fills")),$direction$jscomp$31_map__78270__$1$$,""+($get_prop$$($node$jscomp$438_styles$jscomp$31$$,
"font-family")??""),$p__78269_text$jscomp$138$$]))}function $get_prop$$($styles$jscomp$30_value$jscomp$961$$,$prop$jscomp$41$$){$styles$jscomp$30_value$jscomp$961$$=$styles$jscomp$30_value$jscomp$961$$.getPropertyValue($prop$jscomp$41$$);return $styles$jscomp$30_value$jscomp$961$$!=null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($styles$jscomp$30_value$jscomp$961$$,"")?$styles$jscomp$30_value$jscomp$961$$:null}return $shape_id$jscomp$167$$!=null?$APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($text_data$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($transform_data$$,
$text_data$$)},$app$util$text_svg_position$calc_text_node_positions$$($shape_id$jscomp$167$$)):null};
$app$main$ui$workspace$shapes$text$viewport_texts_html$fix_position$$=function($shape$jscomp$1017$$){var $temp__5823__auto__$jscomp$240$$=$APP.$cljs$cst$1794$modifiers$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1017$$);if($APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$240$$)){var $new_sr_shape_SINGLEQUOTE_$jscomp$12$$=$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1017$$,$temp__5823__auto__$jscomp$240$$),$deltav$jscomp$3_old_sr$$=$shape$jscomp$1017$$?.$selrect$??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1017$$,$APP.$cljs$cst$1589$selrect$$);$new_sr_shape_SINGLEQUOTE_$jscomp$12$$=$new_sr_shape_SINGLEQUOTE_$jscomp$12$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_sr_shape_SINGLEQUOTE_$jscomp$12$$,$APP.$cljs$cst$1589$selrect$$);$deltav$jscomp$3_old_sr$$=$APP.$app$common$geom$point$to_vec$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($new_sr_shape_SINGLEQUOTE_$jscomp$12$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($deltav$jscomp$3_old_sr$$));
return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1017$$,$APP.$app$common$types$modifiers$move$cljs$0core$0IFn$0_invoke$0arity$02$$($temp__5823__auto__$jscomp$240$$,$deltav$jscomp$3_old_sr$$)),$APP.$cljs$cst$1794$modifiers$$)}return $shape$jscomp$1017$$};
$app$main$ui$workspace$shapes$text$viewport_texts_html$update_shape_with_content$$=function($shape$jscomp$1018$$,$content$jscomp$253$$,$editor_content$$){return $shape$jscomp$1018$$!=null&&$editor_content$$!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$1018$$,$APP.$cljs$cst$1621$content$$,$APP.$app$common$data$txt_merge$$($content$jscomp$253$$,$editor_content$$)):$shape$jscomp$1018$$};
$app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_shape$$=function($p__78300$$,$node$jscomp$439$$){var $map__78301__$1$$=$APP.$cljs$core$__destructure_map$$($p__78300$$),$grow_type$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78301__$1$$,$APP.$cljs$cst$1754$grow_type$$),$id$jscomp$974$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78301__$1$$,$APP.$cljs$cst$266$id$$),$migrate$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78301__$1$$,
$cljs$cst$5609$migrate$$);return $APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$){$app$common$geom$shapes$text$overlaps_position_data_QMARK_$$($map__78301__$1$$,$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$update_position_data$$($id$jscomp$974$$,$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$));
if($APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2020$auto_height$$,null,$APP.$cljs$cst$2021$auto_width$$,null],null),null),$grow_type$jscomp$10$$)){$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$02$$($node$jscomp$439$$,".paragraph-set"));var $height_78358_height_78360__$1_map__78314_78356__$1$$=
$APP.$cljs$core$__destructure_map$$($map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$);$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height_78358_height_78360__$1_map__78314_78356__$1$$,$APP.$cljs$cst$288$width$$);$height_78358_height_78360__$1_map__78314_78356__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height_78358_height_78360__$1_map__78314_78356__$1$$,$APP.$cljs$cst$1511$height$$);
$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$=$APP.$app$common$math$ceil$$($map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$);$height_78358_height_78360__$1_map__78314_78356__$1$$=$APP.$app$common$math$ceil$$($height_78358_height_78360__$1_map__78314_78356__$1$$);$APP.$app$common$math$almost_zero_QMARK_$$($map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$)||$APP.$app$common$math$almost_zero_QMARK_$$($height_78358_height_78360__$1_map__78314_78356__$1$$)||
!$APP.$cljs$core$not$$($migrate$$)||$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$resize_text$$($id$jscomp$974$$,$map__78314_78355_position_data$jscomp$16_width_78357_width_78359__$1$$,$height_78358_height_78360__$1_map__78314_78356__$1$$))}return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$clean_text_modifier$$($id$jscomp$974$$))},$app$util$text_svg_position$calc_position_data$$($id$jscomp$974$$))};
$app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_modifier$$=function($map__78325__$1_p__78319$$,$node$jscomp$440$$){$map__78325__$1_p__78319$$=$APP.$cljs$core$__destructure_map$$($map__78325__$1_p__78319$$);var $grow_type$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78325__$1_p__78319$$,$APP.$cljs$cst$1754$grow_type$$),$id$jscomp$975$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78325__$1_p__78319$$,$APP.$cljs$cst$266$id$$);return $APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__78318_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$update_text_modifier$$($id$jscomp$975$$,
$p1__78318_SHARP_$$))},$APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($G__78327__$1_position_data$jscomp$17_props$jscomp$382$$){$G__78327__$1_position_data$jscomp$17_props$jscomp$382$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1875$position_data$$,$G__78327__$1_position_data$jscomp$17_props$jscomp$382$$],null);if($APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2020$auto_height$$,
null,$APP.$cljs$cst$2021$auto_width$$,null],null),null),$grow_type$jscomp$11$$)){var $map__78326_width$jscomp$215_width__$1$jscomp$11$$=$APP.$app$util$dom$get_client_size$$($APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$02$$($node$jscomp$440$$,".paragraph-set")),$height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$=$APP.$cljs$core$__destructure_map$$($map__78326_width$jscomp$215_width__$1$jscomp$11$$);$map__78326_width$jscomp$215_width__$1$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$,
$APP.$cljs$cst$288$width$$);$height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$,$APP.$cljs$cst$1511$height$$);$map__78326_width$jscomp$215_width__$1$jscomp$11$$=$APP.$app$common$math$ceil$$($map__78326_width$jscomp$215_width__$1$jscomp$11$$);$height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$=$APP.$app$common$math$ceil$$($height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$);if($APP.$app$common$math$almost_zero_QMARK_$$($map__78326_width$jscomp$215_width__$1$jscomp$11$$)||
$APP.$app$common$math$almost_zero_QMARK_$$($height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$))return $G__78327__$1_position_data$jscomp$17_props$jscomp$382$$;$G__78327__$1_position_data$jscomp$17_props$jscomp$382$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$11$$,$APP.$cljs$cst$2021$auto_width$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78327__$1_position_data$jscomp$17_props$jscomp$382$$,$APP.$cljs$cst$288$width$$,$map__78326_width$jscomp$215_width__$1$jscomp$11$$):
$G__78327__$1_position_data$jscomp$17_props$jscomp$382$$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$11$$,$APP.$cljs$cst$2020$auto_height$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$11$$,$APP.$cljs$cst$2021$auto_width$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78327__$1_position_data$jscomp$17_props$jscomp$382$$,$APP.$cljs$cst$1511$height$$,$height$jscomp$183_height__$1$jscomp$7_map__78326__$1$$):$G__78327__$1_position_data$jscomp$17_props$jscomp$382$$}return $G__78327__$1_position_data$jscomp$17_props$jscomp$382$$},
$app$util$text_svg_position$calc_position_data$$($id$jscomp$975$$)))};
$app$main$ui$workspace$shapes$text$viewport_texts_html$text_properties_equal_QMARK_$$=function($shape$jscomp$1024$$,$other$jscomp$203$$){var $and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=$shape$jscomp$1024$$===$other$jscomp$203$$;return $and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$?$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$:
($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1024$$),$APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($other$jscomp$203$$)))?($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1024$$),$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($other$jscomp$203$$)))?($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$1024$$?.x??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1024$$,$APP.$cljs$cst$1499$x$$),$other$jscomp$203$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$203$$,$APP.$cljs$cst$1499$x$$)),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$)?($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=
$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$1024$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1024$$,$APP.$cljs$cst$1500$y$$),$other$jscomp$203$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$203$$,$APP.$cljs$cst$1500$y$$)),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$)?
($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$=$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$1024$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1024$$,$APP.$cljs$cst$288$width$$),$other$jscomp$203$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$203$$,$APP.$cljs$cst$288$width$$)),
$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$)?$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$1024$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1024$$,$APP.$cljs$cst$1511$height$$),$other$jscomp$203$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($other$jscomp$203$$,
$APP.$cljs$cst$1511$height$$)):$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$):$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$):$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$):
$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$:$and__5023__auto__$jscomp$857_and__5023__auto____$1$jscomp$147_and__5023__auto____$2$jscomp$42_and__5023__auto____$3$jscomp$7_and__5023__auto____$4$jscomp$3_or__5025__auto__$jscomp$1203$$};
$app$main$ui$workspace$shapes$text$viewport_texts_html$text_changes_renderer$$=function($changed_texts_props_78337$$){var $text_shapes$jscomp$2$$=$changed_texts_props_78337$$["text-shapes"],$prev_text_shapes$$=$APP.$app$main$ui$hooks$use_previous$$($text_shapes$jscomp$2$$),$pending_update_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$),$pending_update$$=$APP.$cljs$core$_deref$$($pending_update_STAR_$$);$changed_texts_props_78337$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_shapes$jscomp$2$$),$APP.$rumext$v2$adapt$$($pending_update$$)],function(){var $pending_shapes$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$vals$$($pending_update$$));return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($text_shapes$jscomp$2$$),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($id$jscomp$977_old_shape$jscomp$inline_8829$$){var $JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$;
($JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$=$APP.$cljs$core$contains_QMARK_$$($pending_shapes$$,$id$jscomp$977_old_shape$jscomp$inline_8829$$))||($JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($text_shapes$jscomp$2$$,$id$jscomp$977_old_shape$jscomp$inline_8829$$),$id$jscomp$977_old_shape$jscomp$inline_8829$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($prev_text_shapes$$,$id$jscomp$977_old_shape$jscomp$inline_8829$$),
$JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$=$APP.$cljs$cst$3107$session_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$))==null&&$APP.$cljs$core$not$$($app$main$ui$workspace$shapes$text$viewport_texts_html$text_properties_equal_QMARK_$$($id$jscomp$977_old_shape$jscomp$inline_8829$$,$JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$))||$APP.$cljs$cst$1875$position_data$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$)==
null);return $JSCompiler_temp$jscomp$1843_new_shape$jscomp$inline_8828$$},$APP.$cljs$core$keys$$($text_shapes$jscomp$2$$)))});var $handle_update_shape$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($shape$jscomp$1025$$,$node$jscomp$442$$){var $uid$jscomp$2$$=$APP.$app$common$uuid$next$$();$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($pending_update_STAR_$$,$APP.$cljs$core$assoc$$,$uid$jscomp$2$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1025$$));
return $APP.$promesa$core$then$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_shape$$($shape$jscomp$1025$$,$node$jscomp$442$$),function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$3$($pending_update_STAR_$$,$APP.$cljs$core$dissoc$$,$uid$jscomp$2$$)})});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"text-changes-renderer",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$218$$,
$map__78340__$1_p__78338$$){$map__78340__$1_p__78338$$=$APP.$cljs$core$__destructure_map$$($map__78340__$1_p__78338$$);var $id$jscomp$978$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78340__$1_p__78338$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$218$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$text_container$$,{shape:$map__78340__$1_p__78338$$,"on-update":$handle_update_shape$$},"text-container-"+($id$jscomp$978$$??"")));return $out_arr__44057__auto__$jscomp$218$$},
[],$changed_texts_props_78337$$)})};
$app$main$ui$workspace$shapes$text$viewport_texts_html$text_modifiers_renderer$$=function($changed_texts$jscomp$1_props_78341$$){function $text_change_QMARK_$jscomp$2$$($id$jscomp$979_old_shape$jscomp$3$$){var $new_shape$jscomp$25$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($text_shapes$jscomp$3$$,$id$jscomp$979_old_shape$jscomp$3$$);$id$jscomp$979_old_shape$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($prev_text_shapes$jscomp$1$$,$id$jscomp$979_old_shape$jscomp$3$$);
return $new_shape$jscomp$25$$!=null&&$id$jscomp$979_old_shape$jscomp$3$$!=null&&$APP.$cljs$core$not$$($app$main$ui$workspace$shapes$text$viewport_texts_html$text_properties_equal_QMARK_$$($id$jscomp$979_old_shape$jscomp$3$$,$new_shape$jscomp$25$$))}var $text_shapes$jscomp$3$$=$APP.$cljs$core$update_vals$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($changed_texts$jscomp$1_props_78341$$,"text-shapes"),$app$main$ui$workspace$shapes$text$viewport_texts_html$fix_position$$),$prev_text_shapes$jscomp$1$$=
$APP.$app$main$ui$hooks$use_previous$$($text_shapes$jscomp$3$$);$changed_texts$jscomp$1_props_78341$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_shapes$jscomp$3$$)],function(){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($text_shapes$jscomp$3$$),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($text_change_QMARK_$jscomp$2$$,$APP.$cljs$core$keys$$($text_shapes$jscomp$3$$)))});var $handle_update_shape$jscomp$1$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_modifier$$);return(0,$APP.$rumext$v2$jsx$$)("div",{className:"text-changes-renderer",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$219$$,$map__78344__$1_p__78343$$){$map__78344__$1_p__78343$$=$APP.$cljs$core$__destructure_map$$($map__78344__$1_p__78343$$);var $id$jscomp$980$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78344__$1_p__78343$$,
$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$219$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$text_container$$,{shape:$map__78344__$1_p__78343$$,"on-update":$handle_update_shape$jscomp$1$$},"text-container-"+($id$jscomp$980$$??"")));return $out_arr__44057__auto__$jscomp$219$$},[],$changed_texts$jscomp$1_props_78341$$)})};
$app$main$ui$workspace$viewport$actions$on_pointer_down$$=function($map__78364__$1_p__78363_type$jscomp$674$$,$selected$jscomp$181$$,$edition$jscomp$11$$,$drawing_tool$jscomp$2$$,$text_editing_QMARK_$$,$node_editing_QMARK_$$,$grid_editing_QMARK_$$,$drawing_path_QMARK_$$,$create_comment_QMARK_$$,$space_QMARK_$jscomp$1$$,$panning$$,$z_QMARK_$$,$read_only_QMARK_$jscomp$26$$){$map__78364__$1_p__78363_type$jscomp$674$$=$APP.$cljs$core$__destructure_map$$($map__78364__$1_p__78363_type$jscomp$674$$);var $id$jscomp$982$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78364__$1_p__78363_type$jscomp$674$$,$APP.$cljs$cst$266$id$$),$blocked$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78364__$1_p__78363_type$jscomp$674$$,$APP.$cljs$cst$1607$blocked$$),$hidden$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78364__$1_p__78363_type$jscomp$674$$,$APP.$cljs$cst$1604$hidden$$);$map__78364__$1_p__78363_type$jscomp$674$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78364__$1_p__78363_type$jscomp$674$$,
$APP.$cljs$cst$139$type$$);return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$982$$),$APP.$rumext$v2$adapt$$($blocked$jscomp$3$$),$APP.$rumext$v2$adapt$$($hidden$jscomp$11$$),$APP.$rumext$v2$adapt$$($map__78364__$1_p__78363_type$jscomp$674$$),$APP.$rumext$v2$adapt$$($selected$jscomp$181$$),$APP.$rumext$v2$adapt$$($edition$jscomp$11$$),$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$2$$),$APP.$rumext$v2$adapt$$($text_editing_QMARK_$$),$APP.$rumext$v2$adapt$$($node_editing_QMARK_$$),
$APP.$rumext$v2$adapt$$($grid_editing_QMARK_$$),$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$$),$APP.$rumext$v2$adapt$$($create_comment_QMARK_$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($z_QMARK_$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$1$$)),$APP.$rumext$v2$adapt$$($panning$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$26$$)],function($bevent$jscomp$2$$){var $pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$=$APP.$app$util$dom$get_target$$($bevent$jscomp$2$$),
$editor_78377_mod_QMARK_$jscomp$7$$=$app$util$text$ui$closest_text_editor_content$$($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$);$APP.$cljs$core$truth_$$($editor_78377_mod_QMARK_$jscomp$7$$)?$editor_78377_mod_QMARK_$jscomp$7$$.setPointerCapture($bevent$jscomp$2$$.pointerId):$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$.setPointerCapture($bevent$jscomp$2$$.pointerId);if($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1204_or__5025__auto____$1$jscomp$130$$=
$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($bevent$jscomp$2$$),"viewport-controls");return $or__5025__auto__$jscomp$1204_or__5025__auto____$1$jscomp$130$$?$or__5025__auto__$jscomp$1204_or__5025__auto____$1$jscomp$130$$:($or__5025__auto__$jscomp$1204_or__5025__auto____$1$jscomp$130$$=$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($bevent$jscomp$2$$),"viewport-selrect"))?$or__5025__auto__$jscomp$1204_or__5025__auto____$1$jscomp$130$$:$APP.$app$util$dom$child_QMARK_$$($APP.$app$util$dom$get_target$$($bevent$jscomp$2$$),
$APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$01$$(".grid-layout-editor"))}())){$APP.$app$util$dom$stop_propagation$$($bevent$jscomp$2$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($z_QMARK_$$)))return null;var $event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$=$bevent$jscomp$2$$.nativeEvent,$content_78382_ctrl_QMARK__map__78365_78380__$1$$=$event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$.ctrlKey,$meta_QMARK_$$=$event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$.metaKey;
$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$=$event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$.shiftKey;var $alt_QMARK_$jscomp$17$$=$event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$.altKey;$editor_78377_mod_QMARK_$jscomp$7$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$);var $left_click_QMARK_$$=$APP.$cljs$core$not$$($panning$$)&&$app$util$dom$left_mouse_QMARK_$$($bevent$jscomp$2$$),$middle_click_QMARK_$$=$APP.$cljs$core$not$$($panning$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(2,$bevent$jscomp$2$$.nativeEvent.which);if($APP.$cljs$core$truth_$$($middle_click_QMARK_$$?$middle_click_QMARK_$$:$left_click_QMARK_$$?$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$1$$):$left_click_QMARK_$$))return $APP.$app$util$dom$prevent_default$$($bevent$jscomp$2$$),$editor_78377_mod_QMARK_$jscomp$7$$?($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$),
$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$zoom$start_zooming$$($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$viewport$start_panning$$());if($left_click_QMARK_$$)return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$app$util$mouse$MouseEvent$$($APP.$cljs$cst$1938$down$$,
$content_78382_ctrl_QMARK__map__78365_78380__$1$$,$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$,$alt_QMARK_$jscomp$17$$,$meta_QMARK_$$,null,null,null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3485$app_DOT_main_DOT_data_DOT_workspace_DOT_specialized_panel_SLASH_interrupt$$])),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$859$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$11$$,$id$jscomp$982$$);return $and__5023__auto__$jscomp$859$$?
$APP.$cljs$core$truth_$$($text_editing_QMARK_$$)?$text_editing_QMARK_$$:$grid_editing_QMARK_$$:$and__5023__auto__$jscomp$859$$}())&&($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$edition$clear_edition_mode$$()),$APP.$cljs$core$truth_$$(function(){if($APP.$cljs$core$truth_$$($text_editing_QMARK_$$)){var $and__5023__auto____$1$jscomp$148$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1");
return $APP.$cljs$core$truth_$$($and__5023__auto____$1$jscomp$148$$)?$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$:$and__5023__auto____$1$jscomp$148$$}return $text_editing_QMARK_$$}())&&($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$=$app$render_wasm$text_editor$text_editor_sync_content$$.$cljs$core$IFn$_invoke$arity$0$?$app$render_wasm$text_editor$text_editor_sync_content$$.$cljs$core$IFn$_invoke$arity$0$():$app$render_wasm$text_editor$text_editor_sync_content$$(),$APP.$cljs$core$truth_$$($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$)&&
($content_78382_ctrl_QMARK__map__78365_78380__$1$$=$APP.$cljs$core$__destructure_map$$($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$),$event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content_78382_ctrl_QMARK__map__78365_78380__$1$$,$APP.$cljs$cst$2500$shape_id$$),$content_78382_ctrl_QMARK__map__78365_78380__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content_78382_ctrl_QMARK__map__78365_78380__$1$$,$APP.$cljs$cst$1621$content$$),
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($event$jscomp$603_shape_id_78381_temp__5825__auto___78378$$,$content_78382_ctrl_QMARK__map__78365_78380__$1$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3870$update_name_QMARK_$$,!0,$APP.$cljs$cst$3876$finalize_QMARK_$$,!0])))),$app$render_wasm$text_editor$text_editor_stop$$.$cljs$core$IFn$_invoke$arity$0$?
$app$render_wasm$text_editor$text_editor_stop$$.$cljs$core$IFn$_invoke$arity$0$():$app$render_wasm$text_editor$text_editor_stop$$())),$APP.$cljs$core$not$$($text_editing_QMARK_$$)&&$APP.$cljs$core$not$$($blocked$jscomp$3$$)&&$APP.$cljs$core$not$$($hidden$jscomp$11$$)&&$APP.$cljs$core$not$$($create_comment_QMARK_$$)&&$APP.$cljs$core$not$$($drawing_path_QMARK_$$)?$APP.$cljs$core$truth_$$($node_editing_QMARK_$$)?$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$26$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$path$selection$handle_area_selection$$($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$,
$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$&&$editor_78377_mod_QMARK_$jscomp$7$$)):$APP.$cljs$core$truth_$$($drawing_tool$jscomp$2$$)?$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$26$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$drawing$start_drawing$$($drawing_tool$jscomp$2$$)):$APP.$cljs$core$not$$($id$jscomp$982$$)||$editor_78377_mod_QMARK_$jscomp$7$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$selection$handle_area_selection$$($pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$,
$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$&&$editor_78377_mod_QMARK_$jscomp$7$$,$editor_78377_mod_QMARK_$jscomp$7$$)):$APP.$cljs$core$not$$($drawing_tool$jscomp$2$$)?$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$26$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$start_move_selected$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$982$$,$pt$jscomp$29_raw_pt_shift_QMARK_$jscomp$35_target_78376$$)):null:null}return null})};
$app$main$ui$workspace$viewport$actions$on_move_selected$$=function($hover$jscomp$4$$,$hover_ids$jscomp$1$$,$selected$jscomp$182$$,$space_QMARK_$jscomp$2$$,$z_QMARK_$jscomp$1$$,$read_only_QMARK_$jscomp$27$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover$jscomp$4$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$1$$)),$APP.$rumext$v2$adapt$$($selected$jscomp$182$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$2$$)),
$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($z_QMARK_$jscomp$1$$)),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$27$$)],function($bevent$jscomp$3$$){var $event$jscomp$604_mod_QMARK_$jscomp$8$$=$bevent$jscomp$3$$.nativeEvent,$shift_QMARK_$jscomp$36$$=$event$jscomp$604_mod_QMARK_$jscomp$8$$.shiftKey;$event$jscomp$604_mod_QMARK_$jscomp$8$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$604_mod_QMARK_$jscomp$8$$);return $app$util$dom$left_mouse_QMARK_$$($bevent$jscomp$3$$)&&!$event$jscomp$604_mod_QMARK_$jscomp$8$$&&
!$shift_QMARK_$jscomp$36$$&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$2$$))?($APP.$app$util$dom$prevent_default$$($bevent$jscomp$3$$),$APP.$app$util$dom$stop_propagation$$($bevent$jscomp$3$$),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$27$$)?$read_only_QMARK_$jscomp$27$$:$APP.$cljs$core$_deref$$($z_QMARK_$jscomp$1$$))?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$start_move_selected$$.$cljs$core$IFn$_invoke$arity$0$())):
null})};
$app$main$ui$workspace$viewport$actions$on_frame_select$$=function($selected$jscomp$183$$,$read_only_QMARK_$jscomp$28$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$183$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$28$$)],function($event$jscomp$605_shift_QMARK_$jscomp$37$$,$id$jscomp$983$$){$event$jscomp$605_shift_QMARK_$jscomp$37$$=$event$jscomp$605_shift_QMARK_$jscomp$37$$.shiftKey;var $selected_QMARK_$jscomp$27$$=$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$183$$,
$id$jscomp$983$$),$selected_drawtool$jscomp$1$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$selected_drawing_tool$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($event$jscomp$605_shift_QMARK_$jscomp$37$$||!$selected_QMARK_$jscomp$27$$?$APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$983$$,$event$jscomp$605_shift_QMARK_$jscomp$37$$):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$selected_drawtool$jscomp$1$$==
null&&!$event$jscomp$605_shift_QMARK_$jscomp$37$$&&$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$28$$)?$APP.$app$main$data$workspace$start_move_selected$$.$cljs$core$IFn$_invoke$arity$0$():null]))})};$app$main$ui$workspace$viewport$actions$on_frame_enter$$=function($frame_hover$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$984$$){return $APP.$cljs$core$reset_BANG_$$($frame_hover$$,$id$jscomp$984$$)})};
$app$main$ui$workspace$viewport$actions$on_frame_leave$$=function($frame_hover$jscomp$1$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($frame_hover$jscomp$1$$,null)})};
$app$main$ui$workspace$viewport$actions$on_click$$=function($hover$jscomp$5$$,$selected$jscomp$184$$,$edition$jscomp$12$$,$drawing_path_QMARK_$jscomp$1$$,$drawing_tool$jscomp$3$$,$space_QMARK_$jscomp$3$$,$selrect$jscomp$81$$,$z_QMARK_$jscomp$2$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover$jscomp$5$$)),$APP.$rumext$v2$adapt$$($selected$jscomp$184$$),$APP.$rumext$v2$adapt$$($edition$jscomp$12$$),$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$1$$),
$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$3$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$3$$)),$APP.$rumext$v2$adapt$$($selrect$jscomp$81$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($z_QMARK_$jscomp$2$$))],function($event$jscomp$606$$){if($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$=$selrect$jscomp$81$$==null;if($and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$){if($and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$=
$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$606$$),"viewport-controls"))return $and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$;$and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$=$APP.$app$util$dom$child_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$606$$),$APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$01$$(".grid-layout-editor"));return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$)?
$and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$:$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$606$$),"viewport-selrect")}return $and__5023__auto__$jscomp$861_or__5025__auto__$jscomp$1208_or__5025__auto____$1$jscomp$131$$}())){var $G__78366_78385_ctrl_QMARK_$jscomp$1$$=$event$jscomp$606$$.ctrlKey,$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$=$event$jscomp$606$$.shiftKey,$alt_QMARK_$jscomp$18$$=$event$jscomp$606$$.altKey,
$meta_QMARK_$jscomp$1$$=$event$jscomp$606$$.metaKey,$hovering_QMARK_$jscomp$3$$=$APP.$cljs$core$_deref$$($hover$jscomp$5$$)!=null,$pt$jscomp$30_raw_pt$jscomp$1$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$606$$);$pt$jscomp$30_raw_pt$jscomp$1$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($pt$jscomp$30_raw_pt$jscomp$1$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$MouseEvent$$($APP.$cljs$cst$1924$click$$,$G__78366_78385_ctrl_QMARK_$jscomp$1$$,
$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$,$alt_QMARK_$jscomp$18$$,$meta_QMARK_$jscomp$1$$,null,null,null));$hovering_QMARK_$jscomp$3$$&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$3$$))&&$APP.$cljs$core$not$$($edition$jscomp$12$$)&&$APP.$cljs$core$not$$($drawing_path_QMARK_$jscomp$1$$)&&$APP.$cljs$core$not$$($drawing_tool$jscomp$3$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($hover$jscomp$5$$)),
$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$));if($APP.$cljs$core$truth_$$(function(){if($hovering_QMARK_$jscomp$3$$){var $and__5023__auto____$1$jscomp$149$$=$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$3$$));return $and__5023__auto____$1$jscomp$149$$?$APP.$cljs$core$truth_$$($edition$jscomp$12$$)?$APP.$cljs$core$not$$($drawing_path_QMARK_$jscomp$1$$)&&$APP.$cljs$core$not$$($drawing_tool$jscomp$3$$):$edition$jscomp$12$$:$and__5023__auto____$1$jscomp$149$$}return $hovering_QMARK_$jscomp$3$$}())){var $hover_shape_78383$$=
$APP.$cljs$core$_deref$$($hover$jscomp$5$$);$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($hover_shape_78383$$));return $and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$?($and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),
"text-editor-wasm/v1"),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$)?$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$:$and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$):$and__5023__auto__$jscomp$863_and__5023__auto____$1$jscomp$150$$}())&&($G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$606$$),$G__78366_78385_ctrl_QMARK_$jscomp$1$$=$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$.x,
$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$=$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$.y,$app$render_wasm$text_editor$text_editor_set_cursor_from_point$$.$cljs$core$IFn$_invoke$arity$2$?$app$render_wasm$text_editor$text_editor_set_cursor_from_point$$.$cljs$core$IFn$_invoke$arity$2$($G__78366_78385_ctrl_QMARK_$jscomp$1$$,$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$):$app$render_wasm$text_editor$text_editor_set_cursor_from_point$$($G__78366_78385_ctrl_QMARK_$jscomp$1$$,
$G__78367_78386_raw_pt_78384__$1_shift_QMARK_$jscomp$38$$))}return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$864$$=$APP.$cljs$core$_deref$$($z_QMARK_$jscomp$2$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$864$$)?$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$3$$))&&$APP.$cljs$core$not$$($edition$jscomp$12$$)&&$APP.$cljs$core$not$$($drawing_path_QMARK_$jscomp$1$$)&&$APP.$cljs$core$not$$($drawing_tool$jscomp$3$$):$and__5023__auto__$jscomp$864$$}())?
$alt_QMARK_$jscomp$18$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$decrease_zoom$$.$cljs$core$IFn$_invoke$arity$1$($pt$jscomp$30_raw_pt$jscomp$1$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$increase_zoom$$.$cljs$core$IFn$_invoke$arity$1$($pt$jscomp$30_raw_pt$jscomp$1$$)):null}return null})};
$app$main$ui$workspace$viewport$actions$on_double_click$$=function($hover$jscomp$6$$,$hover_ids$jscomp$2$$,$hover_top_frame_id$$,$drawing_path_QMARK_$jscomp$2$$,$objects$jscomp$782$$,$edition$jscomp$13$$,$drawing_tool$jscomp$4$$,$z_QMARK_$jscomp$3$$,$read_only_QMARK_$jscomp$29$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover$jscomp$6$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$2$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_top_frame_id$$)),
$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($edition$jscomp$13$$),$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$4$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($z_QMARK_$jscomp$3$$)),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$29$$)],function($event$jscomp$607_meta_QMARK_$jscomp$2$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$607_meta_QMARK_$jscomp$2$$);if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($z_QMARK_$jscomp$3$$)))return null;var $ctrl_QMARK_$jscomp$2$$=
$event$jscomp$607_meta_QMARK_$jscomp$2$$.ctrlKey,$shift_QMARK_$jscomp$39$$=$event$jscomp$607_meta_QMARK_$jscomp$2$$.shiftKey,$alt_QMARK_$jscomp$19$$=$event$jscomp$607_meta_QMARK_$jscomp$2$$.altKey;$event$jscomp$607_meta_QMARK_$jscomp$2$$=$event$jscomp$607_meta_QMARK_$jscomp$2$$.metaKey;var $hover_shape$jscomp$2_map__78368$$=function(){var $or__5025__auto__$jscomp$1209$$=$APP.$cljs$core$_deref$$($hover$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1209$$)?$or__5025__auto__$jscomp$1209$$:
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$782$$,$APP.$cljs$core$first$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$2$$)))}(),$map__78368__$1$$=$APP.$cljs$core$__destructure_map$$($hover_shape$jscomp$2_map__78368$$),$id$jscomp$985$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78368__$1$$,$APP.$cljs$cst$266$id$$),$type$jscomp$675$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78368__$1$$,$APP.$cljs$cst$139$type$$),$editable_QMARK_$jscomp$10$$=
$APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$1406$circle$$,null,$APP.$cljs$cst$1596$image$$,null,$APP.$cljs$cst$1595$rect$$,null,$APP.$cljs$cst$1572$text$$,null],null),null),$type$jscomp$675$$);$hover_shape$jscomp$2_map__78368$$=$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$app$common$files$helpers$is_child_QMARK_$$,
$objects$jscomp$782$$,$id$jscomp$985$$),$APP.$cljs$core$_deref$$($hover_ids$jscomp$2$$)));var $selected_shape$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$782$$,$hover_shape$jscomp$2_map__78368$$),$grid_layout_id$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$shape$layout$grid_layout_QMARK_$$,$objects$jscomp$782$$),$APP.$cljs$core$reverse$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$2$$)));
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$MouseEvent$$($APP.$cljs$cst$3462$double_click$$,$ctrl_QMARK_$jscomp$2$$,$shift_QMARK_$jscomp$39$$,$alt_QMARK_$jscomp$19$$,$event$jscomp$607_meta_QMARK_$jscomp$2$$,null,null,null));return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$865$$=$APP.$cljs$core$not$$($drawing_path_QMARK_$jscomp$2$$);return $and__5023__auto__$jscomp$865$$?
$map__78368__$1$$:$and__5023__auto__$jscomp$865$$}())?$editable_QMARK_$jscomp$10$$&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$985$$,$edition$jscomp$13$$)&&$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$29$$)?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$985$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$start_editing_selected$$()])),
$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$675$$,$APP.$cljs$cst$1572$text$$);return $and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$?($and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor-wasm/v1"),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$)?
$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$:$and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$):$and__5023__auto__$jscomp$866_and__5023__auto____$1$jscomp$151$$}())?$app$render_wasm$text_editor$text_editor_start$$.$cljs$core$IFn$_invoke$arity$1$?$app$render_wasm$text_editor$text_editor_start$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$985$$):$app$render_wasm$text_editor$text_editor_start$$($id$jscomp$985$$):null):$selected_shape$$!=null?($APP.$cljs$core$reset_BANG_$$($hover$jscomp$6$$,
$selected_shape$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($selected_shape$$)))):$APP.$cljs$core$not$$($selected_shape$$)&&$grid_layout_id$$!=null&&$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$29$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$edition$start_edition_mode$$($grid_layout_id$$)):
null:null})})};
$app$main$ui$workspace$viewport$actions$on_context_menu$$=function($hover$jscomp$7$$,$hover_ids$jscomp$3$$,$read_only_QMARK_$jscomp$30$$){return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover$jscomp$7$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$3$$)),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$30$$)],function($event$jscomp$608$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$608$$);if($APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$=
$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$608$$),"viewport-controls");if($or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$)return $or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$;$or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$=$APP.$app$util$dom$child_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$608$$),$APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$01$$(".grid-layout-editor"));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$)?
$or__5025__auto__$jscomp$1210_or__5025__auto____$1$jscomp$132$$:$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$608$$),"viewport-selrect")}())){var $position$jscomp$201$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$608$$);return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$not$$($read_only_QMARK_$jscomp$30$$)&&$APP.$cljs$core$_deref$$($hover$jscomp$7$$)!=
null?$APP.$app$main$data$workspace$show_shape_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1660$position$$,$position$jscomp$201$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$core$_deref$$($hover$jscomp$7$$),$APP.$cljs$cst$2170$hover_ids$$,$APP.$cljs$core$_deref$$($hover_ids$jscomp$3$$)],null)):$APP.$app$main$data$workspace$show_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1660$position$$,$position$jscomp$201$$],null)))})}return null})};
$app$main$ui$workspace$viewport$actions$on_menu_selected$$=function($hover$jscomp$8$$,$hover_ids$jscomp$4$$,$selected$jscomp$185$$,$read_only_QMARK_$jscomp$31$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover$jscomp$8$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$4$$)),$APP.$rumext$v2$adapt$$($selected$jscomp$185$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$31$$)],function($event$jscomp$609_position$jscomp$202$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$609_position$jscomp$202$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$609_position$jscomp$202$$);if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$31$$))return null;$event$jscomp$609_position$jscomp$202$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$609_position$jscomp$202$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$show_shape_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1660$position$$,$event$jscomp$609_position$jscomp$202$$,
$APP.$cljs$cst$2170$hover_ids$$,$APP.$cljs$core$_deref$$($hover_ids$jscomp$4$$)],null)))})};
$app$main$ui$workspace$viewport$actions$on_pointer_up$$=function($disable_paste_ref$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$610_event__$1$jscomp$5$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$610_event__$1$jscomp$5$$);$APP.$app$util$dom$get_target$$($event$jscomp$610_event__$1$jscomp$5$$).releasePointerCapture($event$jscomp$610_event__$1$jscomp$5$$.pointerId);$event$jscomp$610_event__$1$jscomp$5$$=$event$jscomp$610_event__$1$jscomp$5$$.nativeEvent;
var $ctrl_QMARK_$jscomp$3$$=$event$jscomp$610_event__$1$jscomp$5$$.ctrlKey,$shift_QMARK_$jscomp$40$$=$event$jscomp$610_event__$1$jscomp$5$$.shiftKey,$alt_QMARK_$jscomp$20$$=$event$jscomp$610_event__$1$jscomp$5$$.altKey,$meta_QMARK_$jscomp$3$$=$event$jscomp$610_event__$1$jscomp$5$$.metaKey,$left_click_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$event$jscomp$610_event__$1$jscomp$5$$.which),$middle_click_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(2,
$event$jscomp$610_event__$1$jscomp$5$$.which);$left_click_QMARK_$jscomp$1$$&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$MouseEvent$$($APP.$cljs$cst$1939$up$$,$ctrl_QMARK_$jscomp$3$$,$shift_QMARK_$jscomp$40$$,$alt_QMARK_$jscomp$20$$,$meta_QMARK_$jscomp$3$$,null,null,null));$middle_click_QMARK_$jscomp$1$$&&($APP.$app$util$dom$prevent_default$$($event$jscomp$610_event__$1$jscomp$5$$),$APP.$rumext$v2$set_ref_val_BANG_$$($disable_paste_ref$$,!0),$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($disable_paste_ref$$,
!1)}));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$viewport$finish_panning$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$zoom$finish_zooming$$()]))})};$app$main$ui$workspace$viewport$actions$on_pointer_enter$$=function($in_viewport_ref$$){return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($in_viewport_ref$$,!0)})};
$app$main$ui$workspace$viewport$actions$on_pointer_leave$$=function($in_viewport_ref$jscomp$1$$){return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($in_viewport_ref$jscomp$1$$,!1)})};
$app$main$ui$workspace$viewport$actions$on_key_down$$=function(){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$611$$){var $bevent$jscomp$4$$=$event$jscomp$611$$.getBrowserEvent(),$key$jscomp$418$$=$event$jscomp$611$$.key,$ctrl_QMARK_$jscomp$4$$=$event$jscomp$611$$.ctrlKey,$shift_QMARK_$jscomp$41$$=$event$jscomp$611$$.shiftKey,$alt_QMARK_$jscomp$21$$=$event$jscomp$611$$.altKey,$meta_QMARK_$jscomp$4$$=$event$jscomp$611$$.metaKey,$mod_QMARK_$jscomp$9$$=
$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$611$$),$editing_QMARK_$jscomp$12_target$jscomp$157$$=$APP.$app$util$dom$get_target$$($event$jscomp$611$$);$editing_QMARK_$jscomp$12_target$jscomp$157$$=$app$util$text$ui$closest_text_editor_content$$($editing_QMARK_$jscomp$12_target$jscomp$157$$)!=null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("rich-text",$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$12_target$jscomp$157$$,"className"))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("INPUT",
$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$12_target$jscomp$157$$,"tagName"))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("TEXTAREA",$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$12_target$jscomp$157$$,"tagName"));return $APP.$cljs$core$truth_$$($bevent$jscomp$4$$.repeat)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$keyboard$KeyboardEvent$$($APP.$cljs$cst$1938$down$$,
$key$jscomp$418$$,$shift_QMARK_$jscomp$41$$,$ctrl_QMARK_$jscomp$4$$,$alt_QMARK_$jscomp$21$$,$meta_QMARK_$jscomp$4$$,$mod_QMARK_$jscomp$9$$,$editing_QMARK_$jscomp$12_target$jscomp$157$$,$event$jscomp$611$$,null,null,null))})};
$app$main$ui$workspace$viewport$actions$on_key_up$$=function(){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$612$$){var $key$jscomp$419$$=$event$jscomp$612$$.key,$ctrl_QMARK_$jscomp$5$$=$event$jscomp$612$$.ctrlKey,$shift_QMARK_$jscomp$42$$=$event$jscomp$612$$.shiftKey,$alt_QMARK_$jscomp$22$$=$event$jscomp$612$$.altKey,$meta_QMARK_$jscomp$5$$=$event$jscomp$612$$.metaKey,$mod_QMARK_$jscomp$10$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$612$$),
$editing_QMARK_$jscomp$13_target$jscomp$158$$=$APP.$app$util$dom$get_target$$($event$jscomp$612$$);$editing_QMARK_$jscomp$13_target$jscomp$158$$=$app$util$text$ui$closest_text_editor_content$$($editing_QMARK_$jscomp$13_target$jscomp$158$$)!=null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("rich-text",$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$13_target$jscomp$158$$,"className"))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("INPUT",
$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$13_target$jscomp$158$$,"tagName"))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("TEXTAREA",$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_QMARK_$jscomp$13_target$jscomp$158$$,"tagName"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$keyboard$KeyboardEvent$$($APP.$cljs$cst$1939$up$$,$key$jscomp$419$$,$shift_QMARK_$jscomp$42$$,$ctrl_QMARK_$jscomp$5$$,
$alt_QMARK_$jscomp$22$$,$meta_QMARK_$jscomp$5$$,$mod_QMARK_$jscomp$10$$,$editing_QMARK_$jscomp$13_target$jscomp$158$$,$event$jscomp$612$$,null,null,null))})};
$app$main$ui$workspace$viewport$actions$on_pointer_move$$=function($move_stream$jscomp$1$$){var $last_position$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null);return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$613$$){var $raw_pt$jscomp$2$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$613$$),$pt$jscomp$31$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($raw_pt$jscomp$2$$),$delta$jscomp$65$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($last_position$$))?
$APP.$app$common$geom$point$subtract$$($raw_pt$jscomp$2$$,$APP.$cljs$core$_deref$$($last_position$$)):$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0);$move_stream$jscomp$1$$.next($pt$jscomp$31$$);$APP.$cljs$core$reset_BANG_$$($last_position$$,$raw_pt$jscomp$2$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$PointerEvent$$($APP.$cljs$cst$2584$delta$$,$delta$jscomp$65$$,$event$jscomp$613$$.ctrlKey,$event$jscomp$613$$.shiftKey,$event$jscomp$613$$.altKey,
$event$jscomp$613$$.metaKey,null,null,null));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$PointerEvent$$($APP.$cljs$cst$3466$viewport$$,$pt$jscomp$31$$,$event$jscomp$613$$.ctrlKey,$event$jscomp$613$$.shiftKey,$event$jscomp$613$$.altKey,$event$jscomp$613$$.metaKey,null,null,null))})};
$app$main$ui$workspace$viewport$actions$schedule_zoom_BANG_$$=function($state$jscomp$1104$$,$scale$jscomp$29$$,$pt$jscomp$32$$){var $pending_QMARK_$$=$state$jscomp$1104$$.zoomRafId>0;$state$jscomp$1104$$.scale*=$scale$jscomp$29$$;$state$jscomp$1104$$.zoomPt=$pt$jscomp$32$$;return $pending_QMARK_$$?null:$state$jscomp$1104$$.zoomRafId=(0,$APP.$app$util$timers$request_animation_frame$$)(function(){var $s$jscomp$572$$=$state$jscomp$1104$$.scale,$zp$$=$state$jscomp$1104$$.zoomPt;$state$jscomp$1104$$.scale=
1;$state$jscomp$1104$$.zoomPt=null;$state$jscomp$1104$$.zoomRafId=0;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$set_zoom$$.$cljs$core$IFn$_invoke$arity$2$($zp$$,$s$jscomp$572$$))})};
$app$main$ui$workspace$viewport$actions$schedule_scroll_BANG_$$=function($state$jscomp$1105$$,$zoom$jscomp$82$$,$event$jscomp$614$$,$delta_x$jscomp$4$$,$delta_y$jscomp$3$$){var $pending_QMARK_$jscomp$1$$=$state$jscomp$1105$$.rafId>0;!$APP.$app$config$check_platform_QMARK_$$()&&$event$jscomp$614$$.shiftKey?$state$jscomp$1105$$.dx+=$delta_y$jscomp$3$$/$zoom$jscomp$82$$:($state$jscomp$1105$$.dx+=$delta_x$jscomp$4$$/$zoom$jscomp$82$$,$state$jscomp$1105$$.dy+=$delta_y$jscomp$3$$/$zoom$jscomp$82$$);$pending_QMARK_$jscomp$1$$||
($state$jscomp$1105$$.rafId=(0,$APP.$app$util$timers$request_animation_frame$$)(function(){var $dx$jscomp$26$$=$state$jscomp$1105$$.dx,$dy$jscomp$26$$=$state$jscomp$1105$$.dy;$state$jscomp$1105$$.dx=0;$state$jscomp$1105$$.dy=0;$state$jscomp$1105$$.rafId=0;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$viewport$update_viewport_position$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,function($p1__78369_SHARP_$$){return $p1__78369_SHARP_$$+
$dx$jscomp$26$$},$APP.$cljs$cst$1500$y$$,function($p1__78370_SHARP_$$){return $p1__78370_SHARP_$$+$dy$jscomp$26$$}],null)))}))};
$app$main$ui$workspace$viewport$actions$on_mouse_wheel$$=function($zoom_ref$$){var $scroll_state$$=(0,$APP.$rumext$v2$use_ref$$)({dx:0,dy:0,rafId:0,scale:1,zoomPt:null,zoomRafId:0});return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$615_event__$1$jscomp$6$$){$event$jscomp$615_event__$1$jscomp$6$$=$event$jscomp$615_event__$1$jscomp$6$$.getBrowserEvent();var $or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$=$APP.$app$util$dom$get_target$$($event$jscomp$615_event__$1$jscomp$6$$),
$mod_QMARK_$jscomp$11$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$615_event__$1$jscomp$6$$),$ctrl_QMARK_$jscomp$6$$=$event$jscomp$615_event__$1$jscomp$6$$.ctrlKey,$picking_color_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("pixel-overlay",$or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$.id),$comments_layer_QMARK_$$=$APP.$app$util$dom$is_child_QMARK_$$($APP.$goog$dom$getElement$$("comments"),$or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$),$pt$jscomp$33_raw_pt$jscomp$3$$=
$APP.$app$util$dom$get_client_position$$($event$jscomp$615_event__$1$jscomp$6$$);$pt$jscomp$33_raw_pt$jscomp$3$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($pt$jscomp$33_raw_pt$jscomp$3$$);var $delta_x$jscomp$5_norm_event$$=$APP.$$jscomp$scope$1820006746$3$normalizeWheel$$($event$jscomp$615_event__$1$jscomp$6$$),$delta_y$jscomp$4$$=$delta_x$jscomp$5_norm_event$$.pixelY;$delta_x$jscomp$5_norm_event$$=$delta_x$jscomp$5_norm_event$$.pixelX;var $delta_zoom_scale__$1$$=$delta_y$jscomp$4$$+
$delta_x$jscomp$5_norm_event$$,$scale$jscomp$30$$=1+$APP.$app$common$math$abs$$(-.0057*$delta_zoom_scale__$1$$);$delta_zoom_scale__$1$$=$delta_zoom_scale__$1$$>0?1/$scale$jscomp$30$$:$scale$jscomp$30$$;$or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$=$APP.$app$util$dom$is_child_QMARK_$$($APP.$cljs$core$_deref$$($app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$),$or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$);$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$)?
$or__5025__auto__$jscomp$inline_13049_target$jscomp$159$$:$picking_color_QMARK_$jscomp$1$$)&&($APP.$app$util$dom$prevent_default$$($event$jscomp$615_event__$1$jscomp$6$$),$APP.$app$util$dom$stop_propagation$$($event$jscomp$615_event__$1$jscomp$6$$),$ctrl_QMARK_$jscomp$6$$||$mod_QMARK_$jscomp$11$$?$app$main$ui$workspace$viewport$actions$schedule_zoom_BANG_$$($APP.$rumext$v2$ref_val$$($scroll_state$$),$delta_zoom_scale__$1$$,$pt$jscomp$33_raw_pt$jscomp$3$$):$app$main$ui$workspace$viewport$actions$schedule_scroll_BANG_$$($APP.$rumext$v2$ref_val$$($scroll_state$$),
$APP.$rumext$v2$ref_val$$($zoom_ref$$),$event$jscomp$615_event__$1$jscomp$6$$,$delta_x$jscomp$5_norm_event$$,$delta_y$jscomp$4$$));return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($comments_layer_QMARK_$$)?$ctrl_QMARK_$jscomp$6$$||$mod_QMARK_$jscomp$11$$:$comments_layer_QMARK_$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$615_event__$1$jscomp$6$$),$APP.$app$util$dom$stop_propagation$$($event$jscomp$615_event__$1$jscomp$6$$),$app$main$ui$workspace$viewport$actions$schedule_zoom_BANG_$$($APP.$rumext$v2$ref_val$$($scroll_state$$),
$delta_zoom_scale__$1$$,$pt$jscomp$33_raw_pt$jscomp$3$$)):null})};
$app$main$ui$workspace$viewport$actions$on_drag_enter$$=function($comp_inst_ref$$){return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$373$$){var $component_inst_QMARK__78392$$=$APP.$rumext$v2$ref_val$$($comp_inst_ref$$);if($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$868$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,"penpot/component");return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$868$$)?$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($e$jscomp$373$$),
"viewport-controls")&&$APP.$cljs$core$not$$($component_inst_QMARK__78392$$):$and__5023__auto__$jscomp$868$$}())){var $point_78393_viewport_coord_78394$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($e$jscomp$373$$.clientX,$e$jscomp$373$$.clientY);$point_78393_viewport_coord_78394$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($point_78393_viewport_coord_78394$$);var $component_78397_map__78373_78395$$=$APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$),
$final_x_78400_map__78373_78396__$1$$=$APP.$cljs$core$__destructure_map$$($component_78397_map__78373_78395$$);$component_78397_map__78373_78395$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($final_x_78400_map__78373_78396__$1$$,$APP.$cljs$cst$1609$component$$);var $file_id_78398$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($final_x_78400_map__78373_78396__$1$$,$APP.$cljs$cst$1628$file_id$$),$final_y_78401_shape_78399$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($final_x_78400_map__78373_78396__$1$$,
$APP.$cljs$cst$1795$shape$$);$final_x_78400_map__78373_78396__$1$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point_78393_viewport_coord_78394$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($final_y_78401_shape_78399$$)/2;$final_y_78401_shape_78399$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point_78393_viewport_coord_78394$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($final_y_78401_shape_78399$$)/2;$APP.$rumext$v2$set_ref_val_BANG_$$($comp_inst_ref$$,
!0);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$instantiate_component$cljs$0core$0IFn$0_invoke$0arity$04$$($file_id_78398$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component_78397_map__78373_78395$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($final_x_78400_map__78373_78396__$1$$,$final_y_78401_shape_78399$$),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3769$start_move_QMARK_$$,
!0,$APP.$cljs$cst$3770$initial_point$$,$point_78393_viewport_coord_78394$$,$APP.$cljs$cst$1770$origin$$,"sidebar"],null)))}return $APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,"penpot/shape");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$))return $or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$;
$or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,"penpot/component");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$))return $or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$;$or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$=
$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,"Files");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$))return $or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$;$or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,
"text/uri-list");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$)?$or__5025__auto__$jscomp$1212_or__5025__auto____$1$jscomp$133_or__5025__auto____$2$jscomp$34_or__5025__auto____$3$jscomp$9$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$373$$,"text/asset-id")}())?$APP.$app$util$dom$prevent_default$$($e$jscomp$373$$):null})};
$app$main$ui$workspace$viewport$actions$on_drag_over$$=function($move_stream$jscomp$2$$){var $on_pointer_move$jscomp$9$$=$app$main$ui$workspace$viewport$actions$on_pointer_move$$($move_stream$jscomp$2$$),$on_pointer_move__$1$$=$APP.$app$util$rxops$throttle_fn$$(50,function($e$jscomp$374$$){return(0,$APP.$app$util$timers$request_animation_frame$$)(function(){return $on_pointer_move$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$?$on_pointer_move$jscomp$9$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$374$$):
$on_pointer_move$jscomp$9$$($e$jscomp$374$$)})});return $APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($e$jscomp$375$$){return $APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$375$$,"penpot/shape");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$))return $or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$;
$or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$375$$,"penpot/component");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$))return $or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$;$or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$=
$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$375$$,"Files");if($APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$))return $or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$;$or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$=$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$375$$,
"text/uri-list");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$)?$or__5025__auto__$jscomp$1213_or__5025__auto____$1$jscomp$134_or__5025__auto____$2$jscomp$35_or__5025__auto____$3$jscomp$10$$:$APP.$app$util$dom$dnd$has_type_QMARK_$$($e$jscomp$375$$,"text/asset-id")}())?($on_pointer_move__$1$$($e$jscomp$375$$),$APP.$app$util$dom$prevent_default$$($e$jscomp$375$$)):null})};
$app$main$ui$workspace$viewport$actions$on_drop$$=function($file$jscomp$176$$,$comp_inst_ref$jscomp$2$$){return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$){$APP.$app$util$dom$prevent_default$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$);var $event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$.clientX,
$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$.clientY);$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$);if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,
"penpot/shape"))){$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$=$APP.$app$util$dom$dnd$get_data$cljs$0core$0IFn$0_invoke$0arity$02$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,"penpot/shape");var $data__$1$jscomp$17_final_x_lines$jscomp$7$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$)/
2;$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$)/2;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$add_shape$$.$cljs$core$IFn$_invoke$arity$1$($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$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,
$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$()),$APP.$cljs$cst$1499$x$$,$data__$1$jscomp$17_final_x_lines$jscomp$7$$),$APP.$cljs$cst$1500$y$$,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$)))}if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,"penpot/component")))return $event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=
$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$.nativeEvent,$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$app$util$mouse$MouseEvent$$($APP.$cljs$cst$1939$up$$,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$.ctrlKey,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$.shiftKey,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$.altKey,
$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$.metaKey,null,null,null)),$APP.$rumext$v2$set_ref_val_BANG_$$($comp_inst_ref$jscomp$2$$,!1);if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,"Files")))return $data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$=$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$.dataTransfer.files),
$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$176$$),$APP.$cljs$cst$1660$position$$,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$,$APP.$cljs$cst$3568$blobs$$,$APP.$cljs$core$seq$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$)],
null),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$media$upload_media_workspace$$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$));if($APP.$cljs$core$truth_$$($APP.$app$util$dom$dnd$has_type_QMARK_$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,"text/uri-list")))return $data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$=$APP.$app$util$dom$dnd$get_data$cljs$0core$0IFn$0_invoke$0arity$02$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,
"text/uri-list"),$data__$1$jscomp$17_final_x_lines$jscomp$7$$=$APP.$cuerdas$core$split$cljs$0core$0IFn$0_invoke$0arity$02$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$,/\n|\r\n/),$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$=$APP.$cljs$core$filterv$$(function($p1__78374_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($p1__78374_SHARP_$$,"http")},$data__$1$jscomp$17_final_x_lines$jscomp$7$$),$data__$1$jscomp$17_final_x_lines$jscomp$7$$=
$APP.$cljs$core$filterv$$(function($p1__78375_SHARP_$$){return $APP.$cuerdas$core$starts_with_QMARK_$$($p1__78375_SHARP_$$,"data:image/")},$data__$1$jscomp$17_final_x_lines$jscomp$7$$),$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=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$176$$),$APP.$cljs$cst$1660$position$$,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$],
null),$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=$APP.$cljs$core$seq$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$,$APP.$cljs$cst$3564$uris$$,$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$,
$APP.$cljs$cst$3568$blobs$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$webapi$data_uri__GT_blob$$,$data__$1$jscomp$17_final_x_lines$jscomp$7$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$media$upload_media_workspace$$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$));$data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$=$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$.dataTransfer.files);
$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$176$$),$APP.$cljs$cst$1660$position$$,$event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$,$APP.$cljs$cst$3568$blobs$$,$APP.$cljs$core$seq$$($data$jscomp$486_event$jscomp$616_files$jscomp$31_shape$jscomp$1031_uris$jscomp$12$$)],
null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$media$upload_media_workspace$$($event__$1$jscomp$7_final_y_params$jscomp$422_params__$1$jscomp$59_point$jscomp$82_viewport_coord$$))})};
$app$main$ui$workspace$viewport$actions$on_paste$$=function($disable_paste_ref$jscomp$1$$,$in_viewport_ref$jscomp$2$$,$read_only_QMARK_$jscomp$32$$){return $APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$32$$)],function($event$jscomp$617$$){var $disable_paste_QMARK_$$=$APP.$rumext$v2$ref_val$$($disable_paste_ref$jscomp$1$$),$in_viewport_QMARK_$jscomp$5$$=$APP.$rumext$v2$ref_val$$($in_viewport_ref$jscomp$2$$);return!$APP.$cljs$core$contains_QMARK_$$($app$main$ui$workspace$viewport$actions$invalid_paste_targets$$,
$APP.$app$util$dom$get_tag_name$$($APP.$app$util$dom$get_target$$($event$jscomp$617$$)))&&$APP.$cljs$core$not$$($disable_paste_QMARK_$$)&&$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$32$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clipboard$paste_from_event$$($event$jscomp$617$$,$in_viewport_QMARK_$jscomp$5$$)):null})};
$app$main$ui$workspace$viewport$debug$debug_content_bounds$$=function($children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$){var $objects$jscomp$783$$=$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$.objects,$zoom$jscomp$84$$=$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$.zoom,$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$=$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$["selected-shapes"];$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$=
$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$["hover-top-frame-id"];$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$),1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)))?
$APP.$cljs$core$first$$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$):null;$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$=$APP.$cljs$core$truth_$$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$783$$,$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$);
if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$):$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)){$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1604$hidden$$,
$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$783$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)));var $bounds$jscomp$83$$=$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$783$$),function($p1__78388_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$783$$,
$p1__78388_SHARP_$$),$APP.$cljs$cst$1588$points$$)}),$children_PLUS_bounds_layout_bounds$jscomp$12$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($shape__$1$jscomp$115$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$deref$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$83$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$115$$))),$shape__$1$jscomp$115$$],null)},
$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$),$grid_layout_data$$=$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$APP.$app$common$geom$shapes$grid_layout$calc_layout_data$$.$cljs$core$IFn$_invoke$arity$5$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$,$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$),
$children_PLUS_bounds_layout_bounds$jscomp$12$$,$bounds$jscomp$83$$,$objects$jscomp$783$$):null;$children_PLUS_bounds_layout_bounds$jscomp$12$$=$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$APP.$app$common$geom$shapes$flex_layout$bounds$layout_content_bounds$$($bounds$jscomp$83$$,$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$,$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$,
$objects$jscomp$783$$):$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$APP.$app$common$geom$shapes$grid_layout$bounds$layout_content_bounds$$($bounds$jscomp$83$$,$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$,$grid_layout_data$$):null;$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$=$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?
$APP.$cljs$core$flatten$$($APP.$app$common$geom$shapes$flex_layout$bounds$layout_content_points$$($bounds$jscomp$83$$,$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$,$children$jscomp$312_hover_top_frame_id$jscomp$1_props_78390$$,$objects$jscomp$783$$)):$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)?$APP.$cljs$core$flatten$$($APP.$app$common$geom$shapes$grid_layout$bounds$layout_content_points$$($bounds$jscomp$83$$,
$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$,$grid_layout_data$$)):null;return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"debug-layout",pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78389_SHARP_$$){return""+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78389_SHARP_$$)??"")+", "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78389_SHARP_$$)??
"")},$children_PLUS_bounds_layout_bounds$jscomp$12$$)),style:{stroke:"red",fill:"none"}}),(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$221$$,$p$jscomp$251$$){$out_arr__44057__auto__$jscomp$221$$.push((0,$APP.$rumext$v2$jsx$$)("circle",{cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p$jscomp$251$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p$jscomp$251$$),
r:4/$zoom$jscomp$84$$,style:{fill:"red"}}));return $out_arr__44057__auto__$jscomp$221$$},[],$layout_points$jscomp$2_selected_frame_selected_shapes$jscomp$27_shape$jscomp$1032$$)})]})}return null};
$app$main$ui$workspace$viewport$debug$debug_layout_lines$$=function($bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$){var $objects$jscomp$784$$=$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$.objects,$zoom$jscomp$85$$=$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$.zoom,$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$=$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$["selected-shapes"];$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$=
$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$["hover-top-frame-id"];$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$),1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$)))?
$APP.$cljs$core$first$$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$):null;var $shape$jscomp$1033$$=$APP.$cljs$core$truth_$$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$)?$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$784$$,$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$);
if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($shape$jscomp$1033$$)?$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1033$$):$shape$jscomp$1033$$)){var $row_QMARK_$jscomp$14$$=$APP.$app$common$types$shape$layout$row_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$1033$$),$col_QMARK_$jscomp$14$$=$APP.$app$common$types$shape$layout$col_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1033$$);$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$=
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78404_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$shapes$points$parent_coords_bounds$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($p1__78404_SHARP_$$),$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1033$$)),$p1__78404_SHARP_$$],null)},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1604$hidden$$,
$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$784$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1033$$))));$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$=$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$784$$),function($p1__78405_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$784$$,$p1__78405_SHARP_$$),
$APP.$cljs$cst$1588$points$$)});$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$=$APP.$app$common$geom$shapes$flex_layout$calc_layout_data$$.$cljs$core$IFn$_invoke$arity$5$($shape$jscomp$1033$$,$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1033$$),$children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$,$bounds$jscomp$84_hover_top_frame_id$jscomp$2_props_78409$$,$objects$jscomp$784$$);
var $layout_bounds$jscomp$13$$=$APP.$cljs$cst$2943$layout_bounds$$.$cljs$core$IFn$_invoke$arity$1$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"debug-layout",pointerEvents:"none",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$222$$,$map__78416_map__78416__$1_p__78412$$){var $idx$jscomp$121$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78416_map__78416__$1_p__78412$$,
0,null);$map__78416_map__78416__$1_p__78412$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78416_map__78416__$1_p__78412$$,1,null);$map__78416_map__78416__$1_p__78412$$=$APP.$cljs$core$__destructure_map$$($map__78416_map__78416__$1_p__78412$$);var $start_p$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,$APP.$cljs$cst$2938$start_p$$),$line_width$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,
$APP.$cljs$cst$3649$line_width$$),$line_height$jscomp$24$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,$APP.$cljs$cst$1749$line_height$$),$layout_gap_row$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,$APP.$cljs$cst$3651$layout_gap_row$$),$layout_gap_col$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,$APP.$cljs$cst$3652$layout_gap_col$$),
$num_children$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78416_map__78416__$1_p__78412$$,$APP.$cljs$cst$3650$num_children$$);$out_arr__44057__auto__$jscomp$222$$.push(function(){var $line_width__$1$jscomp$5_points$jscomp$103$$=$row_QMARK_$jscomp$14$$?$line_width$jscomp$11$$+($num_children$jscomp$8$$-1)*$layout_gap_row$jscomp$13$$:$line_width$jscomp$11$$,$line_height__$1$jscomp$9$$=$col_QMARK_$jscomp$14$$?$line_height$jscomp$24$$+($num_children$jscomp$8$$-1)*$layout_gap_col$jscomp$13$$:
$line_height$jscomp$24$$;$line_width__$1$jscomp$5_points$jscomp$103$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$start_p$jscomp$12$$,$APP.$app$common$geom$point$add$$($start_p$jscomp$12$$,$APP.$app$common$geom$shapes$points$start_hv$$($layout_bounds$jscomp$13$$,$line_width__$1$jscomp$5_points$jscomp$103$$)),$APP.$app$common$geom$point$add$$($APP.$app$common$geom$point$add$$($start_p$jscomp$12$$,$APP.$app$common$geom$shapes$points$start_hv$$($layout_bounds$jscomp$13$$,
$line_width__$1$jscomp$5_points$jscomp$103$$)),$APP.$app$common$geom$shapes$points$start_vv$$($layout_bounds$jscomp$13$$,$line_height__$1$jscomp$9$$)),$APP.$app$common$geom$point$add$$($start_p$jscomp$12$$,$APP.$app$common$geom$shapes$points$start_vv$$($layout_bounds$jscomp$13$$,$line_height__$1$jscomp$9$$))],null);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"layout-line",children:(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78408_SHARP_$$){return""+
($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78408_SHARP_$$)??"")+", "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78408_SHARP_$$)??"")},$line_width__$1$jscomp$5_points$jscomp$103$$)),style:{stroke:"red",strokeWidth:2/$zoom$jscomp$85$$,strokeDasharray:""+10/$zoom$jscomp$85$$+" "+5/$zoom$jscomp$85$$}})},"line-"+($idx$jscomp$121$$??""))}());return $out_arr__44057__auto__$jscomp$222$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$2913$layout_lines$$.$cljs$core$IFn$_invoke$arity$1$($children$jscomp$313_layout_data$jscomp$18_selected_frame$jscomp$1_selected_shapes$jscomp$28$$)))})}return null};
$app$main$ui$workspace$viewport$debug$debug_parent_bounds$$=function($hover_top_frame_id$jscomp$4_props_78443$$){var $objects$jscomp$786$$=$hover_top_frame_id$jscomp$4_props_78443$$.objects,$zoom$jscomp$88$$=$hover_top_frame_id$jscomp$4_props_78443$$.zoom,$children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$=$hover_top_frame_id$jscomp$4_props_78443$$["selected-shapes"];$hover_top_frame_id$jscomp$4_props_78443$$=$hover_top_frame_id$jscomp$4_props_78443$$["hover-top-frame-id"];$children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$),1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$)))?$APP.$cljs$core$first$$($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$):null;
var $parent$jscomp$306$$=$APP.$cljs$core$truth_$$($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$)?$children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$786$$,$hover_top_frame_id$jscomp$4_props_78443$$),$parent_bounds$jscomp$18$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$306$$),$bounds$jscomp$86$$=$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$786$$),
function($p1__78441_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$786$$,$p1__78441_SHARP_$$),$APP.$cljs$cst$1588$points$$)});return $parent$jscomp$306$$!=null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$306$$))?($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1604$hidden$$,
$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$786$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$306$$))),(0,$APP.$rumext$v2$jsx$$)("g",{className:"debug-parent-bounds",pointerEvents:"none",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$224$$,$p__78450$$){var $idx$jscomp$123$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78450$$,0,null),
$child$jscomp$123$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78450$$,1,null);$out_arr__44057__auto__$jscomp$224$$.push((0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$shape_parent_bound$$,{zoom:$zoom$jscomp$88$$,shape:$child$jscomp$123$$,parent:$parent$jscomp$306$$},"bound-"+($idx$jscomp$123$$??"")),function(){var $child_bounds$jscomp$32_points$jscomp$104$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($child$jscomp$123$$);
$child_bounds$jscomp$32_points$jscomp$104$$=$APP.$app$common$types$shape$layout$fill_height_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($child$jscomp$123$$)||$APP.$app$common$types$shape$layout$fill_height_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($child$jscomp$123$$)?$APP.$app$common$geom$shapes$flex_layout$child_layout_bound_points$$.$cljs$core$IFn$_invoke$arity$6$($parent$jscomp$306$$,$child$jscomp$123$$,$parent_bounds$jscomp$18$$,$child_bounds$jscomp$32_points$jscomp$104$$,$bounds$jscomp$86$$,$objects$jscomp$786$$):
$child_bounds$jscomp$32_points$jscomp$104$$;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$22$$,$point$jscomp$83$$){$out_arr__44057__auto____$1$jscomp$22$$.push((0,$APP.$rumext$v2$jsx$$)("circle",{cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$83$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$83$$),r:2/$zoom$jscomp$88$$,style:{fill:"red"}}));return $out_arr__44057__auto____$1$jscomp$22$$},
[],$child_bounds$jscomp$32_points$jscomp$104$$)}()]}));return $out_arr__44057__auto__$jscomp$224$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($children$jscomp$314_selected_frame$jscomp$3_selected_shapes$jscomp$30$$))})):null};
$app$main$ui$workspace$viewport$debug$debug_grid_layout$$=function($children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$){var $objects$jscomp$787$$=$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$.objects,$zoom$jscomp$89$$=$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$.zoom,$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$=
$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$["selected-shapes"];$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$=$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$["hover-top-frame-id"];$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$),
1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$)))?$APP.$cljs$core$first$$($bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$):null;var $parent$jscomp$307$$=$APP.$cljs$core$truth_$$($bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$)?
$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$787$$,$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$),$parent_bounds$jscomp$19$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$307$$);$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$=$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$787$$),
function($p1__78455_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$787$$,$p1__78455_SHARP_$$),$APP.$cljs$cst$1588$points$$)});if($parent$jscomp$307$$!=null&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$uuid$zero$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$307$$))){$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$=
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78456_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$shapes$points$parent_coords_bounds$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($p1__78456_SHARP_$$),$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$307$$)),$p1__78456_SHARP_$$],null)},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1604$hidden$$,
$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$787$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$307$$))));var $width$jscomp$217$$=$APP.$app$common$geom$shapes$points$width_points$$($parent_bounds$jscomp$19$$),$height$jscomp$185$$=$APP.$app$common$geom$shapes$points$height_points$$($parent_bounds$jscomp$19$$),$origin$jscomp$66$$=$APP.$app$common$geom$shapes$points$origin$$($parent_bounds$jscomp$19$$);$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$=
$APP.$app$common$geom$shapes$grid_layout$calc_layout_data$$.$cljs$core$IFn$_invoke$arity$5$($parent$jscomp$307$$,$parent_bounds$jscomp$19$$,$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$,$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$,$objects$jscomp$787$$);$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$=$APP.$cljs$core$__destructure_map$$($bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$);
$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$,$APP.$cljs$cst$2936$row_tracks$$);$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$,
$APP.$cljs$cst$2937$column_tracks$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$225$$,$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$){var $JSCompiler_temp_const$jscomp$1847$$=$out_arr__44057__auto__$jscomp$225$$.push;$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$=
$APP.$cljs$cst$2628$distance$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$);$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$=$APP.$app$common$geom$shapes$points$start_vv$$($parent_bounds$jscomp$19$$,$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$);
$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$=$APP.$app$common$geom$point$add$$($origin$jscomp$66$$,$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$);var $end_p$jscomp$inline_8847$$=$APP.$app$common$geom$point$add$$($JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$,
$APP.$app$common$geom$shapes$points$start_hv$$($parent_bounds$jscomp$19$$,$width$jscomp$217$$));$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$=(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$),
x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$inline_8847$$),y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$inline_8847$$),style:{stroke:"red",strokeWidth:1/$zoom$jscomp$89$$}});$JSCompiler_temp_const$jscomp$1847$$.call($out_arr__44057__auto__$jscomp$225$$,$JSCompiler_inline_result$jscomp$10610_JSCompiler_inline_result$jscomp$1849_p1__78458_SHARP_$jscomp$inline_13051_row_data_start_p$jscomp$inline_8846$$);return $out_arr__44057__auto__$jscomp$225$$},
[],$bounds$jscomp$87_map__78468_row_tracks$jscomp$5_selected_frame$jscomp$4_selected_shapes$jscomp$31$$),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$226$$,$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$){var $JSCompiler_temp_const$jscomp$1850$$=$out_arr__44057__auto__$jscomp$226$$.push;$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$=
$APP.$cljs$cst$2628$distance$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$);$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$=$APP.$app$common$geom$shapes$points$start_hv$$($parent_bounds$jscomp$19$$,$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$);
$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$=$APP.$app$common$geom$point$add$$($origin$jscomp$66$$,$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$);var $end_p$jscomp$inline_8850$$=$APP.$app$common$geom$point$add$$($JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$,
$APP.$app$common$geom$shapes$points$start_vv$$($parent_bounds$jscomp$19$$,$height$jscomp$185$$));$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$=(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$),
x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$inline_8850$$),y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_p$jscomp$inline_8850$$),style:{stroke:"red",strokeWidth:1/$zoom$jscomp$89$$}});$JSCompiler_temp_const$jscomp$1850$$.call($out_arr__44057__auto__$jscomp$226$$,$JSCompiler_inline_result$jscomp$10609_JSCompiler_inline_result$jscomp$1852_column_data_p1__78457_SHARP_$jscomp$inline_13053_start_p$jscomp$inline_8849$$);return $out_arr__44057__auto__$jscomp$226$$},
[],$children$jscomp$315_column_tracks$jscomp$5_hover_top_frame_id$jscomp$5_map__78468__$1_props_78462$$)]})}return null};
$app$main$ui$workspace$viewport$debug$debug_text_wasm_position_data$$=function($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$){var $zoom$jscomp$90$$=$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$.zoom;$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$=$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$["selected-shapes"];$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$),1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$)))?$APP.$cljs$core$first$$($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$):
null;$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$=$APP.$cljs$core$truth_$$($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$)?$APP.$app$render_wasm$api$calculate_position_data$$($position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$):null;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$227$$,$p__78471_x$jscomp$1267$$){var $height$jscomp$186_map__78472__$1$$=
$APP.$cljs$core$__destructure_map$$($p__78471_x$jscomp$1267$$);$p__78471_x$jscomp$1267$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$186_map__78472__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$491$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$186_map__78472__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$218$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$186_map__78472__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$186_map__78472__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$186_map__78472__$1$$,$APP.$cljs$cst$1511$height$$);$out_arr__44057__auto__$jscomp$227$$.push((0,$APP.$rumext$v2$jsx$$)("rect",{x:$p__78471_x$jscomp$1267$$,y:$y$jscomp$491$$-$height$jscomp$186_map__78472__$1$$,width:$width$jscomp$218$$,height:$height$jscomp$186_map__78472__$1$$,fill:"none",strokeWidth:1/$zoom$jscomp$90$$,stroke:"red"}));return $out_arr__44057__auto__$jscomp$227$$},[],$position_data$jscomp$18_props_78469_selected_shapes$jscomp$32_selected_text$jscomp$1$$)};
$app$main$ui$workspace$viewport$drawarea$make_edit_path_ref$$=function($id$jscomp$987$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__78391_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78391_SHARP_$$,$APP.$cljs$cst$1908$edit_path$$),$id$jscomp$987$$)},$APP.$app$main$refs$workspace_local$$)};
$app$main$ui$workspace$viewport$drawarea$generic_draw_area_STAR_$$=function($map__78403_props_78402_x$jscomp$1268$$){var $zoom$jscomp$91$$=$map__78403_props_78402_x$jscomp$1268$$.zoom;$map__78403_props_78402_x$jscomp$1268$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78403_props_78402_x$jscomp$1268$$.shape,$APP.$cljs$cst$1589$selrect$$);var $height$jscomp$187_map__78403__$1$$=$APP.$cljs$core$__destructure_map$$($map__78403_props_78402_x$jscomp$1268$$);$map__78403_props_78402_x$jscomp$1268$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$187_map__78403__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$492$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$187_map__78403__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$219$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$187_map__78403__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$187_map__78403__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$187_map__78403__$1$$,
$APP.$cljs$cst$1511$height$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($map__78403_props_78402_x$jscomp$1268$$)?$APP.$cljs$core$truth_$$($y$jscomp$492$$)?$APP.$cljs$core$not$$(isNaN($map__78403_props_78402_x$jscomp$1268$$))&&$APP.$cljs$core$not$$(isNaN($y$jscomp$492$$)):$y$jscomp$492$$:$map__78403_props_78402_x$jscomp$1268$$)?(0,$APP.$rumext$v2$jsx$$)("rect",{className:"main",x:$map__78403_props_78402_x$jscomp$1268$$,y:$y$jscomp$492$$,width:$width$jscomp$219$$,height:$height$jscomp$187_map__78403__$1$$,
style:{stroke:"var(--color-accent-tertiary)",fill:"none",strokeWidth:1/$zoom$jscomp$91$$}}):null};
$app$main$ui$workspace$viewport$drawarea$path_draw_area_STAR_$$=function($props_78410$$){var $edit_path_ref_edit_path_state_shape$jscomp$1037$$=$props_78410$$.shape,$shape_id$jscomp$169$$=$edit_path_ref_edit_path_state_shape$jscomp$1037$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edit_path_ref_edit_path_state_shape$jscomp$1037$$,$APP.$cljs$cst$266$id$$);$edit_path_ref_edit_path_state_shape$jscomp$1037$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$169$$)],
function(){return $app$main$ui$workspace$viewport$drawarea$make_edit_path_ref$$($shape_id$jscomp$169$$)});$edit_path_ref_edit_path_state_shape$jscomp$1037$$=$APP.$rumext$v2$deref$$($edit_path_ref_edit_path_state_shape$jscomp$1037$$);return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$shapes$path$editor$path_editor_STAR_$$,{...$props_78410$$,state:$edit_path_ref_edit_path_state_shape$jscomp$1037$$})};
$app$main$ui$workspace$viewport$drawarea$draw_area_STAR_$$=function($props_78411$$){var $zoom$jscomp$92$$=$props_78411$$.zoom,$tool$jscomp$4$$=$props_78411$$.tool,$shape$jscomp$1038$$=$props_78411$$.shape;return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"draw-area",children:[(0,$APP.$rumext$v2$jsx$$)("g",{style:{pointerEvents:"none"},children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$workspace$shapes$shape_wrapper$$,{shape:$shape$jscomp$1038$$})}),function(){switch($tool$jscomp$4$$ instanceof $APP.$cljs$core$Keyword$$?
$tool$jscomp$4$$.$fqn$:null){case "path":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$drawarea$path_draw_area_STAR_$$,$props_78411$$);case "curve":return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$shapes$path$path_shape$$,{shape:$shape$jscomp$1038$$,zoom:$zoom$jscomp$92$$});default:return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$drawarea$generic_draw_area_STAR_$$,$props_78411$$)}}()]})};
$app$main$ui$workspace$viewport$frame_grid$square_grid$$=function($frame$jscomp$79_map__78429_props_78428$$){$frame$jscomp$79_map__78429_props_78428$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$79_map__78429_props_78428$$);var $grid_id$jscomp$24_map__78429__$1$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$79_map__78429_props_78428$$);$frame$jscomp$79_map__78429_props_78428$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_id$jscomp$24_map__78429__$1$$,$APP.$cljs$cst$1590$frame$$);
var $zoom$jscomp$93$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_id$jscomp$24_map__78429__$1$$,$APP.$cljs$cst$2158$zoom$$),$color_value__$1$jscomp$1_grid$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_id$jscomp$24_map__78429__$1$$,$APP.$cljs$cst$1643$grid$$);$grid_id$jscomp$24_map__78429__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$common$uuid$next$$()});var $map__78432_map__78432__$1_size$jscomp$156$$=$APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($color_value__$1$jscomp$1_grid$jscomp$13$$);
$map__78432_map__78432__$1_size$jscomp$156$$=$APP.$cljs$core$__destructure_map$$($map__78432_map__78432__$1_size$jscomp$156$$);$map__78432_map__78432__$1_size$jscomp$156$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78432_map__78432__$1_size$jscomp$156$$,$APP.$cljs$cst$872$size$$);var $color_value$jscomp$7_map__78433$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($color_value__$1$jscomp$1_grid$jscomp$13$$)),
$color_opacity$jscomp$1_map__78433__$1$$=$APP.$cljs$core$__destructure_map$$($color_value$jscomp$7_map__78433$$);$color_value$jscomp$7_map__78433$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color_opacity$jscomp$1_map__78433__$1$$,$APP.$cljs$cst$1284$color$$);$color_opacity$jscomp$1_map__78433__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color_opacity$jscomp$1_map__78433__$1$$,$APP.$cljs$cst$1718$opacity$$);$color_value__$1$jscomp$1_grid$jscomp$13$$=$APP.$cljs$core$truth_$$($color_value$jscomp$7_map__78433$$)?
$color_value$jscomp$7_map__78433$$:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($color_value__$1$jscomp$1_grid$jscomp$13$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$260$value$$],null)));return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"grid",children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("pattern",
{id:$grid_id$jscomp$24_map__78429__$1$$,x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),width:$map__78432_map__78432__$1_size$jscomp$156$$,height:$map__78432_map__78432__$1_size$jscomp$156$$,patternUnits:"userSpaceOnUse",children:(0,$APP.$rumext$v2$jsx$$)("path",{d:["M ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78432_map__78432__$1_size$jscomp$156$$),
" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(0)," L ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(0)," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(0)," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(0)," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78432_map__78432__$1_size$jscomp$156$$)," "].join(""),style:{fill:"none",stroke:$color_value__$1$jscomp$1_grid$jscomp$13$$,strokeOpacity:$color_opacity$jscomp$1_map__78433__$1$$,strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/
$zoom$jscomp$93$$)}})})}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$79_map__78429_props_78428$$),fill:["url(#",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($grid_id$jscomp$24_map__78429__$1$$),
")"].join("")})]})};
$app$main$ui$workspace$viewport$frame_grid$layout_grid$$=function($frame$jscomp$80_map__78442_props_78440$$){$frame$jscomp$80_map__78442_props_78440$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$80_map__78442_props_78440$$);var $gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$80_map__78442_props_78440$$),$key$jscomp$420$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$300$key$$);
$frame$jscomp$80_map__78442_props_78440$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$1590$frame$$);var $grid$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$1643$grid$$),$zoom$jscomp$94$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$2158$zoom$$);
$gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$14$$));$gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$=$APP.$cljs$core$__destructure_map$$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$);var $color_value$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$1284$color$$),
$color_opacity$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$,$APP.$cljs$cst$1718$opacity$$),$color_value__$1$jscomp$2$$=$APP.$cljs$core$truth_$$($color_value$jscomp$8$$)?$color_value$jscomp$8$$:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($grid$jscomp$14$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$260$value$$],null)));$gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$=$app$common$geom$grid$grid_gutter$$($frame$jscomp$80_map__78442_props_78440$$,$grid$jscomp$14$$);var $gutter_QMARK_$$=$gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$!=null&&!$APP.$app$common$math$almost_zero_QMARK_$$($gutter$jscomp$5_map__78442__$1_map__78444_map__78444__$1$$);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"grid",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$228$$,
$map__78449_p__78445_x$jscomp$1269$$){var $idx$jscomp$124$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78449_p__78445_x$jscomp$1269$$,0,null);$map__78449_p__78445_x$jscomp$1269$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78449_p__78445_x$jscomp$1269$$,1,null);var $height$jscomp$188_map__78449__$1$$=$APP.$cljs$core$__destructure_map$$($map__78449_p__78445_x$jscomp$1269$$);$map__78449_p__78445_x$jscomp$1269$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$188_map__78449__$1$$,
$APP.$cljs$cst$1499$x$$);var $y$jscomp$493$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$188_map__78449__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$220$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$188_map__78449__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$188_map__78449__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$188_map__78449__$1$$,$APP.$cljs$cst$1511$height$$);$out_arr__44057__auto__$jscomp$228$$.push($gutter_QMARK_$$?
(0,$APP.$rumext$v2$jsx$$)("rect",{x:$map__78449_p__78445_x$jscomp$1269$$,y:$y$jscomp$493$$,width:$map__78449_p__78445_x$jscomp$1269$$+$width$jscomp$220$$-$map__78449_p__78445_x$jscomp$1269$$,height:$y$jscomp$493$$+$height$jscomp$188_map__78449__$1$$-$y$jscomp$493$$,style:{fill:$color_value__$1$jscomp$2$$,strokeWidth:0,opacity:$color_opacity$jscomp$2$$}},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$420$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78449_p__78445_x$jscomp$1269$$),
"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($y$jscomp$493$$)].join("")):!$gutter_QMARK_$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$14$$))?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$124$$,0)?(0,$APP.$rumext$v2$jsx$$)("line",{x1:$map__78449_p__78445_x$jscomp$1269$$,y1:$y$jscomp$493$$,x2:$map__78449_p__78445_x$jscomp$1269$$,
y2:$y$jscomp$493$$+$height$jscomp$188_map__78449__$1$$,style:{stroke:$color_value__$1$jscomp$2$$,strokeWidth:1/$zoom$jscomp$94$$,strokeOpacity:$color_opacity$jscomp$2$$,fill:"none"}},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$420$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78449_p__78445_x$jscomp$1269$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($y$jscomp$493$$),"-start"].join("")):null,(0,$APP.$rumext$v2$jsx$$)("line",{x1:$map__78449_p__78445_x$jscomp$1269$$+
$width$jscomp$220$$,y1:$y$jscomp$493$$,x2:$map__78449_p__78445_x$jscomp$1269$$+$width$jscomp$220$$,y2:$y$jscomp$493$$+$height$jscomp$188_map__78449__$1$$,style:{stroke:$color_value__$1$jscomp$2$$,strokeWidth:1/$zoom$jscomp$94$$,strokeOpacity:$color_opacity$jscomp$2$$,fill:"none"}},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$420$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78449_p__78445_x$jscomp$1269$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($y$jscomp$493$$),
"-end"].join(""))]}):!$gutter_QMARK_$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$14$$))?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$124$$,0)?(0,$APP.$rumext$v2$jsx$$)("line",{x1:$map__78449_p__78445_x$jscomp$1269$$,y1:$y$jscomp$493$$,x2:$map__78449_p__78445_x$jscomp$1269$$+$width$jscomp$220$$,y2:$y$jscomp$493$$,
style:{stroke:$color_value__$1$jscomp$2$$,strokeWidth:1/$zoom$jscomp$94$$,strokeOpacity:$color_opacity$jscomp$2$$,fill:"none"}},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$420$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78449_p__78445_x$jscomp$1269$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($y$jscomp$493$$),"-start"].join("")):null,(0,$APP.$rumext$v2$jsx$$)("line",{x1:$map__78449_p__78445_x$jscomp$1269$$,y1:$y$jscomp$493$$+$height$jscomp$188_map__78449__$1$$,
x2:$map__78449_p__78445_x$jscomp$1269$$+$width$jscomp$220$$,y2:$y$jscomp$493$$+$height$jscomp$188_map__78449__$1$$,style:{stroke:$color_value__$1$jscomp$2$$,strokeWidth:1/$zoom$jscomp$94$$,strokeOpacity:$color_opacity$jscomp$2$$,fill:"none"}},[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($key$jscomp$420$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78449_p__78445_x$jscomp$1269$$),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($y$jscomp$493$$),"-end"].join(""))]}):
null);return $out_arr__44057__auto__$jscomp$228$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($app$common$geom$grid$grid_areas$$($frame$jscomp$80_map__78442_props_78440$$,$grid$jscomp$14$$)))})};
$app$main$ui$workspace$viewport$frame_grid$frame_clip_area$$=function($map__78461__$1_p__78459_selrect$jscomp$82$$,$parents$jscomp$21$$){$map__78461__$1_p__78459_selrect$jscomp$82$$=$APP.$cljs$core$__destructure_map$$($map__78461__$1_p__78459_selrect$jscomp$82$$);$map__78461__$1_p__78459_selrect$jscomp$82$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78461__$1_p__78459_selrect$jscomp$82$$,$APP.$cljs$cst$1589$selrect$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($sr$jscomp$2$$,
$parent$jscomp$308$$){return!$APP.$app$common$files$helpers$root_QMARK_$$($parent$jscomp$308$$)&&$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$308$$)&&$APP.$cljs$core$not$$($APP.$cljs$cst$1860$show_content$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$308$$))?$APP.$app$common$geom$rect$clip_rect$$($sr$jscomp$2$$,$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($parent$jscomp$308$$)):$sr$jscomp$2$$},$map__78461__$1_p__78459_selrect$jscomp$82$$,
$parents$jscomp$21$$)};
$app$main$ui$workspace$viewport$frame_grid$has_grid_QMARK_$$=function($grids$jscomp$2_map__78487__$1_p__78486$$){$grids$jscomp$2_map__78487__$1_p__78486$$=$APP.$cljs$core$__destructure_map$$($grids$jscomp$2_map__78487__$1_p__78486$$);$grids$jscomp$2_map__78487__$1_p__78486$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grids$jscomp$2_map__78487__$1_p__78486$$,$APP.$cljs$cst$2035$grids$$);return $grids$jscomp$2_map__78487__$1_p__78486$$!=null&&$APP.$app$common$data$not_empty_QMARK_$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1917$display$$,$grids$jscomp$2_map__78487__$1_p__78486$$))};
$app$main$ui$workspace$viewport$gradients$shadow$$=function($id$jscomp$988_map__78460_props_78454$$){$id$jscomp$988_map__78460_props_78454$$=$APP.$rumext$v2$util$wrap_props$$($id$jscomp$988_map__78460_props_78454$$);var $map__78460__$1_offset$jscomp$205$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$988_map__78460_props_78454$$);$id$jscomp$988_map__78460_props_78454$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78460__$1_offset$jscomp$205$$,$APP.$cljs$cst$266$id$$);$map__78460__$1_offset$jscomp$205$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78460__$1_offset$jscomp$205$$,$APP.$cljs$cst$195$offset$$);return(0,$APP.$rumext$v2$jsxs$$)("filter",{id:$id$jscomp$988_map__78460_props_78454$$,x:"-10%",y:"-10%",width:"120%",height:"120%",filterUnits:"objectBoundingBox",colorInterpolationFilters:"sRGB",children:[(0,$APP.$rumext$v2$jsx$$)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,$APP.$rumext$v2$jsx$$)("feColorMatrix",{"in":"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"}),
(0,$APP.$rumext$v2$jsx$$)("feOffset",{dy:$map__78460__$1_offset$jscomp$205$$}),(0,$APP.$rumext$v2$jsx$$)("feGaussianBlur",{stdDeviation:"1"}),(0,$APP.$rumext$v2$jsx$$)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.15 0"}),(0,$APP.$rumext$v2$jsx$$)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:$id$jscomp$988_map__78460_props_78454$$}),(0,$APP.$rumext$v2$jsx$$)("feBlend",{mode:"normal","in":"SourceGraphic",in2:$id$jscomp$988_map__78460_props_78454$$,result:"shape"})]})};
$app$main$ui$workspace$viewport$gradients$gradient_color_handler$$=function($map__78467_on_pointer_down$jscomp$13_props_78465$$){$map__78467_on_pointer_down$jscomp$13_props_78465$$=$APP.$rumext$v2$util$wrap_props$$($map__78467_on_pointer_down$jscomp$13_props_78465$$);var $map__78467__$1_point$jscomp$84$$=$APP.$cljs$core$__destructure_map$$($map__78467_on_pointer_down$jscomp$13_props_78465$$);$map__78467_on_pointer_down$jscomp$13_props_78465$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,
$APP.$cljs$cst$4378$on_pointer_down$$);var $on_pointer_move$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$4380$on_pointer_move$$),$on_lost_pointer_capture$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$zoom$jscomp$97$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$2158$zoom$$),
$selected$jscomp$187$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$1906$selected$$),$index$jscomp$558$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$1779$index$$),$color$jscomp$188$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$1284$color$$),$angle$jscomp$39$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,
$cljs$cst$5611$angle$$),$on_click$jscomp$55$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$3934$on_click$$),$on_pointer_up$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$cljs$cst$5612$on_pointer_up$$);$map__78467__$1_point$jscomp$84$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78467__$1_point$jscomp$84$$,$APP.$cljs$cst$3460$point$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{filter:"url(#gradient-drop-shadow)",
style:{cursor:"pointer"},transform:$APP.$app$common$geom$matrix$rotate_matrix$$.$cljs$core$IFn$_invoke$arity$2$($angle$jscomp$39$$,$map__78467__$1_point$jscomp$84$$),children:[(0,$APP.$rumext$v2$jsx$$)("image",{href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAACvUlEQVQoFQGyAk39AeLi4gAAAAAAAB0dHQAAAAAAAOPj4wAAAAAAAB0dHQAAAAAAAOPj4wAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////AAAAAAAA4+PjAAAAAAAAHR0dAAAAAAAA4+PjAAAAAAAAHR0dAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAATj4+MAAAAAAAAdHR0AAAAAAADj4+MAAAAAAAAdHR0AAAAAAADj4+MAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAjScaa0cU7nIAAAAASUVORK5CYII\x3d",
x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$+12/$zoom$jscomp$97$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$,width:20.5/$zoom$jscomp$97$$,height:20.5/$zoom$jscomp$97$$}),(0,$APP.$rumext$v2$jsx$$)("rect",{width:20.5/$zoom$jscomp$97$$/2,height:20.5/$zoom$jscomp$97$$,x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-
10.25/$zoom$jscomp$97$$+12/$zoom$jscomp$97$$,onPointerUp:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_pointer_up$jscomp$2$$,$APP.$cljs$cst$1838$to_p$$),fill:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$188$$),rx:4/$zoom$jscomp$97$$,onClick:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_click$jscomp$55$$,$APP.$cljs$cst$1838$to_p$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$,
onPointerDown:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($map__78467_on_pointer_down$jscomp$13_props_78465$$,$APP.$cljs$cst$1838$to_p$$)}),$APP.$cljs$core$truth_$$($selected$jscomp$187$$)?(0,$APP.$rumext$v2$jsx$$)("rect",{width:20.5/$zoom$jscomp$97$$+4/$zoom$jscomp$97$$,height:20.5/$zoom$jscomp$97$$+4/$zoom$jscomp$97$$,x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$+12/$zoom$jscomp$97$$-2/$zoom$jscomp$97$$,stroke:"var(--color-accent-tertiary)",
fill:"transparent",strokeWidth:2/$zoom$jscomp$97$$,rx:(4+2/$zoom$jscomp$97$$)/$zoom$jscomp$97$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$-2/$zoom$jscomp$97$$,pointerEvents:"none"}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{width:20.5/$zoom$jscomp$97$$,height:20.5/$zoom$jscomp$97$$,x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$+12/$zoom$jscomp$97$$,"data-index":$index$jscomp$558$$,
onPointerUp:$on_pointer_up$jscomp$2$$,"data-allow-click-modal":"colorpicker",stroke:"var(--app-white)",fill:$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$188$$),strokeWidth:2/$zoom$jscomp$97$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$8$$,rx:4/$zoom$jscomp$97$$,onClick:$on_click$jscomp$55$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$)-10.25/$zoom$jscomp$97$$,onPointerMove:$on_pointer_move$jscomp$10$$,fillOpacity:$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$188$$),
onPointerDown:$map__78467_on_pointer_down$jscomp$13_props_78465$$,pointerEvents:"all"}),(0,$APP.$rumext$v2$jsx$$)("circle",{cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78467__$1_point$jscomp$84$$),r:2/$zoom$jscomp$97$$,fill:"var(--app-white)"})]})};
$app$main$ui$workspace$viewport$gradients$gradient_handler_transformed$$=function($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$){function $endpoint_on_pointer_up$$($_position$$,$event$jscomp$619$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$619$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$619$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$619$$);$APP.$cljs$core$reset_BANG_$$($moving_point$$,null);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($handler_state$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2166$hover$$,null)}function $endpoint_on_pointer_down$$($position$jscomp$203$$,$event$jscomp$618$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$618$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$618$$);$APP.$app$util$dom$capture_pointer$$($event$jscomp$618$$);$APP.$cljs$core$reset_BANG_$$($moving_point$$,$position$jscomp$203$$);return $APP.$cljs$core$truth_$$(function(){var $fexpr__78484$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1837$from_p$$,null,$APP.$cljs$cst$1838$to_p$$,null],null),null);return $fexpr__78484$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__78484$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$203$$):$fexpr__78484$$($position$jscomp$203$$)}())?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$select_colorpicker_gradient_stop$$(function(){var $G__78485__$1$$=$position$jscomp$203$$ instanceof $APP.$cljs$core$Keyword$$?$position$jscomp$203$$.$fqn$:
null;switch($G__78485__$1$$){case "from-p":return 0;case "to-p":return 1;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78485__$1$$)].join(""));}}())):null}$endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$=$APP.$rumext$v2$util$wrap_props$$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$);$endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$=$APP.$cljs$core$__destructure_map$$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$);
var $to_p$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$1838$to_p$$),$zoom$jscomp$98$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$2158$zoom$$),$stops$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$1717$stops$$),
$on_change_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$cljs$cst$5613$on_change_width$$),$on_change_start$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$cljs$cst$5614$on_change_start$$),$on_change_finish$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$cljs$cst$5615$on_change_finish$$),
$width_p$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$cljs$cst$5616$width_p$$),$editing$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$3451$editing$$),$from_p$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$1837$from_p$$),
$moving_point$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$angle$jscomp$40$$=90+$APP.$app$common$geom$point$angle$cljs$0core$0IFn$0_invoke$0arity$02$$($from_p$jscomp$16$$,$to_p$jscomp$14$$),$dragging_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$start_offset$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$handler_state$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5617$display_QMARK_$$,!1,$APP.$cljs$cst$195$offset$$,
0,$APP.$cljs$cst$2166$hover$$,null],null)),$can_add_stop_QMARK_$jscomp$2$$=$app$main$features$use_feature$$("render-wasm/v1")?$APP.$cljs$core$count$$($stops$jscomp$20$$)<16:!0;$endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($position$jscomp$204$$){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($handler_state$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2166$hover$$,$position$jscomp$204$$)});var $endpoint_on_pointer_leave$$=
$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$($handler_state$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2166$hover$$,null)}),$points_on_pointer_enter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $can_add_stop_QMARK_$jscomp$2$$?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($handler_state$$,$APP.$cljs$core$assoc$$,$cljs$cst$5617$display_QMARK_$$,!0):null}),$points_on_pointer_leave$$=
$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$($handler_state$$,$APP.$cljs$core$assoc$$,$cljs$cst$5617$display_QMARK_$$,!1)}),$points_on_pointer_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stops$jscomp$20$$)],function($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$){$APP.$app$util$dom$prevent_default$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);
$APP.$app$util$dom$stop_propagation$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);if($can_add_stop_QMARK_$jscomp$2$$){$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=$APP.$app$util$dom$get_client_position$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=
$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);var $lv_nv$$=$APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$));$lv_nv$$=$APP.$app$common$geom$point$normal_left$$($lv_nv$$);$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=
$APP.$app$common$math$precision$$($APP.$app$common$geom$shapes$points$project_t$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_p$jscomp$16$$,$to_p$jscomp$14$$],null),$lv_nv$$),2);$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=$app$common$types$color$interpolate_gradient$$($stops$jscomp$20$$,
$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$20$$,$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$);$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$=
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($e$jscomp$376_new_stop$jscomp$3_offset$jscomp$206_position$jscomp$205_raw_pt$jscomp$4_stops__$1$jscomp$8_stops__$2$jscomp$2$$))}return null}),
$points_on_pointer_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($from_p$jscomp$16$$),$APP.$rumext$v2$adapt$$($to_p$jscomp$14$$)],function($e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$){$e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$=$APP.$app$util$dom$get_client_position$$($e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$);$e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$=
$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$);var $lv$jscomp$1_nv$jscomp$1$$=$APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$));$lv$jscomp$1_nv$jscomp$1$$=$APP.$app$common$geom$point$normal_left$$($lv$jscomp$1_nv$jscomp$1$$);$e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$=$APP.$app$common$geom$shapes$points$project_t$$($e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_p$jscomp$16$$,$to_p$jscomp$14$$],null),$lv$jscomp$1_nv$jscomp$1$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($handler_state$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$195$offset$$,$e$jscomp$377_offset$jscomp$207_position$jscomp$206_raw_pt$jscomp$5$$)}),$handle_marker_pointer_down$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stops$jscomp$20$$)],
function($event$jscomp$620$$){var $index$jscomp$559$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$620$$),"index")),$stop$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($stops$jscomp$20$$,$index$jscomp$559$$);$APP.$app$util$dom$capture_pointer$$($event$jscomp$620$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$select_colorpicker_gradient_stop$$($index$jscomp$559$$));
$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$4$$,!0);return $APP.$rumext$v2$set_ref_val_BANG_$$($start_offset$jscomp$2$$,$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($stop$jscomp$12$$))}),$handle_marker_pointer_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stops$jscomp$20$$)],function($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dragging_ref$jscomp$4$$))){var $index$jscomp$560$$=
$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_target$$($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$),"index"));$event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$);$event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$=
$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$);var $lv$jscomp$2_nv$jscomp$2$$=$APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$));$lv$jscomp$2_nv$jscomp$2$$=$APP.$app$common$geom$point$normal_left$$($lv$jscomp$2_nv$jscomp$2$$);$event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$=$APP.$app$common$geom$shapes$points$project_t$$($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_p$jscomp$16$$,$to_p$jscomp$14$$],null),$lv$jscomp$2_nv$jscomp$2$$);$event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$=$APP.$app$common$math$precision$$($APP.$app$common$math$clamp$$($event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$,0,1),2);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($APP.$cljs$core$assoc_in$$($stops$jscomp$20$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$560$$,$APP.$cljs$cst$195$offset$$],null),$event$jscomp$621_offset$jscomp$208_offset__$1$jscomp$26_position$jscomp$207_raw_pt$jscomp$6$$)))}return null}),$handle_marker_lost_pointer_capture$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($stops$jscomp$20$$)],function($event$jscomp$622_stops__$1$jscomp$9$$){$APP.$app$util$dom$release_pointer$$($event$jscomp$622_stops__$1$jscomp$9$$);
$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$4$$,!1);$APP.$rumext$v2$set_ref_val_BANG_$$($start_offset$jscomp$2$$,null);$event$jscomp$622_stops__$1$jscomp$9$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$195$offset$$,$stops$jscomp$20$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_stops$$($event$jscomp$622_stops__$1$jscomp$9$$))});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($moving_point$$)),$APP.$rumext$v2$adapt$$($from_p$jscomp$16$$),$APP.$rumext$v2$adapt$$($to_p$jscomp$14$$),$APP.$rumext$v2$adapt$$($width_p$$)],function(){var $subs$jscomp$27$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($pt$jscomp$34_y0$jscomp$inline_8856$$){var $G__78490_new_width_p_width_v$$=$APP.$cljs$core$_deref$$($moving_point$$);switch($G__78490_new_width_p_width_v$$ instanceof
$APP.$cljs$core$Keyword$$?$G__78490_new_width_p_width_v$$.$fqn$:null){case "from-p":return $APP.$cljs$core$truth_$$($on_change_start$$)?$on_change_start$$.$cljs$core$IFn$_invoke$arity$1$?$on_change_start$$.$cljs$core$IFn$_invoke$arity$1$($pt$jscomp$34_y0$jscomp$inline_8856$$):$on_change_start$$($pt$jscomp$34_y0$jscomp$inline_8856$$):null;case "to-p":return $APP.$cljs$core$truth_$$($on_change_finish$$)?$on_change_finish$$.$cljs$core$IFn$_invoke$arity$1$?$on_change_finish$$.$cljs$core$IFn$_invoke$arity$1$($pt$jscomp$34_y0$jscomp$inline_8856$$):
$on_change_finish$$($pt$jscomp$34_y0$jscomp$inline_8856$$):null;case "width-p":if($APP.$cljs$core$truth_$$($on_change_width$$)){$G__78490_new_width_p_width_v$$=$APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$subtract$$($width_p$$,$from_p$jscomp$16$$));var $distance$jscomp$9_x0$jscomp$inline_8855$$=$pt$jscomp$34_y0$jscomp$inline_8856$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($pt$jscomp$34_y0$jscomp$inline_8856$$,$APP.$cljs$cst$1499$x$$);$pt$jscomp$34_y0$jscomp$inline_8856$$=
$pt$jscomp$34_y0$jscomp$inline_8856$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($pt$jscomp$34_y0$jscomp$inline_8856$$,$APP.$cljs$cst$1500$y$$);var $x1$jscomp$inline_8857$$=$from_p$jscomp$16$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($from_p$jscomp$16$$,$APP.$cljs$cst$1499$x$$),$y1$jscomp$inline_8858$$=$from_p$jscomp$16$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($from_p$jscomp$16$$,$APP.$cljs$cst$1500$y$$),$x2$jscomp$inline_8859$$=$to_p$jscomp$14$$?.x??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($to_p$jscomp$14$$,$APP.$cljs$cst$1499$x$$),$y2$jscomp$inline_8860$$=$to_p$jscomp$14$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($to_p$jscomp$14$$,$APP.$cljs$cst$1500$y$$);$distance$jscomp$9_x0$jscomp$inline_8855$$=$APP.$app$common$math$abs$$($distance$jscomp$9_x0$jscomp$inline_8855$$*($y2$jscomp$inline_8860$$-$y1$jscomp$inline_8858$$)+-($pt$jscomp$34_y0$jscomp$inline_8856$$*($x2$jscomp$inline_8859$$-$x1$jscomp$inline_8857$$))+$x2$jscomp$inline_8859$$*
$y1$jscomp$inline_8858$$+-($y2$jscomp$inline_8860$$*$x1$jscomp$inline_8857$$))/$APP.$app$common$geom$point$distance$$($to_p$jscomp$14$$,$from_p$jscomp$16$$);$G__78490_new_width_p_width_v$$=$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$multiply$$($G__78490_new_width_p_width_v$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($distance$jscomp$9_x0$jscomp$inline_8855$$)));return $on_change_width$$.$cljs$core$IFn$_invoke$arity$1$?$on_change_width$$.$cljs$core$IFn$_invoke$arity$1$($G__78490_new_width_p_width_v$$):
$on_change_width$$($G__78490_new_width_p_width_v$$)}return null;default:return null}},$APP.$beicon$v2$core$map$$($APP.$app$util$mouse$get_pointer_position$$,$APP.$beicon$v2$core$filter$$(function($p1__78470_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3466$viewport$$,$p1__78470_SHARP_$$.source)},$APP.$beicon$v2$core$filter$$($APP.$app$util$mouse$pointer_event_QMARK_$$,$APP.$app$main$store$stream$$))));return function(){return $APP.$beicon$v2$core$_dispose$$($subs$jscomp$27$$)}});
return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"gradient-handlers",pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$shadow$$,{id:"gradient-drop-shadow",offset:2/$zoom$jscomp$98$$})}),function(){var $lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$=$APP.$app$common$geom$point$unit$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$));$lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$=
$APP.$app$common$geom$point$normal_left$$($lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$);var $width$jscomp$221$$=40/$zoom$jscomp$98$$;$lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$,$width$jscomp$221$$/-2)),$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,
$APP.$app$common$geom$point$scale$$($lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$,$width$jscomp$221$$/2)),$APP.$app$common$geom$point$add$$($to_p$jscomp$14$$,$APP.$app$common$geom$point$scale$$($lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$,$width$jscomp$221$$/2)),$APP.$app$common$geom$point$add$$($to_p$jscomp$14$$,$APP.$app$common$geom$point$scale$$($lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$,$width$jscomp$221$$/-2))],null);$lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$=
$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78473_SHARP_$$){return""+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78473_SHARP_$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78473_SHARP_$$)??"")},$lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$));return(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$lv$jscomp$3_nv$jscomp$3_points$jscomp$105_points_str$jscomp$2$$,
"data-allow-click-modal":"colorpicker",fill:"transparent",pointerEvents:"all",onPointerEnter:$points_on_pointer_enter$$,onPointerLeave:$points_on_pointer_leave$$,onPointerDown:$points_on_pointer_down$$,onPointerMove:$points_on_pointer_move$$})}(),(0,$APP.$rumext$v2$jsx$$)("g",{filter:"url(#gradient-drop-shadow)",children:function(){var $points$jscomp$106_pu$$=$APP.$app$common$geom$point$unit$$($app$common$geom$point$normal_right$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$))),
$sc$jscomp$31$$=2/$zoom$jscomp$98$$/2;$points$jscomp$106_pu$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($points$jscomp$106_pu$$,-$sc$jscomp$31$$)),$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($points$jscomp$106_pu$$,$sc$jscomp$31$$)),$APP.$app$common$geom$point$add$$($to_p$jscomp$14$$,$APP.$app$common$geom$point$scale$$($points$jscomp$106_pu$$,
$sc$jscomp$31$$)),$APP.$app$common$geom$point$add$$($to_p$jscomp$14$$,$APP.$app$common$geom$point$scale$$($points$jscomp$106_pu$$,-$sc$jscomp$31$$))],null);return(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78474_SHARP_$$){return""+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78474_SHARP_$$)??"")+", "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78474_SHARP_$$)??
"")},$points$jscomp$106_pu$$)),fill:"var(--app-white)"})}()}),$APP.$cljs$core$truth_$$($width_p$$)?(0,$APP.$rumext$v2$jsx$$)("g",{filter:"url(#gradient-drop-shadow)",children:function(){var $points$jscomp$107_pu$jscomp$1$$=$APP.$app$common$geom$point$unit$$($app$common$geom$point$normal_right$$($APP.$app$common$geom$point$subtract$$($width_p$$,$from_p$jscomp$16$$))),$sc$jscomp$32$$=2/$zoom$jscomp$98$$/2;$points$jscomp$107_pu$jscomp$1$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($points$jscomp$107_pu$jscomp$1$$,-$sc$jscomp$32$$)),$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($points$jscomp$107_pu$jscomp$1$$,$sc$jscomp$32$$)),$APP.$app$common$geom$point$add$$($width_p$$,$APP.$app$common$geom$point$scale$$($points$jscomp$107_pu$jscomp$1$$,$sc$jscomp$32$$)),$APP.$app$common$geom$point$add$$($width_p$$,$APP.$app$common$geom$point$scale$$($points$jscomp$107_pu$jscomp$1$$,
-$sc$jscomp$32$$))],null);return(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78476_SHARP_$$){return""+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78476_SHARP_$$)??"")+", "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78476_SHARP_$$)??"")},$points$jscomp$107_pu$jscomp$1$$)),fill:"var(--app-white)"})}()}):null,$APP.$cljs$core$truth_$$($width_p$$)?
(0,$APP.$rumext$v2$jsxs$$)("g",{filter:"url(#gradient-drop-shadow)",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5616$width_p$$,$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($handler_state$$)))?(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),fill:"var(--color-accent-tertiary)",
r:6/$zoom$jscomp$98$$}):null,(0,$APP.$rumext$v2$jsx$$)("circle",{"data-allow-click-modal":"colorpicker",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),r:4/$zoom$jscomp$98$$,fill:"var(--app-white)"}),(0,$APP.$rumext$v2$jsx$$)("circle",{cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),onPointerUp:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_up$$,$cljs$cst$5616$width_p$$),
"data-allow-click-modal":"colorpicker",fill:"transparent",r:15/$zoom$jscomp$98$$,onPointerDown:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_down$$,$cljs$cst$5616$width_p$$),onPointerLeave:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_leave$$,$cljs$cst$5616$width_p$$),cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($width_p$$),onPointerEnter:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,
$cljs$cst$5616$width_p$$),pointerEvents:"all"})]}):null,(0,$APP.$rumext$v2$jsxs$$)("g",{children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1837$from_p$$,$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($handler_state$$)))?(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),
fill:"var(--color-accent-tertiary)",r:6/$zoom$jscomp$98$$}):null,(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),fill:"var(--app-white)",r:4/$zoom$jscomp$98$$}),(0,$APP.$rumext$v2$jsx$$)("circle",{cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),onPointerUp:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_up$$,
$APP.$cljs$cst$1837$from_p$$),"data-allow-click-modal":"colorpicker",fill:"transparent",onLostPointerCapture:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_up$$,$APP.$cljs$cst$1837$from_p$$),r:20/$zoom$jscomp$98$$,onPointerDown:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_down$$,$APP.$cljs$cst$1837$from_p$$),onPointerLeave:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_leave$$,$APP.$cljs$cst$1837$from_p$$),
cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($from_p$jscomp$16$$),onPointerEnter:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$1837$from_p$$),pointerEvents:"all"})]}),(0,$APP.$rumext$v2$jsxs$$)("g",{children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1838$to_p$$,$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($handler_state$$)))?
(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),fill:"var(--color-accent-tertiary)",r:6/$zoom$jscomp$98$$}):null,(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),
fill:"var(--app-white)",r:4/$zoom$jscomp$98$$}),(0,$APP.$rumext$v2$jsx$$)("circle",{cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),onPointerUp:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_up$$,$APP.$cljs$cst$1838$to_p$$),"data-allow-click-modal":"colorpicker",fill:"transparent",onLostPointerCapture:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_up$$,$APP.$cljs$cst$1837$from_p$$),r:20/$zoom$jscomp$98$$,
onPointerDown:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_down$$,$APP.$cljs$cst$1838$to_p$$),onPointerLeave:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_leave$$,$APP.$cljs$cst$1838$to_p$$),cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($to_p$jscomp$14$$),onPointerEnter:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($endpoint_on_pointer_enter_map__78483_map__78483__$1_props_78477$$,$APP.$cljs$cst$1838$to_p$$),
pointerEvents:"all"})]}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$231$$,$JSCompiler_temp_const$jscomp$1853_p__78491$$){var $JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1853_p__78491$$,0,null),$stop$jscomp$13$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1853_p__78491$$,1,null);$JSCompiler_temp_const$jscomp$1853_p__78491$$=
$out_arr__44057__auto__$jscomp$231$$.push;var $stop_p$jscomp$inline_8862$$=$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$),$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($stop$jscomp$13$$)));$JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$gradient_color_handler$$,{"on-pointer-move":$handle_marker_pointer_move$$,
"on-lost-pointer-capture":$handle_marker_lost_pointer_capture$$,zoom:$zoom$jscomp$98$$,selected:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($editing$jscomp$4$$,$JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$),color:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($stop$jscomp$13$$),$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($stop$jscomp$13$$)],
null),index:$JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$,angle:$angle$jscomp$40$$,point:$stop_p$jscomp$inline_8862$$,"on-pointer-down":$handle_marker_pointer_down$$},$JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$);$JSCompiler_temp_const$jscomp$1853_p__78491$$.call($out_arr__44057__auto__$jscomp$231$$,$JSCompiler_inline_result$jscomp$1855_index$jscomp$561$$);return $out_arr__44057__auto__$jscomp$231$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($stops$jscomp$20$$)),
$APP.$cljs$core$truth_$$($cljs$cst$5617$display_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($handler_state$$)))?function(){var $p$jscomp$252$$=$APP.$app$common$geom$point$add$$($from_p$jscomp$16$$,$APP.$app$common$geom$point$scale$$($APP.$app$common$geom$point$subtract$$($to_p$jscomp$14$$,$from_p$jscomp$16$$),$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($handler_state$$))));return(0,$APP.$rumext$v2$jsx$$)("circle",{filter:"url(#gradient-drop-shadow)",
cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p$jscomp$252$$),cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p$jscomp$252$$),r:4/$zoom$jscomp$98$$,fill:"var(--app-white)"})}():null]})};
$app$main$ui$workspace$viewport$gradients$gradient_handlers_impl_STAR_$$=function($props_78496_to_p$jscomp$15_transform$jscomp$111$$){var $zoom$jscomp$99$$=$props_78496_to_p$jscomp$15_transform$jscomp$111$$.zoom,$stops$jscomp$21$$=$props_78496_to_p$jscomp$15_transform$jscomp$111$$.stops,$editing$jscomp$5$$=$props_78496_to_p$jscomp$15_transform$jscomp$111$$.editing,$gradient$jscomp$28$$=$props_78496_to_p$jscomp$15_transform$jscomp$111$$.gradient,$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=
$props_78496_to_p$jscomp$15_transform$jscomp$111$$.shape;$props_78496_to_p$jscomp$15_transform$jscomp$111$$=$APP.$app$common$geom$shapes$transform_matrix$$.$cljs$core$IFn$_invoke$arity$1$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);var $transform_inverse$jscomp$25$$=$APP.$app$common$geom$shapes$inverse_transform_matrix$$.$cljs$core$IFn$_invoke$arity$1$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);
$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);
var $x$jscomp$1270$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$494$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$222$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$,
$APP.$cljs$cst$288$width$$),$height$jscomp$189$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$,$APP.$cljs$cst$1511$height$$),$from_p$jscomp$17$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$1270$$+$width$jscomp$222$$*$APP.$cljs$cst$1713$start_x$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$),$y$jscomp$494$$+
$height$jscomp$189$$*$APP.$cljs$cst$1714$start_y$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$)),$props_78496_to_p$jscomp$15_transform$jscomp$111$$);$props_78496_to_p$jscomp$15_transform$jscomp$111$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$1270$$+$width$jscomp$222$$*$APP.$cljs$cst$1715$end_x$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$),$y$jscomp$494$$+$height$jscomp$189$$*$APP.$cljs$cst$1716$end_y$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$)),
$props_78496_to_p$jscomp$15_transform$jscomp$111$$);$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=$APP.$app$common$geom$point$subtract$$($props_78496_to_p$jscomp$15_transform$jscomp$111$$,$from_p$jscomp$17$$);var $gradient_length$$=$APP.$app$common$geom$point$length$$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=
$APP.$app$common$geom$point$multiply$$($APP.$app$common$geom$point$multiply$$($app$common$geom$point$normal_right$$($gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$)*($gradient_length$$/($height$jscomp$189$$/2)))),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($width$jscomp$222$$/
2));$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$=$APP.$app$common$geom$point$add$$($from_p$jscomp$17$$,$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$);var $change_BANG_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($changes$jscomp$313$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$update_colorpicker_gradient$$($changes$jscomp$313$$))}),
$on_change_start$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($transform_inverse$jscomp$25$$),$APP.$rumext$v2$adapt$$($width$jscomp$222$$),$APP.$rumext$v2$adapt$$($height$jscomp$189$$)],function($G__78503_point$jscomp$85_start_x$jscomp$4$$){var $point__$1$jscomp$2_start_y$jscomp$4$$=$APP.$app$common$geom$point$transform$$($G__78503_point$jscomp$85_start_x$jscomp$4$$,$transform_inverse$jscomp$25$$);$G__78503_point$jscomp$85_start_x$jscomp$4$$=($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point__$1$jscomp$2_start_y$jscomp$4$$)-
$x$jscomp$1270$$)/$width$jscomp$222$$;$point__$1$jscomp$2_start_y$jscomp$4$$=($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point__$1$jscomp$2_start_y$jscomp$4$$)-$y$jscomp$494$$)/$height$jscomp$189$$;$G__78503_point$jscomp$85_start_x$jscomp$4$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1713$start_x$$,$G__78503_point$jscomp$85_start_x$jscomp$4$$,$APP.$cljs$cst$1714$start_y$$,$point__$1$jscomp$2_start_y$jscomp$4$$],null);return $change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78503_point$jscomp$85_start_x$jscomp$4$$):$change_BANG_$jscomp$1$$($G__78503_point$jscomp$85_start_x$jscomp$4$$)}),$on_change_finish$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($transform_inverse$jscomp$25$$),$APP.$rumext$v2$adapt$$($width$jscomp$222$$),$APP.$rumext$v2$adapt$$($height$jscomp$189$$)],function($G__78504_end_x$jscomp$4_point$jscomp$86$$){var $end_y$jscomp$4_point__$1$jscomp$3$$=
$APP.$app$common$geom$point$transform$$($G__78504_end_x$jscomp$4_point$jscomp$86$$,$transform_inverse$jscomp$25$$);$G__78504_end_x$jscomp$4_point$jscomp$86$$=($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end_y$jscomp$4_point__$1$jscomp$3$$)-$x$jscomp$1270$$)/$width$jscomp$222$$;$end_y$jscomp$4_point__$1$jscomp$3$$=($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end_y$jscomp$4_point__$1$jscomp$3$$)-$y$jscomp$494$$)/$height$jscomp$189$$;$G__78504_end_x$jscomp$4_point$jscomp$86$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1715$end_x$$,$G__78504_end_x$jscomp$4_point$jscomp$86$$,$APP.$cljs$cst$1716$end_y$$,$end_y$jscomp$4_point__$1$jscomp$3$$],null);return $change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78504_end_x$jscomp$4_point$jscomp$86$$):$change_BANG_$jscomp$1$$($G__78504_end_x$jscomp$4_point$jscomp$86$$)}),$on_change_width$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($gradient_length$$),
$APP.$rumext$v2$adapt$$($width$jscomp$222$$),$APP.$rumext$v2$adapt$$($height$jscomp$189$$)],function($G__78510_norm_dist_point$jscomp$87$$){var $scale_factor_y$$=$gradient_length$$/($height$jscomp$189$$/2);$G__78510_norm_dist_point$jscomp$87$$=$APP.$app$common$geom$point$distance$$($G__78510_norm_dist_point$jscomp$87$$,$from_p$jscomp$17$$)/($width$jscomp$222$$/2*$scale_factor_y$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($G__78510_norm_dist_point$jscomp$87$$)?$APP.$app$common$math$finite_QMARK_$$($G__78510_norm_dist_point$jscomp$87$$):
$G__78510_norm_dist_point$jscomp$87$$)?($G__78510_norm_dist_point$jscomp$87$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$288$width$$,$G__78510_norm_dist_point$jscomp$87$$],null),$change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$change_BANG_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78510_norm_dist_point$jscomp$87$$):$change_BANG_$jscomp$1$$($G__78510_norm_dist_point$jscomp$87$$)):null});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$gradient_handler_transformed$$,
{zoom:$zoom$jscomp$99$$,stops:$stops$jscomp$21$$,"on-change-width":$on_change_width$jscomp$1$$,"on-change-start":$on_change_start$jscomp$1$$,"on-change-finish":$on_change_finish$jscomp$1$$,"width-p":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1712$radial$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$28$$))?$gradient_vec$jscomp$1_map__78498_map__78498__$1_shape$jscomp$1039_width_p$jscomp$1_width_v$jscomp$1$$:null,editing:$editing$jscomp$5$$,
"from-p":$from_p$jscomp$17$$,"to-p":$props_78496_to_p$jscomp$15_transform$jscomp$111$$})};
$app$main$ui$workspace$viewport$grid_layout_editor$apply_to_point$$=function($result$jscomp$361$$,$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$){var $JSCompiler_temp_const$jscomp$1856$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$,$G__78497$jscomp$inline_8864$$=$APP.$cljs$core$last$$($result$jscomp$361$$);$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$=$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$?$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$.$cljs$core$IFn$_invoke$arity$1$($G__78497$jscomp$inline_8864$$):
$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$($G__78497$jscomp$inline_8864$$);return $JSCompiler_temp_const$jscomp$1856$$.call($APP.$cljs$core$conj$$,$result$jscomp$361$$,$JSCompiler_inline_result$jscomp$1858_next_fn$jscomp$5$$)};
$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$=function($G__78501__$1_p__78499_type$jscomp$676$$){var $map__78500__$1_value$jscomp$962$$=$APP.$cljs$core$__destructure_map$$($G__78501__$1_p__78499_type$jscomp$676$$);$G__78501__$1_p__78499_type$jscomp$676$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78500__$1_value$jscomp$962$$,$APP.$cljs$cst$139$type$$);$map__78500__$1_value$jscomp$962$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78500__$1_value$jscomp$962$$,
$APP.$cljs$cst$260$value$$);$G__78501__$1_p__78499_type$jscomp$676$$=$G__78501__$1_p__78499_type$jscomp$676$$ instanceof $APP.$cljs$core$Keyword$$?$G__78501__$1_p__78499_type$jscomp$676$$.$fqn$:null;switch($G__78501__$1_p__78499_type$jscomp$676$$){case "fixed":return""+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($map__78500__$1_value$jscomp$962$$)??"")+"PX";case "percent":return""+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($map__78500__$1_value$jscomp$962$$)??
"")+"%";case "flex":return""+($APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($map__78500__$1_value$jscomp$962$$)??"")+"FR";case "auto":return"AUTO";default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78501__$1_p__78499_type$jscomp$676$$)].join(""));}};
$app$main$ui$workspace$viewport$grid_layout_editor$grid_edition_actions$$=function($props_78502$$){var $shape$jscomp$1041$$=$props_78502$$.shape;return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_grid_layout_editor__grid-actions",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_grid_layout_editor__grid-actions-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_grid_layout_editor__grid-actions-title",
children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.title")," ",(0,$APP.$rumext$v2$jsx$$)("span",{css:$cljs$cst$5618$board_name$$,children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1041$$)})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$locate_board$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1041$$)))},
className:"main_ui_workspace_viewport_grid_layout_editor__locate-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.top-bar.locate")}),(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$workspace$edition$clear_edition_mode$$())},className:"main_ui_workspace_viewport_grid_layout_editor__done-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.top-bar.done")})]})})};
$app$main$ui$workspace$viewport$grid_layout_editor$grid_editor_frame$$=function($frame_points_origin$jscomp$67_props_78514$$){var $bounds$jscomp$88$$=$frame_points_origin$jscomp$67_props_78514$$.bounds,$width$jscomp$223$$=$frame_points_origin$jscomp$67_props_78514$$.width,$height$jscomp$190$$=$frame_points_origin$jscomp$67_props_78514$$.height,$zoom$jscomp$101$$=$frame_points_origin$jscomp$67_props_78514$$.zoom;$frame_points_origin$jscomp$67_props_78514$$=$APP.$app$common$geom$shapes$points$origin$$($bounds$jscomp$88$$);
$frame_points_origin$jscomp$67_props_78514$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$grid_layout_editor$apply_to_point$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_points_origin$jscomp$67_props_78514$$],null),new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[function($p1__78507_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78507_SHARP_$$,
$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$88$$,$width$jscomp$223$$+70/$zoom$jscomp$101$$))},function($p1__78508_SHARP_$$){return $APP.$app$common$geom$point$subtract$$($p1__78508_SHARP_$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$88$$,40/$zoom$jscomp$101$$))},function($p1__78509_SHARP_$$){return $APP.$app$common$geom$point$subtract$$($p1__78509_SHARP_$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$88$$,$width$jscomp$223$$+110/$zoom$jscomp$101$$))},
function($p1__78511_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78511_SHARP_$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$88$$,$height$jscomp$190$$+110/$zoom$jscomp$101$$))},function($p1__78512_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78512_SHARP_$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$88$$,40/$zoom$jscomp$101$$))}],null));return(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78513_SHARP_$$){return""+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78513_SHARP_$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78513_SHARP_$$)??"")},$frame_points_origin$jscomp$67_props_78514$$)),className:"main_ui_workspace_viewport_grid_layout_editor__grid-frame"})};
$app$main$ui$workspace$viewport$grid_layout_editor$plus_btn$$=function($props_78516_rect_x$jscomp$1$$){var $rect_y$jscomp$1_start_p$jscomp$15$$=$props_78516_rect_x$jscomp$1$$["start-p"],$zoom$jscomp$102$$=$props_78516_rect_x$jscomp$1$$.zoom,$on_click$jscomp$56$$=$props_78516_rect_x$jscomp$1$$["on-click"],$icon_y_vec__78517$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_78516_rect_x$jscomp$1$$.type,$APP.$cljs$cst$216$column$$)?new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)-40/$zoom$jscomp$102$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)+9/$zoom$jscomp$102$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)-31/$zoom$jscomp$102$$],null):new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)-40/$zoom$jscomp$102$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$),$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)-31/$zoom$jscomp$102$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($rect_y$jscomp$1_start_p$jscomp$15$$)+9/$zoom$jscomp$102$$],null);$props_78516_rect_x$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($icon_y_vec__78517$$,
0,null);$rect_y$jscomp$1_start_p$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($icon_y_vec__78517$$,1,null);var $icon_x$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($icon_y_vec__78517$$,2,null);$icon_y_vec__78517$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($icon_y_vec__78517$$,3,null);var $handle_click$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$56$$)],function(){return $APP.$cljs$core$truth_$$($on_click$jscomp$56$$)?
$on_click$jscomp$56$$.$cljs$core$IFn$_invoke$arity$0$?$on_click$jscomp$56$$.$cljs$core$IFn$_invoke$arity$0$():$on_click$jscomp$56$$():null});return(0,$APP.$rumext$v2$jsxs$$)("g",{onClick:$handle_click$jscomp$3$$,className:"main_ui_workspace_viewport_grid_layout_editor__grid-plus-button",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$props_78516_rect_x$jscomp$1$$+6/$zoom$jscomp$102$$,y:$rect_y$jscomp$1_start_p$jscomp$15$$+6/$zoom$jscomp$102$$,width:28/$zoom$jscomp$102$$,height:28/$zoom$jscomp$102$$,
rx:4/$zoom$jscomp$102$$,ry:4/$zoom$jscomp$102$$,className:"main_ui_workspace_viewport_grid_layout_editor__grid-plus-shape"}),(0,$APP.$rumext$v2$jsx$$)("use",{x:$icon_x$$,y:$icon_y_vec__78517$$,width:22/$zoom$jscomp$102$$,height:22/$zoom$jscomp$102$$,href:"#icon-add",className:"main_ui_workspace_viewport_grid_layout_editor__grid-plus-icon"})]})};
$app$main$ui$workspace$viewport$grid_layout_editor$use_drag$$=function($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$){$handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$=$APP.$cljs$core$__destructure_map$$($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$);var $on_drag_start$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$,$cljs$cst$5619$on_drag_start$$),$on_drag_end$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$,
$cljs$cst$5620$on_drag_end$$),$on_drag_delta$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$,$cljs$cst$5621$on_drag_delta$$),$on_drag_position$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$,$cljs$cst$5622$on_drag_position$$),$dragging_ref$jscomp$5$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$start_pos_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$current_pos_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null);
$handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_drag_start$jscomp$5$$)],function($event$jscomp$623$$){var $raw_pt$jscomp$7$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$623$$),$position$jscomp$208$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($raw_pt$jscomp$7$$);$APP.$app$util$dom$capture_pointer$$($event$jscomp$623$$);$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$5$$,
!0);$APP.$rumext$v2$set_ref_val_BANG_$$($start_pos_ref$$,$raw_pt$jscomp$7$$);$APP.$rumext$v2$set_ref_val_BANG_$$($current_pos_ref$$,$raw_pt$jscomp$7$$);return $APP.$cljs$core$truth_$$($on_drag_start$jscomp$5$$)?$on_drag_start$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$?$on_drag_start$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$623$$,$position$jscomp$208$$):$on_drag_start$jscomp$5$$($event$jscomp$623$$,$position$jscomp$208$$):null});var $handle_lost_pointer_capture$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_drag_end$jscomp$1$$)],
function($event$jscomp$624$$){var $position$jscomp$209$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($APP.$rumext$v2$ref_val$$($current_pos_ref$$)),$delta$jscomp$66$$=$APP.$app$common$geom$point$to_vec$$($APP.$rumext$v2$ref_val$$($start_pos_ref$$),$APP.$app$util$dom$get_client_position$$($event$jscomp$624$$));$APP.$app$util$dom$release_pointer$$($event$jscomp$624$$);$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$5$$,!1);$APP.$rumext$v2$set_ref_val_BANG_$$($start_pos_ref$$,
null);return $APP.$cljs$core$truth_$$($on_drag_end$jscomp$1$$)?$on_drag_end$jscomp$1$$.$cljs$core$IFn$_invoke$arity$3$?$on_drag_end$jscomp$1$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$624$$,$position$jscomp$209$$,$delta$jscomp$66$$):$on_drag_end$jscomp$1$$($event$jscomp$624$$,$position$jscomp$209$$,$delta$jscomp$66$$):null}),$handle_pointer_move$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_drag_delta$$),$APP.$rumext$v2$adapt$$($on_drag_position$$)],
function($event$jscomp$625$$){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dragging_ref$jscomp$5$$))){var $G__78523_78659_start$jscomp$250$$=$APP.$rumext$v2$ref_val$$($start_pos_ref$$),$pos$jscomp$156$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$625$$),$pt$jscomp$35$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($pos$jscomp$156$$);$APP.$rumext$v2$set_ref_val_BANG_$$($current_pos_ref$$,$pos$jscomp$156$$);$APP.$cljs$core$truth_$$($on_drag_delta$$)&&($G__78523_78659_start$jscomp$250$$=
$APP.$app$common$geom$point$subtract$$($pos$jscomp$156$$,$G__78523_78659_start$jscomp$250$$),$on_drag_delta$$.$cljs$core$IFn$_invoke$arity$2$?$on_drag_delta$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$625$$,$G__78523_78659_start$jscomp$250$$):$on_drag_delta$$($event$jscomp$625$$,$G__78523_78659_start$jscomp$250$$));return $APP.$cljs$core$truth_$$($on_drag_position$$)?$on_drag_position$$.$cljs$core$IFn$_invoke$arity$2$?$on_drag_position$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$625$$,$pt$jscomp$35$$):
$on_drag_position$$($event$jscomp$625$$,$pt$jscomp$35$$):null}return null});return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5623$handle_pointer_down$$,$handle_pointer_down$jscomp$1_map__78521__$1_p__78520$$,$cljs$cst$5624$handle_lost_pointer_capture$$,$handle_lost_pointer_capture$$,$cljs$cst$5625$handle_pointer_move$$,$handle_pointer_move$$],null)};
$app$main$ui$workspace$viewport$grid_layout_editor$resize_cell_handler$$=function($handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$){var $shape$jscomp$1042$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.shape,$x$jscomp$1271$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.x,$y$jscomp$495$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.y,$width$jscomp$224$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.width,
$height$jscomp$191$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.height,$handler$jscomp$44$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.handler,$on_set_modifiers$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$["on-set-modifiers"],$on_clear_modifiers$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$["on-clear-modifiers"],$objects$jscomp$788$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page_objects$$),
$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$=$APP.$cljs$core$__destructure_map$$($handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.cell);$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,$APP.$cljs$cst$266$id$$);$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$=
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1042$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1680$layout_grid_cells$$,$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$],null));$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$=$APP.$cljs$core$__destructure_map$$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$);
var $row$jscomp$35$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,$APP.$cljs$cst$1640$row$$),$column$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,$APP.$cljs$cst$216$column$$),$row_span$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,
$APP.$cljs$cst$1641$row_span$$),$column_span$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,$APP.$cljs$cst$1642$column_span$$);$cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$.direction;var $layout_data$jscomp$19$$=$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$["layout-data"],
$calculate_drag_modifiers$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1042$$),$APP.$rumext$v2$adapt$$($row$jscomp$35$$),$APP.$rumext$v2$adapt$$($column$jscomp$45$$),$APP.$rumext$v2$adapt$$($row_span$jscomp$13$$),$APP.$rumext$v2$adapt$$($column_span$jscomp$13$$)],function($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$){$new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$=$APP.$app$common$geom$shapes$grid_layout$positions$get_position_grid_coord$$($layout_data$jscomp$19$$,
$new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$);var $drag_row$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$,0,null),$drag_column$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$,1,null),$new_column_span$jscomp$1_vec__78533$$=function(){var $G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$=$handler$jscomp$44$$ instanceof
$APP.$cljs$core$Keyword$$?$handler$jscomp$44$$.$fqn$:null;switch($G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$){case "top":$G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$=function(){var $x__5113__auto__$jscomp$90$$=$row$jscomp$35$$+($row_span$jscomp$13$$-1);return $x__5113__auto__$jscomp$90$$<$drag_row$$?$x__5113__auto__$jscomp$90$$:$drag_row$$}();var $new_column_span$jscomp$2_new_row_span$jscomp$3$$=$row$jscomp$35$$-$G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$+$row_span$jscomp$13$$;
return new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$,$column$jscomp$45$$,$new_column_span$jscomp$2_new_row_span$jscomp$3$$,$column_span$jscomp$13$$],null);case "left":return $G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$=function(){var $x__5113__auto__$jscomp$91$$=$column$jscomp$45$$+($column_span$jscomp$13$$-1);return $x__5113__auto__$jscomp$91$$<$drag_column$$?$x__5113__auto__$jscomp$91$$:
$drag_column$$}(),$new_column_span$jscomp$2_new_row_span$jscomp$3$$=$column$jscomp$45$$-$G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$+$column_span$jscomp$13$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$row$jscomp$35$$,$G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$,$row_span$jscomp$13$$,$new_column_span$jscomp$2_new_row_span$jscomp$3$$],null);case "bottom":return $new_column_span$jscomp$2_new_row_span$jscomp$3$$=function(){var $y__5111__auto__$jscomp$155$$=
$drag_row$$-$row$jscomp$35$$+1;return 1>$y__5111__auto__$jscomp$155$$?1:$y__5111__auto__$jscomp$155$$}(),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$row$jscomp$35$$,$column$jscomp$45$$,$new_column_span$jscomp$2_new_row_span$jscomp$3$$,$column_span$jscomp$13$$],null);case "right":return $new_column_span$jscomp$2_new_row_span$jscomp$3$$=function(){var $y__5111__auto__$jscomp$156$$=$drag_column$$-$column$jscomp$45$$+1;return 1>$y__5111__auto__$jscomp$156$$?
1:$y__5111__auto__$jscomp$156$$}(),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$row$jscomp$35$$,$column$jscomp$45$$,$row_span$jscomp$13$$,$new_column_span$jscomp$2_new_row_span$jscomp$3$$],null);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78536__$1_new_column$jscomp$2_new_row$jscomp$2$$)].join(""));}}();$new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_column_span$jscomp$1_vec__78533$$,
0,null);var $new_column$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_column_span$jscomp$1_vec__78533$$,1,null),$new_row_span$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_column_span$jscomp$1_vec__78533$$,2,null);$new_column_span$jscomp$1_vec__78533$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($new_column_span$jscomp$1_vec__78533$$,3,null);$new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$=$APP.$app$common$types$shape$layout$assign_cells$$($APP.$app$common$types$shape$layout$resize_cell_area$$($shape$jscomp$1042$$,
$row$jscomp$35$$,$column$jscomp$45$$,$new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$,$new_column$jscomp$1$$,$new_row_span$jscomp$2$$,$new_column_span$jscomp$1_vec__78533$$),$objects$jscomp$788$$);return $APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),$APP.$cljs$cst$1678$layout_grid_rows$$,$APP.$cljs$cst$1678$layout_grid_rows$$.$cljs$core$IFn$_invoke$arity$1$($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$)),
$APP.$cljs$cst$1679$layout_grid_columns$$,$APP.$cljs$cst$1679$layout_grid_columns$$.$cljs$core$IFn$_invoke$arity$1$($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$)),$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$cst$1680$layout_grid_cells$$.$cljs$core$IFn$_invoke$arity$1$($new_row$jscomp$1_position$jscomp$210_shape__$1$jscomp$116_vec__78530$$))});$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calculate_drag_modifiers$$),
$APP.$rumext$v2$adapt$$($on_set_modifiers$$)],function($_$jscomp$2943_modifiers$jscomp$125$$,$modif_tree$jscomp$63_position$jscomp$211$$){$_$jscomp$2943_modifiers$jscomp$125$$=$calculate_drag_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?$calculate_drag_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($modif_tree$jscomp$63_position$jscomp$211$$):$calculate_drag_modifiers$$($modif_tree$jscomp$63_position$jscomp$211$$);$modif_tree$jscomp$63_position$jscomp$211$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1042$$)],null),$_$jscomp$2943_modifiers$jscomp$125$$);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.$cljs$core$truth_$$($on_set_modifiers$$)&&($on_set_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?$on_set_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2943_modifiers$jscomp$125$$):
$on_set_modifiers$$($_$jscomp$2943_modifiers$jscomp$125$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modif_tree$jscomp$63_position$jscomp$211$$))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modif_tree$jscomp$63_position$jscomp$211$$,!1,!1,null))});var $handle_drag_end_handle_lost_pointer_capture$jscomp$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calculate_drag_modifiers$$),$APP.$rumext$v2$adapt$$($on_clear_modifiers$$)],function($_$jscomp$2944_modifiers$jscomp$126$$,$modif_tree$jscomp$64_position$jscomp$212$$){return $APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?($_$jscomp$2944_modifiers$jscomp$126$$=$calculate_drag_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?
$calculate_drag_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($modif_tree$jscomp$64_position$jscomp$212$$):$calculate_drag_modifiers$$($modif_tree$jscomp$64_position$jscomp$212$$),$modif_tree$jscomp$64_position$jscomp$212$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1042$$)],null),$_$jscomp$2944_modifiers$jscomp$126$$),
$APP.$cljs$core$truth_$$($on_clear_modifiers$$)&&($on_clear_modifiers$$.$cljs$core$IFn$_invoke$arity$1$?$on_clear_modifiers$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2944_modifiers$jscomp$126$$):$on_clear_modifiers$$($_$jscomp$2944_modifiers$jscomp$126$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($modif_tree$jscomp$64_position$jscomp$212$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$transforms$finish_transform$$()]))):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null))});$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$=$app$main$ui$workspace$viewport$grid_layout_editor$use_drag$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5622$on_drag_position$$,$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$,$cljs$cst$5620$on_drag_end$$,$handle_drag_end_handle_lost_pointer_capture$jscomp$1$$],
null));var $handle_pointer_move$jscomp$1_map__78528__$1$$=$APP.$cljs$core$__destructure_map$$($handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$);$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$1_map__78528__$1$$,$cljs$cst$5623$handle_pointer_down$$);$handle_drag_end_handle_lost_pointer_capture$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$1_map__78528__$1$$,
$cljs$cst$5624$handle_lost_pointer_capture$$);$handle_pointer_move$jscomp$1_map__78528__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$1_map__78528__$1$$,$cljs$cst$5625$handle_pointer_move$$);return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$width$jscomp$224$$,height:$height$jscomp$191$$,className:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cell_id$jscomp$14_direction$jscomp$32_map__78526__$1_map__78527_map__78527__$1$$,$APP.$cljs$cst$1640$row$$)?$app$main$ui$css_cursors$get_dynamic$$("scale-ns",
$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1042$$)):$app$main$ui$css_cursors$get_dynamic$$("scale-ew",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1042$$)),x:$x$jscomp$1271$$,style:{fill:"transparent",strokeWidth:0},onLostPointerCapture:$handle_drag_end_handle_lost_pointer_capture$jscomp$1$$,y:$y$jscomp$495$$,onPointerMove:$handle_pointer_move$jscomp$1_map__78528__$1$$,onPointerDown:$handle_drag_position_handle_pointer_down$jscomp$2_map__78528_props_78525$$})};
$app$main$ui$workspace$viewport$grid_layout_editor$grid_cell_area_label$$=function($props_78537_text$jscomp$139$$){var $area_y$jscomp$1_cell_origin$jscomp$2$$=$props_78537_text$jscomp$139$$.origin,$area_x$jscomp$1_cell_width$jscomp$2$$=$props_78537_text$jscomp$139$$.width,$zoom$jscomp$103$$=$props_78537_text$jscomp$139$$.zoom;$props_78537_text$jscomp$139$$=$props_78537_text$jscomp$139$$.text;var $area_width$jscomp$1$$=10*$APP.$cljs$core$count$$($props_78537_text$jscomp$139$$)/$zoom$jscomp$103$$,$area_height$jscomp$1$$=
25/$zoom$jscomp$103$$;$area_x$jscomp$1_cell_width$jscomp$2$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($area_y$jscomp$1_cell_origin$jscomp$2$$)+$area_x$jscomp$1_cell_width$jscomp$2$$-$area_width$jscomp$1$$;$area_y$jscomp$1_cell_origin$jscomp$2$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($area_y$jscomp$1_cell_origin$jscomp$2$$);var $area_text_x$jscomp$1$$=$area_x$jscomp$1_cell_width$jscomp$2$$+$area_width$jscomp$1$$/2,$area_text_y$jscomp$1$$=$area_y$jscomp$1_cell_origin$jscomp$2$$+
$area_height$jscomp$1$$/2;return(0,$APP.$rumext$v2$jsxs$$)("g",{pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$area_x$jscomp$1_cell_width$jscomp$2$$,y:$area_y$jscomp$1_cell_origin$jscomp$2$$,width:$area_width$jscomp$1$$,height:$area_height$jscomp$1$$,style:{fill:"var(--grid-editor-area-background)",fillOpacity:.3}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$area_text_x$jscomp$1$$,y:$area_text_y$jscomp$1$$,style:{fill:"var(--grid-editor-area-text)",fontFamily:"worksans",fontWeight:600,
fontSize:14/$zoom$jscomp$103$$,alignmentBaseline:"central",textAnchor:"middle"},children:$props_78537_text$jscomp$139$$})]})};
$app$main$ui$workspace$viewport$grid_layout_editor$use_resize_track$$=function($type$jscomp$678$$,$shape$jscomp$1044$$,$index$jscomp$562$$,$track_before$$,$track_after$$,$zoom$jscomp$105$$,$snap_pixel_QMARK_$jscomp$8$$,$on_set_modifiers$jscomp$2$$,$on_clear_modifiers$jscomp$2$$){var $start_size_before$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$start_size_after$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$handle_drag_start$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1044$$),
$APP.$rumext$v2$adapt$$($track_before$$),$APP.$rumext$v2$adapt$$($track_after$$)],function(){$APP.$cljs$core$reset_BANG_$$($start_size_before$$,$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_before$$));$APP.$cljs$core$reset_BANG_$$($start_size_after$$,$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_after$$));var $modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$type$jscomp$678$$)?
$APP.$cljs$cst$1679$layout_grid_columns$$:$APP.$cljs$cst$1678$layout_grid_rows$$;var $G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$=$track_before$$!=null?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$1044$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$,$index$jscomp$562$$-1],null),$APP.$cljs$core$merge$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1655$fixed$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_before$$)],null)):$shape$jscomp$1044$$;$G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$=$track_after$$!=null?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$,
$index$jscomp$562$$],null),$APP.$cljs$core$merge$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1655$fixed$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_after$$)],null)):$G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$;$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$=$APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$,$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$));$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($G__78545$jscomp$inline_13058_shape__$1$jscomp$117$$)],
null),$modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$);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$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modif_tree$jscomp$65_modifiers$jscomp$127_tracks_prop$jscomp$1$$,
!1,!1,null))}),$calculate_modifiers$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1044$$),$APP.$rumext$v2$adapt$$($track_before$$),$APP.$rumext$v2$adapt$$($track_after$$)],function($position$jscomp$214_shape__$1$jscomp$118$$){var $axis$jscomp$42_vec__78547$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$type$jscomp$678$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1679$layout_grid_columns$$,$APP.$cljs$cst$1499$x$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1678$layout_grid_rows$$,$APP.$cljs$cst$1500$y$$],null),$tracks_prop$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($axis$jscomp$42_vec__78547$$,0,null);$axis$jscomp$42_vec__78547$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($axis$jscomp$42_vec__78547$$,1,null);var $precision$jscomp$27$$=
$APP.$cljs$core$truth_$$($snap_pixel_QMARK_$jscomp$8$$)?$APP.$app$common$math$round$$:$APP.$cljs$core$identity$$,$delta$jscomp$67$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$214_shape__$1$jscomp$118$$,$axis$jscomp$42_vec__78547$$)/$zoom$jscomp$105$$,$new_size_before$$=function(){var $G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$=$APP.$cljs$core$_deref$$($start_size_before$$)+$delta$jscomp$67$$;$G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$=$precision$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$?
$precision$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$($G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$):$precision$jscomp$27$$($G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$);return 0>$G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$?0:$G__78550$jscomp$inline_8866_y__5111__auto__$jscomp$157$$}(),$new_size_after$$=function(){var $G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$=$APP.$cljs$core$_deref$$($start_size_after$$)-$delta$jscomp$67$$;$G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$=
$precision$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$?$precision$jscomp$27$$.$cljs$core$IFn$_invoke$arity$1$($G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$):$precision$jscomp$27$$($G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$);return 0>$G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$?0:$G__78551$jscomp$inline_8868_y__5111__auto__$jscomp$158$$}();$position$jscomp$214_shape__$1$jscomp$118$$=function(){var $G__78552$$=$track_before$$!=null?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$1044$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$tracks_prop$jscomp$2$$,$index$jscomp$562$$-1],null),$APP.$cljs$core$merge$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1655$fixed$$,$APP.$cljs$cst$260$value$$,$new_size_before$$],null)):$shape$jscomp$1044$$;return $track_after$$!=null?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__78552$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$tracks_prop$jscomp$2$$,$index$jscomp$562$$],null),$APP.$cljs$core$merge$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1655$fixed$$,$APP.$cljs$cst$260$value$$,$new_size_after$$],null)):$G__78552$$}();return $APP.$app$common$types$modifiers$change_property$$($APP.$app$common$types$modifiers$empty$$(),$tracks_prop$jscomp$2$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$214_shape__$1$jscomp$118$$,$tracks_prop$jscomp$2$$))}),$handle_drag_position$jscomp$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calculate_modifiers$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_set_modifiers$jscomp$2$$)],function($_$jscomp$2945_modifiers$jscomp$128$$,$modif_tree$jscomp$66_position$jscomp$215$$){$_$jscomp$2945_modifiers$jscomp$128$$=$calculate_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$calculate_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($modif_tree$jscomp$66_position$jscomp$215$$):$calculate_modifiers$jscomp$1$$($modif_tree$jscomp$66_position$jscomp$215$$);
$modif_tree$jscomp$66_position$jscomp$215$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1044$$)],null),$_$jscomp$2945_modifiers$jscomp$128$$);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.$cljs$core$truth_$$($on_set_modifiers$jscomp$2$$)&&
($on_set_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_set_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2945_modifiers$jscomp$128$$):$on_set_modifiers$jscomp$2$$($_$jscomp$2945_modifiers$jscomp$128$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$modifiers$set_wasm_modifiers$$($modif_tree$jscomp$66_position$jscomp$215$$))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($modif_tree$jscomp$66_position$jscomp$215$$,
!1,!1,null))}),$handle_drag_end$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($calculate_modifiers$jscomp$1$$),$APP.$rumext$v2$adapt$$($on_clear_modifiers$jscomp$2$$)],function($_$jscomp$2946_modif_tree_78671_modifiers_78670$$,$___$1$jscomp$1994$$,$position$jscomp$216$$){$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1"))?($_$jscomp$2946_modif_tree_78671_modifiers_78670$$=
$calculate_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$calculate_modifiers$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($position$jscomp$216$$):$calculate_modifiers$jscomp$1$$($position$jscomp$216$$),$_$jscomp$2946_modif_tree_78671_modifiers_78670$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1044$$)],null),$_$jscomp$2946_modif_tree_78671_modifiers_78670$$),
$APP.$cljs$core$truth_$$($on_clear_modifiers$jscomp$2$$)&&($on_clear_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$?$on_clear_modifiers$jscomp$2$$.$cljs$core$IFn$_invoke$arity$0$():$on_clear_modifiers$jscomp$2$$()),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$$($_$jscomp$2946_modif_tree_78671_modifiers_78670$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$transforms$finish_transform$$()]))):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null));$APP.$cljs$core$reset_BANG_$$($start_size_before$$,null);return $APP.$cljs$core$reset_BANG_$$($start_size_after$$,null)});return $app$main$ui$workspace$viewport$grid_layout_editor$use_drag$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5619$on_drag_start$$,$handle_drag_start$$,$cljs$cst$5621$on_drag_delta$$,$handle_drag_position$jscomp$1$$,
$cljs$cst$5620$on_drag_end$$,$handle_drag_end$jscomp$1$$],null))};
$app$main$ui$workspace$viewport$grid_layout_editor$resize_track_handler$$=function($props_78556_vec__78558$$){var $shape$jscomp$1045$$=$props_78556_vec__78558$$.shape,$index$jscomp$563$$=$props_78556_vec__78558$$.index,$last_QMARK_$jscomp$4$$=$props_78556_vec__78558$$["last?"],$drop_QMARK_$jscomp$1$$=$props_78556_vec__78558$$["drop?"],$handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$=$props_78556_vec__78558$$["track-before"],$handle_lost_pointer_capture$jscomp$2_track_after$jscomp$1$$=
$props_78556_vec__78558$$["track-after"],$handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$=$props_78556_vec__78558$$["snap-pixel?"],$on_set_modifiers$jscomp$3$$=$props_78556_vec__78558$$["on-set-modifiers"],$on_clear_modifiers$jscomp$3$$=$props_78556_vec__78558$$["on-clear-modifiers"],$map__78557__$1_row_total_gap$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($props_78556_vec__78558$$["layout-data"]),$column_total_size$jscomp$1_start_p_resize_vec__78562$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78557__$1_row_total_gap$jscomp$1$$,
$APP.$cljs$cst$2941$column_total_size$$),$column_total_gap$jscomp$1_start_p_drop$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78557__$1_row_total_gap$jscomp$1$$,$APP.$cljs$cst$2942$column_total_gap$$),$row_total_size$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78557__$1_row_total_gap$jscomp$1$$,$APP.$cljs$cst$2946$row_total_size$$);$map__78557__$1_row_total_gap$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78557__$1_row_total_gap$jscomp$1$$,
$APP.$cljs$cst$2944$row_total_gap$$);var $start_p$jscomp$16$$=$props_78556_vec__78558$$["start-p"],$type$jscomp$679$$=$props_78556_vec__78558$$.type,$zoom$jscomp$106$$=$props_78556_vec__78558$$.zoom,$bounds$jscomp$89$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1045$$);$props_78556_vec__78558$$=$APP.$app$common$types$shape$layout$gaps$$($shape$jscomp$1045$$);var $layout_gap_row$jscomp$14$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($props_78556_vec__78558$$,
0,null),$layout_gap_col$jscomp$14$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($props_78556_vec__78558$$,1,null);$handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$=$app$main$ui$workspace$viewport$grid_layout_editor$use_resize_track$$($type$jscomp$679$$,$shape$jscomp$1045$$,$index$jscomp$563$$,$handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$,$handle_lost_pointer_capture$jscomp$2_track_after$jscomp$1$$,$zoom$jscomp$106$$,$handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$,
$on_set_modifiers$jscomp$3$$,$on_clear_modifiers$jscomp$3$$);$handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$=$APP.$cljs$core$__destructure_map$$($handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$);$handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$,$cljs$cst$5623$handle_pointer_down$$);$handle_lost_pointer_capture$jscomp$2_track_after$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$,$cljs$cst$5624$handle_lost_pointer_capture$$);$handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$,$cljs$cst$5625$handle_pointer_move$$);$column_total_size$jscomp$1_start_p_resize_vec__78562$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,
$APP.$cljs$cst$216$column$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[function(){var $x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$=$layout_gap_col$jscomp$14$$-10/$zoom$jscomp$106$$;$x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$=0>$x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$?0:$x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$;var $y__5111__auto__$jscomp$159$$=8/$zoom$jscomp$106$$;
return $x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$>$y__5111__auto__$jscomp$159$$?$x__5110__auto__$jscomp$159_y__5111__auto__$jscomp$inline_8870$$:$y__5111__auto__$jscomp$159$$}(),$row_total_size$jscomp$1$$+$map__78557__$1_row_total_gap$jscomp$1$$],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$column_total_size$jscomp$1_start_p_resize_vec__78562$$+$column_total_gap$jscomp$1_start_p_drop$$,function(){var $x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$=
$layout_gap_row$jscomp$14$$-10/$zoom$jscomp$106$$;$x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$=0>$x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$?0:$x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$;var $y__5111__auto__$jscomp$161$$=8/$zoom$jscomp$106$$;return $x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$>$y__5111__auto__$jscomp$161$$?$x__5110__auto__$jscomp$161_y__5111__auto__$jscomp$inline_8872$$:$y__5111__auto__$jscomp$161$$}()],
null);var $width$jscomp$226$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column_total_size$jscomp$1_start_p_resize_vec__78562$$,0,null),$height$jscomp$193$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($column_total_size$jscomp$1_start_p_resize_vec__78562$$,1,null);$column_total_size$jscomp$1_start_p_resize_vec__78562$$=function(){var $G__78565__$1_G__78565__$2_G__78565__$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$216$column$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)?$APP.$app$common$geom$point$subtract$$($start_p$jscomp$16$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$width$jscomp$226$$/2)):$start_p$jscomp$16$$;$G__78565__$1_G__78565__$2_G__78565__$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)?$APP.$app$common$geom$point$subtract$$($G__78565__$1_G__78565__$2_G__78565__$3$$,
$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$height$jscomp$193$$/2)):$G__78565__$1_G__78565__$2_G__78565__$3$$;$G__78565__$1_G__78565__$2_G__78565__$3$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$216$column$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)&&$APP.$cljs$core$not$$($last_QMARK_$jscomp$4$$)?$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($G__78565__$1_G__78565__$2_G__78565__$3$$,
$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$layout_gap_col$jscomp$14$$/2)),$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$width$jscomp$226$$/2)):$G__78565__$1_G__78565__$2_G__78565__$3$$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)&&$APP.$cljs$core$not$$($last_QMARK_$jscomp$4$$)?$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($G__78565__$1_G__78565__$2_G__78565__$3$$,
$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$layout_gap_row$jscomp$14$$/2)),$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$height$jscomp$193$$/2)):$G__78565__$1_G__78565__$2_G__78565__$3$$}();$column_total_gap$jscomp$1_start_p_drop$$=function(){var $G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$216$column$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,
0)?$APP.$app$common$geom$point$subtract$$($start_p$jscomp$16$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$width$jscomp$226$$/2)):$start_p$jscomp$16$$;$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)?$APP.$app$common$geom$point$subtract$$($G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$,
$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$height$jscomp$193$$/2)):$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$;$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$875$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$216$column$$);return $and__5023__auto__$jscomp$875$$?$last_QMARK_$jscomp$4$$:$and__5023__auto__$jscomp$875$$}())?
$APP.$app$common$geom$point$add$$($G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$width$jscomp$226$$/2)):$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$;$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$876$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$);
return $and__5023__auto__$jscomp$876$$?$last_QMARK_$jscomp$4$$:$and__5023__auto__$jscomp$876$$}())?$APP.$app$common$geom$point$add$$($G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$height$jscomp$193$$/2)):$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$;$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,
$APP.$cljs$cst$216$column$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)&&$APP.$cljs$core$not$$($last_QMARK_$jscomp$4$$)?$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,$layout_gap_col$jscomp$14$$/2)),$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$89$$,5/$zoom$jscomp$106$$)):$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$;
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$563$$,0)&&$APP.$cljs$core$not$$($last_QMARK_$jscomp$4$$)?$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$point$subtract$$($G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,$layout_gap_row$jscomp$14$$/2)),$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$89$$,
5/$zoom$jscomp$106$$)):$G__78566__$1_G__78566__$2_G__78566__$3_G__78566__$4_G__78566__$5$$}();return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($drop_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("rect",{className:"drop",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($column_total_gap$jscomp$1_start_p_drop$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($column_total_gap$jscomp$1_start_p_drop$$),width:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,
$APP.$cljs$cst$216$column$$)?10/$zoom$jscomp$106$$:$width$jscomp$226$$,height:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$1640$row$$)?10/$zoom$jscomp$106$$:$height$jscomp$193$$,fill:"var(--grid-editor-area-background)"}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{width:$width$jscomp$226$$,height:$height$jscomp$193$$,className:"resize-track-handler "+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$679$$,$APP.$cljs$cst$216$column$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",
$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1045$$)):$app$main$ui$css_cursors$get_dynamic$$("resize-ns",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1045$$)))??""),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($column_total_size$jscomp$1_start_p_resize_vec__78562$$),transform:""+($APP.$app$common$geom$matrix$transform_in$$($start_p$jscomp$16$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1045$$))??
""),style:{fill:"transparent",strokeWidth:0},onLostPointerCapture:$handle_lost_pointer_capture$jscomp$2_track_after$jscomp$1$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($column_total_size$jscomp$1_start_p_resize_vec__78562$$),onPointerMove:$handle_pointer_move$jscomp$2_map__78561__$1_snap_pixel_QMARK_$jscomp$9$$,onPointerDown:$handle_pointer_down$jscomp$4_map__78561_track_before$jscomp$1$$})]})};
$app$main$ui$workspace$viewport$grid_layout_editor$marker_shape_d$$=function($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$,$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$){var $marker_width$$=24/$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$,$marker_h1$$=20/$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$,$marker_h2$$=10/$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$;$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$=2/$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$;var $marker_half_width$$=$marker_width$$/
2;$a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$=$APP.$app$common$geom$point$subtract$$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($marker_half_width$$,($marker_h1$$+$marker_h2$$)/2));var $e$jscomp$378_vec__78571$$=$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$grid_layout_editor$apply_to_point$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$],null),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[function($p1__78567_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78567_SHARP_$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($marker_width$$,0))},function($p1__78568_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78568_SHARP_$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,$marker_h1$$))},
function($p1__78569_SHARP_$$){return $APP.$app$common$geom$point$add$$($p1__78569_SHARP_$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(-$marker_half_width$$,$marker_h2$$))},function($p1__78570_SHARP_$$){return $APP.$app$common$geom$point$subtract$$($p1__78570_SHARP_$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($marker_half_width$$,$marker_h2$$))}],null));$a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$378_vec__78571$$,
0,null);var $b$jscomp$366$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$378_vec__78571$$,1,null),$c$jscomp$309$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$378_vec__78571$$,2,null),$d$jscomp$242$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$378_vec__78571$$,3,null);$e$jscomp$378_vec__78571$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($e$jscomp$378_vec__78571$$,4,null);var $vea$$=$APP.$app$common$geom$point$subtract$$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$,
$e$jscomp$378_vec__78571$$),$b1$jscomp$4_vab$$=$APP.$app$common$geom$point$subtract$$($b$jscomp$366$$,$a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$),$c1$jscomp$38_vbc$jscomp$1$$=$APP.$app$common$geom$point$subtract$$($c$jscomp$309$$,$b$jscomp$366$$),$d1$jscomp$1_vcd$$=$APP.$app$common$geom$point$subtract$$($d$jscomp$242$$,$c$jscomp$309$$),$e1$jscomp$10_vde$$=$APP.$app$common$geom$point$subtract$$($e$jscomp$378_vec__78571$$,$d$jscomp$242$$),$a1$jscomp$8_lea$$=$APP.$app$common$geom$point$length$$($vea$$),
$b2$jscomp$2_lab$$=$APP.$app$common$geom$point$length$$($b1$jscomp$4_vab$$),$c2$jscomp$27_lbc$$=$APP.$app$common$geom$point$length$$($c1$jscomp$38_vbc$jscomp$1$$),$d2$jscomp$1_lcd$$=$APP.$app$common$geom$point$length$$($d1$jscomp$1_vcd$$),$lde$$=$APP.$app$common$geom$point$length$$($e1$jscomp$10_vde$$);$a1$jscomp$8_lea$$=$APP.$app$common$geom$point$add$$($e$jscomp$378_vec__78571$$,$app$common$geom$point$resize$$($vea$$,$a1$jscomp$8_lea$$-$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));var $a2$jscomp$4$$=
$APP.$app$common$geom$point$add$$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$,$app$common$geom$point$resize$$($b1$jscomp$4_vab$$,$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$b1$jscomp$4_vab$$=$APP.$app$common$geom$point$add$$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$,$app$common$geom$point$resize$$($b1$jscomp$4_vab$$,$b2$jscomp$2_lab$$-$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$b2$jscomp$2_lab$$=$APP.$app$common$geom$point$add$$($b$jscomp$366$$,$app$common$geom$point$resize$$($c1$jscomp$38_vbc$jscomp$1$$,
$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$c1$jscomp$38_vbc$jscomp$1$$=$APP.$app$common$geom$point$add$$($b$jscomp$366$$,$app$common$geom$point$resize$$($c1$jscomp$38_vbc$jscomp$1$$,$c2$jscomp$27_lbc$$-$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$c2$jscomp$27_lbc$$=$APP.$app$common$geom$point$add$$($c$jscomp$309$$,$app$common$geom$point$resize$$($d1$jscomp$1_vcd$$,$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$d1$jscomp$1_vcd$$=$APP.$app$common$geom$point$add$$($c$jscomp$309$$,$app$common$geom$point$resize$$($d1$jscomp$1_vcd$$,
$d2$jscomp$1_lcd$$-$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$d2$jscomp$1_lcd$$=$APP.$app$common$geom$point$add$$($d$jscomp$242$$,$app$common$geom$point$resize$$($e1$jscomp$10_vde$$,$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$e1$jscomp$10_vde$$=$APP.$app$common$geom$point$add$$($d$jscomp$242$$,$app$common$geom$point$resize$$($e1$jscomp$10_vde$$,$lde$$-$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$=$APP.$app$common$geom$point$add$$($e$jscomp$378_vec__78571$$,
$app$common$geom$point$resize$$($vea$$,$e2$jscomp$5_marker_bradius_zoom$jscomp$107$$));return"M"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$8_lea$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$8_lea$$)??"")+("Q"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($a$jscomp$426_center$jscomp$55_start_p$jscomp$17$$)??"")+
","+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$4$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($a2$jscomp$4$$)??""))+("L"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($b1$jscomp$4_vab$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($b1$jscomp$4_vab$$)??""))+("Q"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($b$jscomp$366$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($b$jscomp$366$$)??
"")+","+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($b2$jscomp$2_lab$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($b2$jscomp$2_lab$$)??""))+("L"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($c1$jscomp$38_vbc$jscomp$1$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($c1$jscomp$38_vbc$jscomp$1$$)??""))+("Q"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($c$jscomp$309$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($c$jscomp$309$$)??
"")+","+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($c2$jscomp$27_lbc$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($c2$jscomp$27_lbc$$)??""))+("L"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($d1$jscomp$1_vcd$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($d1$jscomp$1_vcd$$)??""))+("Q"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($d$jscomp$242$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($d$jscomp$242$$)??
"")+","+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($d2$jscomp$1_lcd$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($d2$jscomp$1_lcd$$)??""))+("L"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($e1$jscomp$10_vde$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($e1$jscomp$10_vde$$)??""))+("Q"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$378_vec__78571$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($e$jscomp$378_vec__78571$$)??
"")+","+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($e2$jscomp$5_marker_bradius_zoom$jscomp$107$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($e2$jscomp$5_marker_bradius_zoom$jscomp$107$$)??""))+("L"+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$8_lea$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($a1$jscomp$8_lea$$)??""))+"Z"};
$app$main$ui$workspace$viewport$grid_layout_editor$track_marker$$=function($props_78579_text_x$jscomp$1$$){var $center$jscomp$56$$=$props_78579_text_x$jscomp$1$$.center,$value$jscomp$963$$=$props_78579_text_x$jscomp$1$$.value,$zoom$jscomp$108$$=$props_78579_text_x$jscomp$1$$.zoom,$shape$jscomp$1046$$=$props_78579_text_x$jscomp$1$$.shape,$handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$=$props_78579_text_x$jscomp$1$$.index,$type$jscomp$680$$=$props_78579_text_x$jscomp$1$$.type,$handle_lost_pointer_capture$jscomp$3_track_before$jscomp$2$$=
$props_78579_text_x$jscomp$1$$["track-before"],$handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$=$props_78579_text_x$jscomp$1$$["track-after"],$snap_pixel_QMARK_$jscomp$10$$=$props_78579_text_x$jscomp$1$$["snap-pixel?"],$on_set_modifiers$jscomp$4$$=$props_78579_text_x$jscomp$1$$["on-set-modifiers"],$on_clear_modifiers$jscomp$4$$=$props_78579_text_x$jscomp$1$$["on-clear-modifiers"];$props_78579_text_x$jscomp$1$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($center$jscomp$56$$);
var $text_y$jscomp$1$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center$jscomp$56$$);$handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$=$app$main$ui$workspace$viewport$grid_layout_editor$use_resize_track$$($type$jscomp$680$$,$shape$jscomp$1046$$,$handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$,$handle_lost_pointer_capture$jscomp$3_track_before$jscomp$2$$,$handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$,$zoom$jscomp$108$$,$snap_pixel_QMARK_$jscomp$10$$,
$on_set_modifiers$jscomp$4$$,$on_clear_modifiers$jscomp$4$$);$handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$);$handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$,$cljs$cst$5623$handle_pointer_down$$);$handle_lost_pointer_capture$jscomp$3_track_before$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$,$cljs$cst$5624$handle_lost_pointer_capture$$);$handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$,$cljs$cst$5625$handle_pointer_move$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{onPointerDown:$handle_pointer_down$jscomp$5_index$jscomp$564_map__78580$$,
onLostPointerCapture:$handle_lost_pointer_capture$jscomp$3_track_before$jscomp$2$$,onPointerMove:$handle_pointer_move$jscomp$3_map__78580__$1_track_after$jscomp$2$$,transform:""+($APP.$app$common$geom$matrix$transform_in$$($center$jscomp$56$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1046$$))??""),className:$APP.$app$util$dom$classnames$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["main_ui_workspace_viewport_grid_layout_editor__grid-track-marker",
!0,$app$main$ui$css_cursors$get_dynamic$$("resize-ew",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1046$$)),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$680$$,$APP.$cljs$cst$216$column$$),$app$main$ui$css_cursors$get_dynamic$$("resize-ns",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1046$$)),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$680$$,$APP.$cljs$cst$1640$row$$)])),children:[(0,$APP.$rumext$v2$jsx$$)("path",
{d:$app$main$ui$workspace$viewport$grid_layout_editor$marker_shape_d$$($center$jscomp$56$$,$zoom$jscomp$108$$),className:"main_ui_workspace_viewport_grid_layout_editor__marker-shape"}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$props_78579_text_x$jscomp$1$$,y:$text_y$jscomp$1$$,width:26.26/$zoom$jscomp$108$$,height:36/$zoom$jscomp$108$$,textAnchor:"middle",dominantBaseline:"middle",className:"main_ui_workspace_viewport_grid_layout_editor__marker-text",children:""+($value$jscomp$963$$??"")})]})};
$app$main$ui$workspace$viewport$rulers$get_ruler_params$$=function($end$jscomp$108_vbox$jscomp$39$$,$axis$jscomp$45_start$jscomp$251$$){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$45_start$jscomp$251$$,$APP.$cljs$cst$1499$x$$)?($axis$jscomp$45_start$jscomp$251$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($end$jscomp$108_vbox$jscomp$39$$),$end$jscomp$108_vbox$jscomp$39$$=$axis$jscomp$45_start$jscomp$251$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($end$jscomp$108_vbox$jscomp$39$$)):
($axis$jscomp$45_start$jscomp$251$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($end$jscomp$108_vbox$jscomp$39$$),$end$jscomp$108_vbox$jscomp$39$$=$axis$jscomp$45_start$jscomp$251$$+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($end$jscomp$108_vbox$jscomp$39$$));return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1278$start$$,$axis$jscomp$45_start$jscomp$251$$,$APP.$cljs$cst$1279$end$$,$end$jscomp$108_vbox$jscomp$39$$],null)};
$app$main$ui$workspace$viewport$rulers$rulers_inside_path$$=function($x1$jscomp$44$$,$y1$jscomp$46$$,$x2$jscomp$41$$,$y2$jscomp$43$$,$br$$,$bw$jscomp$2$$){return"M"+($x1$jscomp$44$$+$bw$jscomp$2$$??"")+","+($y1$jscomp$46$$+$bw$jscomp$2$$+$br$$??"")+"Q"+($x1$jscomp$44$$+$bw$jscomp$2$$??"")+","+($y1$jscomp$46$$+$bw$jscomp$2$$??"")+","+($x1$jscomp$44$$+$bw$jscomp$2$$+$br$$??"")+","+($y1$jscomp$46$$+$bw$jscomp$2$$??"")+"L"+($x2$jscomp$41$$-$br$$)+","+($y1$jscomp$46$$+$bw$jscomp$2$$??"")+"Q"+($x2$jscomp$41$$??
"")+","+($y1$jscomp$46$$+$bw$jscomp$2$$??"")+","+($x2$jscomp$41$$??"")+","+($y1$jscomp$46$$+$bw$jscomp$2$$+$br$$??"")+"L"+($x2$jscomp$41$$??"")+","+($y2$jscomp$43$$-$br$$)+"Q"+($x2$jscomp$41$$??"")+","+($y2$jscomp$43$$??"")+","+($x2$jscomp$41$$-$br$$)+","+($y2$jscomp$43$$??"")+"L"+($x1$jscomp$44$$+$bw$jscomp$2$$+$br$$??"")+","+($y2$jscomp$43$$??"")+"Q"+($x1$jscomp$44$$+$bw$jscomp$2$$??"")+","+($y2$jscomp$43$$??"")+","+($x1$jscomp$44$$+$bw$jscomp$2$$??"")+","+($y2$jscomp$43$$-$br$$)+"Z"};
$app$main$ui$workspace$viewport$rulers$rulers_text$$=function($map__78575_props_78574_step$jscomp$34$$){$map__78575_props_78574_step$jscomp$34$$=$APP.$rumext$v2$util$wrap_props$$($map__78575_props_78574_step$jscomp$34$$);var $clip_id$jscomp$5_map__78575__$1$$=$APP.$cljs$core$__destructure_map$$($map__78575_props_78574_step$jscomp$34$$),$vbox$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$5_map__78575__$1$$,$APP.$cljs$cst$1910$vbox$$);$map__78575_props_78574_step$jscomp$34$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$5_map__78575__$1$$,$APP.$cljs$cst$5432$step$$);var $offset$jscomp$209$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$5_map__78575__$1$$,$APP.$cljs$cst$195$offset$$),$axis$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$5_map__78575__$1$$,$APP.$cljs$cst$2039$axis$$),$zoom_inverse$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$5_map__78575__$1$$,
$APP.$cljs$cst$3467$zoom_inverse$$);$clip_id$jscomp$5_map__78575__$1$$=["clip-ruler-",$APP.$app$common$data$name$$($axis$jscomp$47$$)].join("");var $map__78576_minv__$2_start$jscomp$252$$=$app$main$ui$workspace$viewport$rulers$get_ruler_params$$($vbox$jscomp$41$$,$axis$jscomp$47$$),$end$jscomp$109_map__78576__$1_maxv__$2$$=$APP.$cljs$core$__destructure_map$$($map__78576_minv__$2_start$jscomp$252$$);$map__78576_minv__$2_start$jscomp$252$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$109_map__78576__$1_maxv__$2$$,
$APP.$cljs$cst$1278$start$$);$end$jscomp$109_map__78576__$1_maxv__$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($end$jscomp$109_map__78576__$1_maxv__$2$$,$APP.$cljs$cst$1279$end$$);$map__78576_minv__$2_start$jscomp$252$$=$APP.$app$common$math$ceil$$(($map__78576_minv__$2_start$jscomp$252$$>-1E5?$map__78576_minv__$2_start$jscomp$252$$:-1E5)/$map__78575_props_78574_step$jscomp$34$$)*$map__78575_props_78574_step$jscomp$34$$+$APP.$cljs$core$mod$$($offset$jscomp$209$$,$map__78575_props_78574_step$jscomp$34$$);
$end$jscomp$109_map__78576__$1_maxv__$2$$=$APP.$app$common$math$floor$$(($end$jscomp$109_map__78576__$1_maxv__$2$$<1E5?$end$jscomp$109_map__78576__$1_maxv__$2$$:1E5)/$map__78575_props_78574_step$jscomp$34$$)*$map__78575_props_78574_step$jscomp$34$$+$APP.$cljs$core$mod$$($offset$jscomp$209$$,$map__78575_props_78574_step$jscomp$34$$);var $rulers_width$jscomp$1$$=1*$zoom_inverse$jscomp$5$$;return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"rulers",clipPath:["url(#",$clip_id$jscomp$5_map__78575__$1$$,")"].join(""),
children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:$clip_id$jscomp$5_map__78575__$1$$,children:function(){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$47$$,$APP.$cljs$cst$1499$x$$))var $x$jscomp$1275_x$jscomp$inline_8908$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+25*$zoom_inverse$jscomp$5$$,$y$jscomp$499_y$jscomp$inline_8909$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$),
$width$jscomp$230_width$jscomp$inline_8910$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)-21*$zoom_inverse$jscomp$5$$,$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$=25*$zoom_inverse$jscomp$5$$;else $x$jscomp$1275_x$jscomp$inline_8908$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$),$y$jscomp$499_y$jscomp$inline_8909$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+25*$zoom_inverse$jscomp$5$$,$width$jscomp$230_width$jscomp$inline_8910$$=
25*$zoom_inverse$jscomp$5$$,$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)-21*$zoom_inverse$jscomp$5$$;$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$=$APP.$cljs$core$__destructure_map$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1499$x$$,$x$jscomp$1275_x$jscomp$inline_8908$$,$APP.$cljs$cst$1500$y$$,$y$jscomp$499_y$jscomp$inline_8909$$,$APP.$cljs$cst$288$width$$,$width$jscomp$230_width$jscomp$inline_8910$$,
$APP.$cljs$cst$1511$height$$,$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$],null));$x$jscomp$1275_x$jscomp$inline_8908$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$,$APP.$cljs$cst$1499$x$$);$y$jscomp$499_y$jscomp$inline_8909$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$,$APP.$cljs$cst$1500$y$$);$width$jscomp$230_width$jscomp$inline_8910$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("rect",{x:$x$jscomp$1275_x$jscomp$inline_8908$$,y:$y$jscomp$499_y$jscomp$inline_8909$$,width:$width$jscomp$230_width$jscomp$inline_8910$$,
height:$height$jscomp$197_height$jscomp$inline_8911_map__78577__$1$$})}()})}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$236$$,$JSCompiler_inline_result$jscomp$1871_step_val$$){var $JSCompiler_temp_const$jscomp$1869$$=$out_arr__44057__auto__$jscomp$236$$.push;var $map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$=15*$zoom_inverse$jscomp$5$$;var $rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$=
4*$zoom_inverse$jscomp$5$$;$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$47$$,$APP.$cljs$cst$1499$x$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$cljs$cst$5626$text_x$$,$JSCompiler_inline_result$jscomp$1871_step_val$$,$cljs$cst$5627$text_y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+
-1*$zoom_inverse$jscomp$5$$,$cljs$cst$5628$line_x1$$,$JSCompiler_inline_result$jscomp$1871_step_val$$,$cljs$cst$5629$line_y1$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+2*$zoom_inverse$jscomp$5$$,$cljs$cst$5630$line_x2$$,$JSCompiler_inline_result$jscomp$1871_step_val$$,$cljs$cst$5631$line_y2$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+
2*$zoom_inverse$jscomp$5$$+$rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$],null):new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$cljs$cst$5626$text_x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+-1*$zoom_inverse$jscomp$5$$,$cljs$cst$5627$text_y$$,$JSCompiler_inline_result$jscomp$1871_step_val$$,$cljs$cst$5628$line_x1$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+
$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+2*$zoom_inverse$jscomp$5$$,$cljs$cst$5629$line_y1$$,$JSCompiler_inline_result$jscomp$1871_step_val$$,$cljs$cst$5630$line_x2$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$41$$)+$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$+2*$zoom_inverse$jscomp$5$$+$rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$,$cljs$cst$5631$line_y2$$,$JSCompiler_inline_result$jscomp$1871_step_val$$],
null);var $line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$=$APP.$cljs$core$__destructure_map$$($map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$);$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,$cljs$cst$5626$text_x$$);$rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,
$cljs$cst$5627$text_y$$);var $line_x1$jscomp$inline_8917$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,$cljs$cst$5628$line_x1$$),$line_y1$jscomp$inline_8918$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,$cljs$cst$5629$line_y1$$),$line_x2$jscomp$inline_8919$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,
$cljs$cst$5630$line_x2$$);$line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,$cljs$cst$5631$line_y2$$);$JSCompiler_inline_result$jscomp$1871_step_val$$=(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("text",{x:$map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$,y:$rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$,
textAnchor:"middle",transform:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$47$$,$APP.$cljs$cst$1500$y$$)?["rotate(-90 ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78578$jscomp$inline_8913_rulers_pos$jscomp$inline_13064_text_x$jscomp$inline_8915$$),",",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($rulers_size$jscomp$inline_13065_text_y$jscomp$inline_8916$$),")"].join(""):null,style:{fontSize:12*$zoom_inverse$jscomp$5$$,fontFamily:"worksans",fill:"var(--layer-row-foreground-color)"},
children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_inline_result$jscomp$1871_step_val$$-$offset$jscomp$209$$)}),(0,$APP.$rumext$v2$jsx$$)("line",{x1:$line_x1$jscomp$inline_8917$$,y1:$line_y1$jscomp$inline_8918$$,x2:$line_x2$jscomp$inline_8919$$,y2:$line_y2$jscomp$inline_8920_map__78578__$1$jscomp$inline_8914$$,style:{stroke:"var(--layer-row-foreground-color)",strokeWidth:$rulers_width$jscomp$1$$}},["line-",$APP.$app$common$data$name$$($axis$jscomp$47$$),
"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1871_step_val$$)].join(""))]},"text-"+($APP.$app$common$data$name$$($axis$jscomp$47$$)??"")+"-"+($JSCompiler_inline_result$jscomp$1871_step_val$$??""));$JSCompiler_temp_const$jscomp$1869$$.call($out_arr__44057__auto__$jscomp$236$$,$JSCompiler_inline_result$jscomp$1871_step_val$$);return $out_arr__44057__auto__$jscomp$236$$},[],$APP.$cljs$core$range$cljs$0core$0IFn$0_invoke$0arity$03$$($map__78576_minv__$2_start$jscomp$252$$,
$end$jscomp$109_map__78576__$1_maxv__$2$$+1,$map__78575_props_78574_step$jscomp$34$$))]})};
$app$main$ui$workspace$viewport$rulers$viewport_frame$$=function($JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$){$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$=$APP.$rumext$v2$util$wrap_props$$($JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$);var $map__78582__$1_offset_y$jscomp$13$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$),$show_rulers_QMARK__step$jscomp$inline_8922$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,$cljs$cst$5632$show_rulers_QMARK_$$),$zoom$jscomp$112$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,$APP.$cljs$cst$2158$zoom$$);$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,$APP.$cljs$cst$3467$zoom_inverse$$);var $vbox$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,
$APP.$cljs$cst$1910$vbox$$),$offset_x$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,$APP.$cljs$cst$1634$offset_x$$);$map__78582__$1_offset_y$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78582__$1_offset_y$jscomp$13$$,$APP.$cljs$cst$1635$offset_y$$);var $height$jscomp$198_map__78585__$1_y2$jscomp$44$$=$APP.$cljs$core$__destructure_map$$($vbox$jscomp$42$$),$JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$198_map__78585__$1_y2$jscomp$44$$,
$APP.$cljs$cst$1499$x$$),$y1$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$198_map__78585__$1_y2$jscomp$44$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$231_x2$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$198_map__78585__$1_y2$jscomp$44$$,$APP.$cljs$cst$288$width$$);$height$jscomp$198_map__78585__$1_y2$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$198_map__78585__$1_y2$jscomp$44$$,$APP.$cljs$cst$1511$height$$);
$width$jscomp$231_x2$jscomp$42$$=$JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$+$width$jscomp$231_x2$jscomp$42$$;$height$jscomp$198_map__78585__$1_y2$jscomp$44$$=$y1$jscomp$47$$+$height$jscomp$198_map__78585__$1_y2$jscomp$44$$;var $bw$jscomp$3$$=$APP.$cljs$core$truth_$$($show_rulers_QMARK__step$jscomp$inline_8922$$)?22*$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$:0,$br$jscomp$1$$=12/$zoom$jscomp$112$$,$bs$jscomp$1$$=4*$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$;
$JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$=(0,$APP.$rumext$v2$jsxs$$)("g",{className:"viewport-frame-background",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:0,y:0,width:1,height:1,fill:"none",strokeWidth:.1,stroke:"rgba(0,0,0,0)"}),(0,$APP.$rumext$v2$jsx$$)("path",{d:$app$main$ui$workspace$viewport$rulers$rulers_inside_path$$($JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$,$y1$jscomp$47$$,$width$jscomp$231_x2$jscomp$42$$,$height$jscomp$198_map__78585__$1_y2$jscomp$44$$,$br$jscomp$1$$,$bw$jscomp$3$$),
fill:"none",strokeWidth:$bs$jscomp$1$$,stroke:"var(--panel-border-color)"}),(0,$APP.$rumext$v2$jsx$$)("path",{d:"M"+($JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$??"")+","+($y1$jscomp$47$$??"")+"L"+($width$jscomp$231_x2$jscomp$42$$??"")+","+($y1$jscomp$47$$??"")+"L"+($width$jscomp$231_x2$jscomp$42$$??"")+","+($height$jscomp$198_map__78585__$1_y2$jscomp$44$$??"")+"L"+($JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$??"")+","+($height$jscomp$198_map__78585__$1_y2$jscomp$44$$??"")+"Z"+($app$main$ui$workspace$viewport$rulers$rulers_inside_path$$($JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$,
$y1$jscomp$47$$,$width$jscomp$231_x2$jscomp$42$$,$height$jscomp$198_map__78585__$1_y2$jscomp$44$$,$br$jscomp$1$$,$bw$jscomp$3$$)??""),fillRule:"evenodd",fill:"var(--panel-background-color)"})]});$APP.$cljs$core$truth_$$($show_rulers_QMARK__step$jscomp$inline_8922$$)?($show_rulers_QMARK__step$jscomp$inline_8922$$=0<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<.008?1E4:.008<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<.015?5E3:.015<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<.04?2500:.04<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<
.07?1E3:.07<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<.2?500:.2<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<.5?250:.5<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<1?100:1<=$zoom$jscomp$112$$&&$zoom$jscomp$112$$<=2?50:2<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<4?25:4<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<6?10:6<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<15?5:15<$zoom$jscomp$112$$&&$zoom$jscomp$112$$<25?2:1,$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$=(0,$APP.$rumext$v2$jsxs$$)("g",{className:"viewport-frame-rulers",
children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$rulers_text$$,{vbox:$vbox$jscomp$42$$,offset:$offset_x$jscomp$13$$,step:$show_rulers_QMARK__step$jscomp$inline_8922$$,"zoom-inverse":$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$,axis:$APP.$cljs$cst$1499$x$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$rulers_text$$,{vbox:$vbox$jscomp$42$$,offset:$map__78582__$1_offset_y$jscomp$13$$,step:$show_rulers_QMARK__step$jscomp$inline_8922$$,
"zoom-inverse":$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$,axis:$APP.$cljs$cst$1500$y$$})]})):$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$=null;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$JSCompiler_temp_const$jscomp$1872_x1$jscomp$45$$,$JSCompiler_temp$jscomp$1873_map__78582_props_78581_zoom_inverse$jscomp$6$$]})};
$app$main$ui$workspace$viewport$rulers$selection_area$$=function($JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$){$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$=$APP.$rumext$v2$util$wrap_props$$($JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$);var $JSCompiler_temp_const$jscomp$1875_map__78644__$1$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$),
$center_x$jscomp$inline_8924_vbox$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,$APP.$cljs$cst$1910$vbox$$);$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,$APP.$cljs$cst$3467$zoom_inverse$$);var $selection_rect$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,
$cljs$cst$5633$selection_rect$$),$JSCompiler_temp_const$jscomp$1874_offset_x$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,$APP.$cljs$cst$1634$offset_x$$),$offset_y$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,$APP.$cljs$cst$1635$offset_y$$);$JSCompiler_temp_const$jscomp$1875_map__78644__$1$$=(0,$APP.$rumext$v2$jsxs$$)("defs",{children:[(0,$APP.$rumext$v2$jsxs$$)("linearGradient",
{id:"selection-gradient-start",children:[(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"0%",stopColor:"var(--panel-background-color)",stopOpacity:0}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"40%",stopColor:"var(--panel-background-color)",stopOpacity:1}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"100%",stopColor:"var(--panel-background-color)",stopOpacity:1})]}),(0,$APP.$rumext$v2$jsxs$$)("linearGradient",{id:"selection-gradient-end",children:[(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"0%",stopColor:"var(--panel-background-color)",
stopOpacity:1}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"60%",stopColor:"var(--panel-background-color)",stopOpacity:1}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"100%",stopColor:"var(--panel-background-color)",stopOpacity:0})]})]});$JSCompiler_temp_const$jscomp$1874_offset_x$jscomp$14$$=(0,$APP.$rumext$v2$jsxs$$)("g",{children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-75*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,
y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$),width:100*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fill:"url('#selection-gradient-start')"}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-25,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$),
width:100*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fill:"url('#selection-gradient-end')"}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$),width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$),
height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,style:{fill:"var(--color-accent-tertiary)",fillOpacity:.3}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-4*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$)+13.6*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,
textAnchor:"end",style:{fontSize:12*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fontFamily:"worksans",fill:"var(--color-accent-tertiary)"},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-$JSCompiler_temp_const$jscomp$1874_offset_x$jscomp$14$$)}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)+
4*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$)+13.6*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,textAnchor:"start",style:{fontSize:12*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fontFamily:"worksans",fill:"var(--color-accent-tertiary)"},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-
$JSCompiler_temp_const$jscomp$1874_offset_x$jscomp$14$$)})]});$center_x$jscomp$inline_8924_vbox$jscomp$43$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$)+11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$;var $center_y$jscomp$inline_8925$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/2-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$;
$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$=(0,$APP.$rumext$v2$jsxs$$)("g",{transform:["rotate(-90 ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($center_x$jscomp$inline_8924_vbox$jscomp$43$$),",",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($center_y$jscomp$inline_8925$$),")"].join(""),children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$center_x$jscomp$inline_8924_vbox$jscomp$43$$-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/
2-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,y:$center_y$jscomp$inline_8925$$-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,width:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$),height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,style:{fill:"var(--color-accent-tertiary)",fillOpacity:.3}}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$center_x$jscomp$inline_8924_vbox$jscomp$43$$-
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/2-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$-100*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,y:$center_y$jscomp$inline_8925$$-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,width:100*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,
style:{fill:"var(--panel-background-color)",fillOpacity:.8}}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$center_x$jscomp$inline_8924_vbox$jscomp$43$$-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/2-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$),y:$center_y$jscomp$inline_8925$$-11*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,
width:100*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,height:22*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,style:{fill:"var(--panel-background-color)",fillOpacity:.8}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$center_x$jscomp$inline_8924_vbox$jscomp$43$$-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/2-15*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,
y:$center_y$jscomp$inline_8925$$+4*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,textAnchor:"end",style:{fontSize:12*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fontFamily:"worksans",fill:"var(--color-accent-tertiary)"},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-$offset_y$jscomp$14$$)}),(0,$APP.$rumext$v2$jsx$$)("text",
{x:$center_x$jscomp$inline_8924_vbox$jscomp$43$$+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)/2,y:$center_y$jscomp$inline_8925$$+4*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,textAnchor:"start",style:{fontSize:12*$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$,fontFamily:"worksans",fill:"var(--color-accent-tertiary)"},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($selection_rect$$)-
$offset_y$jscomp$14$$)})]});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"selection-area",children:[$JSCompiler_temp_const$jscomp$1875_map__78644__$1$$,$JSCompiler_temp_const$jscomp$1874_offset_x$jscomp$14$$,$JSCompiler_inline_result$jscomp$1876_map__78644_props_78643_zoom_inverse$jscomp$7$$]})};
$app$main$ui$workspace$viewport$guides$use_guide$$=function($on_guide_change$$,$get_hover_frame$$,$zoom$jscomp$114$$,$frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$){$frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$);var $id$jscomp$990$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$,$APP.$cljs$cst$266$id$$),$position$jscomp$221$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$,
$APP.$cljs$cst$1660$position$$),$axis$jscomp$48$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$,$APP.$cljs$cst$2039$axis$$),$frame_id$jscomp$143$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$,$APP.$cljs$cst$1591$frame_id$$),$dragging_ref$jscomp$6$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$start_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(null),$start_pos_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),
$state$jscomp$1107$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2166$hover$$,!1,$cljs$cst$5634$new_position$$,null,$APP.$cljs$cst$4817$new_frame_id$$,$frame_id$jscomp$143$$],null)}),$frame_id__$1$jscomp$11$$=$APP.$cljs$cst$4817$new_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1107$$));$frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id__$1$jscomp$11$$)],
function(){return $app$main$refs$object_by_id$$($frame_id__$1$jscomp$11$$)});$frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$=$APP.$rumext$v2$deref$$($frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$);var $snap_pixel_QMARK_$jscomp$13$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$snap_pixel_QMARK_$$),$read_only_QMARK_$jscomp$33$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$on_pointer_enter$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$)],
function(){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$))return null;$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$guides$set_hover_guide$$($id$jscomp$990$$,!0));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1107$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2166$hover$$,!0)}),$on_pointer_leave$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$)],
function(){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$))return null;$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$guides$set_hover_guide$$($id$jscomp$990$$,!1));return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1107$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2166$hover$$,!1)}),$on_pointer_down$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$)],
function($event$jscomp$633$$){return $APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$)?null:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$event$jscomp$633$$.button)?($APP.$app$util$dom$capture_pointer$$($event$jscomp$633$$),$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$6$$,!0),$APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$3$$,$APP.$app$util$dom$get_client_position$$($event$jscomp$633$$)),$APP.$rumext$v2$set_ref_val_BANG_$$($start_pos_ref$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$),
$axis$jscomp$48$$))):null}),$on_pointer_up$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$select_keys$$($APP.$cljs$core$_deref$$($state$jscomp$1107$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5634$new_position$$,$APP.$cljs$cst$4817$new_frame_id$$],null))),$APP.$rumext$v2$adapt$$($on_guide_change$$),$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$)],function(){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$))return null;
if($on_guide_change$$!=null&&$cljs$cst$5634$new_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1107$$))!=null){var $G__78663$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1660$position$$,$cljs$cst$5634$new_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1107$$)),$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$4817$new_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1107$$))],null);
return $on_guide_change$$.$cljs$core$IFn$_invoke$arity$1$?$on_guide_change$$.$cljs$core$IFn$_invoke$arity$1$($G__78663$$):$on_guide_change$$($G__78663$$)}return null}),$on_lost_pointer_capture$jscomp$9$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$)],function($event$jscomp$634$$){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$))return null;$APP.$app$util$dom$release_pointer$$($event$jscomp$634$$);$APP.$rumext$v2$set_ref_val_BANG_$$($dragging_ref$jscomp$6$$,
!1);$APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$3$$,null);$APP.$rumext$v2$set_ref_val_BANG_$$($start_pos_ref$jscomp$1$$,null);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1107$$,$APP.$cljs$core$assoc$$,$cljs$cst$5634$new_position$$,null)}),$on_pointer_move$jscomp$11$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($position$jscomp$221$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$114$$),$APP.$rumext$v2$adapt$$($snap_pixel_QMARK_$jscomp$13$$),
$APP.$rumext$v2$adapt$$($read_only_QMARK_$jscomp$33$$),$APP.$rumext$v2$adapt$$($get_hover_frame$$)],function($current_pt$jscomp$2_event$jscomp$635$$){if($APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$33$$))return null;if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dragging_ref$jscomp$6$$))){var $delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$=$APP.$rumext$v2$ref_val$$($start_ref$jscomp$3$$),$new_position_new_position__$1_start_pos$jscomp$19$$=$APP.$rumext$v2$ref_val$$($start_pos_ref$jscomp$1$$);
$current_pt$jscomp$2_event$jscomp$635$$=$APP.$app$util$dom$get_client_position$$($current_pt$jscomp$2_event$jscomp$635$$);$delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$=($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($current_pt$jscomp$2_event$jscomp$635$$,$axis$jscomp$48$$)-$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$,$axis$jscomp$48$$))/$zoom$jscomp$114$$;$new_position_new_position__$1_start_pos$jscomp$19$$=$position$jscomp$221$$!=
null?$position$jscomp$221$$+$delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$:$new_position_new_position__$1_start_pos$jscomp$19$$+$delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$;$new_position_new_position__$1_start_pos$jscomp$19$$=$APP.$cljs$core$truth_$$($snap_pixel_QMARK_$jscomp$13$$)?$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($new_position_new_position__$1_start_pos$jscomp$19$$):$new_position_new_position__$1_start_pos$jscomp$19$$;$delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($get_hover_frame$$.$cljs$core$IFn$_invoke$arity$0$?$get_hover_frame$$.$cljs$core$IFn$_invoke$arity$0$():$get_hover_frame$$(),$APP.$cljs$cst$266$id$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state$jscomp$1107$$,$APP.$cljs$core$assoc$$,$cljs$cst$5634$new_position$$,$new_position_new_position__$1_start_pos$jscomp$19$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4817$new_frame_id$$,
$delta$jscomp$68_new_frame_id$jscomp$1_start_pt$jscomp$2$$]))}return null});return new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$cljs$cst$5594$on_pointer_enter$$,$on_pointer_enter$jscomp$13$$,$cljs$cst$5592$on_pointer_leave$$,$on_pointer_leave$jscomp$13$$,$APP.$cljs$cst$4378$on_pointer_down$$,$on_pointer_down$jscomp$14$$,$cljs$cst$5612$on_pointer_up$$,$on_pointer_up$jscomp$3$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$,$on_lost_pointer_capture$jscomp$9$$,$APP.$cljs$cst$4380$on_pointer_move$$,
$on_pointer_move$jscomp$11$$,$APP.$cljs$cst$767$state$$,$state$jscomp$1107$$,$APP.$cljs$cst$1590$frame$$,$frame$jscomp$83_frame_ref_map__78662__$1_p__78661$$],null)};
$app$main$ui$workspace$viewport$guides$is_guide_inside_frame_QMARK_$$=function($guide$jscomp$8$$,$frame$jscomp$86$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$2039$axis$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$8$$))?$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$8$$)>=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$)&&$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$8$$)<=
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$):$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$8$$)>=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$)&&$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$8$$)<=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$86$$)};
$app$main$ui$workspace$viewport$guides$new_guide_area_STAR_$$=function($disabled_guides$jscomp$1_props_78685$$){var $axis$jscomp$56$$=$disabled_guides$jscomp$1_props_78685$$.axis,$zoom$jscomp$121$$=$disabled_guides$jscomp$1_props_78685$$.zoom,$vbox$jscomp$52$$=$disabled_guides$jscomp$1_props_78685$$.vbox,$get_hover_frame$jscomp$2$$=$disabled_guides$jscomp$1_props_78685$$.getHoverFrame;$disabled_guides$jscomp$1_props_78685$$=$disabled_guides$jscomp$1_props_78685$$.disabledGuides;var $map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vbox$jscomp$52$$)],function($guide$jscomp$10_guide__$1$jscomp$2$$){$guide$jscomp$10_guide__$1$jscomp$2$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($guide$jscomp$10_guide__$1$jscomp$2$$,$APP.$cljs$cst$266$id$$,$APP.$app$common$uuid$next$$()),$APP.$cljs$cst$2039$axis$$,$axis$jscomp$56$$);return $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$3$($zoom$jscomp$121$$,
$vbox$jscomp$52$$,$guide$jscomp$10_guide__$1$jscomp$2$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$guides$update_guides$$($guide$jscomp$10_guide__$1$jscomp$2$$)):null});$map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$=$app$main$ui$workspace$viewport$guides$use_guide$$($map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$,$get_hover_frame$jscomp$2$$,$zoom$jscomp$121$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2039$axis$$,
$axis$jscomp$56$$],null));var $frame$jscomp$88_map__78686__$1$$=$APP.$cljs$core$__destructure_map$$($map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$),$on_pointer_enter$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$cljs$cst$5594$on_pointer_enter$$),$on_pointer_leave$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$cljs$cst$5592$on_pointer_leave$$),$on_pointer_down$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,
$APP.$cljs$cst$4378$on_pointer_down$$),$on_pointer_up$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$cljs$cst$5612$on_pointer_up$$),$on_lost_pointer_capture$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$APP.$cljs$cst$4380$on_pointer_move$$);
$map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$APP.$cljs$cst$767$state$$);$frame$jscomp$88_map__78686__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$88_map__78686__$1$$,$APP.$cljs$cst$1590$frame$$);var $read_only_QMARK_$jscomp$34$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"new-guides",
children:[$APP.$cljs$core$truth_$$($disabled_guides$jscomp$1_props_78685$$)?null:function(){var $map__78687_x$jscomp$1278$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$56$$,$APP.$cljs$cst$1499$x$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$)+8/$zoom$jscomp$121$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$),$APP.$cljs$cst$288$width$$,
16/$zoom$jscomp$121$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$)+28/$zoom$jscomp$121$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$),$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$52$$),
$APP.$cljs$cst$1511$height$$,24/$zoom$jscomp$121$$],null);var $height$jscomp$201_map__78687__$1$$=$APP.$cljs$core$__destructure_map$$($map__78687_x$jscomp$1278$$);$map__78687_x$jscomp$1278$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$201_map__78687__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$502$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$201_map__78687__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$234$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$201_map__78687__$1$$,
$APP.$cljs$cst$288$width$$);$height$jscomp$201_map__78687__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$201_map__78687__$1$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$width$jscomp$234$$,height:$height$jscomp$201_map__78687__$1$$,className:$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$34$$)?null:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$56$$,$APP.$cljs$cst$1499$x$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",
0):$app$main$ui$css_cursors$get_dynamic$$("resize-ns",0),x:$map__78687_x$jscomp$1278$$,onPointerUp:$on_pointer_up$jscomp$5$$,style:{fill:"none",pointerEvents:"fill"},onLostPointerCapture:$on_lost_pointer_capture$jscomp$11$$,y:$y$jscomp$502$$,onPointerMove:$on_pointer_move$jscomp$13$$,onPointerDown:$on_pointer_down$jscomp$16$$,onPointerLeave:$on_pointer_leave$jscomp$15$$,onPointerEnter:$on_pointer_enter$jscomp$15$$})}(),$APP.$cljs$core$truth_$$($cljs$cst$5634$new_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$)))?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$guide_STAR_$$,{guide:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2039$axis$$,$axis$jscomp$56$$,$APP.$cljs$cst$1660$position$$,$cljs$cst$5634$new_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($map__78686_on_guide_change$jscomp$2_state$jscomp$1109$$))],null),getHoverFrame:$get_hover_frame$jscomp$2$$,vbox:$vbox$jscomp$52$$,zoom:$zoom$jscomp$121$$,isHover:!0,hoverFrame:$frame$jscomp$88_map__78686__$1$$}):
null]})};
$app$main$data$workspace$grid_layout$shortcuts$esc_pressed$$=function(){typeof $app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$==="undefined"&&($app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$=function($meta78666$$){this.$meta78666$=$meta78666$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $cljs$cst$5651$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_shortcuts_SLASH_esc_pressed$$},$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_78667$$,$meta78666__$1$$){return new $app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$($meta78666__$1$$)},$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta78666$},
$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$,$path_edit_mode_state$jscomp$1110$$){$_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($path_edit_mode_state$jscomp$1110$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2149$workspace_drawing$$,$APP.$cljs$cst$2160$object$$,$APP.$cljs$cst$266$id$$],null));$_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$=$APP.$cljs$core$truth_$$($_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$)?$_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($path_edit_mode_state$jscomp$1110$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$2161$edition$$],null));$path_edit_mode_state$jscomp$1110$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($path_edit_mode_state$jscomp$1110$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1908$edit_path$$,$_$jscomp$2953_edition_id$jscomp$5_or__5025__auto__$jscomp$inline_8947$$,
$APP.$cljs$cst$4107$edit_mode$$],null));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4108$draw$$,$path_edit_mode_state$jscomp$1110$$)?$APP.$beicon$v2$core$empty$$():(0,$APP.$beicon$v2$core$of$$)($APP.$cljs$cst$3430$interrupt$$)});return new $app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$workspace$viewport$hooks$setup_dom_events$$=function($zoom$jscomp$123$$,$disable_paste_ref$jscomp$2$$,$in_viewport_ref$jscomp$3$$,$workspace_read_only_QMARK_$$,$drawing_tool$jscomp$5$$,$drawing_path_QMARK_$jscomp$3$$){var $zoom_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)($zoom$jscomp$123$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($zoom$jscomp$123$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($zoom_ref$jscomp$1$$,$zoom$jscomp$123$$)});
var $on_key_down$jscomp$19$$=$app$main$ui$workspace$viewport$actions$on_key_down$$(),$on_key_up$jscomp$3$$=$app$main$ui$workspace$viewport$actions$on_key_up$$(),$on_mouse_wheel$jscomp$2$$=$app$main$ui$workspace$viewport$actions$on_mouse_wheel$$($zoom_ref$jscomp$1$$),$on_paste$$=$app$main$ui$workspace$viewport$actions$on_paste$$($disable_paste_ref$jscomp$2$$,$in_viewport_ref$jscomp$3$$,$workspace_read_only_QMARK_$$),$on_pointer_down$jscomp$17$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$5$$),
$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$3$$)],function($e$jscomp$379_parent_QMARK_$jscomp$4$$){$e$jscomp$379_parent_QMARK_$jscomp$4$$=$APP.$app$util$dom$get_parent_with_data$$($APP.$app$util$dom$get_target$$($e$jscomp$379_parent_QMARK_$jscomp$4$$),"dont-clear-path");return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($drawing_path_QMARK_$jscomp$3$$)?$APP.$cljs$core$not$$($e$jscomp$379_parent_QMARK_$jscomp$4$$):$drawing_path_QMARK_$jscomp$3$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$edition$clear_edition_mode$$()):
null}),$on_blur$jscomp$34$$=$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$(new $APP.$app$util$mouse$BlurEvent$$(null,null,null))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$5$$),$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$3$$)],function(){var $key$jscomp$421$$=$APP.$goog$events$listen$$(window,"pointerdown",$on_pointer_down$jscomp$17$$);
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$5$$,$APP.$cljs$cst$3313$comments$$)?$APP.$rumext$v2$set_ref_val_BANG_$$($disable_paste_ref$jscomp$2$$,!0):$APP.$rumext$v2$set_ref_val_BANG_$$($disable_paste_ref$jscomp$2$$,!1);return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$421$$)}});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_key_down$jscomp$19$$),$APP.$rumext$v2$adapt$$($on_key_up$jscomp$3$$),
$APP.$rumext$v2$adapt$$($on_paste$$),$APP.$rumext$v2$adapt$$($workspace_read_only_QMARK_$$)],function(){var $keys$jscomp$58$$=new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$goog$events$listen$$(document,"keydown",$on_key_down$jscomp$19$$),$APP.$goog$events$listen$$(document,"keyup",$on_key_up$jscomp$3$$),$APP.$goog$events$listen$$(window,"wheel",$on_mouse_wheel$jscomp$2$$,{passive:!1}),$APP.$goog$events$listen$$(window,"paste",$on_paste$$),$APP.$goog$events$listen$$(window,
"blur",$on_blur$jscomp$34$$)],null);return function(){for(var $c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$=$APP.$cljs$core$seq$$($keys$jscomp$58$$),$G__78788_chunk__78695_seq__78694__$1$$=null,$G__78787_count__78696$$=0,$i__78697$$=0;;)if($i__78697$$<$G__78787_count__78696$$){var $G__78789_key$jscomp$422$$=$G__78788_chunk__78695_seq__78694__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__78697$$);$APP.$goog$events$unlistenByKey$$($G__78789_key$jscomp$422$$);$i__78697$$+=1}else if($c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$=
$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$))$G__78788_chunk__78695_seq__78694__$1$$=$c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__78788_chunk__78695_seq__78694__$1$$)?($c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$=$APP.$cljs$core$_chunked_first$$($G__78788_chunk__78695_seq__78694__$1$$),$G__78787_count__78696$$=$APP.$cljs$core$_chunked_rest$$($G__78788_chunk__78695_seq__78694__$1$$),
$G__78788_chunk__78695_seq__78694__$1$$=$c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$,$G__78789_key$jscomp$422$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$),$c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$=$G__78787_count__78696$$,$G__78787_count__78696$$=$G__78789_key$jscomp$422$$):($G__78789_key$jscomp$422$$=$APP.$cljs$core$first$$($G__78788_chunk__78695_seq__78694__$1$$),$APP.$goog$events$unlistenByKey$$($G__78789_key$jscomp$422$$),
$c__5548__auto__$jscomp$46_seq__78694_temp__5825__auto__$jscomp$398$$=$APP.$cljs$core$next$$($G__78788_chunk__78695_seq__78694__$1$$),$G__78788_chunk__78695_seq__78694__$1$$=null,$G__78787_count__78696$$=0),$i__78697$$=0;else return null}})};
$app$main$ui$workspace$viewport$hooks$setup_viewport_size$$=function($vport$jscomp$12$$,$viewport_ref$$){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vport$jscomp$12$$)],function(){var $JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$=$APP.$app$util$dom$get_parent$$($APP.$rumext$v2$ref_val$$($viewport_ref$$)),$JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$=$APP.$app$util$dom$get_client_size$$($JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$);
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$,$vport$jscomp$12$$)?($JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$,$JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$=$APP.$app$util$dom$get_client_size$$($JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$),$JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$=
$app$main$data$workspace$viewport$initialize_viewport$$($JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$),$JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$=$JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1509_param70700$jscomp$inline_8949_prnt$$)):$JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$=null;return $JSCompiler_temp$jscomp$1506_JSCompiler_temp_const$jscomp$1507_size$jscomp$157$$})};
$app$main$ui$workspace$viewport$hooks$setup_cursor$$=function($cursor$jscomp$3$$,$alt_QMARK_$jscomp$24$$,$mod_QMARK_$jscomp$12$$,$space_QMARK_$jscomp$4$$,$panning$jscomp$1$$,$drawing_tool$jscomp$6$$,$drawing_path_QMARK_$jscomp$4$$,$path_editing_QMARK_$jscomp$1$$,$z_QMARK_$jscomp$4$$,$workspace_read_only_QMARK_$jscomp$1$$){$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($cursor$jscomp$3$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$24$$)),
$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$12$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$4$$)),$APP.$rumext$v2$adapt$$($panning$jscomp$1$$),$APP.$rumext$v2$adapt$$($drawing_tool$jscomp$6$$),$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$4$$),$APP.$rumext$v2$adapt$$($path_editing_QMARK_$jscomp$1$$),$APP.$rumext$v2$adapt$$($z_QMARK_$jscomp$4$$),$APP.$rumext$v2$adapt$$($workspace_read_only_QMARK_$jscomp$1$$)],function(){var $new_cursor_show_pen_QMARK_$$=
function(){var $or__5025__auto__$jscomp$1230$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$294$path$$);return $or__5025__auto__$jscomp$1230$$?$or__5025__auto__$jscomp$1230$$:$APP.$cljs$core$truth_$$($drawing_path_QMARK_$jscomp$4$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$2037$curve$$):$drawing_path_QMARK_$jscomp$4$$}(),$show_zoom_QMARK_$$=function(){var $and__5023__auto__$jscomp$882$$=$APP.$cljs$core$_deref$$($z_QMARK_$jscomp$4$$);
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$882$$)?$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($space_QMARK_$jscomp$4$$))&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$12$$))&&$APP.$cljs$core$not$$($drawing_path_QMARK_$jscomp$4$$)&&$APP.$cljs$core$not$$($drawing_tool$jscomp$6$$):$and__5023__auto__$jscomp$882$$}();$new_cursor_show_pen_QMARK_$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$883$$=$APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$12$$);
return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$883$$)?$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$4$$):$and__5023__auto__$jscomp$883$$}())?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($APP.$cljs$cst$2158$zoom$$):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($panning$jscomp$1$$)?$panning$jscomp$1$$:$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$4$$))?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5652$hand$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,
$APP.$cljs$cst$3313$comments$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($APP.$cljs$cst$3313$comments$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$1590$frame$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5653$create_artboard$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$1595$rect$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5654$create_rectangle$$):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$1406$circle$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5655$create_ellipse$$):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_zoom_QMARK_$$)?$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$24$$)):$show_zoom_QMARK_$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5656$zoom_in$$):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_zoom_QMARK_$$)?
$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$24$$):$show_zoom_QMARK_$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5657$zoom_out$$):$APP.$cljs$core$truth_$$($new_cursor_show_pen_QMARK_$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5658$pen$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$6$$,$APP.$cljs$cst$2037$curve$$)?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5659$pencil$$):$APP.$cljs$core$truth_$$($drawing_tool$jscomp$6$$)?
$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5660$create_shape$$):$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$886$$=$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$24$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$886$$)?$APP.$cljs$core$not$$($path_editing_QMARK_$jscomp$1$$)&&$APP.$cljs$core$not$$($workspace_read_only_QMARK_$jscomp$1$$):$and__5023__auto__$jscomp$886$$}())?$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($APP.$cljs$cst$4607$duplicate$$):
$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5661$pointer_inner$$);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($cursor$jscomp$3$$),$new_cursor_show_pen_QMARK_$$)?$APP.$cljs$core$reset_BANG_$$($cursor$jscomp$3$$,$new_cursor_show_pen_QMARK_$$):null})};
$app$main$ui$workspace$viewport$hooks$setup_keyboard$$=function($alt_STAR_$$,$mod_STAR_$$,$space_STAR_$$,$z_STAR_$$,$shift_STAR_$$){var $kbd_zoom_s$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$beicon$v2$operators$pipe$$($APP.$beicon$v2$operators$distinct_contiguous$cljs$0core$0IFn$0_invoke$0arity$00$$(),$APP.$beicon$v2$core$filter$$(function($kevent$$){return(0,$APP.$app$util$keyboard$minus_QMARK_$$)($kevent$$)||(0,$APP.$app$util$keyboard$underscore_QMARK_$$)($kevent$$)||
(0,$APP.$app$util$keyboard$equals_QMARK_$$)($kevent$$)||(0,$APP.$app$util$keyboard$plus_QMARK_$$)($kevent$$)},$APP.$beicon$v2$core$filter$$($app$util$keyboard$mod_event_QMARK_$$,$APP.$beicon$v2$core$filter$$($APP.$app$util$keyboard$key_down_event_QMARK_$$,$APP.$app$main$streams$keyboard$$))))}),$kbd_shift_s$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$beicon$v2$operators$pipe$$($APP.$beicon$v2$operators$distinct_contiguous$cljs$0core$0IFn$0_invoke$0arity$00$$(),
$APP.$beicon$v2$core$map$$($APP.$app$util$keyboard$key_down_event_QMARK_$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$complement$$($APP.$app$util$keyboard$editing_event_QMARK_$$),$APP.$beicon$v2$core$filter$$($APP.$app$util$keyboard$shift_key_QMARK_$$,$APP.$app$main$streams$keyboard$$))))}),$kbd_z_s$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$beicon$v2$operators$pipe$$($APP.$beicon$v2$operators$distinct_contiguous$cljs$0core$0IFn$0_invoke$0arity$00$$(),
$APP.$beicon$v2$core$map$$($APP.$app$util$keyboard$key_down_event_QMARK_$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$complement$$($APP.$app$util$keyboard$editing_event_QMARK_$$),$APP.$beicon$v2$core$filter$$($APP.$app$util$keyboard$z_QMARK_$$,$APP.$app$main$streams$keyboard$$))))});$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$sub$jscomp$inline_6239$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$reset_BANG_$$,$alt_STAR_$$));$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$sub$jscomp$inline_6251$$,
$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$reset_BANG_$$,$space_STAR_$$));$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($kbd_z_s$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$reset_BANG_$$,$z_STAR_$$));$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($kbd_shift_s$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$reset_BANG_$$,$shift_STAR_$$));$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$streams$keyboard_mod$$,
function($value$jscomp$965$$){$APP.$cljs$core$reset_BANG_$$($mod_STAR_$$,$value$jscomp$965$$);return $value$jscomp$965$$?null:$APP.$cljs$core$reset_BANG_$$($z_STAR_$$,!1)});$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($kbd_zoom_s$$,function($kevent$jscomp$1$$){$APP.$app$util$dom$prevent_default$$($kevent$jscomp$1$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$util$keyboard$minus_QMARK_$$)($kevent$jscomp$1$$)||(0,$APP.$app$util$keyboard$underscore_QMARK_$$)($kevent$jscomp$1$$)?
$APP.$app$main$data$workspace$decrease_zoom$$.$cljs$core$IFn$_invoke$arity$0$():$APP.$app$main$data$workspace$increase_zoom$$.$cljs$core$IFn$_invoke$arity$0$())})};
$app$main$ui$workspace$viewport$hooks$setup_hover_shapes$$=function($page_id$jscomp$417$$,$move_stream$jscomp$3$$,$objects$jscomp$790$$,$transform$jscomp$112$$,$selected$jscomp$188$$,$mod_QMARK_$jscomp$13$$,$hover$jscomp$9$$,$measure_hover$$,$hover_ids$jscomp$5$$,$hover_top_frame_id$jscomp$6$$,$hover_disabled_QMARK_$$,$focus$jscomp$19$$,$zoom$jscomp$124$$,$show_measures_QMARK_$$){var $zoom_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)($zoom$jscomp$124$$),$mod_ref$$=(0,$APP.$rumext$v2$use_ref$$)($APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$13$$)),
$transform_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$selected_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)($selected$jscomp$188$$),$hover_disabled_ref$$=(0,$APP.$rumext$v2$use_ref$$)($hover_disabled_QMARK_$$),$focus_ref$$=(0,$APP.$rumext$v2$use_ref$$)($focus$jscomp$19$$),$last_point_ref$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$mod_str$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()}),$query_point$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$417$$)],
function($point$jscomp$88_rect$jscomp$48$$){var $size$jscomp$inline_13077$$=5/$APP.$rumext$v2$ref_val$$($zoom_ref$jscomp$2$$);$point$jscomp$88_rect$jscomp$48$$=$APP.$app$common$geom$rect$center__GT_rect$cljs$0core$0IFn$0_invoke$0arity$03$$($point$jscomp$88_rect$jscomp$48$$,$size$jscomp$inline_13077$$,$size$jscomp$inline_13077$$);return $APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($hover_disabled_ref$$))?(0,$APP.$beicon$v2$core$of$$)(null):$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,
$app$main$worker$ask_buffered_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$APP.$cljs$cst$2972$cmd$$,$APP.$cljs$cst$3495$index_SLASH_query_selection$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$417$$,$APP.$cljs$cst$1595$rect$$,$point$jscomp$88_rect$jscomp$48$$,$APP.$cljs$cst$3496$include_frames_QMARK_$$,!0,$cljs$cst$5662$clip_children_QMARK_$$,$APP.$cljs$core$not$$($APP.$rumext$v2$ref_val$$($mod_ref$$)),$APP.$cljs$cst$3499$using_selrect_QMARK_$$,!1],
null)))}),$over_shapes_stream$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($query_point$$),$APP.$rumext$v2$adapt$$($move_stream$jscomp$3$$),$APP.$rumext$v2$adapt$$($mod_str$$)],function(){return $APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$merge_map$$($query_point$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,$APP.$beicon$v2$core$map$$(function(){return $APP.$cljs$core$_deref$$($last_point_ref$$)},$APP.$beicon$v2$core$observe_on$$($APP.$cljs$cst$2287$async$$,
$mod_str$$)))),$APP.$beicon$v2$core$merge_map$$($query_point$$,$APP.$beicon$v2$core$tap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__78734_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($last_point_ref$$,$p1__78734_SHARP_$$)},$move_stream$jscomp$3$$))))}),$over_shapes_stream_debounced$$=$APP.$beicon$v2$core$debounce$$(50,$over_shapes_stream$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($transform$jscomp$112$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($transform_ref$$,
$transform$jscomp$112$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($zoom$jscomp$124$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($zoom_ref$jscomp$2$$,$zoom$jscomp$124$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$13$$))],function(){$mod_str$$.next($cljs$cst$5663$update$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($mod_ref$$,$APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$13$$))});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$188$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($selected_ref$jscomp$1$$,$selected$jscomp$188$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($hover_disabled_QMARK_$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($hover_disabled_ref$$,$hover_disabled_QMARK_$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($focus$jscomp$19$$)],
function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($focus_ref$$,$focus$jscomp$19$$)});$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$03$$($over_shapes_stream_debounced$$,[$APP.$rumext$v2$adapt$$($objects$jscomp$790$$)],function(){return $APP.$cljs$core$reset_BANG_$$($hover_top_frame_id$jscomp$6$$,$APP.$app$common$types$shape_tree$top_nested_frame$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$790$$,$APP.$cljs$core$_deref$$($last_point_ref$$)))});var $sorted_ids_cache$$=(0,$APP.$rumext$v2$use_ref$$)($APP.$cljs$core$PersistentArrayMap$EMPTY$$);
$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$04$$($over_shapes_stream$$,[$APP.$rumext$v2$adapt$$($page_id$jscomp$417$$),$APP.$rumext$v2$adapt$$($objects$jscomp$790$$),$APP.$rumext$v2$adapt$$($show_measures_QMARK_$$)],function($ids$jscomp$304$$){function $no_fill_nested_frames_QMARK_$$($id$jscomp$993_shape$jscomp$1049$$){$id$jscomp$993_shape$jscomp$1049$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$id$jscomp$993_shape$jscomp$1049$$);return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$993_shape$jscomp$1049$$)&&
!$APP.$app$common$files$helpers$is_direct_child_of_root_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($id$jscomp$993_shape$jscomp$1049$$)&&$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$993_shape$jscomp$1049$$,$APP.$cljs$cst$1618$fills$$))}function $grouped_QMARK_$jscomp$3$$($id$jscomp$992$$){var $and__5023__auto__$jscomp$887$$=$APP.$app$common$files$helpers$group_like_shape_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,
$id$jscomp$992$$));return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$887$$)?!$APP.$app$common$files$helpers$mask_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$id$jscomp$992$$):$and__5023__auto__$jscomp$887$$}function $make_sorted_ids$$($mod_QMARK___$2$$,$ids__$1$jscomp$32$$){var $sorted_ids$jscomp$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$common$files$helpers$hidden_parent_QMARK_$$,
$objects$jscomp$790$$)),$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78735_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$p1__78735_SHARP_$$),$APP.$cljs$cst$1607$blocked$$)}),$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$files$helpers$svg_raw_shape_QMARK_$$,$objects$jscomp$790$$))),$APP.$app$common$types$shape_tree$sort_z_index$cljs$0core$0IFn$0_invoke$0arity$03$$($objects$jscomp$790$$,
$ids__$1$jscomp$32$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2069$bottom_frames_QMARK_$$,$mod_QMARK___$2$$],null)));$APP.$rumext$v2$set_ref_val_BANG_$$($sorted_ids_cache$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($cached_ids$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$mod_QMARK___$2$$,$ids__$1$jscomp$32$$],null),$sorted_ids$jscomp$1$$));return $sorted_ids$jscomp$1$$}var $measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$=
$APP.$rumext$v2$ref_val$$($selected_ref$jscomp$1$$),$focus__$1$jscomp$1$$=$APP.$rumext$v2$ref_val$$($focus_ref$$),$mod_QMARK___$1$$=$APP.$rumext$v2$ref_val$$($mod_ref$$),$cached_ids$$=$APP.$rumext$v2$ref_val$$($sorted_ids_cache$$),$ids__$1$jscomp$31$$=function(){var $or__5025__auto__$jscomp$1232$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cached_ids$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$mod_QMARK___$1$$,$ids$jscomp$304$$],null));
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1232$$)?$or__5025__auto__$jscomp$1232$$:$make_sorted_ids$$($mod_QMARK___$1$$,$ids$jscomp$304$$)}();$measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__78736_SHARP_$$){return $APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$790$$,
$p1__78736_SHARP_$$)}),$measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$);var $remove_hover_QMARK__remove_hover_xf$$=$APP.$cljs$core$truth_$$($mod_QMARK___$1$$)?$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($grouped_QMARK_$jscomp$3$$):$APP.$cljs$core$not$$($mod_QMARK___$1$$)?function(){var $child_parent_QMARK_$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78739_SHARP_$$){return $APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,
$p1__78739_SHARP_$$)}),$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__78740_SHARP_$$){return $APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$790$$,$p1__78740_SHARP_$$)})),$ids__$1$jscomp$31$$);return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$){var $JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$);if($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$)&&
$APP.$app$common$data$not_empty_QMARK_$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$))&&!$APP.$app$common$types$component$instance_head_QMARK_$$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$)&&
!$APP.$app$common$types$component$main_instance_QMARK_$$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$))return $JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$;$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=
$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$);$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=$APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$)?
!$APP.$cljs$core$contains_QMARK_$$($child_parent_QMARK_$$,$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$):$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$;if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$))return $JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$;
$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1");if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$)){if($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=
$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$)))$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=$APP.$cljs$core$_deref$$($last_point_ref$$),
$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$=$APP.$app$common$uuid$get_u32$$($JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$),$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$=(0,$APP.$app$render_wasm$wasm$internal_module$$._intersect_position_in_shape)($JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$[0],
$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$[1],$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$[2],$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$[3],$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$),
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$)),$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$=!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$,
1);$JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$=$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$}else $JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$=$JSCompiler_temp$jscomp$10531_and__5023__auto__$jscomp$888_and__5023__auto__$jscomp$inline_8951_obj$jscomp$inline_13080_or__5025__auto__$jscomp$1233_or__5025__auto____$1$jscomp$135_position$jscomp$inline_13083$$;
return $JSCompiler_temp$jscomp$10530_buffer$jscomp$inline_13084_p1__78741_SHARP__result$jscomp$inline_13085$$})}():null,$hover_shape$jscomp$3_remove_measure_xf$$=$APP.$cljs$core$truth_$$($mod_QMARK___$1$$)?$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($grouped_QMARK_$jscomp$3$$):$APP.$cljs$core$not$$($mod_QMARK___$1$$)?function(){var $child_parent_QMARK_$jscomp$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78743_SHARP_$$){return $APP.$app$common$files$helpers$group_like_shape_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,
$p1__78743_SHARP_$$))}),$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__78744_SHARP_$$){return $APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$790$$,$p1__78744_SHARP_$$)})),$ids__$1$jscomp$31$$);return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78745_SHARP_$$){var $and__5023__auto__$jscomp$890$$=$APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$p1__78745_SHARP_$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$890$$)?
!$APP.$cljs$core$contains_QMARK_$$($child_parent_QMARK_$jscomp$1$$,$p1__78745_SHARP_$$):$and__5023__auto__$jscomp$890$$})}():null;$remove_hover_QMARK__remove_hover_xf$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$,$remove_hover_QMARK__remove_hover_xf$$,$ids__$1$jscomp$31$$);$measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$,
$hover_shape$jscomp$3_remove_measure_xf$$,$ids__$1$jscomp$31$$);$hover_shape$jscomp$3_remove_measure_xf$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78747_SHARP_$$){var $or__5025__auto__$jscomp$1234$$=$APP.$cljs$core$empty_QMARK_$$($focus__$1$jscomp$1$$);return $or__5025__auto__$jscomp$1234$$?$or__5025__auto__$jscomp$1234$$:$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$contains_QMARK_$$,
$focus__$1$jscomp$1$$),$APP.$cljs$core$cons$$($p1__78747_SHARP_$$,$APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$790$$,$p1__78747_SHARP_$$)))},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78746_SHARP_$$){return $APP.$cljs$core$truth_$$($mod_QMARK___$1$$)?$no_fill_nested_frames_QMARK_$$($p1__78746_SHARP_$$):$mod_QMARK___$1$$},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($remove_hover_QMARK__remove_hover_xf$$,$ids__$1$jscomp$31$$)))));$measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$=
$APP.$cljs$core$truth_$$($show_measures_QMARK_$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$790$$,$APP.$cljs$core$first$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78749_SHARP_$$){var $or__5025__auto__$jscomp$1235$$=$APP.$cljs$core$empty_QMARK_$$($focus__$1$jscomp$1$$);return $or__5025__auto__$jscomp$1235$$?$or__5025__auto__$jscomp$1235$$:$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$contains_QMARK_$$,
$focus__$1$jscomp$1$$),$APP.$cljs$core$cons$$($p1__78749_SHARP_$$,$APP.$app$common$files$helpers$get_parent_ids$$($objects$jscomp$790$$,$p1__78749_SHARP_$$)))},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78748_SHARP_$$){return $APP.$cljs$core$truth_$$($mod_QMARK___$1$$)?$no_fill_nested_frames_QMARK_$$($p1__78748_SHARP_$$):$mod_QMARK___$1$$},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$,
$ids__$1$jscomp$31$$))))):null;$APP.$cljs$core$reset_BANG_$$($hover$jscomp$9$$,$hover_shape$jscomp$3_remove_measure_xf$$);$APP.$cljs$core$reset_BANG_$$($measure_hover$$,$measure_hover_shape_remove_measure_QMARK__selected__$1$jscomp$20_selected_with_parents$$);return $APP.$cljs$core$reset_BANG_$$($hover_ids$jscomp$5$$,$ids__$1$jscomp$31$$)},function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($sorted_ids_cache$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)})};
$app$main$ui$workspace$viewport$hooks$setup_viewport_modifiers$$=function($modifiers$jscomp$131_modifiers__$1$jscomp$22$$,$objects$jscomp$791$$){var $root_frame_ids$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$791$$)],function(){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$app$common$types$shape_tree$get_root_shapes$$($objects$jscomp$791$$))});$modifiers$jscomp$131_modifiers__$1$jscomp$22$$=$APP.$cljs$core$select_keys$$($modifiers$jscomp$131_modifiers__$1$jscomp$22$$,
$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($root_frame_ids$$,$APP.$app$common$uuid$zero$$));$APP.$app$main$ui$workspace$shapes$frame$dynamic_modifiers$use_dynamic_modifiers$$($objects$jscomp$791$$,$APP.$app$util$globals$document$$,$modifiers$jscomp$131_modifiers__$1$jscomp$22$$)};
$app$main$ui$workspace$viewport$hooks$inside_vbox$$=function($vbox$jscomp$54$$,$frame$jscomp$89_objects$jscomp$792$$,$and__5023__auto__$jscomp$893_frame_id$jscomp$145$$){$frame$jscomp$89_objects$jscomp$792$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$89_objects$jscomp$792$$,$and__5023__auto__$jscomp$893_frame_id$jscomp$145$$);return($and__5023__auto__$jscomp$893_frame_id$jscomp$145$$=$frame$jscomp$89_objects$jscomp$792$$!=null)?$app$common$geom$shapes$intersect$overlaps_QMARK_$$($frame$jscomp$89_objects$jscomp$792$$,
$vbox$jscomp$54$$):$and__5023__auto__$jscomp$893_frame_id$jscomp$145$$};
$app$main$ui$workspace$viewport$hooks$setup_active_frames$$=function($objects$jscomp$793$$,$hover_ids$jscomp$6$$,$selected$jscomp$189$$,$active_frames$jscomp$2$$,$zoom$jscomp$125$$,$transform$jscomp$113$$,$vbox$jscomp$55$$){var $all_frames$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$793$$)],function(){return $app$common$types$shape_tree$get_root_frames_ids$$($objects$jscomp$793$$)}),$selected_frames$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$189$$)],
function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$189$$,$all_frames$jscomp$1$$)}),$xf_selected_frame$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$files$helpers$root_frame_QMARK_$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78772_SHARP_$$){return $APP.$app$common$files$helpers$get_shape_id_root_frame$$($objects$jscomp$793$$,$p1__78772_SHARP_$$)})),
$selected_shapes_frames$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$189$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$xf_selected_frame$$,$selected$jscomp$189$$)}),$active_selection$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$113$$,$APP.$cljs$cst$1782$move$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_frames$jscomp$1$$),
1)?$APP.$cljs$core$first$$($selected_frames$jscomp$1$$):null,$last_hover_ids$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$6$$))],function(){return $APP.$app$common$data$not_empty_QMARK_$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$6$$))?$APP.$cljs$core$reset_BANG_$$($last_hover_ids$$,$APP.$cljs$core$set$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$6$$))):
null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$793$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$6$$)),$APP.$rumext$v2$adapt$$($selected$jscomp$189$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$125$$),$APP.$rumext$v2$adapt$$($transform$jscomp$113$$),$APP.$rumext$v2$adapt$$($vbox$jscomp$55$$)],function(){var $hover_ids_QMARK_$$=$APP.$cljs$core$set$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78773_SHARP_$$){return $APP.$app$common$files$helpers$get_shape_id_root_frame$$($objects$jscomp$793$$,
$p1__78773_SHARP_$$)},$APP.$cljs$core$_deref$$($hover_ids$jscomp$6$$))),$new_active_frames_new_active_frames__$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($id$jscomp$994$$){return $zoom$jscomp$125$$>1.3||($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1782$move$$,$transform$jscomp$113$$)||$zoom$jscomp$125$$>=
.25)&&($APP.$cljs$core$contains_QMARK_$$($hover_ids_QMARK_$$,$id$jscomp$994$$)||$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$_deref$$($last_hover_ids$$),$id$jscomp$994$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$994$$,$active_selection$$)||$APP.$cljs$core$contains_QMARK_$$($selected_shapes_frames$$,$id$jscomp$994$$)}),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$hooks$inside_vbox$$,
$vbox$jscomp$55$$,$objects$jscomp$793$$))),$all_frames$jscomp$1$$);$new_active_frames_new_active_frames__$1$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2912$disable_frame_thumbnails$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$all_frames$jscomp$1$$):$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2925$force_frame_thumbnails$$)?$APP.$cljs$core$PersistentHashSet$EMPTY$$:$new_active_frames_new_active_frames__$1$$;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($active_frames$jscomp$2$$),
$new_active_frames_new_active_frames__$1$$)?$APP.$cljs$core$reset_BANG_$$($active_frames$jscomp$2$$,$new_active_frames_new_active_frames__$1$$):null})};
$app$main$ui$workspace$viewport$hooks$setup_shortcuts$$=function($path_editing_QMARK_$jscomp$2$$,$drawing_path_QMARK_$jscomp$5$$,$text_editing_QMARK_$jscomp$1$$,$grid_editing_QMARK_$jscomp$1$$){$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$5664$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_workspace$$,$APP.$app$main$data$workspace$shortcuts$shortcuts$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($path_editing_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($drawing_path_QMARK_$jscomp$5$$),
$APP.$rumext$v2$adapt$$($grid_editing_QMARK_$jscomp$1$$)],function(){return $APP.$cljs$core$truth_$$($grid_editing_QMARK_$jscomp$1$$)?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$push_shortcuts$$($cljs$cst$5665$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_grid$$,$app$main$data$workspace$grid_layout$shortcuts$shortcuts$$)),function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$pop_shortcuts$$($cljs$cst$5665$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_grid$$))}):
$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($drawing_path_QMARK_$jscomp$5$$)?$drawing_path_QMARK_$jscomp$5$$:$path_editing_QMARK_$jscomp$2$$)?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$push_shortcuts$$($cljs$cst$5666$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_path$$,$APP.$app$main$data$workspace$path$shortcuts$shortcuts$$)),function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$pop_shortcuts$$($cljs$cst$5666$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_path$$))}):
$APP.$cljs$core$truth_$$($text_editing_QMARK_$jscomp$1$$)?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$push_shortcuts$$($cljs$cst$5667$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_text$$,$APP.$app$main$data$workspace$text$shortcuts$shortcuts$$)),function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$shortcuts$pop_shortcuts$$($cljs$cst$5667$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_text$$))}):
null})};
$app$main$ui$workspace$viewport$outline$outline$$=function($props_78698_props__$1$jscomp$101_zoom$jscomp$126$$){var $outline_type_shape$jscomp$1050$$=$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$.shape,$modifier$jscomp$8_transform$jscomp$114$$=$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$.modifier;$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_78698_props__$1$jscomp$101_zoom$jscomp$126$$.zoom,1);var $shape__$1$jscomp$119$$=$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($outline_type_shape$jscomp$1050$$,
$APP.$cljs$cst$1794$modifiers$$.$cljs$core$IFn$_invoke$arity$1$($modifier$jscomp$8_transform$jscomp$114$$));$modifier$jscomp$8_transform$jscomp$114$$=$APP.$app$common$geom$shapes$transform_str$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$119$$);var $objects$jscomp$794$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$color$jscomp$189$$=$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1237$$=$APP.$app$common$types$container$in_any_component_QMARK_$$($objects$jscomp$794$$,
$shape__$1$jscomp$119$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1237$$)?$or__5025__auto__$jscomp$1237$$:$APP.$app$common$types$component$is_variant_container_QMARK_$$($shape__$1$jscomp$119$$)}())?"var(--assets-component-hightlight)":"var(--color-accent-tertiary)",$x$jscomp$1279$$=$shape__$1$jscomp$119$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$503$$=$shape__$1$jscomp$119$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,
$APP.$cljs$cst$1500$y$$),$width$jscomp$235$$=$shape__$1$jscomp$119$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$288$width$$),$height$jscomp$202$$=$shape__$1$jscomp$119$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$1511$height$$),$selrect$jscomp$83$$=$shape__$1$jscomp$119$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$1589$selrect$$),
$type$jscomp$684$$=$shape__$1$jscomp$119$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$139$type$$),$content$jscomp$256$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$119$$,$APP.$cljs$cst$1621$content$$),$path_QMARK_$jscomp$7$$=$APP.$app$common$files$helpers$path_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$119$$),$path_data$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($path_QMARK_$jscomp$7$$),
$APP.$rumext$v2$adapt$$($content$jscomp$256$$)],function(){return $path_QMARK_$jscomp$7$$&&$content$jscomp$256$$!=null?$content$jscomp$256$$.toString():null}),$border_attrs$$=$APP.$app$main$ui$shapes$attrs$get_border_props$$($shape__$1$jscomp$119$$);$outline_type_shape$jscomp$1050$$=function(){switch($type$jscomp$684$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$684$$.$fqn$:null){case "circle":return"ellipse";case "path":return"path";default:return $APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($border_attrs$$,
"d")!=null?"path":"rect"}}();$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({fill:"none",stroke:$color$jscomp$189$$,strokeWidth:1/$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$,pointerEvents:"none",transform:$modifier$jscomp$8_transform$jscomp$114$$},function(){switch($type$jscomp$684$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$684$$.$fqn$:null){case "circle":return{cx:$x$jscomp$1279$$+$width$jscomp$235$$/2,cy:$y$jscomp$503$$+
$height$jscomp$202$$/2,rx:$width$jscomp$235$$/2,ry:$height$jscomp$202$$/2};case "path":return{d:$path_data$$,transform:null};default:var $x__$1$jscomp$30$$=$selrect$jscomp$83$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$83$$,$APP.$cljs$cst$1499$x$$),$y__$1$jscomp$2$$=$selrect$jscomp$83$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$83$$,$APP.$cljs$cst$1500$y$$),$w$jscomp$45$$=$selrect$jscomp$83$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$83$$,
$APP.$cljs$cst$288$width$$),$h$jscomp$185$$=$selrect$jscomp$83$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($selrect$jscomp$83$$,$APP.$cljs$cst$1511$height$$);return{x:$x__$1$jscomp$30$$,y:$y__$1$jscomp$2$$,width:$w$jscomp$45$$,height:$h$jscomp$185$$,rx:$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($border_attrs$$,"rx"),ry:$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($border_attrs$$,"ry"),d:$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($border_attrs$$,
"d")}}}());return(0,$APP.$rumext$v2$create_element$$)($outline_type_shape$jscomp$1050$$,$props_78698_props__$1$jscomp$101_zoom$jscomp$126$$)};
$app$main$ui$workspace$viewport$outline$shape_outlines$$=function($props_78707$$){function $edition_QMARK_$jscomp$2$$($o$jscomp$277$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$14$$,$o$jscomp$277$$)}var $selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$=function(){var $or__5025__auto__$jscomp$1238$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,"selected");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1238$$)?
$or__5025__auto__$jscomp$1238$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$}(),$hover$jscomp$10$$=function(){var $or__5025__auto__$jscomp$1239$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,"hover");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1239$$)?$or__5025__auto__$jscomp$1239$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$}(),$highlighted$jscomp$3$$=function(){var $or__5025__auto__$jscomp$1240$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,
"highlighted");return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1240$$)?$or__5025__auto__$jscomp$1240$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$}(),$edition$jscomp$14$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,"edition"),$zoom$jscomp$128$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,"zoom"),$modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,
"modifiers"),$lookup$jscomp$20$$=$APP.$app$common$data$getf$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78707$$,"objects"));$selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($edition_QMARK_$jscomp$2$$),
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($lookup$jscomp$20$$)),$APP.$clojure$set$union$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$,$hover$jscomp$10$$)),$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$1$($edition_QMARK_$jscomp$2$$),$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($lookup$jscomp$20$$)),$highlighted$jscomp$3$$);$modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$=
$APP.$cljs$core$select_keys$$($modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$));$modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$=$APP.$app$main$ui$hooks$use_equal_memo$$($modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$);$selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$=$APP.$app$main$ui$hooks$use_equal_memo$$($selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$);
return(0,$APP.$rumext$v2$jsx$$)("g",{className:"outlines blurrable",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines_render$$,{shapes:$selected$jscomp$190_shapes$jscomp$225_shapes__$1$jscomp$32$$,zoom:$zoom$jscomp$128$$,modifiers:$modifiers$jscomp$133_modifiers__$1$jscomp$23_modifiers__$2$jscomp$9$$})})};
$app$main$ui$workspace$viewport$interactions$on_pointer_down$$=function($event$jscomp$636$$,$index$jscomp$568$$,$id$jscomp$995_map__78712__$1_p__78711$$){$id$jscomp$995_map__78712__$1_p__78711$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$995_map__78712__$1_p__78711$$);$id$jscomp$995_map__78712__$1_p__78711$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$995_map__78712__$1_p__78711$$,$APP.$cljs$cst$266$id$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$636$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$select_shape$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$995_map__78712__$1_p__78711$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$start_edit_interaction$$($index$jscomp$568$$))};
$app$main$ui$workspace$viewport$interactions$connect_to_shape$$=function($orig_rect_orig_shape$jscomp$1_orig_y$$,$dest_shape$jscomp$7_orig_pos$jscomp$4$$){$orig_rect_orig_shape$jscomp$1_orig_y$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$);var $dest_rect_dest_y$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$7_orig_pos$jscomp$4$$),$orig_x_orig_x_left$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$),
$orig_x_right$$=$orig_x_orig_x_left$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$),$dest_pos_orig_x_center$$=$orig_x_orig_x_left$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$)/2,$dest_x_dest_x_left$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($dest_rect_dest_y$$),$dest_x_right$$=$dest_x_dest_x_left$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($dest_rect_dest_y$$),
$dest_x_center$$=$dest_x_dest_x_left$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($dest_rect_dest_y$$)/2;$dest_shape$jscomp$7_orig_pos$jscomp$4$$=$orig_x_right$$<=$dest_x_dest_x_left$$?$APP.$cljs$cst$258$right$$:$orig_x_orig_x_left$$>=$dest_x_right$$?$APP.$cljs$cst$257$left$$:$dest_pos_orig_x_center$$<=$dest_x_center$$?$APP.$cljs$cst$257$left$$:$APP.$cljs$cst$258$right$$;$dest_pos_orig_x_center$$=$orig_x_right$$<=$dest_x_dest_x_left$$?$APP.$cljs$cst$257$left$$:$orig_x_orig_x_left$$>=
$dest_x_right$$?$APP.$cljs$cst$258$right$$:$dest_pos_orig_x_center$$<=$dest_x_center$$?$APP.$cljs$cst$257$left$$:$APP.$cljs$cst$258$right$$;$orig_x_orig_x_left$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dest_shape$jscomp$7_orig_pos$jscomp$4$$,$APP.$cljs$cst$258$right$$)?$orig_x_right$$:$orig_x_orig_x_left$$;$dest_x_dest_x_left$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($dest_pos_orig_x_center$$,$APP.$cljs$cst$258$right$$)?$dest_x_right$$:$dest_x_dest_x_left$$;$orig_rect_orig_shape$jscomp$1_orig_y$$=
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect_orig_shape$jscomp$1_orig_y$$)/2;$dest_rect_dest_y$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($dest_rect_dest_y$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($dest_rect_dest_y$$)/2;return new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$dest_shape$jscomp$7_orig_pos$jscomp$4$$,
$orig_x_orig_x_left$$,$orig_rect_orig_shape$jscomp$1_orig_y$$,$dest_pos_orig_x_center$$,$dest_x_dest_x_left$$,$dest_rect_dest_y$$],null)};
$app$main$ui$workspace$viewport$interactions$connect_to_point$$=function($dest_x$jscomp$1_orig_shape$jscomp$2$$,$dest_point_dest_y$jscomp$1$$){var $orig_rect$jscomp$1_orig_y$jscomp$1$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($dest_x$jscomp$1_orig_shape$jscomp$2$$),$orig_x$jscomp$1_orig_x_left$jscomp$1$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect$jscomp$1_orig_y$jscomp$1$$),$orig_x_right$jscomp$1$$=$orig_x$jscomp$1_orig_x_left$jscomp$1$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect$jscomp$1_orig_y$jscomp$1$$),
$dest_pos$jscomp$1_orig_x_center$jscomp$1$$=$orig_x$jscomp$1_orig_x_left$jscomp$1$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect$jscomp$1_orig_y$jscomp$1$$)/2;$dest_x$jscomp$1_orig_shape$jscomp$2$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($dest_point_dest_y$jscomp$1$$);$dest_point_dest_y$jscomp$1$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($dest_point_dest_y$jscomp$1$$);var $orig_pos$jscomp$5$$=$orig_x_right$jscomp$1$$<=$dest_x$jscomp$1_orig_shape$jscomp$2$$?
$APP.$cljs$cst$258$right$$:$orig_x$jscomp$1_orig_x_left$jscomp$1$$>=$dest_x$jscomp$1_orig_shape$jscomp$2$$?$APP.$cljs$cst$257$left$$:$dest_pos$jscomp$1_orig_x_center$jscomp$1$$<=$dest_x$jscomp$1_orig_shape$jscomp$2$$?$APP.$cljs$cst$258$right$$:$APP.$cljs$cst$257$left$$;$dest_pos$jscomp$1_orig_x_center$jscomp$1$$=$orig_x_right$jscomp$1$$<=$dest_x$jscomp$1_orig_shape$jscomp$2$$?$APP.$cljs$cst$257$left$$:$orig_x$jscomp$1_orig_x_left$jscomp$1$$>=$dest_x$jscomp$1_orig_shape$jscomp$2$$?$APP.$cljs$cst$258$right$$:
$dest_pos$jscomp$1_orig_x_center$jscomp$1$$<=$dest_x$jscomp$1_orig_shape$jscomp$2$$?$APP.$cljs$cst$258$right$$:$APP.$cljs$cst$257$left$$;$orig_x$jscomp$1_orig_x_left$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($orig_pos$jscomp$5$$,$APP.$cljs$cst$258$right$$)?$orig_x_right$jscomp$1$$:$orig_x$jscomp$1_orig_x_left$jscomp$1$$;$orig_rect$jscomp$1_orig_y$jscomp$1$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect$jscomp$1_orig_y$jscomp$1$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($orig_rect$jscomp$1_orig_y$jscomp$1$$)/
2;return new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$orig_pos$jscomp$5$$,$orig_x$jscomp$1_orig_x_left$jscomp$1$$,$orig_rect$jscomp$1_orig_y$jscomp$1$$,$dest_pos$jscomp$1_orig_x_center$jscomp$1$$,$dest_x$jscomp$1_orig_shape$jscomp$2$$,$dest_point_dest_y$jscomp$1$$],null)};
$app$main$ui$workspace$viewport$interactions$interaction_marker$$=function($map__78714_props_78713_x$jscomp$1280$$){$map__78714_props_78713_x$jscomp$1280$$=$APP.$rumext$v2$util$wrap_props$$($map__78714_props_78713_x$jscomp$1280$$);var $map__78714__$1_zoom$jscomp$129$$=$APP.$cljs$core$__destructure_map$$($map__78714_props_78713_x$jscomp$1280$$);$map__78714_props_78713_x$jscomp$1280$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$504$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$APP.$cljs$cst$1500$y$$),$stroke$jscomp$33$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$APP.$cljs$cst$2862$stroke$$),$action_type$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$APP.$cljs$cst$1951$action_type$$),$arrow_dir$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$cljs$cst$5668$arrow_dir$$);
$map__78714__$1_zoom$jscomp$129$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78714__$1_zoom$jscomp$129$$,$APP.$cljs$cst$2158$zoom$$);var $icon_pdata$$=function(){switch($action_type$jscomp$3$$ instanceof $APP.$cljs$core$Keyword$$?$action_type$jscomp$3$$.$fqn$:null){case "navigate":switch($arrow_dir$$ instanceof $APP.$cljs$core$Keyword$$?$arrow_dir$$.$fqn$:null){case "right":return"M -6.5 0 L 5.5 0 M 6.715 0.715 L -0.5 -6.5 M 6.715 -0.715 L -0.365 6.635";case "left":return"M 6.5 0 l -12 0 m -0.715 0.715 l 6.5 -6.9 m -6 6 l 6 6.35";
default:return null}case "open-overlay":return"M-5 -5 h7 v7 h-7 z M2 -2 h3.5 v7 h-7 v-2.5";case "toggle-overlay":return"M-5 -5 h7 v7 h-7 z M2 -2 h3.5 v7 h-7 v-2.5";case "close-overlay":return"M -5 -5 L 5 5 M -5 5 L 5 -5";case "prev-screen":switch($arrow_dir$$ instanceof $APP.$cljs$core$Keyword$$?$arrow_dir$$.$fqn$:null){case "left":return"M -6.5 0 l 12 0 l -6 -6 m 6 6 l -6 6";case "right":return"M 6.5 0 l -12 0 l 6 -6 m -6 6 l 6 6";default:return null}case "open-url":return"M1 -5 L 3 -7 L 7 -3 L 1 3 L -1 1M-1 5 L -3 7 L -7 3 L -1 -3 L 1 -1";
default:return null}}(),$inv_zoom$jscomp$1$$=1/$map__78714__$1_zoom$jscomp$129$$;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("circle",{cx:0,cy:0,r:$action_type$jscomp$3$$!=null?11:4,fill:$stroke$jscomp$33$$,transform:["scale(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($inv_zoom$jscomp$1$$),", ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($inv_zoom$jscomp$1$$),") translate(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78714__$1_zoom$jscomp$129$$*
$map__78714_props_78713_x$jscomp$1280$$),", ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78714__$1_zoom$jscomp$129$$*$y$jscomp$504$$),")"].join("")}),$APP.$cljs$core$truth_$$($icon_pdata$$)?(0,$APP.$rumext$v2$jsx$$)("path",{fill:$stroke$jscomp$33$$,strokeWidth:2,stroke:"var(--app-white)",d:$icon_pdata$$,transform:["scale(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($inv_zoom$jscomp$1$$),", ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($inv_zoom$jscomp$1$$),") translate(",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78714__$1_zoom$jscomp$129$$*$map__78714_props_78713_x$jscomp$1280$$),", ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78714__$1_zoom$jscomp$129$$*$y$jscomp$504$$),")"].join("")}):null]})};
$app$main$ui$workspace$viewport$interactions$interaction_path$$=function($dest_shape$jscomp$8_map__78722_props_78720$$){$dest_shape$jscomp$8_map__78722_props_78720$$=$APP.$rumext$v2$util$wrap_props$$($dest_shape$jscomp$8_map__78722_props_78720$$);var $map__78722__$1_zoom$jscomp$130$$=$APP.$cljs$core$__destructure_map$$($dest_shape$jscomp$8_map__78722_props_78720$$),$index$jscomp$569$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$1779$index$$),
$level$jscomp$63_orig_x$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$282$level$$),$orig_shape$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$cljs$cst$5669$orig_shape$$);$dest_shape$jscomp$8_map__78722_props_78720$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$cljs$cst$5670$dest_shape$$);var $dest_point$jscomp$1_orig_y$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,
$cljs$cst$5671$dest_point$$),$selected_QMARK_$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$5510$selected_QMARK_$$),$action_type$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$1951$action_type$$);$map__78722__$1_zoom$jscomp$130$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$2158$zoom$$);var $dest_y$jscomp$2_vec__78723$$=
$APP.$cljs$core$truth_$$($dest_shape$jscomp$8_map__78722_props_78720$$)?$app$main$ui$workspace$viewport$interactions$connect_to_shape$$($orig_shape$jscomp$3$$,$dest_shape$jscomp$8_map__78722_props_78720$$):$APP.$cljs$core$truth_$$($dest_point$jscomp$1_orig_y$jscomp$2$$)?$app$main$ui$workspace$viewport$interactions$connect_to_point$$($orig_shape$jscomp$3$$,$dest_point$jscomp$1_orig_y$jscomp$2$$):$app$main$ui$workspace$viewport$interactions$connect_to_point$$($orig_shape$jscomp$3$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($orig_shape$jscomp$3$$))+100/$map__78722__$1_zoom$jscomp$130$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($orig_shape$jscomp$3$$))-50/$map__78722__$1_zoom$jscomp$130$$+$level$jscomp$63_orig_x$jscomp$2$$*32/$map__78722__$1_zoom$jscomp$130$$],null)),$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,0,null);$level$jscomp$63_orig_x$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,1,null);$dest_point$jscomp$1_orig_y$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,2,null);var $arrow_dir$jscomp$1_dest_pos$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,3,null),$dest_x$jscomp$2$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,4,null);$dest_y$jscomp$2_vec__78723$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dest_y$jscomp$2_vec__78723$$,5,null);$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$=($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$,$APP.$cljs$cst$258$right$$)?100:-100)/$map__78722__$1_zoom$jscomp$130$$;var $dest_dx$$=($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($arrow_dir$jscomp$1_dest_pos$jscomp$2$$,
$APP.$cljs$cst$258$right$$)?100:-100)/$map__78722__$1_zoom$jscomp$130$$;$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$=$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" ",new $APP.$cljs$core$PersistentVector$$(null,10,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["M",$level$jscomp$63_orig_x$jscomp$2$$,$dest_point$jscomp$1_orig_y$jscomp$2$$,"C",$level$jscomp$63_orig_x$jscomp$2$$+$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$,$dest_point$jscomp$1_orig_y$jscomp$2$$,$dest_x$jscomp$2$$+$dest_dx$$,
$dest_y$jscomp$2_vec__78723$$,$dest_x$jscomp$2$$,$dest_y$jscomp$2_vec__78723$$],null));$arrow_dir$jscomp$1_dest_pos$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($arrow_dir$jscomp$1_dest_pos$jscomp$2$$,$APP.$cljs$cst$257$left$$)?$APP.$cljs$cst$258$right$$:$APP.$cljs$cst$257$left$$;return $APP.$cljs$core$not$$($selected_QMARK_$jscomp$29$$)?(0,$APP.$rumext$v2$jsxs$$)("g",{onPointerDown:function($p1__78718_SHARP_$$){return $app$main$ui$workspace$viewport$interactions$on_pointer_down$$($p1__78718_SHARP_$$,
$index$jscomp$569$$,$orig_shape$jscomp$3$$)},children:[(0,$APP.$rumext$v2$jsx$$)("path",{stroke:"var(--df-secondary)",fill:"none",pointerEvents:"visible",strokeWidth:2/$map__78722__$1_zoom$jscomp$130$$,d:$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$}),$APP.$cljs$core$not$$($dest_shape$jscomp$8_map__78722_props_78720$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_marker$$,{index:$index$jscomp$569$$,x:$dest_x$jscomp$2$$,y:$dest_y$jscomp$2_vec__78723$$,stroke:"var(--df-secondary)",
"action-type":$action_type$jscomp$4$$,"arrow-dir":$arrow_dir$jscomp$1_dest_pos$jscomp$2$$,zoom:$map__78722__$1_zoom$jscomp$130$$}):null]}):(0,$APP.$rumext$v2$jsxs$$)("g",{onPointerDown:function($p1__78719_SHARP_$$){return $app$main$ui$workspace$viewport$interactions$on_pointer_down$$($p1__78719_SHARP_$$,$index$jscomp$569$$,$orig_shape$jscomp$3$$)},children:[(0,$APP.$rumext$v2$jsx$$)("path",{stroke:"var(--color-accent-tertiary)",fill:"none",pointerEvents:"visible",strokeWidth:2/$map__78722__$1_zoom$jscomp$130$$,
d:$orig_dx_orig_pos$jscomp$6_pdata$jscomp$13$$}),$APP.$cljs$core$truth_$$($dest_shape$jscomp$8_map__78722_props_78720$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$outline$$,{zoom:$map__78722__$1_zoom$jscomp$130$$,shape:$dest_shape$jscomp$8_map__78722_props_78720$$,color:"var(--color-accent-tertiary)"}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_marker$$,{index:$index$jscomp$569$$,x:$level$jscomp$63_orig_x$jscomp$2$$,y:$dest_point$jscomp$1_orig_y$jscomp$2$$,
stroke:"var(--color-accent-tertiary)",zoom:$map__78722__$1_zoom$jscomp$130$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_marker$$,{index:$index$jscomp$569$$,x:$dest_x$jscomp$2$$,y:$dest_y$jscomp$2_vec__78723$$,stroke:"var(--color-accent-tertiary)","action-type":$action_type$jscomp$4$$,"arrow-dir":$arrow_dir$jscomp$1_dest_pos$jscomp$2$$,zoom:$map__78722__$1_zoom$jscomp$130$$})]})};
$app$main$ui$workspace$viewport$interactions$interaction_handle$$=function($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$){$map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$=$APP.$rumext$v2$util$wrap_props$$($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$);$map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$=$APP.$cljs$core$__destructure_map$$($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$);var $index$jscomp$570$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$,
$APP.$cljs$cst$1779$index$$),$shape$jscomp$1053$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$,$APP.$cljs$cst$1795$shape$$);$map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$,$APP.$cljs$cst$2158$zoom$$);var $handle_y_shape_rect$jscomp$1$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1053$$),
$handle_x$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($handle_y_shape_rect$jscomp$1$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($handle_y_shape_rect$jscomp$1$$);$handle_y_shape_rect$jscomp$1$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($handle_y_shape_rect$jscomp$1$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($handle_y_shape_rect$jscomp$1$$)/2;return(0,$APP.$rumext$v2$jsx$$)("g",{onPointerDown:function($p1__78726_SHARP_$$){return $app$main$ui$workspace$viewport$interactions$on_pointer_down$$($p1__78726_SHARP_$$,
$index$jscomp$570$$,$shape$jscomp$1053$$)},children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_marker$$,{x:$handle_x$$,y:$handle_y_shape_rect$jscomp$1$$,stroke:"var(--color-accent-tertiary)","action-type":$APP.$cljs$cst$1926$navigate$$,"arrow-dir":$APP.$cljs$cst$258$right$$,zoom:$map__78728_map__78728__$1_props_78727_zoom$jscomp$131$$})})};
$app$main$ui$workspace$viewport$interactions$overlay_marker$$=function($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$){function $start_move_position$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$interactions$start_move_overlay_pos$$($index$jscomp$571$$))}$dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$=$APP.$rumext$v2$util$wrap_props$$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$);var $map__78730__$1_marker_x$$=
$APP.$cljs$core$__destructure_map$$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$),$page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$APP.$cljs$cst$2028$page_id$$),$index$jscomp$571$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$APP.$cljs$cst$1779$index$$),$orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,
$cljs$cst$5669$orig_shape$$);$dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$cljs$cst$5670$dest_shape$$);var $marker_y_position$jscomp$223$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$APP.$cljs$cst$1660$position$$),$objects$jscomp$796$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$APP.$cljs$cst$1615$objects$$),$hover_disabled_QMARK_$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$,$cljs$cst$5672$hover_disabled_QMARK_$$);if($APP.$cljs$core$truth_$$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$)){$orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$=$APP.$app$common$files$helpers$get_frame$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$796$$,$orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$);$map__78730__$1_marker_x$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$)+
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($marker_y_position$jscomp$223$$);$marker_y_position$jscomp$223$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$)+$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($marker_y_position$jscomp$223$$);$orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$);
var $height$jscomp$203$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$),$dest_x$jscomp$3$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$),$dest_y$jscomp$3$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$),$shape_wrapper$jscomp$20$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$796$$)],
function(){return $APP.$app$main$render$shape_wrapper_factory$$($objects$jscomp$796$$)}),$dest_shape_id$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$);$page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$),$APP.$rumext$v2$adapt$$($dest_shape_id$$)],function(){return $APP.$app$main$refs$workspace_thumbnail_by_id$$($dest_shape_id$$)});
$page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$=$APP.$rumext$v2$deref$$($page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$);$dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$=$page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$,$APP.$cljs$cst$4909$thumbnail$$,$page_id$jscomp$418_thumbnail_data_thumbnail_data_ref$$):$dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$;
return(0,$APP.$rumext$v2$jsxs$$)("g",{onPointerDown:$start_move_position$$,onPointerEnter:function(){return $APP.$cljs$core$reset_BANG_$$($hover_disabled_QMARK_$jscomp$1$$,!0)},onPointerLeave:function(){return $APP.$cljs$core$reset_BANG_$$($hover_disabled_QMARK_$jscomp$1$$,!1)},children:[(0,$APP.$rumext$v2$jsx$$)("g",{transform:$APP.$app$common$geom$matrix$translate_matrix$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($map__78730__$1_marker_x$$-
$dest_x$jscomp$3$$,$marker_y_position$jscomp$223$$-$dest_y$jscomp$3$$)),children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$render_thumbnails$$),{value:!0,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$shapes$embed$context$$),{value:!1,children:(0,$APP.$rumext$v2$jsx$$)($shape_wrapper$jscomp$20$$,{shape:$dest_shape$jscomp$9_dest_shape__$1_map__78730_props_78729$$})})})}),(0,$APP.$rumext$v2$jsx$$)("path",{stroke:"var(--color-accent-tertiary)",
fill:"var(--app-black)",fillOpacity:.5,strokeWidth:1,d:"M"+($map__78730__$1_marker_x$$??"")+" "+($marker_y_position$jscomp$223$$??"")+" h "+($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$??"")+" v "+($height$jscomp$203$$??"")+" h -"+($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$??"")+" zM"+($map__78730__$1_marker_x$$??"")+" "+($marker_y_position$jscomp$223$$??"")+" l "+($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$??"")+" "+($height$jscomp$203$$??"")+" M"+
($map__78730__$1_marker_x$$??"")+" "+($marker_y_position$jscomp$223$$+$height$jscomp$203$$??"")+" l "+($orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$??"")+" -"+($height$jscomp$203$$??"")+" "}),(0,$APP.$rumext$v2$jsx$$)("circle",{cx:$map__78730__$1_marker_x$$+$orig_frame$jscomp$2_orig_shape$jscomp$4_width$jscomp$236$$/2,cy:$marker_y_position$jscomp$223$$+$height$jscomp$203$$/2,r:8,fill:"var(--color-accent-tertiary)"})]})}return null};
$app$main$ui$workspace$viewport$interactions$interactions$$=function($active_shapes_map__78754_map__78754__$1_props_78750$$){function $calc_level$$($index$jscomp$572$$,$interactions__$1$jscomp$4$$){return $APP.$cljs$core$count$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78742_SHARP_$$){return $APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($p1__78742_SHARP_$$)==null},$APP.$cljs$core$subvec$cljs$0core$0IFn$0_invoke$0arity$03$$($interactions__$1$jscomp$4$$,
0,$index$jscomp$572$$)))}$active_shapes_map__78754_map__78754__$1_props_78750$$=$APP.$rumext$v2$util$wrap_props$$($active_shapes_map__78754_map__78754__$1_props_78750$$);$active_shapes_map__78754_map__78754__$1_props_78750$$=$APP.$cljs$core$__destructure_map$$($active_shapes_map__78754_map__78754__$1_props_78750$$);var $current_transform$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,$cljs$cst$5673$current_transform$$),$objects$jscomp$797$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,$APP.$cljs$cst$1615$objects$$),$zoom$jscomp$132$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,$APP.$cljs$cst$2158$zoom$$),$selected$jscomp$191$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,$APP.$cljs$cst$1906$selected$$),$hover_disabled_QMARK_$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,
$cljs$cst$5672$hover_disabled_QMARK_$$),$page_id$jscomp$419$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_shapes_map__78754_map__78754__$1_props_78750$$,$APP.$cljs$cst$2028$page_id$$);$active_shapes_map__78754_map__78754__$1_props_78750$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__78738_SHARP_$$){return $APP.$cljs$core$seq$$($APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($p1__78738_SHARP_$$))})),
$APP.$cljs$core$vals$$($objects$jscomp$797$$));var $selected_shapes$jscomp$34$$=$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.$app$common$data$getf$$($objects$jscomp$797$$)),$selected$jscomp$191$$),$draw_interaction_to_map__78755$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$viewport$interactions$interactions_ref$$),$first_selected$jscomp$2_map__78755__$1$$=$APP.$cljs$core$__destructure_map$$($draw_interaction_to_map__78755$$),
$editing_interaction_index$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_selected$jscomp$2_map__78755__$1$$,$APP.$cljs$cst$4189$editing_interaction_index$$);$draw_interaction_to_map__78755$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_selected$jscomp$2_map__78755__$1$$,$APP.$cljs$cst$4191$draw_interaction_to$$);var $draw_interaction_to_frame$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_selected$jscomp$2_map__78755__$1$$,$APP.$cljs$cst$4192$draw_interaction_to_frame$$),
$move_overlay_to$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_selected$jscomp$2_map__78755__$1$$,$APP.$cljs$cst$4195$move_overlay_to$$),$move_overlay_index$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($first_selected$jscomp$2_map__78755__$1$$,$APP.$cljs$cst$4196$move_overlay_index$$);$first_selected$jscomp$2_map__78755__$1$$=$APP.$cljs$core$first$$($selected_shapes$jscomp$34$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"interactions",children:[(0,$APP.$rumext$v2$jsx$$)("g",
{className:"non-selected",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$239$$,$shape$jscomp$1054$$){$out_arr__44057__auto__$jscomp$239$$.push($APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$23$$,$JSCompiler_temp_const$jscomp$1880_p__78757$$){var $JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1880_p__78757$$,
0,null),$interaction$jscomp$54$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1880_p__78757$$,1,null);$JSCompiler_temp_const$jscomp$1880_p__78757$$=$out_arr__44057__auto____$1$jscomp$23$$.push;var $dest_shape$jscomp$inline_8956$$=$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$destination_QMARK_$$($interaction$jscomp$54$$))?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$797$$,$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$54$$)):
null,$selected_QMARK_$jscomp$inline_8957$$=$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$191$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1054$$)),$level$jscomp$inline_8958$$=$calc_level$$($JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$,$APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1054$$));$JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$=$selected_QMARK_$jscomp$inline_8957$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_path$$,
{zoom:$zoom$jscomp$132$$,selected:$selected$jscomp$191$$,index:$JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$,"dest-shape":$dest_shape$jscomp$inline_8956$$,level:$level$jscomp$inline_8958$$,"orig-shape":$shape$jscomp$1054$$,"selected?":!1,"action-type":$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$54$$)},"non-selected-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1054$$)??"")+"-"+($JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$??
""));$JSCompiler_temp_const$jscomp$1880_p__78757$$.call($out_arr__44057__auto____$1$jscomp$23$$,$JSCompiler_inline_result$jscomp$1882_index$jscomp$573$$);return $out_arr__44057__auto____$1$jscomp$23$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1054$$))));return $out_arr__44057__auto__$jscomp$239$$},[],$active_shapes_map__78754_map__78754__$1_props_78750$$)}),(0,$APP.$rumext$v2$jsxs$$)("g",
{className:"selected",children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($draw_interaction_to_map__78755$$)?$first_selected$jscomp$2_map__78755__$1$$:$draw_interaction_to_map__78755$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_path$$,{index:null,"orig-shape":$first_selected$jscomp$2_map__78755__$1$$,"dest-point":$draw_interaction_to_map__78755$$,"dest-shape":$draw_interaction_to_frame$$,"selected?":!0,"action-type":$APP.$cljs$cst$1926$navigate$$,zoom:$zoom$jscomp$132$$},
"interactive"):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$240$$,$shape$jscomp$1055$$){$out_arr__44057__auto__$jscomp$240$$.push($APP.$cljs$core$seq$$($APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1055$$))?$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto____$1$jscomp$24$$,$JSCompiler_temp_const$jscomp$1883_p__78761$$){var $JSCompiler_temp$jscomp$1885_index$jscomp$574$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1883_p__78761$$,0,null),$interaction$jscomp$55$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1883_p__78761$$,1,null);$JSCompiler_temp_const$jscomp$1883_p__78761$$=$out_arr__44057__auto____$1$jscomp$24$$.push;if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1885_index$jscomp$574$$,$editing_interaction_index$$))$JSCompiler_temp$jscomp$1885_index$jscomp$574$$=
null;else{var $dest_shape$jscomp$inline_8960$$=$APP.$cljs$core$truth_$$($app$common$types$shape$interactions$destination_QMARK_$$($interaction$jscomp$55$$))?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$797$$,$APP.$cljs$cst$1952$destination$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$)):null,$level$jscomp$inline_8961$$=$calc_level$$($JSCompiler_temp$jscomp$1885_index$jscomp$574$$,$APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1055$$));
$JSCompiler_temp$jscomp$1885_index$jscomp$574$$=(0,$APP.$rumext$v2$jsxs$$)("g",{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_path$$,{index:$JSCompiler_temp$jscomp$1885_index$jscomp$574$$,level:$level$jscomp$inline_8961$$,"orig-shape":$shape$jscomp$1055$$,"dest-shape":$dest_shape$jscomp$inline_8960$$,selected:$selected$jscomp$191$$,"selected?":!0,"action-type":$APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$),
zoom:$zoom$jscomp$132$$}),($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$),$APP.$cljs$cst$1931$open_overlay$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1951$action_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$),$APP.$cljs$cst$1929$toggle_overlay$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1956$overlay_pos_type$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$),
$APP.$cljs$cst$1657$manual$$)?$move_overlay_to$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($move_overlay_index$$,$JSCompiler_temp$jscomp$1885_index$jscomp$574$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$overlay_marker$$,{"page-id":$page_id$jscomp$419$$,index:$JSCompiler_temp$jscomp$1885_index$jscomp$574$$,"orig-shape":$shape$jscomp$1055$$,"dest-shape":$dest_shape$jscomp$inline_8960$$,position:$move_overlay_to$$,objects:$objects$jscomp$797$$,"hover-disabled?":$hover_disabled_QMARK_$jscomp$2$$}):
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$overlay_marker$$,{"page-id":$page_id$jscomp$419$$,index:$JSCompiler_temp$jscomp$1885_index$jscomp$574$$,"orig-shape":$shape$jscomp$1055$$,"dest-shape":$dest_shape$jscomp$inline_8960$$,position:$APP.$cljs$cst$1955$overlay_position$$.$cljs$core$IFn$_invoke$arity$1$($interaction$jscomp$55$$),objects:$objects$jscomp$797$$,"hover-disabled?":$hover_disabled_QMARK_$jscomp$2$$}):null]},"interaction-path-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1055$$)??
"")+"-"+($JSCompiler_temp$jscomp$1885_index$jscomp$574$$??""))}$JSCompiler_temp_const$jscomp$1883_p__78761$$.call($out_arr__44057__auto____$1$jscomp$24$$,$JSCompiler_temp$jscomp$1885_index$jscomp$574$$);return $out_arr__44057__auto____$1$jscomp$24$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$2036$interactions$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1055$$))):$APP.$cljs$core$truth_$$(function(){var $JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$;
if($APP.$cljs$core$truth_$$($shape$jscomp$1055$$)){if($JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$=!$app$common$files$helpers$unframed_shape_QMARK_$$($shape$jscomp$1055$$))$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1782$move$$,
null,$APP.$cljs$cst$2822$rotate$$,null],null),null),$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$=$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$.$cljs$core$IFn$_invoke$arity$1$?$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$.$cljs$core$IFn$_invoke$arity$1$($current_transform$$):
$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$($current_transform$$),$JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$=$APP.$cljs$core$not$$($JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$)}else $JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$=
$shape$jscomp$1055$$;return $JSCompiler_inline_result$jscomp$1888_JSCompiler_temp$jscomp$1886_JSCompiler_temp$jscomp$1887_fexpr__78766$jscomp$inline_8963$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interaction_handle$$,{index:null,shape:$shape$jscomp$1055$$,selected:$selected$jscomp$191$$,zoom:$zoom$jscomp$132$$},$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1055$$)):null);return $out_arr__44057__auto__$jscomp$240$$},[],$selected_shapes$jscomp$34$$)]})]})};
$app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move$$=function($brx_map__78721_offset$jscomp$210_viewport_node$$,$canvas$jscomp$11$$,$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,$zoom_context_zoom_view_context$$,$client_x_x$jscomp$1281$$,$client_y_sy$jscomp$11_y$jscomp$505$$){$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$=$APP.$rumext$v2$ref_val$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$);
if($APP.$cljs$core$truth_$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$)){var $bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$=$APP.$goog$dom$getElement$$("picker-detail");if($APP.$cljs$core$truth_$$($bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$)){$APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($zoom_context_zoom_view_context$$))||$APP.$rumext$v2$set_ref_val_BANG_$$($zoom_context_zoom_view_context$$,$bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$.getContext("2d"));
$brx_map__78721_offset$jscomp$210_viewport_node$$=$APP.$app$util$dom$get_bounding_rect$$($brx_map__78721_offset$jscomp$210_viewport_node$$);$bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$=$APP.$cljs$core$__destructure_map$$($brx_map__78721_offset$jscomp$210_viewport_node$$);$brx_map__78721_offset$jscomp$210_viewport_node$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$,$APP.$cljs$cst$257$left$$);$bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$,$APP.$cljs$cst$1546$top$$);$client_x_x$jscomp$1281$$=$APP.$app$common$math$floor$$($client_x_x$jscomp$1281$$-$brx_map__78721_offset$jscomp$210_viewport_node$$);$client_y_sy$jscomp$11_y$jscomp$505$$=$APP.$app$common$math$floor$$($client_y_sy$jscomp$11_y$jscomp$505$$-$bry_map__78721__$1_temp__5825__auto____$1$jscomp$27$$);$zoom_context_zoom_view_context$$=$APP.$rumext$v2$ref_val$$($zoom_context_zoom_view_context$$);
$brx_map__78721_offset$jscomp$210_viewport_node$$=($client_y_sy$jscomp$11_y$jscomp$505$$*$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$.width+$client_x_x$jscomp$1281$$)*4;$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$=$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$.data;var $r$jscomp$149$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,
0+$brx_map__78721_offset$jscomp$210_viewport_node$$),$g$jscomp$170$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,1+$brx_map__78721_offset$jscomp$210_viewport_node$$),$b$jscomp$367$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,2+$brx_map__78721_offset$jscomp$210_viewport_node$$),$a$jscomp$427$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,
3+$brx_map__78721_offset$jscomp$210_viewport_node$$);$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$=$client_x_x$jscomp$1281$$-32;$client_y_sy$jscomp$11_y$jscomp$505$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1337$safari$$)?$client_y_sy$jscomp$11_y$jscomp$505$$:$client_y_sy$jscomp$11_y$jscomp$505$$-17;$APP.$cljs$core$truth_$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($zoom_context_zoom_view_context$$,"imageSmoothingEnabled"))&&$APP.$app$util$object$set_BANG_$$($zoom_context_zoom_view_context$$,
"imageSmoothingEnabled",!1);$zoom_context_zoom_view_context$$.clearRect(0,0,260,140);$zoom_context_zoom_view_context$$.drawImage($canvas$jscomp$11$$,$canvas_image_data_rgba$jscomp$7_sx$jscomp$12_temp__5825__auto__$jscomp$399$$,$client_y_sy$jscomp$11_y$jscomp$505$$,65,35,0,0,260,140);return requestAnimationFrame(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$pick_color$$(new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$r$jscomp$149$$,$g$jscomp$170$$,$b$jscomp$367$$,$a$jscomp$427$$],null)))})}}return null};
$app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay$$=function($handle_pointer_down_picker_props_78731$$){var $vport$jscomp$13$$=$handle_pointer_down_picker_props_78731$$.vport,$viewport_node$jscomp$1$$=$APP.$rumext$v2$ref_val$$($handle_pointer_down_picker_props_78731$$["viewport-ref"]),$canvas$jscomp$12$$=$app$main$ui$workspace$viewport$pixel_overlay$get_offscreen_canvas$$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$13$$),$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$13$$)),
$canvas_context$jscomp$1$$=$canvas$jscomp$12$$.getContext("2d",{willReadFrequently:!0}),$canvas_image_data$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$zoom_view_context$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$canvas_ready$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$initial_mouse_pos$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,0,$APP.$cljs$cst$1500$y$$,0],null)),$update_str$$=
$APP.$beicon$v2$core$subject$$(),$handle_keydown$jscomp$3$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$637$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$637$$))?($APP.$app$util$dom$stop_propagation$$($event$jscomp$637$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$637$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$stop_picker$$()),$APP.$app$main$data$modal$disallow_click_outside_BANG_$$()):
null});$handle_pointer_down_picker_props_78731$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$638$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$638$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$638$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($cljs$cst$5674$mouse_down_picker$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$pick_color_select$$($event$jscomp$638$$.shiftKey)]))});
var $handle_pointer_up_picker$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$639$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$639$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$639$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($cljs$cst$5674$mouse_down_picker$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$stop_picker$$()]));
return $APP.$app$main$data$modal$disallow_click_outside_BANG_$$()}),$handle_draw_picker_canvas$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $svg_node$jscomp$1$$=$APP.$goog$dom$getElement$$("render"),$fonts$jscomp$36$$=$app$main$fonts$get_node_fonts$$($svg_node$jscomp$1$$),$result$jscomp$362$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$3636$node$$,$svg_node$jscomp$1$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$13$$),
$APP.$cljs$cst$826$result$$,"image-bitmap"],null);return $APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($image_bitmap_image_data$jscomp$4$$){$canvas_context$jscomp$1$$.drawImage($image_bitmap_image_data$jscomp$4$$,0,0);$image_bitmap_image_data$jscomp$4$$=$canvas_context$jscomp$1$$.getImageData(0,0,$canvas$jscomp$12$$.width,$canvas$jscomp$12$$.height);$APP.$rumext$v2$set_ref_val_BANG_$$($canvas_image_data$jscomp$1$$,$image_bitmap_image_data$jscomp$4$$);return $APP.$cljs$core$reset_BANG_$$($canvas_ready$$,
!0)},$APP.$beicon$v2$core$mapcat$$($app$main$rasterizer$render_node$$,$APP.$beicon$v2$core$map$$(function($styles$jscomp$32$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($result$jscomp$362$$,$APP.$cljs$cst$2899$styles$$,$styles$jscomp$32$$)},$APP.$app$main$fonts$render_font_styles_cached$$($fonts$jscomp$36$$))))}),$handle_svg_change$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $update_str$$.next($cljs$cst$5663$update$$)}),$handle_mouse_enter$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$1$$)],function($event$jscomp$640$$){return $APP.$cljs$core$reset_BANG_$$($initial_mouse_pos$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,$event$jscomp$640$$.clientX,$APP.$cljs$cst$1500$y$$,$event$jscomp$640$$.clientY],null))}),$handle_pointer_move_picker$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$1$$)],
function($event$jscomp$641$$){return $app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move$$($viewport_node$jscomp$1$$,$canvas$jscomp$12$$,$canvas_image_data$jscomp$1$$,$zoom_view_context$jscomp$1$$,$event$jscomp$641$$.clientX,$event$jscomp$641$$.clientY)});$APP.$cljs$core$truth_$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_context$jscomp$1$$,"imageSmoothingEnabled"))&&$APP.$app$util$object$set_BANG_$$($canvas_context$jscomp$1$$,"imageSmoothingEnabled",!1);
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $listener$jscomp$110$$=$APP.$goog$events$listen$$($APP.$app$util$globals$document$$,"keydown",$handle_keydown$jscomp$3$$);return function(){return $APP.$goog$events$unlistenByKey$$($listener$jscomp$110$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $sub$jscomp$24$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_draw_picker_canvas$$,$APP.$beicon$v2$core$debounce$$(10,
$update_str$$));return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$24$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $svg_node$jscomp$2$$=$APP.$goog$dom$getElement$$("render"),$observer$jscomp$9$$=new MutationObserver($handle_svg_change$$);$observer$jscomp$9$$.observe($svg_node$jscomp$2$$,{attributes:!0,childList:!0,subtree:!0,characterData:!0});$handle_svg_change$$.$cljs$core$IFn$_invoke$arity$0$?$handle_svg_change$$.$cljs$core$IFn$_invoke$arity$0$():
$handle_svg_change$$();return function(){return $observer$jscomp$9$$.disconnect()}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$1$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($canvas_ready$$))],function(){if($APP.$cljs$core$truth_$$($canvas_ready$$)){var $map__78756_x$jscomp$1283$$=$APP.$cljs$core$_deref$$($initial_mouse_pos$$),$map__78756__$1_y$jscomp$507$$=$APP.$cljs$core$__destructure_map$$($map__78756_x$jscomp$1283$$);
$map__78756_x$jscomp$1283$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78756__$1_y$jscomp$507$$,$APP.$cljs$cst$1499$x$$);$map__78756__$1_y$jscomp$507$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78756__$1_y$jscomp$507$$,$APP.$cljs$cst$1500$y$$);return $app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move$$($viewport_node$jscomp$1$$,$canvas$jscomp$12$$,$canvas_image_data$jscomp$1$$,$zoom_view_context$jscomp$1$$,$map__78756_x$jscomp$1283$$,$map__78756__$1_y$jscomp$507$$)}return null});
return(0,$APP.$rumext$v2$jsx$$)("div",{id:"pixel-overlay",tabIndex:0,onPointerDown:$handle_pointer_down_picker_props_78731$$,onPointerUp:$handle_pointer_up_picker$$,onPointerMove:$handle_pointer_move_picker$$,onMouseEnter:$handle_mouse_enter$$,className:""+($APP.$app$main$ui$css_cursors$get_static$$("picker")??"")+" main_ui_workspace_viewport_pixel_overlay__pixel-overlay"})};
$app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move_wasm$$=function($brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$,$canvas$jscomp$13$$,$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,$zoom_context$jscomp$1_zoom_view_context$jscomp$2$$,$canvas_x_client_x$jscomp$1$$,$canvas_y_client_y$jscomp$1_sy$jscomp$12$$){$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$=$APP.$rumext$v2$ref_val$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$);
if($APP.$cljs$core$truth_$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$)){var $bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$=$APP.$goog$dom$getElement$$("picker-detail");if($APP.$cljs$core$truth_$$($bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$)){$APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($zoom_context$jscomp$1_zoom_view_context$jscomp$2$$))||$APP.$rumext$v2$set_ref_val_BANG_$$($zoom_context$jscomp$1_zoom_view_context$jscomp$2$$,
$bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$.getContext("2d"));$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$=$APP.$app$util$dom$get_bounding_rect$$($brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$);$bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$=$APP.$cljs$core$__destructure_map$$($brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$);$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$,
$APP.$cljs$cst$257$left$$);$bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$,$APP.$cljs$cst$1546$top$$);$canvas_x_client_x$jscomp$1$$=$APP.$app$common$math$floor$$($canvas_x_client_x$jscomp$1$$-$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$)*$APP.$app$render_wasm$api$dpr$$;$canvas_y_client_y$jscomp$1_sy$jscomp$12$$=$APP.$app$common$math$floor$$($canvas_y_client_y$jscomp$1_sy$jscomp$12$$-
$bry$jscomp$1_map__78765__$1_temp__5825__auto____$1$jscomp$28$$)*$APP.$app$render_wasm$api$dpr$$;$zoom_context$jscomp$1_zoom_view_context$jscomp$2$$=$APP.$rumext$v2$ref_val$$($zoom_context$jscomp$1_zoom_view_context$jscomp$2$$);$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$=(($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$.height-$canvas_y_client_y$jscomp$1_sy$jscomp$12$$)*$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$.width+
$canvas_x_client_x$jscomp$1$$)*4;$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$=$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$.data;var $r$jscomp$150$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,0+$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$),$g$jscomp$171$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,
1+$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$),$b$jscomp$368$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,2+$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$),$a$jscomp$428$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,3+$brx$jscomp$1_map__78765_offset$jscomp$211_viewport_node$jscomp$2$$);
$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$=$canvas_x_client_x$jscomp$1$$-32;$canvas_y_client_y$jscomp$1_sy$jscomp$12$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1337$safari$$)?$canvas_y_client_y$jscomp$1_sy$jscomp$12$$:$canvas_y_client_y$jscomp$1_sy$jscomp$12$$-17;$APP.$cljs$core$truth_$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($zoom_context$jscomp$1_zoom_view_context$jscomp$2$$,"imageSmoothingEnabled"))&&$APP.$app$util$object$set_BANG_$$($zoom_context$jscomp$1_zoom_view_context$jscomp$2$$,
"imageSmoothingEnabled",!1);$zoom_context$jscomp$1_zoom_view_context$jscomp$2$$.clearRect(0,0,260,140);$zoom_context$jscomp$1_zoom_view_context$jscomp$2$$.drawImage($canvas$jscomp$13$$,$canvas_image_data$jscomp$2_rgba$jscomp$8_sx$jscomp$13_temp__5825__auto__$jscomp$400$$,$canvas_y_client_y$jscomp$1_sy$jscomp$12$$,65,35,0,0,260,140);return requestAnimationFrame(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$pick_color$$(new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$r$jscomp$150$$,$g$jscomp$171$$,$b$jscomp$368$$,$a$jscomp$428$$],null)))})}}return null};
$app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay_wasm_STAR_$$=function($handle_pointer_down_picker$jscomp$1_props_78767$$){var $viewport_node$jscomp$3$$=$APP.$rumext$v2$ref_val$$($handle_pointer_down_picker$jscomp$1_props_78767$$.viewportRef),$canvas$jscomp$14$$=$APP.$rumext$v2$ref_val$$($handle_pointer_down_picker$jscomp$1_props_78767$$.canvasRef),$canvas_context$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$canvas_image_data$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(null),$zoom_view_context$jscomp$3$$=
(0,$APP.$rumext$v2$use_ref$$)(null),$initial_mouse_pos$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,0,$APP.$cljs$cst$1500$y$$,0],null)),$update_str$jscomp$1$$=$APP.$beicon$v2$core$subject$$(),$handle_keydown$jscomp$4$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$642$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$642$$))?
($APP.$app$util$dom$stop_propagation$$($event$jscomp$642$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$642$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$stop_picker$$()),$APP.$app$main$data$modal$disallow_click_outside_BANG_$$()):null});$handle_pointer_down_picker$jscomp$1_props_78767$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$643$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$643$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$643$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$start_undo_transaction$$($cljs$cst$5674$mouse_down_picker$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$pick_color_select$$($event$jscomp$643$$.shiftKey)]))});var $handle_pointer_up_picker$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$644$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$644$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$644$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$undo$commit_undo_transaction$$($cljs$cst$5674$mouse_down_picker$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$stop_picker$$()]));return $APP.$app$main$data$modal$disallow_click_outside_BANG_$$()}),$handle_draw_picker_canvas$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($canvas_context$jscomp$2$$)],
function(){var $image_data$jscomp$6_temp__5825__auto__$jscomp$401$$=$APP.$rumext$v2$ref_val$$($canvas_context$jscomp$2$$);if($APP.$cljs$core$truth_$$($image_data$jscomp$6_temp__5825__auto__$jscomp$401$$)){var $width$jscomp$241$$=$canvas$jscomp$14$$.width,$height$jscomp$208$$=$canvas$jscomp$14$$.height,$buffer$jscomp$78$$=new Uint8ClampedArray($width$jscomp$241$$*$height$jscomp$208$$*4);$image_data$jscomp$6_temp__5825__auto__$jscomp$401$$.readPixels(0,0,$width$jscomp$241$$,$height$jscomp$208$$,$image_data$jscomp$6_temp__5825__auto__$jscomp$401$$.RGBA,
$image_data$jscomp$6_temp__5825__auto__$jscomp$401$$.UNSIGNED_BYTE,$buffer$jscomp$78$$);$image_data$jscomp$6_temp__5825__auto__$jscomp$401$$=new ImageData($buffer$jscomp$78$$,$width$jscomp$241$$,$height$jscomp$208$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($canvas_image_data$jscomp$3$$,$image_data$jscomp$6_temp__5825__auto__$jscomp$401$$)}return null}),$handle_canvas_changed$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $update_str$jscomp$1$$.next($cljs$cst$5663$update$$)}),
$handle_mouse_enter$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$3$$)],function($event$jscomp$645$$){return $APP.$cljs$core$reset_BANG_$$($initial_mouse_pos$jscomp$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,$event$jscomp$645$$.clientX,$APP.$cljs$cst$1500$y$$,$event$jscomp$645$$.clientY],null))}),$handle_pointer_move_picker$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$3$$)],
function($event$jscomp$646$$){return $app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move_wasm$$($viewport_node$jscomp$3$$,$canvas$jscomp$14$$,$canvas_image_data$jscomp$3$$,$zoom_view_context$jscomp$3$$,$event$jscomp$646$$.clientX,$event$jscomp$646$$.clientY)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($canvas$jscomp$14$$)],function(){var $context$jscomp$32$$=$canvas$jscomp$14$$.getContext("webgl2",{willReadFrequently:!0,preserveDrawingBuffer:!0});
return $APP.$rumext$v2$set_ref_val_BANG_$$($canvas_context$jscomp$2$$,$context$jscomp$32$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $listener$jscomp$111$$=$APP.$goog$events$listen$$($APP.$app$util$globals$document$$,"keydown",$handle_keydown$jscomp$4$$);return function(){return $APP.$goog$events$unlistenByKey$$($listener$jscomp$111$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $sub$jscomp$25$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_draw_picker_canvas$jscomp$1$$,
$APP.$beicon$v2$core$debounce$$(10,$update_str$jscomp$1$$));return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$25$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){$handle_canvas_changed$$.$cljs$core$IFn$_invoke$arity$0$?$handle_canvas_changed$$.$cljs$core$IFn$_invoke$arity$0$():$handle_canvas_changed$$();$APP.$app$util$globals$document$$.addEventListener("penpot:wasm:render",$handle_canvas_changed$$);return function(){return $APP.$app$util$globals$document$$.removeEventListener("penpot:wasm:render",
$handle_canvas_changed$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($viewport_node$jscomp$3$$),$APP.$rumext$v2$adapt$$($canvas$jscomp$14$$),$APP.$rumext$v2$adapt$$($canvas_image_data$jscomp$3$$),$APP.$rumext$v2$adapt$$($zoom_view_context$jscomp$3$$)],function(){if($canvas$jscomp$14$$!=null){var $map__78771_x$jscomp$1286$$=$APP.$cljs$core$_deref$$($initial_mouse_pos$jscomp$1$$),$map__78771__$1_y$jscomp$510$$=$APP.$cljs$core$__destructure_map$$($map__78771_x$jscomp$1286$$);
$map__78771_x$jscomp$1286$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78771__$1_y$jscomp$510$$,$APP.$cljs$cst$1499$x$$);$map__78771__$1_y$jscomp$510$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78771__$1_y$jscomp$510$$,$APP.$cljs$cst$1500$y$$);return $app$main$ui$workspace$viewport$pixel_overlay$process_pointer_move_wasm$$($viewport_node$jscomp$3$$,$canvas$jscomp$14$$,$canvas_image_data$jscomp$3$$,$zoom_view_context$jscomp$3$$,$map__78771_x$jscomp$1286$$,$map__78771__$1_y$jscomp$510$$)}return null});
return(0,$APP.$rumext$v2$jsx$$)("div",{id:"pixel-overlay",tabIndex:0,onPointerDown:$handle_pointer_down_picker$jscomp$1_props_78767$$,onPointerUp:$handle_pointer_up_picker$jscomp$1$$,onPointerMove:$handle_pointer_move_picker$jscomp$1$$,onMouseEnter:$handle_mouse_enter$jscomp$1$$,className:""+($APP.$app$main$ui$css_cursors$get_static$$("picker")??"")+" main_ui_workspace_viewport_pixel_overlay__pixel-overlay"})};
$app$main$ui$workspace$viewport$presence$active_cursors$$=function($props_78753_sessions$jscomp$1_sessions__$1$$){var $page_id$jscomp$420$$=$props_78753_sessions$jscomp$1_sessions__$1$$["page-id"],$counter$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0),$profiles$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profiles$$);$props_78753_sessions$jscomp$1_sessions__$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_presence$$);var $zoom$jscomp$134$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_zoom$$);
$props_78753_sessions$jscomp$1_sessions__$1$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78752_SHARP_$$){return 5E3>=$APP.$cljs$core$inst_ms_STAR_$$($APP.$app$common$time$now$$())-$APP.$cljs$core$inst_ms$$($APP.$cljs$cst$3154$updated_at$$.$cljs$core$IFn$_invoke$arity$1$($p1__78752_SHARP_$$))},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78751_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($page_id$jscomp$420$$,$APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__78751_SHARP_$$))},
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3460$point$$,$APP.$cljs$core$vals$$($props_78753_sessions$jscomp$1_sessions__$1$$))));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$(null,function(){var $sem$jscomp$10$$=$APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(1E3,function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($counter$jscomp$4$$,$APP.$cljs$core$inc$$)});return function(){return $APP.$beicon$v2$core$_dispose$$($sem$jscomp$10$$)}});
return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$241$$,$session$jscomp$6$$){$out_arr__44057__auto__$jscomp$241$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$presence$session_cursor$$,{session:$session$jscomp$6$$,zoom:$zoom$jscomp$134$$,profile:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profiles$jscomp$6$$,$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($session$jscomp$6$$))},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($session$jscomp$6$$)??
"")));return $out_arr__44057__auto__$jscomp$241$$},[],$props_78753_sessions$jscomp$1_sessions__$1$$)};
$app$main$ui$workspace$viewport$selection$selection_rect$$=function($on_move_selected$jscomp$6_props_78797$$){var $rect$jscomp$49_x__$1$jscomp$31$$=$on_move_selected$jscomp$6_props_78797$$.rect,$zoom$jscomp$136$$=$on_move_selected$jscomp$6_props_78797$$.zoom,$transform$jscomp$116$$=$on_move_selected$jscomp$6_props_78797$$.transform,$color$jscomp$190$$=$on_move_selected$jscomp$6_props_78797$$.color,$on_context_menu$jscomp$22$$=$on_move_selected$jscomp$6_props_78797$$["on-context-menu"];$on_move_selected$jscomp$6_props_78797$$=
$on_move_selected$jscomp$6_props_78797$$["on-move-selected"];var $x$jscomp$1287$$=$rect$jscomp$49_x__$1$jscomp$31$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($rect$jscomp$49_x__$1$jscomp$31$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$511$$=$rect$jscomp$49_x__$1$jscomp$31$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($rect$jscomp$49_x__$1$jscomp$31$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$242$$=$rect$jscomp$49_x__$1$jscomp$31$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($rect$jscomp$49_x__$1$jscomp$31$$,
$APP.$cljs$cst$288$width$$),$height$jscomp$209$$=$rect$jscomp$49_x__$1$jscomp$31$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($rect$jscomp$49_x__$1$jscomp$31$$,$APP.$cljs$cst$1511$height$$),$vec__78798_vec__78801$$=$width$jscomp$242$$<10/$zoom$jscomp$136$$?function(){var $width_SINGLEQUOTE_$jscomp$2$$=10/$zoom$jscomp$136$$;return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$x$jscomp$1287$$-($width_SINGLEQUOTE_$jscomp$2$$-$width$jscomp$242$$)/
2,$width_SINGLEQUOTE_$jscomp$2$$],null)}():new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$x$jscomp$1287$$,$width$jscomp$242$$],null);$rect$jscomp$49_x__$1$jscomp$31$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78798_vec__78801$$,0,null);var $width__$1$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78798_vec__78801$$,1,null);$vec__78798_vec__78801$$=$height$jscomp$209$$<10/$zoom$jscomp$136$$?function(){var $height_SINGLEQUOTE_$jscomp$2$$=
10/$zoom$jscomp$136$$;return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$y$jscomp$511$$-($height_SINGLEQUOTE_$jscomp$2$$-$height$jscomp$209$$)/2,$height_SINGLEQUOTE_$jscomp$2$$],null)}():new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$y$jscomp$511$$,$height$jscomp$209$$],null);var $y__$1$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78798_vec__78801$$,0,null),$height__$1$jscomp$8$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78798_vec__78801$$,1,null);return(0,$APP.$rumext$v2$jsx$$)("rect",{width:function(){var $y__5111__auto__$jscomp$178$$=10/$zoom$jscomp$136$$;return $width__$1$jscomp$12$$>$y__5111__auto__$jscomp$178$$?$width__$1$jscomp$12$$:$y__5111__auto__$jscomp$178$$}(),height:function(){var $y__5111__auto__$jscomp$179$$=10/$zoom$jscomp$136$$;return $height__$1$jscomp$8$$>$y__5111__auto__$jscomp$179$$?$height__$1$jscomp$8$$:$y__5111__auto__$jscomp$179$$}(),
className:"main viewport-selrect",x:$rect$jscomp$49_x__$1$jscomp$31$$,transform:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($transform$jscomp$116$$),onContextMenu:$on_context_menu$jscomp$22$$,style:{stroke:$color$jscomp$190$$,strokeWidth:1/$zoom$jscomp$136$$,fill:"none"},y:$y__$1$jscomp$3$$,onPointerDown:$on_move_selected$jscomp$6_props_78797$$})};
$app$main$ui$workspace$viewport$selection$calculate_handlers$$=function($height$jscomp$210_selection$jscomp$16$$,$path_QMARK_$jscomp$8_shape$jscomp$1056$$,$small_width_QMARK__zoom$jscomp$137$$){var $JSCompiler_temp$jscomp$1461_x$jscomp$1288$$=$height$jscomp$210_selection$jscomp$16$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$210_selection$jscomp$16$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$512$$=$height$jscomp$210_selection$jscomp$16$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$210_selection$jscomp$16$$,
$APP.$cljs$cst$1500$y$$),$width$jscomp$243$$=$height$jscomp$210_selection$jscomp$16$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$210_selection$jscomp$16$$,$APP.$cljs$cst$288$width$$);$height$jscomp$210_selection$jscomp$16$$=$height$jscomp$210_selection$jscomp$16$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$210_selection$jscomp$16$$,$APP.$cljs$cst$1511$height$$);var $threshold_small$$=25/$small_width_QMARK__zoom$jscomp$137$$,$threshold_tiny_tiny_height_QMARK_$$=
10/$small_width_QMARK__zoom$jscomp$137$$;$small_width_QMARK__zoom$jscomp$137$$=$width$jscomp$243$$<=$threshold_small$$;var $tiny_width_QMARK_$$=$width$jscomp$243$$<=$threshold_tiny_tiny_height_QMARK_$$,$small_height_QMARK_$$=$height$jscomp$210_selection$jscomp$16$$<=$threshold_small$$;$threshold_tiny_tiny_height_QMARK_$$=$height$jscomp$210_selection$jscomp$16$$<=$threshold_tiny_tiny_height_QMARK_$$;var $vertical_line_QMARK_$jscomp$1$$=($path_QMARK_$jscomp$8_shape$jscomp$1056$$=$APP.$app$common$files$helpers$path_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($path_QMARK_$jscomp$8_shape$jscomp$1056$$))&&
$tiny_width_QMARK_$$,$align$jscomp$5$$=$small_width_QMARK__zoom$jscomp$137$$||$small_height_QMARK_$$?$cljs$cst$5676$outside$$:$cljs$cst$5677$inside$$,$result$jscomp$363$$=[{type:$APP.$cljs$cst$1772$rotation$$,position:$APP.$cljs$cst$1867$top_left$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,cy:$y$jscomp$512$$}},{type:$APP.$cljs$cst$1772$rotation$$,position:$APP.$cljs$cst$1868$top_right$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+$width$jscomp$243$$,cy:$y$jscomp$512$$}},{type:$APP.$cljs$cst$1772$rotation$$,
position:$APP.$cljs$cst$1869$bottom_right$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+$width$jscomp$243$$,cy:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$}},{type:$APP.$cljs$cst$1772$rotation$$,position:$APP.$cljs$cst$1870$bottom_left$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,cy:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$}}];$path_QMARK_$jscomp$8_shape$jscomp$1056$$&&$threshold_tiny_tiny_height_QMARK_$$||$result$jscomp$363$$.push({type:$cljs$cst$5678$resize_side$$,
position:$APP.$cljs$cst$1546$top$$,props:{x:$small_width_QMARK__zoom$jscomp$137$$?$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+($width$jscomp$243$$-$threshold_small$$)/2:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,y:$y$jscomp$512$$,length:$small_width_QMARK__zoom$jscomp$137$$?$threshold_small$$:$width$jscomp$243$$,angle:0,align:$align$jscomp$5$$,"show-handler":$tiny_width_QMARK_$$}},{type:$cljs$cst$5678$resize_side$$,position:$APP.$cljs$cst$1547$bottom$$,props:{x:$small_width_QMARK__zoom$jscomp$137$$?
$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+($width$jscomp$243$$+$threshold_small$$)/2:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+$width$jscomp$243$$,y:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$,length:$small_width_QMARK__zoom$jscomp$137$$?$threshold_small$$:$width$jscomp$243$$,angle:180,align:$align$jscomp$5$$,"show-handler":$tiny_width_QMARK_$$}});$vertical_line_QMARK_$jscomp$1$$||$result$jscomp$363$$.push({type:$cljs$cst$5678$resize_side$$,position:$APP.$cljs$cst$258$right$$,props:{x:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+
$width$jscomp$243$$,y:$small_height_QMARK_$$?$y$jscomp$512$$+($height$jscomp$210_selection$jscomp$16$$-$threshold_small$$)/2:$y$jscomp$512$$,length:$small_height_QMARK_$$?$threshold_small$$:$height$jscomp$210_selection$jscomp$16$$,angle:90,align:$align$jscomp$5$$,"show-handler":$threshold_tiny_tiny_height_QMARK_$$}},{type:$cljs$cst$5678$resize_side$$,position:$APP.$cljs$cst$257$left$$,props:{x:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,y:$small_height_QMARK_$$?$y$jscomp$512$$+($height$jscomp$210_selection$jscomp$16$$+
$threshold_small$$)/2:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$,length:$small_height_QMARK_$$?$threshold_small$$:$height$jscomp$210_selection$jscomp$16$$,angle:270,align:$align$jscomp$5$$,"show-handler":$threshold_tiny_tiny_height_QMARK_$$}});$tiny_width_QMARK_$$||$threshold_tiny_tiny_height_QMARK_$$?$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$=null:($result$jscomp$363$$.push({type:$cljs$cst$5679$resize_point$$,position:$APP.$cljs$cst$1867$top_left$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,
cy:$y$jscomp$512$$,align:$align$jscomp$5$$}},{type:$cljs$cst$5679$resize_point$$,position:$APP.$cljs$cst$1868$top_right$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+$width$jscomp$243$$,cy:$y$jscomp$512$$,align:$align$jscomp$5$$}},{type:$cljs$cst$5679$resize_point$$,position:$APP.$cljs$cst$1869$bottom_right$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$+$width$jscomp$243$$,cy:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$,align:$align$jscomp$5$$}},{type:$cljs$cst$5679$resize_point$$,
position:$APP.$cljs$cst$1870$bottom_left$$,props:{cx:$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$,cy:$y$jscomp$512$$+$height$jscomp$210_selection$jscomp$16$$,align:$align$jscomp$5$$}}),$JSCompiler_temp$jscomp$1461_x$jscomp$1288$$=$result$jscomp$363$$);return $JSCompiler_temp$jscomp$1461_x$jscomp$1288$$};
$app$main$ui$workspace$viewport$selection$rotation_handler$$=function($props_78804_size$jscomp$158$$){var $on_rotate$$=$props_78804_size$jscomp$158$$["on-rotate"],$transform$jscomp$117$$=$props_78804_size$jscomp$158$$.transform,$rotation$jscomp$20$$=$props_78804_size$jscomp$158$$.rotation,$cx$jscomp$22_x$jscomp$1289$$=$props_78804_size$jscomp$158$$.cx,$cy$jscomp$23_y$jscomp$513$$=$props_78804_size$jscomp$158$$.cy,$position$jscomp$224$$=$props_78804_size$jscomp$158$$.position;$props_78804_size$jscomp$158$$=
20/$props_78804_size$jscomp$158$$.zoom;var $delta_x$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$224$$,$APP.$cljs$cst$1867$top_left$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$224$$,$APP.$cljs$cst$1870$bottom_left$$)?$props_78804_size$jscomp$158$$:0,$angle$jscomp$41_delta_y$jscomp$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1867$top_left$$,$position$jscomp$224$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1868$top_right$$,
$position$jscomp$224$$)?$props_78804_size$jscomp$158$$:0;$cx$jscomp$22_x$jscomp$1289$$-=$delta_x$jscomp$6$$;$cy$jscomp$23_y$jscomp$513$$-=$angle$jscomp$41_delta_y$jscomp$5$$;$angle$jscomp$41_delta_y$jscomp$5$$=function(){var $G__78805__$1$$=$position$jscomp$224$$ instanceof $APP.$cljs$core$Keyword$$?$position$jscomp$224$$.$fqn$:null;switch($G__78805__$1$$){case "top-left":return 0;case "top-right":return 90;case "bottom-right":return 180;case "bottom-left":return 270;default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78805__$1$$)].join(""));}}();return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$props_78804_size$jscomp$158$$,height:$props_78804_size$jscomp$158$$,className:$app$main$ui$css_cursors$get_dynamic$$("rotate",$rotation$jscomp$20$$+$angle$jscomp$41_delta_y$jscomp$5$$),x:$cx$jscomp$22_x$jscomp$1289$$,transform:""+($transform$jscomp$117$$??""),fill:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$1285$handlers$$)?"blue":"none",strokeWidth:0,y:$cy$jscomp$23_y$jscomp$513$$,
onPointerDown:$on_rotate$$})};
$app$main$ui$workspace$viewport$selection$resize_point_handler$$=function($position$jscomp$225_props_78806$$){var $JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$=$position$jscomp$225_props_78806$$["on-resize"],$align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$=$position$jscomp$225_props_78806$$.align,$offset_x$jscomp$inline_8985_zoom$jscomp$139$$=$position$jscomp$225_props_78806$$.zoom,$cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$=$position$jscomp$225_props_78806$$.transform,$rotation$jscomp$21$$=
$position$jscomp$225_props_78806$$.rotation,$cursor$jscomp$4_scale_text$jscomp$1$$=$position$jscomp$225_props_78806$$["scale-text"],$JSCompiler_temp_const$jscomp$1890_color$jscomp$191$$=$position$jscomp$225_props_78806$$.color,$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$=$position$jscomp$225_props_78806$$.cx,$cy$jscomp$24$$=$position$jscomp$225_props_78806$$.cy;$position$jscomp$225_props_78806$$=$position$jscomp$225_props_78806$$.position;$cursor$jscomp$4_scale_text$jscomp$1$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1867$top_left$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1869$bottom_right$$)?$cursor$jscomp$4_scale_text$jscomp$1$$?$app$main$ui$css_cursors$get_dynamic$$("scale-nesw",$rotation$jscomp$21$$):$app$main$ui$css_cursors$get_dynamic$$("resize-nesw",$rotation$jscomp$21$$):$cursor$jscomp$4_scale_text$jscomp$1$$?$app$main$ui$css_cursors$get_dynamic$$("scale-nwse",
$rotation$jscomp$21$$):$app$main$ui$css_cursors$get_dynamic$$("resize-nwse",$rotation$jscomp$21$$);var $cy_SINGLEQUOTE__pt$jscomp$36$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$,$cy$jscomp$24$$),$cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$),$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$=$cy_SINGLEQUOTE__pt$jscomp$36$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cy_SINGLEQUOTE__pt$jscomp$36$$,
$APP.$cljs$cst$1499$x$$);$cy_SINGLEQUOTE__pt$jscomp$36$$=$cy_SINGLEQUOTE__pt$jscomp$36$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cy_SINGLEQUOTE__pt$jscomp$36$$,$APP.$cljs$cst$1500$y$$);$JSCompiler_temp_const$jscomp$1890_color$jscomp$191$$=(0,$APP.$rumext$v2$jsx$$)("circle",{r:4/$offset_x$jscomp$inline_8985_zoom$jscomp$139$$,style:{fillOpacity:"1",strokeWidth:"1px",vectorEffect:"non-scaling-stroke"},fill:"var(--app-white)",stroke:$JSCompiler_temp_const$jscomp$1890_color$jscomp$191$$,
cx:$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$,cy:$cy_SINGLEQUOTE__pt$jscomp$36$$});$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$,$cljs$cst$5676$outside$$)?($align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$=10/$offset_x$jscomp$inline_8985_zoom$jscomp$139$$,$offset_x$jscomp$inline_8985_zoom$jscomp$139$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1868$top_right$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1869$bottom_right$$)?0:-$align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$,$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1870$bottom_left$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$225_props_78806$$,$APP.$cljs$cst$1869$bottom_right$$)?0:-$align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$,
$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$=$APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$+$offset_x$jscomp$inline_8985_zoom$jscomp$139$$,$cy$jscomp$24$$+$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$),$cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$),$cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$=
$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$,$APP.$cljs$cst$1499$x$$),$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$=$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$,
$APP.$cljs$cst$1500$y$$),$JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$=(0,$APP.$rumext$v2$jsx$$)("rect",{width:$align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$,height:$align$jscomp$6_resize_point_circle_radius$jscomp$inline_8984$$,className:$cursor$jscomp$4_scale_text$jscomp$1$$,x:$cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$,transform:$rotation$jscomp$21$$!=null?"rotate("+($rotation$jscomp$21$$??"")+", "+($cx_SINGLEQUOTE___$1$jscomp$inline_8988_transform$jscomp$118$$??
"")+", "+($cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$??"")+")":null,style:{fill:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$1285$handlers$$)?"red":"none",strokeWidth:0},"data-position":$APP.$cljs$core$name$$($position$jscomp$225_props_78806$$),y:$cx$jscomp$23_cy_SINGLEQUOTE___$1$jscomp$inline_8989_pt__$1$jscomp$inline_8987$$,onPointerDown:$JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$})):$JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$=(0,$APP.$rumext$v2$jsx$$)("circle",
{"data-x":$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$,cy:$cy_SINGLEQUOTE__pt$jscomp$36$$,className:$cursor$jscomp$4_scale_text$jscomp$1$$,style:{fill:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$1285$handlers$$)?"red":"none",strokeWidth:0},"data-position":$APP.$cljs$core$name$$($position$jscomp$225_props_78806$$),"data-y":$cy_SINGLEQUOTE__pt$jscomp$36$$,r:10/$offset_x$jscomp$inline_8985_zoom$jscomp$139$$,onPointerDown:$JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$,cx:$cx_SINGLEQUOTE__offset_y$jscomp$inline_8986$$});
return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"resize-handler",children:[$JSCompiler_temp_const$jscomp$1890_color$jscomp$191$$,$JSCompiler_temp$jscomp$1891_on_resize$jscomp$1$$]})};
$app$main$ui$workspace$viewport$selection$resize_side_handler$$=function($offset_y$jscomp$17_props_78809_target_y$$){var $x$jscomp$1290$$=$offset_y$jscomp$17_props_78809_target_y$$.x,$on_resize$jscomp$2$$=$offset_y$jscomp$17_props_78809_target_y$$["on-resize"],$y$jscomp$514$$=$offset_y$jscomp$17_props_78809_target_y$$.y,$zoom$jscomp$140$$=$offset_y$jscomp$17_props_78809_target_y$$.zoom,$shape_type$jscomp$8$$=$offset_y$jscomp$17_props_78809_target_y$$["shape-type"],$show_handler$$=$offset_y$jscomp$17_props_78809_target_y$$["show-handler"],
$transform$jscomp$119_transform_str$jscomp$1$$=$offset_y$jscomp$17_props_78809_target_y$$.transform,$cursor$jscomp$5_rotation$jscomp$22$$=$offset_y$jscomp$17_props_78809_target_y$$.rotation,$on_double_click$jscomp$4_scale_text$jscomp$2$$=$offset_y$jscomp$17_props_78809_target_y$$["scale-text"],$color$jscomp$192$$=$offset_y$jscomp$17_props_78809_target_y$$.color,$angle$jscomp$42$$=$offset_y$jscomp$17_props_78809_target_y$$.angle,$shape_id$jscomp$171$$=$offset_y$jscomp$17_props_78809_target_y$$["shape-id"],
$length$jscomp$58$$=$offset_y$jscomp$17_props_78809_target_y$$.length,$position$jscomp$226$$=$offset_y$jscomp$17_props_78809_target_y$$.position,$height$jscomp$211$$=8/$zoom$jscomp$140$$;$offset_y$jscomp$17_props_78809_target_y$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($offset_y$jscomp$17_props_78809_target_y$$.align,$cljs$cst$5676$outside$$)?-$height$jscomp$211$$:-($height$jscomp$211$$/2);$offset_y$jscomp$17_props_78809_target_y$$=$y$jscomp$514$$+$offset_y$jscomp$17_props_78809_target_y$$;
$transform$jscomp$119_transform_str$jscomp$1$$=""+($APP.$app$common$geom$matrix$multiply$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$119_transform_str$jscomp$1$$,$APP.$app$common$geom$matrix$rotate_matrix$$.$cljs$core$IFn$_invoke$arity$2$($angle$jscomp$42$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$1290$$,$y$jscomp$514$$)))??"");$cursor$jscomp$5_rotation$jscomp$22$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$226$$,$APP.$cljs$cst$257$left$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$226$$,$APP.$cljs$cst$258$right$$)?$on_double_click$jscomp$4_scale_text$jscomp$2$$?$app$main$ui$css_cursors$get_dynamic$$("scale-ew",$cursor$jscomp$5_rotation$jscomp$22$$):$app$main$ui$css_cursors$get_dynamic$$("resize-ew",$cursor$jscomp$5_rotation$jscomp$22$$):$on_double_click$jscomp$4_scale_text$jscomp$2$$?$app$main$ui$css_cursors$get_dynamic$$("scale-ns",$cursor$jscomp$5_rotation$jscomp$22$$):$app$main$ui$css_cursors$get_dynamic$$("resize-ns",
$cursor$jscomp$5_rotation$jscomp$22$$);$on_double_click$jscomp$4_scale_text$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$171$$),$APP.$rumext$v2$adapt$$($position$jscomp$226$$),$APP.$rumext$v2$adapt$$($shape_type$jscomp$8$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_type$jscomp$8$$,$APP.$cljs$cst$1572$text$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$226$$,$APP.$cljs$cst$258$right$$)?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape_id$jscomp$171$$],null),function($p1__78807_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78807_SHARP_$$,$APP.$cljs$cst$1754$grow_type$$,$APP.$cljs$cst$2021$auto_width$$)})):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$226$$,
$APP.$cljs$cst$1547$bottom$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape_id$jscomp$171$$],null),function($p1__78808_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78808_SHARP_$$,$APP.$cljs$cst$1754$grow_type$$,$APP.$cljs$cst$2020$auto_height$$)})):null:null});
return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"resize-handler",children:[$show_handler$$?(0,$APP.$rumext$v2$jsx$$)("circle",{r:4/$zoom$jscomp$140$$,style:{fillOpacity:1,stroke:$color$jscomp$192$$,strokeWidth:"1px",fill:"var(--app-white)",vectorEffect:"non-scaling-stroke"},"data-position":$APP.$cljs$core$name$$($position$jscomp$226$$),cx:$x$jscomp$1290$$+$length$jscomp$58$$/2,cy:$y$jscomp$514$$,transform:$transform$jscomp$119_transform_str$jscomp$1$$}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{onDoubleClick:$on_double_click$jscomp$4_scale_text$jscomp$2$$,
width:$length$jscomp$58$$,height:$height$jscomp$211$$,className:$cursor$jscomp$5_rotation$jscomp$22$$,x:$x$jscomp$1290$$,transform:$transform$jscomp$119_transform_str$jscomp$1$$,style:{fill:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$1285$handlers$$)?"yellow":"none",strokeWidth:0},"data-position":$APP.$cljs$core$name$$($position$jscomp$226$$),y:$offset_y$jscomp$17_props_78809_target_y$$,onPointerDown:$on_resize$jscomp$2$$})]})};
$app$main$ui$workspace$viewport$selection$controls_selection_STAR_$$=function($props_78812_transform_type$$){var $zoom$jscomp$141$$=$props_78812_transform_type$$.zoom,$color$jscomp$193$$=$props_78812_transform_type$$.color,$disabled$jscomp$19$$=$props_78812_transform_type$$.disabled,$on_context_menu$jscomp$23$$=$props_78812_transform_type$$.onContextMenu,$on_move_selected$jscomp$7$$=$props_78812_transform_type$$.onMoveSelected,$selrect$jscomp$84_shape$jscomp$1057$$=$props_78812_transform_type$$.shape,
$selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_selrect$$);$props_78812_transform_type$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$current_transform$$);$selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$=$app$main$data$helpers$get_selrect$$($selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$,$selrect$jscomp$84_shape$jscomp$1057$$);$selrect$jscomp$84_shape$jscomp$1057$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$,
0,null);$selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$,1,null);return $selrect$jscomp$84_shape$jscomp$1057$$==null||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_78812_transform_type$$,$APP.$cljs$cst$1782$move$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_78812_transform_type$$,$APP.$cljs$cst$2822$rotate$$)?null:(0,$APP.$rumext$v2$jsx$$)("g",
{className:"controls",pointerEvents:$disabled$jscomp$19$$?"none":"visible",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$selection_rect$$,{rect:$selrect$jscomp$84_shape$jscomp$1057$$,transform:$selrect_transform$jscomp$3_transform$jscomp$120_vec__78814$$,zoom:$zoom$jscomp$141$$,color:$color$jscomp$193$$,"on-move-selected":$on_move_selected$jscomp$7$$,"on-context-menu":$on_context_menu$jscomp$23$$})})};
$app$main$ui$workspace$viewport$selection$controls_handlers_STAR_$$=function($props_78819_transform_type$jscomp$1$$){var $on_resize$jscomp$3$$=$props_78819_transform_type$jscomp$1$$.onResize,$on_rotate$jscomp$1$$=$props_78819_transform_type$jscomp$1$$.onRotate,$zoom$jscomp$142$$=$props_78819_transform_type$jscomp$1$$.zoom,$color$jscomp$194$$=$props_78819_transform_type$jscomp$1$$.color,$disabled$jscomp$20$$=$props_78819_transform_type$jscomp$1$$.disabled,$shape$jscomp$1058$$=$props_78819_transform_type$jscomp$1$$.shape,
$selrect_transform$jscomp$4_vec__78826$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_selrect$$);$props_78819_transform_type$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$current_transform$$);var $read_only_QMARK_$jscomp$35$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$layout$jscomp$27_selrect$jscomp$85$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_layout$$),$scale_text_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$27_selrect$jscomp$85$$,
$APP.$cljs$cst$3586$scale_text$$);$selrect_transform$jscomp$4_vec__78826$$=$app$main$data$helpers$get_selrect$$($selrect_transform$jscomp$4_vec__78826$$,$shape$jscomp$1058$$);$layout$jscomp$27_selrect$jscomp$85$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($selrect_transform$jscomp$4_vec__78826$$,0,null);var $transform$jscomp$121$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($selrect_transform$jscomp$4_vec__78826$$,1,null),$rotation$jscomp$23$$=$APP.$cljs$core$mod$$($APP.$app$common$geom$point$angle$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$geom$point$transform$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(1,
0),$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1058$$))),360),$flip_x$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1058$$,$APP.$cljs$cst$1863$flip_x$$),$flip_y$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1058$$,$APP.$cljs$cst$1864$flip_y$$),$half_flip_QMARK_$$=function(){var $or__5025__auto__$jscomp$1244$$=$APP.$cljs$core$truth_$$($flip_x$jscomp$10$$)?$APP.$cljs$core$not$$($flip_y$jscomp$10$$):
$flip_x$jscomp$10$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1244$$)?$or__5025__auto__$jscomp$1244$$:$APP.$cljs$core$truth_$$($flip_y$jscomp$10$$)?$APP.$cljs$core$not$$($flip_x$jscomp$10$$):$flip_y$jscomp$10$$}();return $read_only_QMARK_$jscomp$35$$||!$APP.$cljs$core$not$$($APP.$cljs$cst$1607$blocked$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1058$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_78819_transform_type$jscomp$1$$,$APP.$cljs$cst$1782$move$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($props_78819_transform_type$jscomp$1$$,
$APP.$cljs$cst$2822$rotate$$)?null:(0,$APP.$rumext$v2$jsx$$)("g",{className:"controls",pointerEvents:$disabled$jscomp$20$$?"none":"visible",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$242$$,$handler$jscomp$46$$){$out_arr__44057__auto__$jscomp$242$$.push(function(){var $G__78841__$1_type$jscomp$685$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handler$jscomp$46$$,"type"),$position$jscomp$227_props__$1$jscomp$102$$=
$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handler$jscomp$46$$,"position"),$props$jscomp$419$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handler$jscomp$46$$,"props"),$rotation__$1$jscomp$1$$=$half_flip_QMARK_$$&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$227_props__$1$jscomp$102$$,$APP.$cljs$cst$1867$top_left$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$227_props__$1$jscomp$102$$,$APP.$cljs$cst$1869$bottom_right$$))?
$rotation$jscomp$23$$-90:$half_flip_QMARK_$$&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$227_props__$1$jscomp$102$$,$APP.$cljs$cst$1868$top_right$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($position$jscomp$227_props__$1$jscomp$102$$,$APP.$cljs$cst$1870$bottom_left$$))?$rotation$jscomp$23$$+90:$rotation$jscomp$23$$;$position$jscomp$227_props__$1$jscomp$102$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({zoom:$zoom$jscomp$142$$,"shape-type":$shape$jscomp$1058$$?.type??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1058$$,$APP.$cljs$cst$139$type$$),transform:$transform$jscomp$121$$,rotation:$rotation__$1$jscomp$1$$,"scale-text":$scale_text_QMARK_$$,color:$color$jscomp$194$$,key:""+($APP.$cljs$core$name$$($G__78841__$1_type$jscomp$685$$)??"")+"-"+($APP.$cljs$core$name$$($position$jscomp$227_props__$1$jscomp$102$$)??""),"shape-id":$shape$jscomp$1058$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1058$$,$APP.$cljs$cst$266$id$$),
position:$position$jscomp$227_props__$1$jscomp$102$$,"on-resize":$on_resize$jscomp$3$$,"on-rotate":$on_rotate$jscomp$1$$},$props$jscomp$419$$);$G__78841__$1_type$jscomp$685$$=$G__78841__$1_type$jscomp$685$$ instanceof $APP.$cljs$core$Keyword$$?$G__78841__$1_type$jscomp$685$$.$fqn$:null;switch($G__78841__$1_type$jscomp$685$$){case "rotation":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$selection$rotation_handler$$,$position$jscomp$227_props__$1$jscomp$102$$);case "resize-point":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$selection$resize_point_handler$$,
$position$jscomp$227_props__$1$jscomp$102$$);case "resize-side":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$selection$resize_side_handler$$,$position$jscomp$227_props__$1$jscomp$102$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78841__$1_type$jscomp$685$$)].join(""));}}());return $out_arr__44057__auto__$jscomp$242$$},[],$app$main$ui$workspace$viewport$selection$calculate_handlers$$($layout$jscomp$27_selrect$jscomp$85$$,
$shape$jscomp$1058$$,$zoom$jscomp$142$$))})};
$app$main$ui$workspace$viewport$selection$text_edition_selection$$=function($props_78842_shape$jscomp$1059$$){var $zoom$jscomp$143$$=$props_78842_shape$jscomp$1059$$.zoom,$color$jscomp$195$$=$props_78842_shape$jscomp$1059$$.color;$props_78842_shape$jscomp$1059$$=$props_78842_shape$jscomp$1059$$.shape;var $x$jscomp$1291$$=$props_78842_shape$jscomp$1059$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78842_shape$jscomp$1059$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$515$$=$props_78842_shape$jscomp$1059$$?.y??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78842_shape$jscomp$1059$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$244$$=$props_78842_shape$jscomp$1059$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78842_shape$jscomp$1059$$,$APP.$cljs$cst$288$width$$),$height$jscomp$212$$=$props_78842_shape$jscomp$1059$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78842_shape$jscomp$1059$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("g",
{className:"controls",children:(0,$APP.$rumext$v2$jsx$$)("rect",{className:"main",x:$x$jscomp$1291$$,y:$y$jscomp$515$$,transform:$APP.$app$common$geom$shapes$transform_str$$.$cljs$core$IFn$_invoke$arity$1$($props_78842_shape$jscomp$1059$$),width:$width$jscomp$244$$,height:$height$jscomp$212$$,pointerEvents:"visible",style:{stroke:$color$jscomp$195$$,strokeWidth:.5/$zoom$jscomp$143$$,strokeOpacity:1,fill:"none"}})})};
$app$main$ui$workspace$viewport$selection$multiple_handlers_STAR_$$=function($disabled$jscomp$21_props_78843$$){var $shapes$jscomp$226$$=$disabled$jscomp$21_props_78843$$.shapes,$zoom$jscomp$144$$=$disabled$jscomp$21_props_78843$$.zoom,$selected$jscomp$192$$=$disabled$jscomp$21_props_78843$$.selected,$color$jscomp$196$$=$disabled$jscomp$21_props_78843$$.color;$disabled$jscomp$21_props_78843$$=$disabled$jscomp$21_props_78843$$.disabled;var $shape$jscomp$1060$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$226$$)],
function(){return $APP.$app$common$types$shape$setup_shape$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$geom$shapes$common$shapes__GT_rect$$($shapes$jscomp$226$$),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1600$multiple$$))}),$on_resize$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$192$$),$APP.$rumext$v2$adapt$$($shape$jscomp$1060$$)],function($event$jscomp$649_position$jscomp$228$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$649_position$jscomp$228$$)?
($APP.$app$util$dom$stop_propagation$$($event$jscomp$649_position$jscomp$228$$),$event$jscomp$649_position$jscomp$228$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$649_position$jscomp$228$$),"position")),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$transforms$start_resize$$($event$jscomp$649_position$jscomp$228$$,$selected$jscomp$192$$,$shape$jscomp$1060$$))):
null}),$on_rotate$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$226$$)],function($event$jscomp$650$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$650$$)?($APP.$app$util$dom$stop_propagation$$($event$jscomp$650$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$transforms$start_rotate$$($shapes$jscomp$226$$))):null});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$controls_handlers_STAR_$$,
{shape:$shape$jscomp$1060$$,zoom:$zoom$jscomp$144$$,color:$color$jscomp$196$$,disabled:$disabled$jscomp$21_props_78843$$,onResize:$on_resize$jscomp$4$$,onRotate:$on_rotate$jscomp$2$$})};
$app$main$ui$workspace$viewport$selection$multiple_selection_STAR_$$=function($on_move_selected$jscomp$8_props_78858$$){var $shapes$jscomp$227$$=$on_move_selected$jscomp$8_props_78858$$.shapes,$zoom$jscomp$145$$=$on_move_selected$jscomp$8_props_78858$$.zoom,$color$jscomp$197$$=$on_move_selected$jscomp$8_props_78858$$.color,$disabled$jscomp$22$$=$on_move_selected$jscomp$8_props_78858$$.disabled,$on_context_menu$jscomp$24$$=$on_move_selected$jscomp$8_props_78858$$.onContextMenu;$on_move_selected$jscomp$8_props_78858$$=
$on_move_selected$jscomp$8_props_78858$$.onMoveSelected;var $shape$jscomp$1061$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$227$$)],function(){return $APP.$app$common$types$shape$setup_shape$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$geom$shapes$common$shapes__GT_rect$$($shapes$jscomp$227$$),$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1600$multiple$$))});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$controls_selection_STAR_$$,
{shape:$shape$jscomp$1061$$,zoom:$zoom$jscomp$145$$,color:$color$jscomp$197$$,disabled:$disabled$jscomp$22$$,onMoveSelected:$on_move_selected$jscomp$8_props_78858$$,onContextMenu:$on_context_menu$jscomp$24$$})};
$app$main$ui$workspace$viewport$selection$single_handlers_STAR_$$=function($on_resize$jscomp$5_props_78862$$){var $zoom$jscomp$146$$=$on_resize$jscomp$5_props_78862$$.zoom,$color$jscomp$198$$=$on_resize$jscomp$5_props_78862$$.color,$disabled$jscomp$23$$=$on_resize$jscomp$5_props_78862$$.disabled,$shape$jscomp$1062$$=$on_resize$jscomp$5_props_78862$$.shape,$shape_id$jscomp$172$$=$shape$jscomp$1062$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1062$$,$APP.$cljs$cst$266$id$$),
$grow_type$jscomp$12$$=$shape$jscomp$1062$$?.$grow_type$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1062$$,$APP.$cljs$cst$1754$grow_type$$),$shape_type$jscomp$9$$=$shape$jscomp$1062$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1062$$,$APP.$cljs$cst$139$type$$);$on_resize$jscomp$5_props_78862$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$172$$),$APP.$rumext$v2$adapt$$($shape$jscomp$1062$$),
$APP.$rumext$v2$adapt$$($grow_type$jscomp$12$$),$APP.$rumext$v2$adapt$$($shape_type$jscomp$9$$)],function($event$jscomp$651_position$jscomp$229$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$651_position$jscomp$229$$)?($APP.$app$util$dom$stop_propagation$$($event$jscomp$651_position$jscomp$229$$),$event$jscomp$651_position$jscomp$229$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$651_position$jscomp$229$$),
"position")),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_type$jscomp$9$$,$APP.$cljs$cst$1572$text$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$12$$,$APP.$cljs$cst$2021$auto_width$$)&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$cst$258$right$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$cst$257$left$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape_id$jscomp$172$$],null),function($p1__78859_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78859_SHARP_$$,$APP.$cljs$cst$1754$grow_type$$,$APP.$cljs$cst$2020$auto_height$$),$cljs$cst$5680$last_resize_direction$$,$APP.$cljs$cst$1894$horizontal$$)})):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_type$jscomp$9$$,$APP.$cljs$cst$1572$text$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$12$$,
$APP.$cljs$cst$2020$auto_height$$)&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$cst$258$right$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$cst$257$left$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$shape_id$jscomp$172$$],null),function($p1__78860_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78860_SHARP_$$,$cljs$cst$5680$last_resize_direction$$,$APP.$cljs$cst$1894$horizontal$$)})):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_type$jscomp$9$$,$APP.$cljs$cst$1572$text$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grow_type$jscomp$12$$,$APP.$cljs$cst$2020$auto_height$$)&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,
$APP.$cljs$cst$1546$top$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$cst$1547$bottom$$))&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape_id$jscomp$172$$],null),function($p1__78861_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78861_SHARP_$$,
$cljs$cst$5680$last_resize_direction$$,$APP.$cljs$cst$1895$vertical$$)})),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$start_resize$$($event$jscomp$651_position$jscomp$229$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$shape_id$jscomp$172$$]),$shape$jscomp$1062$$))):null});var $on_rotate$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1062$$)],function($event$jscomp$652$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$652$$)?
($APP.$app$util$dom$stop_propagation$$($event$jscomp$652$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$transforms$start_rotate$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape$jscomp$1062$$],null)))):null});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$controls_handlers_STAR_$$,{shape:$shape$jscomp$1062$$,zoom:$zoom$jscomp$146$$,color:$color$jscomp$198$$,disabled:$disabled$jscomp$23$$,
onRotate:$on_rotate$jscomp$3$$,onResize:$on_resize$jscomp$5_props_78862$$})};$app$main$ui$workspace$viewport$selection$single_selection_STAR_$$=function($props_78868$$){return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$controls_selection_STAR_$$,{shape:$props_78868$$.shape,zoom:$props_78868$$.zoom,color:$props_78868$$.color,disabled:$props_78868$$.disabled,onMoveSelected:$props_78868$$.onMoveSelected,onContextMenu:$props_78868$$.onContextMenu})};
$app$main$ui$workspace$viewport$selection$area_STAR_$$=function($on_move_selected$jscomp$10_props_78873$$){var $edition$jscomp$15$$=$on_move_selected$jscomp$10_props_78873$$.edition,$shapes$jscomp$228$$=$on_move_selected$jscomp$10_props_78873$$.shapes,$zoom$jscomp$148$$=$on_move_selected$jscomp$10_props_78873$$.zoom,$disabled$jscomp$25$$=$on_move_selected$jscomp$10_props_78873$$.disabled,$on_context_menu$jscomp$26$$=$on_move_selected$jscomp$10_props_78873$$.onContextMenu;$on_move_selected$jscomp$10_props_78873$$=
$on_move_selected$jscomp$10_props_78873$$.onMoveSelected;var $total$jscomp$22$$=$APP.$cljs$core$count$$($shapes$jscomp$228$$),$shape$jscomp$1064$$=$APP.$cljs$core$first$$($shapes$jscomp$228$$),$shape_id$jscomp$173$$=$shape$jscomp$1064$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1064$$,$APP.$cljs$cst$266$id$$),$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);
var $and__5023__auto__$jscomp$inline_8991$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($total$jscomp$22$$,1);$and__5023__auto__$jscomp$inline_8991$$?($JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$=$APP.$app$common$types$container$in_any_component_QMARK_$$($JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$,$shape$jscomp$1064$$),$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$)?$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$:$APP.$app$common$types$component$is_variant_container_QMARK_$$($shape$jscomp$1064$$)):$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$=$and__5023__auto__$jscomp$inline_8991$$;$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$=
$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$)?"var(--assets-component-hightlight)":"var(--color-accent-tertiary)";return $total$jscomp$22$$>1?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$multiple_selection_STAR_$$,{shapes:$shapes$jscomp$228$$,zoom:$zoom$jscomp$148$$,color:$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$,disabled:$disabled$jscomp$25$$,
onMoveSelected:$on_move_selected$jscomp$10_props_78873$$,onContextMenu:$on_context_menu$jscomp$26$$}):$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1064$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$15$$,$shape_id$jscomp$173$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$text_edition_selection$$,{shape:$shape$jscomp$1064$$,zoom:$zoom$jscomp$148$$,color:$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$}):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$15$$,$shape_id$jscomp$173$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$single_selection_STAR_$$,{shape:$shape$jscomp$1064$$,zoom:$zoom$jscomp$148$$,color:$JSCompiler_inline_result$jscomp$1892_color$jscomp$200_objects$jscomp$799_or__5025__auto__$jscomp$inline_8992$$,disabled:$disabled$jscomp$25$$,onMoveSelected:$on_move_selected$jscomp$10_props_78873$$,onContextMenu:$on_context_menu$jscomp$26$$})};
$app$main$ui$workspace$viewport$selection$handlers_STAR_$$=function($disabled$jscomp$26_props_78882$$){var $shapes$jscomp$229$$=$disabled$jscomp$26_props_78882$$.shapes,$zoom$jscomp$149$$=$disabled$jscomp$26_props_78882$$.zoom,$selected$jscomp$193$$=$disabled$jscomp$26_props_78882$$.selected;$disabled$jscomp$26_props_78882$$=$disabled$jscomp$26_props_78882$$.disabled;var $total$jscomp$23$$=$APP.$cljs$core$count$$($shapes$jscomp$229$$),$shape$jscomp$1065$$=$APP.$cljs$core$first$$($shapes$jscomp$229$$),
$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);var $and__5023__auto__$jscomp$inline_8994$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($total$jscomp$23$$,1);$and__5023__auto__$jscomp$inline_8994$$?($JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$=$APP.$app$common$types$container$in_any_component_QMARK_$$($JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$,
$shape$jscomp$1065$$),$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$)?$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$:$APP.$app$common$types$component$is_variant_container_QMARK_$$($shape$jscomp$1065$$)):$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$=
$and__5023__auto__$jscomp$inline_8994$$;$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$)?"var(--assets-component-hightlight)":"var(--color-accent-tertiary)";return $total$jscomp$23$$>1?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$multiple_handlers_STAR_$$,{shapes:$shapes$jscomp$229$$,
selected:$selected$jscomp$193$$,zoom:$zoom$jscomp$149$$,color:$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$,disabled:$disabled$jscomp$26_props_78882$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$single_handlers_STAR_$$,{shape:$shape$jscomp$1065$$,zoom:$zoom$jscomp$149$$,color:$JSCompiler_inline_result$jscomp$1893_color$jscomp$201_objects$jscomp$800_or__5025__auto__$jscomp$inline_8995$$,disabled:$disabled$jscomp$26_props_78882$$})};
$app$main$ui$workspace$viewport$snap_distances$half_point$$=function($c2$jscomp$28_coord$jscomp$19$$,$sr1$jscomp$2$$,$sr2$jscomp$2$$){var $c1$jscomp$39$$=Math.max($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr1$jscomp$2$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$c2$jscomp$28_coord$jscomp$19$$)?$APP.$cljs$cst$1513$y1$$:$APP.$cljs$cst$1512$x1$$),$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr2$jscomp$2$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,
$c2$jscomp$28_coord$jscomp$19$$)?$APP.$cljs$cst$1513$y1$$:$APP.$cljs$cst$1512$x1$$));$c2$jscomp$28_coord$jscomp$19$$=Math.min($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr1$jscomp$2$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$c2$jscomp$28_coord$jscomp$19$$)?$APP.$cljs$cst$1515$y2$$:$APP.$cljs$cst$1514$x2$$),$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr2$jscomp$2$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,
$c2$jscomp$28_coord$jscomp$19$$)?$APP.$cljs$cst$1515$y2$$:$APP.$cljs$cst$1514$x2$$));return $c1$jscomp$39$$+($c2$jscomp$28_coord$jscomp$19$$-$c1$jscomp$39$$)/2};
$app$main$ui$workspace$viewport$snap_distances$shape_distance_segment$$=function($map__78811_props_78810_sr1$jscomp$3$$){$map__78811_props_78810_sr1$jscomp$3$$=$APP.$rumext$v2$util$wrap_props$$($map__78811_props_78810_sr1$jscomp$3$$);var $distance_str_map__78811__$1$$=$APP.$cljs$core$__destructure_map$$($map__78811_props_78810_sr1$jscomp$3$$);$map__78811_props_78810_sr1$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($distance_str_map__78811__$1$$,$cljs$cst$5681$sr1$$);var $sr2$jscomp$3$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($distance_str_map__78811__$1$$,$cljs$cst$5682$sr2$$),$coord$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($distance_str_map__78811__$1$$,$cljs$cst$5683$coord$$),$zoom$jscomp$150$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($distance_str_map__78811__$1$$,$APP.$cljs$cst$2158$zoom$$),$from_c$$=Math.min($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78811_props_78810_sr1$jscomp$3$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,
$coord$jscomp$20$$)?$APP.$cljs$cst$1514$x2$$:$APP.$cljs$cst$1515$y2$$),$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr2$jscomp$3$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$APP.$cljs$cst$1514$x2$$:$APP.$cljs$cst$1515$y2$$)),$to_c$$=Math.max($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78811_props_78810_sr1$jscomp$3$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?
$APP.$cljs$cst$1512$x1$$:$APP.$cljs$cst$1513$y1$$),$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr2$jscomp$3$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$APP.$cljs$cst$1512$x1$$:$APP.$cljs$cst$1513$y1$$)),$distance$jscomp$10$$=$to_c$$-$from_c$$;$distance_str_map__78811__$1$$=$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($distance$jscomp$10$$);var $half_point$$=$app$main$ui$workspace$viewport$snap_distances$half_point$$($coord$jscomp$20$$,
$map__78811_props_78810_sr1$jscomp$3$$,$sr2$jscomp$3$$),$width$jscomp$245$$=$APP.$cljs$core$count$$($distance_str_map__78811__$1$$)*(6/$zoom$jscomp$150$$)+6/$zoom$jscomp$150$$+6/$zoom$jscomp$150$$*2;return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"distance-segment",children:[function(){var $point$jscomp$90_x$jscomp$1292$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_c$$+$distance$jscomp$10$$/2,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$20$$,
$APP.$cljs$cst$1499$x$$)?$half_point$$-10/$zoom$jscomp$150$$:$half_point$$+5/$zoom$jscomp$150$$],null),$vec__78813_y$jscomp$516$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$point$jscomp$90_x$jscomp$1292$$:$APP.$cljs$core$reverse$$($point$jscomp$90_x$jscomp$1292$$);$point$jscomp$90_x$jscomp$1292$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78813_y$jscomp$516$$,0,null);$vec__78813_y$jscomp$516$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78813_y$jscomp$516$$,
1,null);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$20$$,$APP.$cljs$cst$1499$x$$)?$point$jscomp$90_x$jscomp$1292$$-$width$jscomp$245$$/2:$point$jscomp$90_x$jscomp$1292$$,y:$vec__78813_y$jscomp$516$$-20/$zoom$jscomp$150$$/2-($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$20$$,$APP.$cljs$cst$1499$x$$)?2/$zoom$jscomp$150$$:0),width:$width$jscomp$245$$,
height:20/$zoom$jscomp$150$$,rx:4/$zoom$jscomp$150$$,fill:"var(--color-accent-quaternary)"}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$20$$,$APP.$cljs$cst$1499$x$$)?$point$jscomp$90_x$jscomp$1292$$:$point$jscomp$90_x$jscomp$1292$$+$width$jscomp$245$$/2,y:$vec__78813_y$jscomp$516$$+20/$zoom$jscomp$150$$/2+-(6/$zoom$jscomp$150$$)-($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$20$$,$APP.$cljs$cst$1499$x$$)?2/$zoom$jscomp$150$$:
0),fontSize:12/$zoom$jscomp$150$$,fill:"var(--app-white)",textAnchor:"middle",children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($distance$jscomp$10$$)})]})}(),function(){var $p1$jscomp$86_x1$jscomp$48$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_c$$+2/$zoom$jscomp$150$$,$half_point$$+5/$zoom$jscomp$150$$],null),$p2$jscomp$67_x2$jscomp$45$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$from_c$$+2/$zoom$jscomp$150$$,$half_point$$-5/$zoom$jscomp$150$$],null),$vec__78820_y1$jscomp$50$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p1$jscomp$86_x1$jscomp$48$$:$APP.$cljs$core$reverse$$($p1$jscomp$86_x1$jscomp$48$$);$p1$jscomp$86_x1$jscomp$48$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78820_y1$jscomp$50$$,0,null);$vec__78820_y1$jscomp$50$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78820_y1$jscomp$50$$,
1,null);var $vec__78823_y2$jscomp$47$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p2$jscomp$67_x2$jscomp$45$$:$APP.$cljs$core$reverse$$($p2$jscomp$67_x2$jscomp$45$$);$p2$jscomp$67_x2$jscomp$45$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78823_y2$jscomp$47$$,0,null);$vec__78823_y2$jscomp$47$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78823_y2$jscomp$47$$,1,null);return(0,$APP.$rumext$v2$jsx$$)("line",
{x1:$p1$jscomp$86_x1$jscomp$48$$,y1:$vec__78820_y1$jscomp$50$$,x2:$p2$jscomp$67_x2$jscomp$45$$,y2:$vec__78823_y2$jscomp$47$$,style:{stroke:"var(--color-accent-quaternary)",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$zoom$jscomp$150$$)}})}(),function(){var $p1$jscomp$87_x1$jscomp$49$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$to_c$$-2/$zoom$jscomp$150$$,$half_point$$+5/$zoom$jscomp$150$$],null),$p2$jscomp$68_x2$jscomp$46$$=
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$to_c$$-2/$zoom$jscomp$150$$,$half_point$$-5/$zoom$jscomp$150$$],null),$vec__78829_y1$jscomp$51$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p1$jscomp$87_x1$jscomp$49$$:$APP.$cljs$core$reverse$$($p1$jscomp$87_x1$jscomp$49$$);$p1$jscomp$87_x1$jscomp$49$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78829_y1$jscomp$51$$,0,null);$vec__78829_y1$jscomp$51$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78829_y1$jscomp$51$$,1,null);var $vec__78832_y2$jscomp$48$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p2$jscomp$68_x2$jscomp$46$$:$APP.$cljs$core$reverse$$($p2$jscomp$68_x2$jscomp$46$$);$p2$jscomp$68_x2$jscomp$46$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78832_y2$jscomp$48$$,0,null);$vec__78832_y2$jscomp$48$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78832_y2$jscomp$48$$,
1,null);return(0,$APP.$rumext$v2$jsx$$)("line",{x1:$p1$jscomp$87_x1$jscomp$49$$,y1:$vec__78829_y1$jscomp$51$$,x2:$p2$jscomp$68_x2$jscomp$46$$,y2:$vec__78832_y2$jscomp$48$$,style:{stroke:"var(--color-accent-quaternary)",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$zoom$jscomp$150$$)}})}(),function(){var $p1$jscomp$88_x1$jscomp$50$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$from_c$$+2/$zoom$jscomp$150$$,$half_point$$],null),
$p2$jscomp$69_x2$jscomp$47$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$to_c$$-2/$zoom$jscomp$150$$,$half_point$$],null),$vec__78835_y1$jscomp$52$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p1$jscomp$88_x1$jscomp$50$$:$APP.$cljs$core$reverse$$($p1$jscomp$88_x1$jscomp$50$$);$p1$jscomp$88_x1$jscomp$50$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78835_y1$jscomp$52$$,0,null);
$vec__78835_y1$jscomp$52$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78835_y1$jscomp$52$$,1,null);var $vec__78838_y2$jscomp$49$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$,$coord$jscomp$20$$)?$p2$jscomp$69_x2$jscomp$47$$:$APP.$cljs$core$reverse$$($p2$jscomp$69_x2$jscomp$47$$);$p2$jscomp$69_x2$jscomp$47$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78838_y2$jscomp$49$$,0,null);$vec__78838_y2$jscomp$49$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78838_y2$jscomp$49$$,
1,null);return(0,$APP.$rumext$v2$jsx$$)("line",{x1:$p1$jscomp$88_x1$jscomp$50$$,y1:$vec__78835_y1$jscomp$52$$,x2:$p2$jscomp$69_x2$jscomp$47$$,y2:$vec__78838_y2$jscomp$49$$,style:{stroke:"var(--color-accent-quaternary)",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$zoom$jscomp$150$$)}})}()]})};
$app$main$ui$workspace$viewport$snap_distances$calculate_segments$$=function($coord$jscomp$23$$,$selrect$jscomp$87$$,$lt_shapes_selection_segments$$,$gt_shapes$$){function $show_distance_QMARK_$$($p1__78852_SHARP_$$){return $check_in_set$$($p1__78852_SHARP_$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$min_distance$$]))}function $show_candidate_QMARK_$$($p1__78849_SHARP_$$){return $check_in_set$$($p1__78849_SHARP_$$,$distances$jscomp$1$$)}function $check_in_set$$($value$jscomp$966$$,$number_set$jscomp$1$$){return $APP.$cljs$core$some$$(function($p1__78848_SHARP_$$){return $APP.$app$common$math$abs$$($value$jscomp$966$$-
$p1__78848_SHARP_$$)<=1.5},$number_set$jscomp$1$$)}function $get_shapes_match$$($pred_QMARK_$jscomp$5$$,$shapes$jscomp$230$$){return $APP.$cljs$core$filterv$$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($pred_QMARK_$jscomp$5$$,$APP.$cljs$core$first$$),$APP.$app$common$data$map_perm$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__78844_SHARP_$$,$p2__78845_SHARP_$$){var $dist$jscomp$inline_9004_sr1$jscomp$inline_9000$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($p1__78844_SHARP_$$),
$sr2$jscomp$inline_9001$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($p2__78845_SHARP_$$),$c1$jscomp$inline_9002$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$23$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1512$x1$$:$APP.$cljs$cst$1513$y1$$,$c2$jscomp$inline_9003$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$23$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1514$x2$$:$APP.$cljs$cst$1515$y2$$;$dist$jscomp$inline_9004_sr1$jscomp$inline_9000$$=
$c1$jscomp$inline_9002$$.$cljs$core$IFn$_invoke$arity$1$($sr2$jscomp$inline_9001$$)-$c2$jscomp$inline_9003$$.$cljs$core$IFn$_invoke$arity$1$($dist$jscomp$inline_9004_sr1$jscomp$inline_9000$$);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$dist$jscomp$inline_9004_sr1$jscomp$inline_9000$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1__78844_SHARP_$$,$p2__78845_SHARP_$$],null)],null)},function($p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$,
$p2__78847_SHARP__s1c1$jscomp$inline_9013$$){var $s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$);$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($p2__78847_SHARP__s1c1$jscomp$inline_9013$$);var $c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$23$$,
$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1513$y1$$:$APP.$cljs$cst$1512$x1$$,$c2$jscomp$inline_9012$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$23$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1515$y2$$:$APP.$cljs$cst$1514$x2$$;$p2__78847_SHARP__s1c1$jscomp$inline_9013$$=$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$.$cljs$core$IFn$_invoke$arity$1$($s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$);$s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$=$c2$jscomp$inline_9012$$.$cljs$core$IFn$_invoke$arity$1$($s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$);
$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$=$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$.$cljs$core$IFn$_invoke$arity$1$($p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$);$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$=$c2$jscomp$inline_9012$$.$cljs$core$IFn$_invoke$arity$1$($p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$);return $c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$>=$p2__78847_SHARP__s1c1$jscomp$inline_9013$$&&$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$<=
$s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$||$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$>=$p2__78847_SHARP__s1c1$jscomp$inline_9013$$&&$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$<=$s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$||$p2__78847_SHARP__s1c1$jscomp$inline_9013$$>=$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$&&$p2__78847_SHARP__s1c1$jscomp$inline_9013$$<=$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$||$s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$>=
$c1$jscomp$inline_9011_s2c1$jscomp$inline_9015$$&&$s1c2$jscomp$inline_9014_sr1$jscomp$inline_9009$$<=$p1__78846_SHARP__s2c2$jscomp$inline_9016_sr2$jscomp$inline_9010$$},$APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$23$$,$APP.$cljs$cst$1589$selrect$$),$shapes$jscomp$230$$)))}function $distance_to_selrect$$($G__78857_shape$jscomp$1066_sr$jscomp$4$$){$G__78857_shape$jscomp$1066_sr$jscomp$4$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($G__78857_shape$jscomp$1066_sr$jscomp$4$$);
$G__78857_shape$jscomp$1066_sr$jscomp$4$$=($coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$?$coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$($G__78857_shape$jscomp$1066_sr$jscomp$4$$):$coord$jscomp$23$$($G__78857_shape$jscomp$1066_sr$jscomp$4$$))<=($coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$?$coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$87$$):$coord$jscomp$23$$($selrect$jscomp$87$$))?$app$common$geom$shapes$distance_selrect$$($G__78857_shape$jscomp$1066_sr$jscomp$4$$,
$selrect$jscomp$87$$):$app$common$geom$shapes$distance_selrect$$($selrect$jscomp$87$$,$G__78857_shape$jscomp$1066_sr$jscomp$4$$);return $coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$?$coord$jscomp$23$$.$cljs$core$IFn$_invoke$arity$1$($G__78857_shape$jscomp$1066_sr$jscomp$4$$):$coord$jscomp$23$$($G__78857_shape$jscomp$1066_sr$jscomp$4$$)}var $distance_coincidences_distances_xf_other_shapes_segments$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$some_QMARK_$$),
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($distance_to_selrect$$),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$pos_QMARK_$$)),$lt_distances$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$distance_coincidences_distances_xf_other_shapes_segments$$,$lt_shapes_selection_segments$$),$gt_distances$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$distance_coincidences_distances_xf_other_shapes_segments$$,
$gt_shapes$$),$distances$jscomp$1$$=$APP.$clojure$set$union$$.$cljs$core$IFn$_invoke$arity$2$($lt_distances$$,$gt_distances$$);$distance_coincidences_distances_xf_other_shapes_segments$$=$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($get_shapes_match$$($show_candidate_QMARK_$$,$lt_shapes_selection_segments$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$get_shapes_match$$($show_candidate_QMARK_$$,$gt_shapes$$)]));var $distance_candidates$$=$APP.$app$common$data$concat_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$,
$distance_coincidences_distances_xf_other_shapes_segments$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78850_SHARP_$$){return $check_in_set$$($p1__78850_SHARP_$$,$lt_distances$$)},$gt_distances$$),$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78851_SHARP_$$){return $check_in_set$$($p1__78851_SHARP_$$,$gt_distances$$)},$lt_distances$$)])),$min_distance$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$min$$,
$distance_candidates$$);$distance_coincidences_distances_xf_other_shapes_segments$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78854_SHARP_$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1589$selrect$$,$p1__78854_SHARP_$$)},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78853_SHARP_$$){return $show_distance_QMARK_$$($APP.$cljs$core$first$$($p1__78853_SHARP_$$))},
$distance_coincidences_distances_xf_other_shapes_segments$$)));$lt_shapes_selection_segments$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78856_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$selrect$jscomp$87$$,$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($p1__78856_SHARP_$$)],null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78855_SHARP_$$){return $show_distance_QMARK_$$($distance_to_selrect$$($p1__78855_SHARP_$$))},
$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($lt_shapes_selection_segments$$,$gt_shapes$$)));return $APP.$app$common$data$concat_set$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($distance_coincidences_distances_xf_other_shapes_segments$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$lt_shapes_selection_segments$$]))};
$app$main$ui$workspace$viewport$snap_distances$query_worker$$=function($page_id$jscomp$421$$,$coord$jscomp$24_gt_side$$,$lt_side_p__78863$$){function $query_side$$($rect$jscomp$50_side$jscomp$4$$){$rect$jscomp$50_side$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($areas$jscomp$3$$,$rect$jscomp$50_side$jscomp$4$$);return $APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$50_side$jscomp$4$$)>0&&$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$50_side$jscomp$4$$)>
0?$APP.$app$main$snap$select_shapes_area$$($page_id$jscomp$421$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$91$$),$selected$jscomp$194$$,$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$rect$jscomp$50_side$jscomp$4$$):(0,$APP.$beicon$v2$core$of$$)(null)}var $selrect$jscomp$88$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($lt_side_p__78863$$,0,null),$selected$jscomp$194$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($lt_side_p__78863$$,
1,null),$frame$jscomp$91$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($lt_side_p__78863$$,2,null);$lt_side_p__78863$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$24_gt_side$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$257$left$$:$APP.$cljs$cst$1546$top$$;$coord$jscomp$24_gt_side$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$24_gt_side$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$258$right$$:$APP.$cljs$cst$1547$bottom$$;var $bounds$jscomp$92_vbox$jscomp$57$$=
$APP.$cljs$core$_deref$$($APP.$app$main$refs$vbox$$),$frame_sr$jscomp$1$$=$APP.$app$common$files$helpers$root_QMARK_$$($frame$jscomp$91$$)?null:$frame$jscomp$91$$?.$selrect$??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$91$$,$APP.$cljs$cst$1589$selrect$$);$bounds$jscomp$92_vbox$jscomp$57$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$geom$rect$clip_rect$$($frame_sr$jscomp$1$$,$bounds$jscomp$92_vbox$jscomp$57$$),$bounds$jscomp$92_vbox$jscomp$57$$);
var $areas$jscomp$3$$=$APP.$app$common$geom$shapes$get_areas$$($bounds$jscomp$92_vbox$jscomp$57$$,$selrect$jscomp$88$$);return $APP.$beicon$v2$core$combine_latest$$($query_side$$($lt_side_p__78863$$),$query_side$$($coord$jscomp$24_gt_side$$))};
$app$main$ui$workspace$viewport$snap_distances$shape_distance$$=function($props_78867_segments_to_display$jscomp$1$$){var $frame$jscomp$92$$=$props_78867_segments_to_display$jscomp$1$$.frame,$selrect$jscomp$89$$=$props_78867_segments_to_display$jscomp$1$$.selrect,$page_id$jscomp$422$$=$props_78867_segments_to_display$jscomp$1$$["page-id"],$zoom$jscomp$151$$=$props_78867_segments_to_display$jscomp$1$$.zoom,$coord$jscomp$25$$=$props_78867_segments_to_display$jscomp$1$$.coord,$selected$jscomp$195$$=
$props_78867_segments_to_display$jscomp$1$$.selected,$subject$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()}),$lt_shapes_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$lt_shapes$jscomp$1$$=$APP.$cljs$core$_deref$$($lt_shapes_STAR_$$),$gt_shapes_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$gt_shapes$jscomp$1$$=$APP.$cljs$core$_deref$$($gt_shapes_STAR_$$);$props_78867_segments_to_display$jscomp$1$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($lt_shapes$jscomp$1$$),$APP.$rumext$v2$adapt$$($gt_shapes$jscomp$1$$),$APP.$rumext$v2$adapt$$($selrect$jscomp$89$$)],function(){return $app$main$ui$workspace$viewport$snap_distances$calculate_segments$$($coord$jscomp$25$$,$selrect$jscomp$89$$,$lt_shapes$jscomp$1$$,$gt_shapes$jscomp$1$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$422$$)],function(){var $sub$jscomp$26$$=
$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($gt_shapes__$1_p__78869$$){var $lt_shapes__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gt_shapes__$1_p__78869$$,0,null);$gt_shapes__$1_p__78869$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($gt_shapes__$1_p__78869$$,1,null);$APP.$cljs$core$reset_BANG_$$($lt_shapes_STAR_$$,$lt_shapes__$1$$);return $APP.$cljs$core$reset_BANG_$$($gt_shapes_STAR_$$,$gt_shapes__$1_p__78869$$)},$APP.$beicon$v2$core$switch_map$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$snap_distances$query_worker$$,
$page_id$jscomp$422$$,$coord$jscomp$25$$),$APP.$beicon$v2$core$throttle$cljs$0core$0IFn$0_invoke$0arity$02$$(100,$subject$jscomp$1$$)));return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$26$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selrect$jscomp$89$$)],function(){return $subject$jscomp$1$$.next(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$selrect$jscomp$89$$,$selected$jscomp$195$$,
$frame$jscomp$92$$],null))});return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$243$$,$p__78874_sr2$jscomp$6$$){var $sr1$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78874_sr2$jscomp$6$$,0,null);$p__78874_sr2$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78874_sr2$jscomp$6$$,1,null);$out_arr__44057__auto__$jscomp$243$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_distances$shape_distance_segment$$,
{sr1:$sr1$jscomp$6$$,sr2:$p__78874_sr2$jscomp$6$$,coord:$coord$jscomp$25$$,zoom:$zoom$jscomp$151$$},""+($sr1$jscomp$6$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr1$jscomp$6$$,$APP.$cljs$cst$1499$x$$)??"")+"-"+($sr1$jscomp$6$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($sr1$jscomp$6$$,$APP.$cljs$cst$1500$y$$)??"")+"-"+($p__78874_sr2$jscomp$6$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p__78874_sr2$jscomp$6$$,$APP.$cljs$cst$1499$x$$)??"")+"-"+($p__78874_sr2$jscomp$6$$?.y??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p__78874_sr2$jscomp$6$$,$APP.$cljs$cst$1500$y$$)??"")));return $out_arr__44057__auto__$jscomp$243$$},[],$props_78867_segments_to_display$jscomp$1$$)};
$app$main$ui$workspace$viewport$snap_distances$snap_distances$$=function($props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$){var $page_id$jscomp$423$$=$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$["page-id"],$zoom$jscomp$152$$=$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$.zoom,$selected$jscomp$196$$=$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$.selected;$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$=$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$["selected-shapes"];
var $frame$jscomp$93_frame_id$jscomp$146$$=$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$));$frame$jscomp$93_frame_id$jscomp$146$$=$APP.$rumext$v2$deref$$($app$main$refs$object_by_id$$($frame$jscomp$93_frame_id$jscomp$146$$));$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$=$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$);return $APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$93_frame_id$jscomp$146$$)?
null:(0,$APP.$rumext$v2$jsxs$$)("g",{className:"distance",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_distances$shape_distance$$,{selrect:$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$,"page-id":$page_id$jscomp$423$$,frame:$frame$jscomp$93_frame_id$jscomp$146$$,zoom:$zoom$jscomp$152$$,coord:$APP.$cljs$cst$1499$x$$,selected:$selected$jscomp$196$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_distances$shape_distance$$,{selrect:$props_78879_selected_shapes$jscomp$35_selrect$jscomp$90$$,
"page-id":$page_id$jscomp$423$$,frame:$frame$jscomp$93_frame_id$jscomp$146$$,zoom:$zoom$jscomp$152$$,coord:$APP.$cljs$cst$1500$y$$,selected:$selected$jscomp$196$$})]})};
$app$main$ui$workspace$viewport$snap_points$snap_point$$=function($map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$){$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$=$APP.$rumext$v2$util$wrap_props$$($map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$);$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$=$APP.$cljs$core$__destructure_map$$($map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$);var $point$jscomp$91_x$jscomp$1293$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$,
$APP.$cljs$cst$3460$point$$);$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$,$APP.$cljs$cst$2158$zoom$$);var $map__78881__$1_y$jscomp$517$$=$APP.$cljs$core$__destructure_map$$($point$jscomp$91_x$jscomp$1293$$);$point$jscomp$91_x$jscomp$1293$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78881__$1_y$jscomp$517$$,$APP.$cljs$cst$1499$x$$);$map__78881__$1_y$jscomp$517$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78881__$1_y$jscomp$517$$,$APP.$cljs$cst$1500$y$$);var $cross_width$$=3/$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$;return(0,$APP.$rumext$v2$jsxs$$)("g",{children:[(0,$APP.$rumext$v2$jsx$$)("line",{x1:$point$jscomp$91_x$jscomp$1293$$-$cross_width$$,y1:$map__78881__$1_y$jscomp$517$$-$cross_width$$,x2:$point$jscomp$91_x$jscomp$1293$$+$cross_width$$,y2:$map__78881__$1_y$jscomp$517$$+$cross_width$$,style:{stroke:"var(--color-accent-quaternary)",
strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$)}}),(0,$APP.$rumext$v2$jsx$$)("line",{x1:$point$jscomp$91_x$jscomp$1293$$-$cross_width$$,y1:$map__78881__$1_y$jscomp$517$$+$cross_width$$,x2:$point$jscomp$91_x$jscomp$1293$$+$cross_width$$,y2:$map__78881__$1_y$jscomp$517$$-$cross_width$$,style:{stroke:"var(--color-accent-quaternary)",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$map__78880_map__78880__$1_props_78878_zoom$jscomp$153$$)}})]})};
$app$main$ui$workspace$viewport$snap_points$snap_line$$=function($map__78884_props_78883_snap$jscomp$3$$){$map__78884_props_78883_snap$jscomp$3$$=$APP.$rumext$v2$util$wrap_props$$($map__78884_props_78883_snap$jscomp$3$$);var $map__78884__$1_zoom$jscomp$154$$=$APP.$cljs$core$__destructure_map$$($map__78884_props_78883_snap$jscomp$3$$);$map__78884_props_78883_snap$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78884__$1_zoom$jscomp$154$$,$cljs$cst$5684$snap$$);var $point$jscomp$92$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78884__$1_zoom$jscomp$154$$,$APP.$cljs$cst$3460$point$$);$map__78884__$1_zoom$jscomp$154$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78884__$1_zoom$jscomp$154$$,$APP.$cljs$cst$2158$zoom$$);return(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78884_props_78883_snap$jscomp$3$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78884_props_78883_snap$jscomp$3$$),
x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$92$$),y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$92$$),style:{stroke:"var(--color-accent-quaternary)",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$map__78884__$1_zoom$jscomp$154$$)},opacity:.6})};
$app$main$ui$workspace$viewport$snap_points$get_snap$$=function($coord$jscomp$26$$,$p__78889_shapes$jscomp$231$$){var $bounds$jscomp$93_map__78890__$1$$=$APP.$cljs$core$__destructure_map$$($p__78889_shapes$jscomp$231$$);$p__78889_shapes$jscomp$231$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$93_map__78890__$1$$,$APP.$cljs$cst$1598$shapes$$);var $page_id$jscomp$424$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$93_map__78890__$1$$,$APP.$cljs$cst$2028$page_id$$),
$remove_snap_QMARK_$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$93_map__78890__$1$$,$cljs$cst$5685$remove_snap_QMARK_$$),$zoom$jscomp$155$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$93_map__78890__$1$$,$APP.$cljs$cst$2158$zoom$$);$bounds$jscomp$93_map__78890__$1$$=$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($p__78889_shapes$jscomp$231$$);var $frame_id$jscomp$147$$=$APP.$app$main$snap$snap_frame_id$$($p__78889_shapes$jscomp$231$$);
return $APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$beicon$v2$core$merge_map$$(function($p__78891$$){var $frame_id__$1$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78891$$,0,null),$point$jscomp$93$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78891$$,1,null);return $APP.$beicon$v2$core$map$$(function($p1__78888_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,
3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$point$jscomp$93$$,$p1__78888_SHARP_$$,$coord$jscomp$26$$],null)},$APP.$beicon$v2$core$map$$(function($p1__78887_SHARP_$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3458$pt$$,$p1__78887_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($p1__78886_SHARP_$$){return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$second$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__78886_SHARP_$$]))},
$app$main$snap$get_snap_points$$($page_id$jscomp$424$$,$frame_id__$1$jscomp$12$$,$remove_snap_QMARK_$jscomp$6$$,$zoom$jscomp$155$$,$point$jscomp$93$$,$coord$jscomp$26$$))))},$APP.$beicon$v2$core$merge_map$$(function($bounds__$1$jscomp$6$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78885_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame_id$jscomp$147$$,$p1__78885_SHARP_$$],null)},$APP.$app$common$geom$snap$rect__GT_snap_points$$($bounds__$1$jscomp$6$$))},
(0,$APP.$beicon$v2$core$of$$)($bounds$jscomp$93_map__78890__$1$$))))};
$app$main$ui$workspace$viewport$snap_points$add_point_to_snaps$$=function($p__78896$$){var $point$jscomp$94$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78896$$,0,null),$snaps$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78896$$,1,null),$coord$jscomp$28$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78896$$,2,null);return $APP.$cljs$core$cons$$($point$jscomp$94$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78895_SHARP_$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__78895_SHARP_$$,$coord$jscomp$28$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point$jscomp$94$$,$coord$jscomp$28$$))},$snaps$$))};
$app$main$ui$workspace$viewport$snap_points$process_snap_lines$$=function($snaps$jscomp$1$$,$coord$jscomp$29$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($minv$jscomp$1_p__78905$$){var $fixedv$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($minv$jscomp$1_p__78905$$,0,null),$maxv$jscomp$1_vec__78909$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($minv$jscomp$1_p__78905$$,1,null);$minv$jscomp$1_p__78905$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($maxv$jscomp$1_vec__78909$$,
0,null);$maxv$jscomp$1_vec__78909$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($maxv$jscomp$1_vec__78909$$,1,null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$PersistentHashMap$fromArrays$$([$coord$jscomp$29$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$29$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1500$y$$:$APP.$cljs$cst$1499$x$$],[$fixedv$$,$minv$jscomp$1_p__78905$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$coord$jscomp$29$$,
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$29$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1500$y$$:$APP.$cljs$cst$1499$x$$],[$fixedv$$,$maxv$jscomp$1_vec__78909$$])],null)},$APP.$app$common$data$mapm$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__78904_SHARP_$$,$p2__78903_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$min$$,$p2__78903_SHARP_$$),
$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$max$$,$p2__78903_SHARP_$$)],null)},$APP.$app$common$data$mapm$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__78902_SHARP_$$,$p2__78901_SHARP_$$){return $APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($coord$jscomp$29$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$cst$1500$y$$:$APP.$cljs$cst$1499$x$$,$p2__78901_SHARP_$$)},$APP.$cljs$core$group_by$$($coord$jscomp$29$$,$APP.$cljs$core$flatten$$($APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($app$main$ui$workspace$viewport$snap_points$add_point_to_snaps$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78900_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($p1__78900_SHARP_$$,2),$coord$jscomp$29$$)},$snaps$jscomp$1$$)])))))))};
$app$main$ui$workspace$viewport$snap_points$snap_feedback$$=function($map__78914_props_78913_shapes$jscomp$232$$){$map__78914_props_78913_shapes$jscomp$232$$=$APP.$rumext$v2$util$wrap_props$$($map__78914_props_78913_shapes$jscomp$232$$);var $map__78914__$1$$=$APP.$cljs$core$__destructure_map$$($map__78914_props_78913_shapes$jscomp$232$$);$map__78914_props_78913_shapes$jscomp$232$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78914__$1$$,$APP.$cljs$cst$1598$shapes$$);var $remove_snap_QMARK_$jscomp$7$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78914__$1$$,$cljs$cst$5685$remove_snap_QMARK_$$),$zoom$jscomp$156$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78914__$1$$,$APP.$cljs$cst$2158$zoom$$),$modifiers$jscomp$134$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78914__$1$$,$APP.$cljs$cst$1794$modifiers$$),$state$jscomp$1111$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentVector$EMPTY$$),$subject$jscomp$2$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()}),$snap_points$jscomp$2$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$viewport$snap_points$add_point_to_snaps$$),$APP.$cljs$core$_deref$$($state$jscomp$1111$$)),$snap_lines$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$viewport$snap_points$process_snap_lines$$($APP.$cljs$core$_deref$$($state$jscomp$1111$$),$APP.$cljs$cst$1499$x$$),$app$main$ui$workspace$viewport$snap_points$process_snap_lines$$($APP.$cljs$core$_deref$$($state$jscomp$1111$$),$APP.$cljs$cst$1500$y$$)));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $sub$jscomp$27$$=$APP.$beicon$v2$core$subs_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$(function($data$jscomp$487_rs$jscomp$3$$){$data$jscomp$487_rs$jscomp$3$$=
$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78915$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78915$$,0,null);var $snaps$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78915$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78915$$,2,null);return $APP.$cljs$core$count$$($snaps$jscomp$2$$)>0},$data$jscomp$487_rs$jscomp$3$$);return $APP.$cljs$core$reset_BANG_$$($state$jscomp$1111$$,$data$jscomp$487_rs$jscomp$3$$)},
$APP.$beicon$v2$core$map$$(function($result$jscomp$364$$){return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$concat_vec$$,$APP.$cljs$core$seq$$($result$jscomp$364$$))},$APP.$beicon$v2$core$switch_map$$(function($props__$1$jscomp$103$$){return $APP.$beicon$v2$core$combine_latest$$($app$main$ui$workspace$viewport$snap_points$get_snap$$($APP.$cljs$cst$1499$x$$,$props__$1$jscomp$103$$),$app$main$ui$workspace$viewport$snap_points$get_snap$$($APP.$cljs$cst$1500$y$$,$props__$1$jscomp$103$$))},
$subject$jscomp$2$$)));return function(){return $APP.$beicon$v2$core$_dispose$$($sub$jscomp$27$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($map__78914_props_78913_shapes$jscomp$232$$),$APP.$rumext$v2$adapt$$($remove_snap_QMARK_$jscomp$7$$),$APP.$rumext$v2$adapt$$($modifiers$jscomp$134$$)],function(){return $subject$jscomp$2$$.next($map__78914__$1$$)});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"snap-feedback",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$244$$,
$p__78919_to_point$jscomp$2$$){var $from_point$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78919_to_point$jscomp$2$$,0,null);$p__78919_to_point$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78919_to_point$jscomp$2$$,1,null);$out_arr__44057__auto__$jscomp$244$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_points$snap_line$$,{snap:$from_point$jscomp$3$$,point:$p__78919_to_point$jscomp$2$$,zoom:$zoom$jscomp$156$$},["line-",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($from_point$jscomp$3$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($from_point$jscomp$3$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p__78919_to_point$jscomp$2$$)),"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p__78919_to_point$jscomp$2$$)),
"-"].join("")));return $out_arr__44057__auto__$jscomp$244$$},[],$snap_lines$$),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$245$$,$point$jscomp$95$$){$out_arr__44057__auto__$jscomp$245$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_points$snap_point$$,{point:$point$jscomp$95$$,zoom:$zoom$jscomp$156$$},["point-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$95$$)),
"-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($point$jscomp$95$$))].join("")));return $out_arr__44057__auto__$jscomp$245$$},[],$snap_points$jscomp$2$$)]})};
$app$main$ui$workspace$viewport$path_actions$check_enabled$$=function($content$jscomp$257$$,$is_curve_QMARK__selected_points$jscomp$8$$){if($APP.$cljs$core$truth_$$($content$jscomp$257$$)){var $segments$jscomp$15_segments_selected_QMARK_$$=$APP.$app$common$types$path$segment$get_segments_with_points$$($content$jscomp$257$$,$is_curve_QMARK__selected_points$jscomp$8$$),$num_segments$$=$APP.$cljs$core$count$$($segments$jscomp$15_segments_selected_QMARK_$$),$num_points$$=$APP.$cljs$core$count$$($is_curve_QMARK__selected_points$jscomp$8$$),
$points_selected_QMARK_$$=$APP.$cljs$core$seq$$($is_curve_QMARK__selected_points$jscomp$8$$);$segments$jscomp$15_segments_selected_QMARK_$$=$APP.$cljs$core$seq$$($segments$jscomp$15_segments_selected_QMARK_$$);var $max_segments$$=$num_points$$*($num_points$$-1)/2;$is_curve_QMARK__selected_points$jscomp$8$$=$APP.$cljs$core$some$$(function($p1__78927_SHARP_$$){return $app$common$types$path$segment$is_curve_QMARK_$$($content$jscomp$257$$,$p1__78927_SHARP_$$)},$is_curve_QMARK__selected_points$jscomp$8$$);
return new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$5051$make_corner$$,$points_selected_QMARK_$$?$is_curve_QMARK__selected_points$jscomp$8$$:$points_selected_QMARK_$$,$APP.$cljs$cst$5057$make_curve$$,$points_selected_QMARK_$$&&$APP.$cljs$core$not$$($is_curve_QMARK__selected_points$jscomp$8$$),$APP.$cljs$cst$5058$add_node$$,$segments$jscomp$15_segments_selected_QMARK_$$,$cljs$cst$5687$remove_node$$,$points_selected_QMARK_$$,$APP.$cljs$cst$5055$merge_nodes$$,$segments$jscomp$15_segments_selected_QMARK_$$,
$APP.$cljs$cst$5050$join_nodes$$,$points_selected_QMARK_$$&&$num_points$$>=2&&$num_segments$$<$max_segments$$,$APP.$cljs$cst$5056$separate_nodes$$,$segments$jscomp$15_segments_selected_QMARK_$$],null)}return null};
$app$main$ui$workspace$viewport$path_actions$path_actions_STAR_$$=function($edit_mode$jscomp$3_props_78930$$){var $on_select_draw_mode_shape$jscomp$1067$$=$edit_mode$jscomp$3_props_78930$$.shape,$map__78931__$1_snap_toggled$jscomp$4$$=$APP.$cljs$core$__destructure_map$$($edit_mode$jscomp$3_props_78930$$.state);$edit_mode$jscomp$3_props_78930$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78931__$1_snap_toggled$jscomp$4$$,$APP.$cljs$cst$4107$edit_mode$$);var $selected_points$jscomp$9$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78931__$1_snap_toggled$jscomp$4$$,$APP.$cljs$cst$4125$selected_points$$);$map__78931__$1_snap_toggled$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78931__$1_snap_toggled$jscomp$4$$,$APP.$cljs$cst$4086$snap_toggled$$);var $content$jscomp$258$$=$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($on_select_draw_mode_shape$jscomp$1067$$),$enabled_buttons$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($content$jscomp$258$$),
$APP.$rumext$v2$adapt$$($selected_points$jscomp$9$$)],function(){return $app$main$ui$workspace$viewport$path_actions$check_enabled$$($content$jscomp$258$$,$selected_points$jscomp$9$$)});$on_select_draw_mode_shape$jscomp$1067$$=$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$workspace$path$drawing$change_edit_mode$$($APP.$cljs$cst$4108$draw$$))});var $on_select_edit_mode$$=$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$workspace$path$drawing$change_edit_mode$$($APP.$cljs$cst$1782$move$$))}),
$on_add_node$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5058$add_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5058$add_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$tools$add_node$$()):null}),$on_remove_node$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($cljs$cst$5687$remove_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],
function(){return $APP.$cljs$core$truth_$$($cljs$cst$5687$remove_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$tools$process_path_tool$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$APP.$app$common$types$path$remove_nodes$$)):null}),$on_merge_nodes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5055$merge_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],
function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5055$merge_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$tools$process_path_tool$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$APP.$app$common$types$path$merge_nodes$$)):null}),$on_join_nodes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5050$join_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],
function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5050$join_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$tools$process_path_tool$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$APP.$app$common$types$path$join_nodes$$)):null}),$on_separate_nodes$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5056$separate_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],
function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5056$separate_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$tools$process_path_tool$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$APP.$app$common$types$path$separate_nodes$$)):null}),$on_make_corner$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5051$make_corner$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],
function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5051$make_corner$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$make_corner$$.$cljs$core$IFn$_invoke$arity$0$()):null}),$on_make_curve$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$5057$make_curve$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5057$make_curve$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$))?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$path$make_curve$$.$cljs$core$IFn$_invoke$arity$0$()):null}),$on_toggle_snap$$=$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$workspace$path$tools$toggle_snap$$())});return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-dont-clear-path":!0,className:"main_ui_workspace_viewport_path_actions__sub-actions",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_path_actions__sub-actions-group",children:[(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.draw-nodes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5052$draw_nodes$$)])),onClick:$on_select_draw_mode_shape$jscomp$1067$$,className:($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$3_props_78930$$,
$APP.$cljs$cst$4108$draw$$)?"main_ui_workspace_viewport_path_actions__is-toggled":"")+" main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$pentool_icon$$}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.move-nodes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5059$move_nodes$$)])),
onClick:$on_select_edit_mode$$,className:($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_mode$jscomp$3_props_78930$$,$APP.$cljs$cst$1782$move$$)?"main_ui_workspace_viewport_path_actions__is-toggled":"")+" main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$move_icon$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_path_actions__sub-actions-group",children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5058$add_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.add-node",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5058$add_node$$)])),onClick:$on_add_node$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$add_icon$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($cljs$cst$5687$remove_node$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.delete-node",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5053$delete_node$$)])),onClick:$on_remove_node$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$remove_icon$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_path_actions__sub-actions-group",
children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5055$merge_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.merge-nodes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5055$merge_nodes$$)])),onClick:$on_merge_nodes$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",
children:$app$main$ui$workspace$viewport$path_actions$merge_nodes_icon$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5050$join_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.join-nodes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5050$join_nodes$$)])),onClick:$on_join_nodes$$,
className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$join_nodes_icon$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5056$separate_nodes$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.separate-nodes",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5056$separate_nodes$$)])),
onClick:$on_separate_nodes$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$separate_nodes_icon$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_path_actions__sub-actions-group",children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5051$make_corner$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.make-corner",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5051$make_corner$$)])),onClick:$on_make_corner$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$to_corner_icon$$}),(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$not$$($APP.$cljs$cst$5057$make_curve$$.$cljs$core$IFn$_invoke$arity$1$($enabled_buttons$$)),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.make-curve",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5057$make_curve$$)])),onClick:$on_make_curve$$,className:"main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$to_curve_icon$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_path_actions__sub-actions-group",children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.path.actions.snap-nodes",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$path$shortcuts$get_tooltip$$($APP.$cljs$cst$5054$snap_nodes$$)])),onClick:$on_toggle_snap$$,className:($APP.$cljs$core$truth_$$($map__78931__$1_snap_toggled$jscomp$4$$)?"main_ui_workspace_viewport_path_actions__is-toggled":"")+" main_ui_workspace_viewport_path_actions__topbar-btn",children:$app$main$ui$workspace$viewport$path_actions$snap_nodes_icon$$})})]})};
$app$main$ui$workspace$viewport$top_bar$view_only_bar_STAR_$$=function(){var $handle_close_view_mode$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$layout$set_options_mode$$($APP.$cljs$cst$3602$design$$),$APP.$app$main$data$workspace$common$set_workspace_read_only$$(!1)]))});
return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_top_bar__viewport-actions",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_top_bar__viewport-actions-container",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_top_bar__viewport-actions-title",children:$APP.$rumext$v2$jsx$$($APP.$app$util$i18n$tr_html_STAR_$$,{tagName:"span",content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.top-bar.view-only")})}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_close_view_mode$$,className:"main_ui_workspace_viewport_top_bar__done-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.top-bar.read-only.done")})]})})};
$app$main$ui$workspace$viewport$top_bar$path_edition_bar_STAR_$$=function($class$$jscomp$78_props_78933$$){var $edit_path_state$jscomp$1$$=$class$$jscomp$78_props_78933$$.editPathState,$shape$jscomp$1068$$=$class$$jscomp$78_props_78933$$.shape;$class$$jscomp$78_props_78933$$="main_ui_workspace_viewport_top_bar__viewport-actions-path "+($APP.$cljs$core$contains_QMARK_$$($class$$jscomp$78_props_78933$$.layout,$APP.$cljs$cst$2173$rulers$$)?"":"main_ui_workspace_viewport_top_bar__viewport-actions-no-rulers");
return(0,$APP.$rumext$v2$jsx$$)("div",{className:$class$$jscomp$78_props_78933$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$path_actions$path_actions_STAR_$$,{shape:$shape$jscomp$1068$$,state:$edit_path_state$jscomp$1$$})})};$app$main$ui$workspace$viewport$top_bar$grid_edition_bar_STAR_$$=function($props_78934$$){return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$grid_edition_actions$$,{shape:$props_78934$$.shape})};
$app$main$ui$workspace$viewport$widgets$pixel_grid_STAR_$$=function($props_78935_vbox$jscomp$58$$){var $zoom$jscomp$158$$=$props_78935_vbox$jscomp$58$$.zoom;$props_78935_vbox$jscomp$58$$=$props_78935_vbox$jscomp$58$$.vbox;return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"pixel-grid",children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("pattern",{id:"pixel-grid",viewBox:"0 0 1 1",width:1,height:1,patternUnits:"userSpaceOnUse",children:(0,$APP.$rumext$v2$jsx$$)("path",{d:"M 1 0 L 0 0 0 1",
style:{fill:"none",stroke:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2929$pixel_grid$$)?"red":"var(--status-color-info-500)",strokeOpacity:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2929$pixel_grid$$)?1:"0.2",strokeWidth:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(1/$zoom$jscomp$158$$)}})})}),(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($props_78935_vbox$jscomp$58$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($props_78935_vbox$jscomp$58$$),
width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($props_78935_vbox$jscomp$58$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($props_78935_vbox$jscomp$58$$),fill:"url(#pixel-grid)",style:{pointerEvents:"none"}})]})};
$app$main$ui$workspace$viewport$widgets$cursor_tooltip_STAR_$$=function($pos_x$jscomp$7_props_78936_zoom$jscomp$159$$){var $tooltip$jscomp$1$$=$pos_x$jscomp$7_props_78936_zoom$jscomp$159$$.tooltip;$pos_x$jscomp$7_props_78936_zoom$jscomp$159$$=$pos_x$jscomp$7_props_78936_zoom$jscomp$159$$.zoom;var $G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$=$app$main$ui$hooks$use_rxsub$$();$G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$=$G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$==
null?null:$APP.$app$common$geom$point$divide$$($G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($pos_x$jscomp$7_props_78936_zoom$jscomp$159$$,$pos_x$jscomp$7_props_78936_zoom$jscomp$159$$));$pos_x$jscomp$7_props_78936_zoom$jscomp$159$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$)-100;$G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$=
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$)+30;return(0,$APP.$rumext$v2$jsx$$)("g",{transform:["translate(",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($pos_x$jscomp$7_props_78936_zoom$jscomp$159$$),",",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78937$jscomp$inline_9018_coords$jscomp$4_pos_y$jscomp$7$$),")"].join(""),children:(0,$APP.$rumext$v2$jsx$$)("foreignObject",{width:200,height:100,style:{textAlign:"center"},
children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$tooltip$jscomp$1$$})})})};
$app$main$ui$workspace$viewport$widgets$frame_flow_STAR_$$=function($is_selected$jscomp$9_props_78949$$){var $zoom$jscomp$163$$=$is_selected$jscomp$9_props_78949$$.zoom,$on_frame_select$jscomp$2_on_pointer_down$jscomp$20$$=$is_selected$jscomp$9_props_78949$$.onFrameSelect,$flow_name_frame$jscomp$95$$=$is_selected$jscomp$9_props_78949$$.frame,$on_frame_enter$jscomp$2$$=$is_selected$jscomp$9_props_78949$$.onFrameEnter,$on_frame_leave$jscomp$2$$=$is_selected$jscomp$9_props_78949$$.onFrameLeave,$flow$jscomp$11_on_pointer_enter$jscomp$17$$=
$is_selected$jscomp$9_props_78949$$.flow;$is_selected$jscomp$9_props_78949$$=$is_selected$jscomp$9_props_78949$$.isSelected;var $pos$jscomp$162_x$jscomp$1294$$=$flow_name_frame$jscomp$95$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($flow_name_frame$jscomp$95$$,$APP.$cljs$cst$1499$x$$),$on_pointer_leave$jscomp$17_y$jscomp$518$$=$flow_name_frame$jscomp$95$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($flow_name_frame$jscomp$95$$,$APP.$cljs$cst$1500$y$$);$pos$jscomp$162_x$jscomp$1294$$=
$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($pos$jscomp$162_x$jscomp$1294$$,$on_pointer_leave$jscomp$17_y$jscomp$518$$-35/$zoom$jscomp$163$$);var $frame_id$jscomp$150$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($flow_name_frame$jscomp$95$$);$flow_name_frame$jscomp$95$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$11_on_pointer_enter$jscomp$17$$);$on_frame_select$jscomp$2_on_pointer_down$jscomp$20$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$150$$),
$APP.$rumext$v2$adapt$$($on_frame_select$jscomp$2_on_pointer_down$jscomp$20$$)],function($event$jscomp$656$$){var $params$jscomp$424$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1355$section$$,"interactions",$APP.$cljs$cst$1591$frame_id$$,$frame_id$jscomp$150$$],null);return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$656$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$656$$),$APP.$app$util$dom$stop_propagation$$($event$jscomp$656$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_viewer$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$params$jscomp$424$$])))):
null});$flow$jscomp$11_on_pointer_enter$jscomp$17$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$150$$),$APP.$rumext$v2$adapt$$($on_frame_enter$jscomp$2$$)],function(){return $APP.$cljs$core$fn_QMARK_$$($on_frame_enter$jscomp$2$$)?$on_frame_enter$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_frame_enter$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$150$$):$on_frame_enter$jscomp$2$$($frame_id$jscomp$150$$):null});$on_pointer_leave$jscomp$17_y$jscomp$518$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$150$$),$APP.$rumext$v2$adapt$$($on_frame_leave$jscomp$2$$)],function(){return $APP.$cljs$core$fn_QMARK_$$($on_frame_leave$jscomp$2$$)?$on_frame_leave$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$on_frame_leave$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$150$$):$on_frame_leave$jscomp$2$$($frame_id$jscomp$150$$):null});return(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:0,y:-15,width:1E5,
height:24,transform:$app$main$ui$workspace$viewport$utils$text_transform$$($pos$jscomp$162_x$jscomp$1294$$,$zoom$jscomp$163$$),children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_widgets__frame-flow-badge-wrapper",children:(0,$APP.$rumext$v2$jsxs$$)("div",{onPointerDown:$on_frame_select$jscomp$2_on_pointer_down$jscomp$20$$,onPointerEnter:$flow$jscomp$11_on_pointer_enter$jscomp$17$$,onPointerLeave:$on_pointer_leave$jscomp$17_y$jscomp$518$$,className:"main_ui_workspace_viewport_widgets__frame-flow-badge-content "+
($APP.$cljs$core$truth_$$($is_selected$jscomp$9_props_78949$$)?"main_ui_workspace_viewport_widgets__selected":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"play",size:"s"}),(0,$APP.$rumext$v2$jsx$$)("span",{children:$flow_name_frame$jscomp$95$$})]})})})};
$app$main$ui$workspace$viewport$widgets$frame_flows_STAR_$$=function($props_78950$$){var $zoom$jscomp$164$$=$props_78950$$.zoom,$selected$jscomp$199$$=$props_78950$$.selected,$on_frame_select$jscomp$3$$=$props_78950$$.onFrameSelect,$on_frame_enter$jscomp$3$$=$props_78950$$.onFrameEnter,$objects$jscomp$804$$=$props_78950$$.objects,$on_frame_leave$jscomp$3$$=$props_78950$$.onFrameLeave;return(0,$APP.$rumext$v2$jsx$$)("g",{className:"frame-flows",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$247$$,
$JSCompiler_temp_const$jscomp$1902_p__78951$$){var $JSCompiler_inline_result$jscomp$1904_flow_id$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1902_p__78951$$,0,null),$flow$jscomp$12$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1902_p__78951$$,1,null);$JSCompiler_temp_const$jscomp$1902_p__78951$$=$out_arr__44057__auto__$jscomp$247$$.push;var $frame$jscomp$inline_9026$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$804$$,
$APP.$cljs$cst$2038$starting_frame$$.$cljs$core$IFn$_invoke$arity$1$($flow$jscomp$12$$)),$frame_id$jscomp$inline_9027$$=$frame$jscomp$inline_9026$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$inline_9026$$,$APP.$cljs$cst$266$id$$);$JSCompiler_inline_result$jscomp$1904_flow_id$jscomp$12$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_flow_STAR_$$,{flow:$flow$jscomp$12$$,frame:$frame$jscomp$inline_9026$$,isSelected:$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$199$$,
$frame_id$jscomp$inline_9027$$),zoom:$zoom$jscomp$164$$,onFrameEnter:$on_frame_enter$jscomp$3$$,onFrameLeave:$on_frame_leave$jscomp$3$$,onFrameSelect:$on_frame_select$jscomp$3$$},""+($frame_id$jscomp$inline_9027$$??"")+"-"+($JSCompiler_inline_result$jscomp$1904_flow_id$jscomp$12$$??""));$JSCompiler_temp_const$jscomp$1902_p__78951$$.call($out_arr__44057__auto__$jscomp$247$$,$JSCompiler_inline_result$jscomp$1904_flow_id$jscomp$12$$);return $out_arr__44057__auto__$jscomp$247$$},[],$props_78950$$.flows)})};
$app$main$ui$workspace$viewport$widgets$button_add_STAR_$$=function($map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$){var $icon_sz_zoom$jscomp$165$$=$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$.zoom,$on_click$jscomp$57$$=$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$.onClick;$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$=$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$.shape);var $height$jscomp$213_map__78956__$1_rect_sz$$=
$APP.$cljs$core$__destructure_map$$($map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$),$rect_y$jscomp$3_x2$jscomp$48$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$213_map__78956__$1_rect_sz$$,$APP.$cljs$cst$1514$x2$$);$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$213_map__78956__$1_rect_sz$$,$APP.$cljs$cst$1515$y2$$);$height$jscomp$213_map__78956__$1_rect_sz$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$213_map__78956__$1_rect_sz$$,
$APP.$cljs$cst$1511$height$$);var $center_x$jscomp$2_icon_x$jscomp$1$$=$rect_y$jscomp$3_x2$jscomp$48$$+22/$icon_sz_zoom$jscomp$165$$,$center_y$jscomp$2_icon_y$jscomp$1$$=$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$-$height$jscomp$213_map__78956__$1_rect_sz$$/2;$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$=$center_x$jscomp$2_icon_x$jscomp$1$$-16/$icon_sz_zoom$jscomp$165$$;$rect_y$jscomp$3_x2$jscomp$48$$=$center_y$jscomp$2_icon_y$jscomp$1$$-16/$icon_sz_zoom$jscomp$165$$;$height$jscomp$213_map__78956__$1_rect_sz$$=
32/$icon_sz_zoom$jscomp$165$$;var $rect_r$$=8/$icon_sz_zoom$jscomp$165$$;$center_x$jscomp$2_icon_x$jscomp$1$$-=8/$icon_sz_zoom$jscomp$165$$;$center_y$jscomp$2_icon_y$jscomp$1$$-=8/$icon_sz_zoom$jscomp$165$$;$icon_sz_zoom$jscomp$165$$=16/$icon_sz_zoom$jscomp$165$$;var $handle_click$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_click$jscomp$57$$)],function(){return $APP.$cljs$core$fn_QMARK_$$($on_click$jscomp$57$$)?$on_click$jscomp$57$$.$cljs$core$IFn$_invoke$arity$0$?
$on_click$jscomp$57$$.$cljs$core$IFn$_invoke$arity$0$():$on_click$jscomp$57$$():null});return(0,$APP.$rumext$v2$jsxs$$)("g",{onClick:$handle_click$jscomp$4$$,className:"main_ui_workspace_viewport_widgets__button-add-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$map__78956_props_78955_rect_x$jscomp$3_y2$jscomp$50$$,y:$rect_y$jscomp$3_x2$jscomp$48$$,width:$height$jscomp$213_map__78956__$1_rect_sz$$,height:$height$jscomp$213_map__78956__$1_rect_sz$$,rx:$rect_r$$,ry:$rect_r$$}),(0,$APP.$rumext$v2$jsx$$)("use",
{x:$center_x$jscomp$2_icon_x$jscomp$1$$,y:$center_y$jscomp$2_icon_y$jscomp$1$$,width:$icon_sz_zoom$jscomp$165$$,height:$icon_sz_zoom$jscomp$165$$,href:"#icon-add",className:"main_ui_workspace_viewport_widgets__button-add-icon"})]})};
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$=function($var_args$jscomp$1431$$){for(var $args__5755__auto__$jscomp$250$$=[],$len__5749__auto___78962$$=arguments.length,$i__5750__auto___78963$$=0;;)if($i__5750__auto___78963$$<$len__5749__auto___78962$$)$args__5755__auto__$jscomp$250$$.push(arguments[$i__5750__auto___78963$$]),$i__5750__auto___78963$$+=1;else break;$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(0<
$args__5755__auto__$jscomp$250$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$250$$.slice(0),0,null):null)};
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$=function($finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$){$finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$=$APP.$cljs$core$__destructure_map$$($finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$);$finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$,$APP.$cljs$cst$3876$finalize_QMARK_$$);
var $shape_id$jscomp$174_temp__5825__auto__$jscomp$403$$=$app$render_wasm$text_editor$text_editor_sync_content$$();if($APP.$cljs$core$truth_$$($shape_id$jscomp$174_temp__5825__auto__$jscomp$403$$)){var $content$jscomp$259_map__78960__$1$$=$APP.$cljs$core$__destructure_map$$($shape_id$jscomp$174_temp__5825__auto__$jscomp$403$$);$shape_id$jscomp$174_temp__5825__auto__$jscomp$403$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$259_map__78960__$1$$,$APP.$cljs$cst$2500$shape_id$$);
$content$jscomp$259_map__78960__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$259_map__78960__$1$$,$APP.$cljs$cst$1621$content$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$v2_update_text_shape_content$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($shape_id$jscomp$174_temp__5825__auto__$jscomp$403$$,$content$jscomp$259_map__78960__$1$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3870$update_name_QMARK_$$,
!0,$APP.$cljs$cst$3876$finalize_QMARK_$$,$finalize_QMARK_$jscomp$2_map__78959__$1_p__78958$$])))}};
$app$render_wasm$text_editor_input$text_editor_input$$=function($props_78961_screen_y_vbox$jscomp$59$$){var $screen_x_shape$jscomp$1072$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78961_screen_y_vbox$jscomp$59$$,"shape"),$screen_h_zoom$jscomp$166$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78961_screen_y_vbox$jscomp$59$$,"zoom");$props_78961_screen_y_vbox$jscomp$59$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78961_screen_y_vbox$jscomp$59$$,
"vbox");var $contenteditable_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$composing_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$on_composition_start_shape_bounds$jscomp$5$$=$APP.$app$common$geom$shapes$shape__GT_rect$$($screen_x_shape$jscomp$1072$$);$screen_x_shape$jscomp$1072$$=($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($on_composition_start_shape_bounds$jscomp$5$$)-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($props_78961_screen_y_vbox$jscomp$59$$))*
$screen_h_zoom$jscomp$166$$;$props_78961_screen_y_vbox$jscomp$59$$=($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($on_composition_start_shape_bounds$jscomp$5$$)-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($props_78961_screen_y_vbox$jscomp$59$$))*$screen_h_zoom$jscomp$166$$;var $screen_w$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($on_composition_start_shape_bounds$jscomp$5$$)*$screen_h_zoom$jscomp$166$$;$screen_h_zoom$jscomp$166$$*=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($on_composition_start_shape_bounds$jscomp$5$$);
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $temp__5825__auto___78965$$=$APP.$rumext$v2$ref_val$$($contenteditable_ref$$);$APP.$cljs$core$truth_$$($temp__5825__auto___78965$$)&&$temp__5825__auto___78965$$.focus()});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $raf_id$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null);(function $app$render_wasm$text_editor_input$text_editor_input_$_animate$$(){return $APP.$cljs$core$truth_$$($APP.$app$render_wasm$text_editor$text_editor_is_active_QMARK_$$())?
($APP.$app$render_wasm$api$request_render$$("cursor-blink"),$APP.$cljs$core$reset_BANG_$$($raf_id$$,requestAnimationFrame($app$render_wasm$text_editor_input$text_editor_input_$_animate$$))):null})();return function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($raf_id$$))?cancelAnimationFrame($APP.$cljs$core$_deref$$($raf_id$$)):null}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){function $on_doc_keydown$$($e$jscomp$380$$){if($APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$903$$=
$APP.$app$render_wasm$text_editor$text_editor_is_active_QMARK_$$();return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$903$$)?$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($composing_QMARK_$$)):$and__5023__auto__$jscomp$903$$}())){var $key$jscomp$423$$=$e$jscomp$380$$.key,$ctrl_QMARK_$jscomp$8$$=function(){var $or__5025__auto__$jscomp$1251$$=$e$jscomp$380$$.ctrlKey;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1251$$)?$or__5025__auto__$jscomp$1251$$:$e$jscomp$380$$.metaKey}(),$shift_QMARK_$jscomp$44$$=
$e$jscomp$380$$.shiftKey;if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"Escape"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3876$finalize_QMARK_$$,!0])),$app$render_wasm$text_editor$text_editor_stop$$();if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($ctrl_QMARK_$jscomp$8$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cuerdas$core$lower$$($key$jscomp$423$$),"a"):$ctrl_QMARK_$jscomp$8$$))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_select_all)(),$APP.$app$render_wasm$api$request_render$$("text-select-all");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"Enter"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),
$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_insert_paragraph)(),$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),$APP.$app$render_wasm$api$request_render$$("text-paragraph");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"Backspace"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_delete_backward)(),
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),$APP.$app$render_wasm$api$request_render$$("text-delete-backward");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"Delete"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$&&(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_delete_forward)(),$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),$APP.$app$render_wasm$api$request_render$$("text-delete-forward");
if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"ArrowLeft"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor$text_editor_move_cursor$$(0,$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"ArrowRight"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor$text_editor_move_cursor$$(1,
$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"ArrowUp"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor$text_editor_move_cursor$$(2,$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"ArrowDown"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),
$app$render_wasm$text_editor$text_editor_move_cursor$$(3,$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,"Home"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor$text_editor_move_cursor$$(4,$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move");if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($key$jscomp$423$$,
"End"))return $APP.$app$util$dom$prevent_default$$($e$jscomp$380$$),$app$render_wasm$text_editor$text_editor_move_cursor$$(5,$shift_QMARK_$jscomp$44$$),$APP.$app$render_wasm$api$request_render$$("text-cursor-move")}return null}$APP.$goog$events$listen$$(document,"keydown",$on_doc_keydown$$,!0);return function(){return $APP.$goog$events$unlisten$$(document,"keydown",$on_doc_keydown$$,!0)}});$on_composition_start_shape_bounds$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($composing_QMARK_$$,
!0)});var $on_composition_end$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$){$APP.$cljs$core$reset_BANG_$$($composing_QMARK_$$,!1);$data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$=$data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$.data;$APP.$cljs$core$truth_$$($data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$)&&($app$render_wasm$text_editor$text_editor_insert_text$$($data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$),
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),$APP.$app$render_wasm$api$request_render$$("text-composition"));$data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$=$APP.$rumext$v2$ref_val$$($contenteditable_ref$$);return $APP.$cljs$core$truth_$$($data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$)?$data$jscomp$489_event$jscomp$657_temp__5825__auto__$jscomp$404$$.textContent="":null}),$on_paste$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$);
$event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$=$event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$.clipboardData.getData("text/plain");$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$)?$APP.$cljs$core$seq$$($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$):$event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$)&&($app$render_wasm$text_editor$text_editor_insert_text$$($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$),
$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),$APP.$app$render_wasm$api$request_render$$("text-paste"));$event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$=$APP.$rumext$v2$ref_val$$($contenteditable_ref$$);return $APP.$cljs$core$truth_$$($event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$)?$event$jscomp$658_temp__5825__auto__$jscomp$405_text$jscomp$140$$.textContent="":null}),$on_copy$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$659$$){if($APP.$cljs$core$truth_$$($APP.$app$render_wasm$text_editor$text_editor_is_active_QMARK_$$())&&
($APP.$app$util$dom$prevent_default$$($event$jscomp$659$$),$APP.$cljs$core$truth_$$($APP.$app$render_wasm$text_editor$text_editor_get_selection$$()))){a:{if($APP.$app$render_wasm$wasm$context_initialized_QMARK_$$){var $ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$=(0,$APP.$app$render_wasm$wasm$internal_module$$._text_editor_export_selection)();if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$)?$ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$!==
0:$ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$)){$ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$=$app$render_wasm$mem$read_null_terminated_string$$($ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$);$APP.$app$render_wasm$mem$free$$();break a}}$ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$=null}return $event$jscomp$659$$.clipboardData.setData("text/plain",$ptr$jscomp$inline_13087_text$jscomp$141_text$jscomp$inline_13088$$)}return null}),
$on_input$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$){var $data$jscomp$490_native_event$jscomp$2$$=$event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$.nativeEvent;$event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$=$data$jscomp$490_native_event$jscomp$2$$.inputType;$data$jscomp$490_native_event$jscomp$2$$=$data$jscomp$490_native_event$jscomp$2$$.data;return $APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($composing_QMARK_$$))&&
$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$,"insertCompositionText")?($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($data$jscomp$490_native_event$jscomp$2$$)?$APP.$cljs$core$seq$$($data$jscomp$490_native_event$jscomp$2$$):$data$jscomp$490_native_event$jscomp$2$$)&&($app$render_wasm$text_editor$text_editor_insert_text$$($data$jscomp$490_native_event$jscomp$2$$),$app$render_wasm$text_editor_input$sync_wasm_text_editor_content_BANG_$$(),
$APP.$app$render_wasm$api$request_render$$("text-input")),$event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$=$APP.$rumext$v2$ref_val$$($contenteditable_ref$$),$APP.$cljs$core$truth_$$($event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$)?$event$jscomp$660_input_type$jscomp$2_temp__5825__auto__$jscomp$406$$.textContent="":null):null});return(0,$APP.$rumext$v2$jsx$$)("div",{onCompositionStart:$on_composition_start_shape_bounds$jscomp$5$$,onPaste:$on_paste$jscomp$1$$,
onInput:$on_input$jscomp$1$$,suppressContentEditableWarning:!0,id:"text-editor-wasm-input",style:{width:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($screen_w$$),"px"].join(""),top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($props_78961_screen_y_vbox$jscomp$59$$),"px"].join(""),whiteSpace:"pre",height:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($screen_h_zoom$jscomp$166$$),"px"].join(""),position:"absolute",cursor:"text",overflow:"hidden",zIndex:10,opacity:0,left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($screen_x_shape$jscomp$1072$$),
"px"].join("")},ref:$contenteditable_ref$$,onCopy:$on_copy$jscomp$1$$,onCompositionEnd:$on_composition_end$$,contentEditable:!0})};
$app$main$ui$workspace$viewport_wasm$apply_modifiers_to_selected$$=function($selected$jscomp$200$$,$objects$jscomp$805$$,$modifiers$jscomp$135$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects__$1$jscomp$39$$,$p__78968_transform$jscomp$122$$){var $id$jscomp$997$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78968_transform$jscomp$122$$,0,null);$p__78968_transform$jscomp$122$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78968_transform$jscomp$122$$,
1,null);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($objects__$1$jscomp$39$$,$id$jscomp$997$$,$APP.$app$common$geom$shapes$apply_transform$$,$p__78968_transform$jscomp$122$$)},$objects$jscomp$805$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78967_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($selected$jscomp$200$$,$APP.$cljs$core$first$$($p1__78967_SHARP_$$))},$modifiers$jscomp$135$$))};
$app$main$ui$workspace$viewport_wasm$viewport_STAR_$$=function($props_78973$$){var $palete_size$$=$props_78973$$.paleteSize,$selected$jscomp$201$$=$props_78973$$.selected,$layout$jscomp$30$$=$props_78973$$.layout,$file$jscomp$177$$=$props_78973$$.file,$page$jscomp$158$$=$props_78973$$.page,$wglobal$jscomp$1$$=$props_78973$$.wglobal,$map__78974$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_local$$),$map__78974__$1$$=$APP.$cljs$core$__destructure_map$$($map__78974$$),$edition$jscomp$17$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$2161$edition$$),$selrect$jscomp$91$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$1589$selrect$$),$zoom_inverse$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$3467$zoom_inverse$$),$panning$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$4297$panning$$),$zoom$jscomp$167$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$2158$zoom$$),$transform$jscomp$123$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$1275$transform$$),$vbox$jscomp$60$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$1910$vbox$$),$edit_path$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$1908$edit_path$$),$highlighted$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,
$APP.$cljs$cst$2151$highlighted$$),$vport$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78974__$1$$,$APP.$cljs$cst$2165$vport$$),$map__78975__$1$$=$APP.$cljs$core$__destructure_map$$($wglobal$jscomp$1$$),$options_mode$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78975__$1$$,$APP.$cljs$cst$2162$options_mode$$),$tooltip$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78975__$1$$,$APP.$cljs$cst$2630$tooltip$$),$show_distances_QMARK_$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78975__$1$$,$APP.$cljs$cst$4336$show_distances_QMARK_$$),$picking_color_QMARK_$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78975__$1$$,$APP.$cljs$cst$4014$picking_color_QMARK_$$),$permissions$jscomp$34$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$),$read_only_QMARK_$jscomp$36$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$drawing$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_drawing$$),
$focus$jscomp$22$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$),$wasm_modifiers$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_wasm_modifiers$$),$workspace_editor_state$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$),$file_id$jscomp$396$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$177$$,$APP.$cljs$cst$266$id$$),$objects$jscomp$806$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$158$$,
$APP.$cljs$cst$1615$objects$$),$page_id$jscomp$426$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$158$$,$APP.$cljs$cst$266$id$$),$background$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($page$jscomp$158$$,$APP.$cljs$cst$2043$background$$,"#E8E9EA"),$guides$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$158$$,$APP.$cljs$cst$2042$guides$$),$base_objects$jscomp$2$$=$app$main$ui$hooks$with_focus_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$806$$,
$focus$jscomp$22$$),$objects_modified$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_objects$jscomp$2$$),$APP.$rumext$v2$adapt$$($wasm_modifiers$$)],function(){return $app$main$ui$workspace$viewport_wasm$apply_modifiers_to_selected$$($selected$jscomp$201$$,$base_objects$jscomp$2$$,$wasm_modifiers$$)}),$selected_shapes$jscomp$36$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects_modified$$)),$selected$jscomp$201$$)),$alt_QMARK_$jscomp$25$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$shift_QMARK_$jscomp$45$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$mod_QMARK_$jscomp$14$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$space_QMARK_$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$z_QMARK_$jscomp$5$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$cursor$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5661$pointer_inner$$)),$hover_ids$jscomp$7$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover$jscomp$11$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$measure_hover$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$hover_disabled_QMARK_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$hover_top_frame_id$jscomp$7$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$frame_hover$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$active_frames$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),$canvas_init_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$initialized_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$vec__78976$$=$app$main$ui$workspace$viewport$viewport_ref$create_viewport_ref$$(),$viewport_ref$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78976$$,0,null),$on_viewport_ref$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__78976$$,1,null),$canvas_ref$jscomp$5$$=(0,$APP.$rumext$v2$use_ref$$)(null),$text_editor_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$disable_paste_ref$jscomp$3$$=
(0,$APP.$rumext$v2$use_ref$$)(!1),$in_viewport_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$move_stream$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()}),$guide_frame$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$7$$)),$APP.$rumext$v2$adapt$$($base_objects$jscomp$2$$)],function(){var $parent_id$jscomp$113$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$files$helpers$root_frame_QMARK_$$,
$base_objects$jscomp$2$$),$APP.$cljs$core$_deref$$($hover_ids$jscomp$7$$));return $parent_id$jscomp$113$$!=null?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$parent_id$jscomp$113$$):null}),$zoom__$1$jscomp$4$$=$APP.$app$common$math$finite$$($zoom$jscomp$167$$,1),$prev_zoom$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)($zoom__$1$jscomp$4$$),$drawing_tool$jscomp$7$$=$APP.$cljs$cst$2159$tool$$.$cljs$core$IFn$_invoke$arity$1$($drawing$jscomp$5$$),$drawing_obj$$=$APP.$cljs$cst$2160$object$$.$cljs$core$IFn$_invoke$arity$1$($drawing$jscomp$5$$),
$selected_frames$jscomp$2$$=$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$1591$frame_id$$),$selected_shapes$jscomp$36$$),$selected_frame$jscomp$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_frames$jscomp$2$$),1)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$APP.$cljs$core$first$$($selected_frames$jscomp$2$$)):
null,$edit_path_state$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edit_path$$,$edition$jscomp$17$$),$edit_path_mode$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edit_path_state$jscomp$2$$,$APP.$cljs$cst$4107$edit_mode$$),$path_editing_QMARK_$jscomp$3$$=$edit_path_state$jscomp$2$$!=null,$path_drawing_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_path_mode$$,$APP.$cljs$cst$4108$draw$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$294$path$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($drawing_obj$$,$APP.$cljs$cst$139$type$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2037$curve$$,$drawing_tool$jscomp$7$$),$editing_shape$jscomp$1$$=$APP.$cljs$core$truth_$$($edition$jscomp$17$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$edition$jscomp$17$$):null,$editing_shape__$1$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_shape$jscomp$1$$),
$APP.$rumext$v2$adapt$$($path_editing_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($base_objects$jscomp$2$$)],function(){return $path_editing_QMARK_$jscomp$3$$?$APP.$app$common$types$path$convert_to_path$$.$cljs$core$IFn$_invoke$arity$2$($editing_shape$jscomp$1$$,$base_objects$jscomp$2$$):$editing_shape$jscomp$1$$}),$create_comment_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3313$comments$$,$drawing_tool$jscomp$7$$),$text_editing_QMARK_$jscomp$2$$=$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$1$$),
$grid_editing_QMARK_$jscomp$2$$=$APP.$cljs$core$truth_$$($edition$jscomp$17$$)?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$edition$jscomp$17$$):$edition$jscomp$17$$,$mode_inspect_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode$jscomp$3$$,$APP.$cljs$cst$3600$inspect$$),$on_click$jscomp$58$$=$app$main$ui$workspace$viewport$actions$on_click$$($hover$jscomp$11$$,$selected$jscomp$201$$,$edition$jscomp$17$$,
$path_drawing_QMARK_$$,$drawing_tool$jscomp$7$$,$space_QMARK_$jscomp$5$$,$selrect$jscomp$91$$,$z_QMARK_$jscomp$5$$),$on_context_menu$jscomp$28$$=$app$main$ui$workspace$viewport$actions$on_context_menu$$($hover$jscomp$11$$,$hover_ids$jscomp$7$$,$read_only_QMARK_$jscomp$36$$),$on_double_click$jscomp$5$$=$app$main$ui$workspace$viewport$actions$on_double_click$$($hover$jscomp$11$$,$hover_ids$jscomp$7$$,$hover_top_frame_id$jscomp$7$$,$path_drawing_QMARK_$$,$base_objects$jscomp$2$$,$edition$jscomp$17$$,
$drawing_tool$jscomp$7$$,$z_QMARK_$jscomp$5$$,$read_only_QMARK_$jscomp$36$$),$comp_inst_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$on_drag_enter$jscomp$8$$=$app$main$ui$workspace$viewport$actions$on_drag_enter$$($comp_inst_ref$jscomp$3$$),$on_drag_over$jscomp$2$$=$app$main$ui$workspace$viewport$actions$on_drag_over$$($move_stream$jscomp$4$$),$on_drag_end$jscomp$2$$=$app$main$ui$workspace$viewport$actions$on_drag_over$$($comp_inst_ref$jscomp$3$$),$on_drop$jscomp$19$$=$app$main$ui$workspace$viewport$actions$on_drop$$($file$jscomp$177$$,
$comp_inst_ref$jscomp$3$$),$on_pointer_down$jscomp$21$$=$app$main$ui$workspace$viewport$actions$on_pointer_down$$($APP.$cljs$core$_deref$$($hover$jscomp$11$$),$selected$jscomp$201$$,$edition$jscomp$17$$,$drawing_tool$jscomp$7$$,$text_editing_QMARK_$jscomp$2$$,$path_editing_QMARK_$jscomp$3$$,$grid_editing_QMARK_$jscomp$2$$,$path_drawing_QMARK_$$,$create_comment_QMARK_$jscomp$1$$,$space_QMARK_$jscomp$5$$,$panning$jscomp$2$$,$z_QMARK_$jscomp$5$$,$read_only_QMARK_$jscomp$36$$),$on_pointer_up$jscomp$7$$=
$app$main$ui$workspace$viewport$actions$on_pointer_up$$($disable_paste_ref$jscomp$3$$),$on_pointer_enter$jscomp$18$$=$app$main$ui$workspace$viewport$actions$on_pointer_enter$$($in_viewport_ref$jscomp$4$$),$on_pointer_leave$jscomp$18$$=$app$main$ui$workspace$viewport$actions$on_pointer_leave$$($in_viewport_ref$jscomp$4$$),$on_pointer_move$jscomp$15$$=$app$main$ui$workspace$viewport$actions$on_pointer_move$$($move_stream$jscomp$4$$),$on_move_selected$jscomp$11$$=$app$main$ui$workspace$viewport$actions$on_move_selected$$($hover$jscomp$11$$,
$hover_ids$jscomp$7$$,$selected$jscomp$201$$,$space_QMARK_$jscomp$5$$,$z_QMARK_$jscomp$5$$,$read_only_QMARK_$jscomp$36$$),$on_menu_selected$$=$app$main$ui$workspace$viewport$actions$on_menu_selected$$($hover$jscomp$11$$,$hover_ids$jscomp$7$$,$selected$jscomp$201$$,$read_only_QMARK_$jscomp$36$$),$on_frame_enter$jscomp$4$$=$app$main$ui$workspace$viewport$actions$on_frame_enter$$($frame_hover$jscomp$2$$),$on_frame_leave$jscomp$4$$=$app$main$ui$workspace$viewport$actions$on_frame_leave$$($frame_hover$jscomp$2$$),
$on_frame_select$jscomp$4$$=$app$main$ui$workspace$viewport$actions$on_frame_select$$($selected$jscomp$201$$,$read_only_QMARK_$jscomp$36$$),$disable_events_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3313$comments$$),$show_comments_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$7$$,$APP.$cljs$cst$3313$comments$$),$show_gradient_handlers_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected$jscomp$201$$),
1),$show_grids_QMARK_$jscomp$2$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3594$display_guides$$),$show_frame_outline_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$123$$,$APP.$cljs$cst$1782$move$$),$show_outlines_QMARK_$$=$transform$jscomp$123$$==null&&$APP.$cljs$core$not$$($edition$jscomp$17$$)&&$APP.$cljs$core$not$$($drawing_obj$$)&&$APP.$cljs$core$not$$(function(){var $fexpr__78979$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$3313$comments$$,null,$APP.$cljs$cst$2037$curve$$,null],null),null);return $fexpr__78979$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__78979$$.$cljs$core$IFn$_invoke$arity$1$($drawing_tool$jscomp$7$$):$fexpr__78979$$($drawing_tool$jscomp$7$$)}()),$show_pixel_grid_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3587$show_pixel_grid$$)&&$zoom__$1$jscomp$4$$>=8,$show_text_editor_QMARK_$$=$APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$1$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$1$$)):$editing_shape__$1$jscomp$1$$,$hover_grid_QMARK_$$=function(){var $and__5023__auto__$jscomp$909$$=$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$)!=null;return $and__5023__auto__$jscomp$909$$?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$806$$,$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$)):
$and__5023__auto__$jscomp$909$$}(),$show_grid_editor_QMARK_$$=$APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$1$$)?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$1$$):$editing_shape__$1$jscomp$1$$,$show_prototypes_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode$jscomp$3$$,$APP.$cljs$cst$3601$prototype$$),$show_selection_handlers_QMARK_$$=$APP.$cljs$core$seq$$($selected$jscomp$201$$)&&$APP.$cljs$core$not$$($show_text_editor_QMARK_$$),
$show_snap_distance_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3593$dynamic_alignment$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$123$$,$APP.$cljs$cst$1782$move$$)&&$APP.$cljs$core$seq$$($selected$jscomp$201$$),$show_snap_points_QMARK_$$=function(){var $and__5023__auto__$jscomp$911$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3593$dynamic_alignment$$)||$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,
$APP.$cljs$cst$3590$snap_guides$$);return $and__5023__auto__$jscomp$911$$?$APP.$cljs$core$truth_$$($drawing_obj$$)?$drawing_obj$$:$transform$jscomp$123$$:$and__5023__auto__$jscomp$911$$}(),$show_selrect_QMARK_$$=$APP.$cljs$core$truth_$$($selrect$jscomp$91$$)?$APP.$cljs$core$empty_QMARK_$$($drawing$jscomp$5$$)&&!$text_editing_QMARK_$jscomp$2$$:$selrect$jscomp$91$$,$show_measures_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$913_and__5023__auto____$1$jscomp$153$$=$APP.$cljs$core$not$$($transform$jscomp$123$$);
return $and__5023__auto__$jscomp$913_and__5023__auto____$1$jscomp$153$$?($and__5023__auto__$jscomp$913_and__5023__auto____$1$jscomp$153$$=!$path_editing_QMARK_$jscomp$3$$)?$APP.$cljs$core$truth_$$($show_distances_QMARK_$$)?$show_distances_QMARK_$$:$mode_inspect_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$913_and__5023__auto____$1$jscomp$153$$:$and__5023__auto__$jscomp$913_and__5023__auto____$1$jscomp$153$$}(),$show_artboard_names_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$3591$display_artboard_names$$),
$hide_ui_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$4639$hide_ui$$),$show_rulers_QMARK_$jscomp$2$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$30$$,$APP.$cljs$cst$2173$rulers$$)&&!$hide_ui_QMARK_$$,$disabled_guides_QMARK_$$=$APP.$cljs$core$truth_$$($drawing_tool$jscomp$7$$)?$drawing_tool$jscomp$7$$:$APP.$cljs$core$truth_$$($transform$jscomp$123$$)?$transform$jscomp$123$$:$path_drawing_QMARK_$$||$path_editing_QMARK_$jscomp$3$$,$single_select_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_shapes$jscomp$36$$),
1),$first_shape$jscomp$12$$=$APP.$cljs$core$first$$($selected_shapes$jscomp$36$$),$show_add_variant_QMARK_$$=function(){if($single_select_QMARK_$$){var $or__5025__auto__$jscomp$1255$$=$APP.$app$common$types$component$is_variant_container_QMARK_$$($first_shape$jscomp$12$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1255$$)?$or__5025__auto__$jscomp$1255$$:$APP.$app$common$types$component$is_variant_QMARK_$$($first_shape$jscomp$12$$)}return $single_select_QMARK_$$}(),$add_variant$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($first_shape$jscomp$12$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$)))}),$show_padding_QMARK_$$=$transform$jscomp$123$$==null&&$single_select_QMARK_$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$),$APP.$cljs$cst$1590$frame$$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$),$APP.$cljs$cst$1644$flex$$)&&$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$)===0,$show_margin_QMARK_$$=$transform$jscomp$123$$==null&&$single_select_QMARK_$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$5$$),$APP.$cljs$cst$1644$flex$$)&&
$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$)===0,$selecting_first_level_frame_QMARK_$$=$single_select_QMARK_$$&&$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$),$offset_x$jscomp$17$$=$selecting_first_level_frame_QMARK_$$?$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$):$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$5$$),$offset_y$jscomp$18$$=
$selecting_first_level_frame_QMARK_$$?$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$12$$):$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$5$$),$rule_area_size$jscomp$1$$=22/$zoom__$1$jscomp$4$$,$preview_blend$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_preview_blend$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$426$$)],function(){var $temp__5825__auto__$jscomp$407$$=
$APP.$rumext$v2$ref_val$$($canvas_ref$jscomp$5$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$407$$)?($APP.$promesa$core$fmap$cljs$0core$0IFn$0_invoke$0arity$02$$(function($context_init_QMARK_$jscomp$inline_13095_ready_QMARK_$$){if($APP.$cljs$core$truth_$$($context_init_QMARK_$jscomp$inline_13095_ready_QMARK_$$)){try{var $gl$jscomp$inline_13091$$=$APP.$app$render_wasm$wasm$internal_module$$.GL,$flags$jscomp$inline_13092$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2921$wasm_viewbox$$)?
1:0,$context_id$jscomp$inline_13093$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2924$wasm_gl_context_init_error$$)?"fail":"webgl2",$context$jscomp$inline_13094$$=$temp__5825__auto__$jscomp$407$$.getContext($context_id$jscomp$inline_13093$$,$app$render_wasm$api$default_context_options$$);$context_init_QMARK_$jscomp$inline_13095_ready_QMARK_$$=$context$jscomp$inline_13094$$!=null;if(typeof navigator!=="undefined"){var $user_agent$jscomp$inline_13942$$=navigator.userAgent;var $browser$jscomp$inline_13096$$=
$APP.$cljs$core$truth_$$($user_agent$jscomp$inline_13942$$)?$APP.$cljs$core$truth_$$($APP.$cljs$core$re_find$$(/firefox/i,$user_agent$jscomp$inline_13942$$))?$APP.$cljs$cst$1340$firefox$$:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_find$$(/chrome/i,$user_agent$jscomp$inline_13942$$))?$APP.$cljs$cst$1341$chrome$$:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_find$$(/safari/i,$user_agent$jscomp$inline_13942$$))?$APP.$cljs$cst$1337$safari$$:$APP.$cljs$core$truth_$$($APP.$cljs$core$re_find$$(/edge/i,$user_agent$jscomp$inline_13942$$))?
$APP.$cljs$cst$1336$edge$$:$APP.$cljs$cst$893$unknown$$:null}else $browser$jscomp$inline_13096$$=null;var $browser__$1$jscomp$inline_13097$$=$app$render_wasm$serializers$translate_browser$$($browser$jscomp$inline_13096$$);if($context$jscomp$inline_13094$$!=null){var $handle_54502$jscomp$inline_13098$$=$gl$jscomp$inline_13091$$.registerContext($context$jscomp$inline_13094$$,{majorVersion:2});$gl$jscomp$inline_13091$$.makeContextCurrent($handle_54502$jscomp$inline_13098$$);$app$render_wasm$wasm$gl_context_handle$$=
$handle_54502$jscomp$inline_13098$$;$app$render_wasm$wasm$gl_context$$=$context$jscomp$inline_13094$$;$context$jscomp$inline_13094$$.getExtension("WEBGL_debug_renderer_info");(0,$APP.$app$render_wasm$wasm$internal_module$$._init)($temp__5825__auto__$jscomp$407$$.width/$APP.$app$render_wasm$api$dpr$$,$temp__5825__auto__$jscomp$407$$.height/$APP.$app$render_wasm$api$dpr$$);(0,$APP.$app$render_wasm$wasm$internal_module$$._set_render_options)($flags$jscomp$inline_13092$$,$APP.$app$render_wasm$api$dpr$$);
(0,$APP.$app$render_wasm$wasm$internal_module$$._set_browser)($browser__$1$jscomp$inline_13097$$);$app$render_wasm$api$set_canvas_size$$($temp__5825__auto__$jscomp$407$$);$app$render_wasm$wasm$canvas$$=$temp__5825__auto__$jscomp$407$$;$temp__5825__auto__$jscomp$407$$.addEventListener("webglcontextlost",$app$render_wasm$api$on_webgl_context_lost$$);$APP.$app$render_wasm$wasm$context_initialized_QMARK_$$=!0}var $init_QMARK_$$=$context_init_QMARK_$jscomp$inline_13095_ready_QMARK_$$}catch($e78980$jscomp$inline_9033$$){console.error("Error initializing canvas context:",
$e78980$jscomp$inline_9033$$),$init_QMARK_$$=!1}$APP.$cljs$core$reset_BANG_$$($canvas_init_QMARK_$$,$init_QMARK_$$);$APP.$cljs$core$truth_$$($init_QMARK_$$)&&($app$render_wasm$api$apply_canvas_blur$$(),$app$render_wasm$api$webgl$restore_previous_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$?$app$render_wasm$api$webgl$restore_previous_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$():$app$render_wasm$api$webgl$restore_previous_canvas_pixels$$());if($APP.$cljs$core$truth_$$($init_QMARK_$$))return null;
alert("WebGL not supported");return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$common$go_to_dashboard_recent$$())}return null},$APP.$app$render_wasm$api$module$$),function(){return $app$render_wasm$api$clear_canvas$$()}):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($show_text_editor_QMARK_$$),$APP.$rumext$v2$adapt$$($workspace_editor_state$jscomp$1$$),$APP.$rumext$v2$adapt$$($edition$jscomp$17$$)],function(){var $active_editor_state_content$jscomp$260_dimension$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($workspace_editor_state$jscomp$1$$,$edition$jscomp$17$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_text_editor_QMARK_$$)?$active_editor_state_content$jscomp$260_dimension$jscomp$1$$:$show_text_editor_QMARK_$$)?($active_editor_state_content$jscomp$260_dimension$jscomp$1$$=$app$util$text_editor$export_content$$($active_editor_state_content$jscomp$260_dimension$jscomp$1$$.getCurrentContent()),$APP.$app$render_wasm$api$use_shape$$($edition$jscomp$17$$),
$APP.$app$render_wasm$api$set_shape_text_content$$($edition$jscomp$17$$,$active_editor_state_content$jscomp$260_dimension$jscomp$1$$),$active_editor_state_content$jscomp$260_dimension$jscomp$1$$=$APP.$app$render_wasm$api$get_text_dimensions$cljs$0core$0IFn$0_invoke$0arity$00$$(),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$transforms$resize_text_editor$$($edition$jscomp$17$$,$active_editor_state_content$jscomp$260_dimension$jscomp$1$$)),$APP.$app$render_wasm$api$request_render$$("content")):
null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vport$jscomp$14$$)],function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($canvas_init_QMARK_$$))){var $JSCompiler_temp$jscomp$1458_width$jscomp$inline_9035$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$14$$);var $height$jscomp$inline_9036$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vport$jscomp$14$$);$JSCompiler_temp$jscomp$1458_width$jscomp$inline_9035$$=
(0,$APP.$app$render_wasm$wasm$internal_module$$._resize_viewbox)($JSCompiler_temp$jscomp$1458_width$jscomp$inline_9035$$,$height$jscomp$inline_9036$$)}else $JSCompiler_temp$jscomp$1458_width$jscomp$inline_9035$$=null;return $JSCompiler_temp$jscomp$1458_width$jscomp$inline_9035$$});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($canvas_init_QMARK_$$)),$APP.$rumext$v2$adapt$$($preview_blend$$)],function(){var $and__5023__auto__$jscomp$inline_9038$$=
$APP.$cljs$core$_deref$$($canvas_init_QMARK_$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_9038$$)?$preview_blend$$:$and__5023__auto__$jscomp$inline_9038$$)?$APP.$app$render_wasm$api$request_render$$("with-effect"):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($canvas_init_QMARK_$$)),$APP.$rumext$v2$adapt$$($zoom__$1$jscomp$4$$),$APP.$rumext$v2$adapt$$($vbox$jscomp$60$$),$APP.$rumext$v2$adapt$$($background$jscomp$10$$)],
function(){var $JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$=$APP.$cljs$core$_deref$$($canvas_init_QMARK_$$);$JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$)?$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($initialized_QMARK_$$)):$JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$;
if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$)){$app$render_wasm$api$webgl$clear_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$?$app$render_wasm$api$webgl$clear_canvas_pixels$$.$cljs$core$IFn$_invoke$arity$0$():$app$render_wasm$api$webgl$clear_canvas_pixels$$();$JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$=$APP.$app$render_wasm$serializers$color$hex__GT_u32argb$$($background$jscomp$10$$,
1);var $shapes$jscomp$inline_13105_total_shapes$jscomp$inline_13106$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$vals$$($base_objects$jscomp$2$$));$shapes$jscomp$inline_13105_total_shapes$jscomp$inline_13106$$=$APP.$cljs$core$count$$($shapes$jscomp$inline_13105_total_shapes$jscomp$inline_13106$$);(0,$APP.$app$render_wasm$wasm$internal_module$$._set_canvas_background)($JSCompiler_inline_result$jscomp$1906_and__5023__auto__$jscomp$inline_9040_rgba$jscomp$inline_13104$$);
(0,$APP.$app$render_wasm$wasm$internal_module$$._set_view)($zoom__$1$jscomp$4$$,-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$),-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$));(0,$APP.$app$render_wasm$wasm$internal_module$$._init_shapes_pool)($shapes$jscomp$inline_13105_total_shapes$jscomp$inline_13106$$);$app$render_wasm$api$set_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($base_objects$jscomp$2$$);return $APP.$cljs$core$reset_BANG_$$($initialized_QMARK_$$,
!0)}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($focus$jscomp$22$$)],function(){var $JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$=$APP.$cljs$core$_deref$$($canvas_init_QMARK_$$);$JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$)?
$APP.$cljs$core$_deref$$($initialized_QMARK_$$):$JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$;$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$)?$APP.$cljs$core$empty_QMARK_$$($focus$jscomp$22$$)?((0,$APP.$app$render_wasm$wasm$internal_module$$._clear_focus_mode)(),$JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$=
$APP.$app$render_wasm$api$request_render$$("clear-focus-mode")):$JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$=$app$render_wasm$api$set_focus_mode$$($focus$jscomp$22$$):$JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$=null;return $JSCompiler_inline_result$jscomp$1907_JSCompiler_temp$jscomp$1543_JSCompiler_temp$jscomp$1544_and__5023__auto__$jscomp$inline_9047$$});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vbox$jscomp$60$$),$APP.$rumext$v2$adapt$$($zoom__$1$jscomp$4$$)],function(){var $and__5023__auto__$jscomp$inline_9050_is_pan$jscomp$inline_13111$$=$APP.$cljs$core$_deref$$($canvas_init_QMARK_$$);$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_9050_is_pan$jscomp$inline_13111$$)?$initialized_QMARK_$$:$and__5023__auto__$jscomp$inline_9050_is_pan$jscomp$inline_13111$$)&&($and__5023__auto__$jscomp$inline_9050_is_pan$jscomp$inline_13111$$=
$APP.$app$common$math$close_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($prev_zoom$jscomp$1$$),$zoom__$1$jscomp$4$$),performance.mark("set-view-box::begin"),(0,$APP.$app$render_wasm$wasm$internal_module$$._set_view_start)(),(0,$APP.$app$render_wasm$wasm$internal_module$$._set_view)($zoom__$1$jscomp$4$$,-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$),-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$)),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_9050_is_pan$jscomp$inline_13111$$)?
(performance.mark("set-view-box::end"),performance.measure("set-view-box",{start:"set-view-box::begin",end:"set-view-box::end",detail:{}}),performance.mark("set-view-box::pan::begin"),$APP.$app$render_wasm$api$render_pan$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$app$render_wasm$api$render_pan$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$app$render_wasm$api$render_pan$$)(),$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$?$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$():
(0,$APP.$app$render_wasm$api$render_finish$$)(),performance.mark("set-view-box::pan::end"),performance.measure("set-view-box::pan",{start:"set-view-box::pan::begin",end:"set-view-box::pan::end",detail:{}})):(performance.mark("set-view-box::end"),performance.measure("set-view-box",{start:"set-view-box::begin",end:"set-view-box::end",detail:{}}),performance.mark("set-view-box::zoom::begin"),(0,$APP.$app$render_wasm$wasm$internal_module$$._render_from_cache)(0),$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$?
$APP.$app$render_wasm$api$render_finish$$.$cljs$core$IFn$_invoke$arity$0$():(0,$APP.$app$render_wasm$api$render_finish$$)(),performance.mark("set-view-box::zoom::end"),performance.measure("set-view-box::zoom",{start:"set-view-box::zoom::begin",end:"set-view-box::zoom::end",detail:{}})));return $APP.$rumext$v2$set_ref_val_BANG_$$($prev_zoom$jscomp$1$$,$zoom__$1$jscomp$4$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($background$jscomp$10$$)],function(){var $JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$=
$APP.$cljs$core$_deref$$($canvas_init_QMARK_$$);$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$)?$initialized_QMARK_$$:$JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$)?($JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$=$APP.$app$render_wasm$serializers$color$hex__GT_u32argb$$($background$jscomp$10$$,1),(0,$APP.$app$render_wasm$wasm$internal_module$$._set_canvas_background)($JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$),
$JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$=$APP.$app$render_wasm$api$request_render$$("set-canvas-background")):$JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$=null;return $JSCompiler_temp$jscomp$10550_and__5023__auto__$jscomp$inline_9052_rgba$jscomp$inline_13114$$});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($canvas_init_QMARK_$$)),
$APP.$rumext$v2$adapt$$($hover_grid_QMARK_$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$))],function(){if($APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($canvas_init_QMARK_$$)))if($APP.$cljs$core$truth_$$($hover_grid_QMARK_$$)){var $JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$=$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$);$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$=
$APP.$app$common$uuid$get_u32$$($JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$);(0,$APP.$app$render_wasm$wasm$internal_module$$._show_grid)($JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$[0],$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$[1],$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$[2],
$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$[3]);$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$=$APP.$app$render_wasm$api$request_render$$("show-grid")}else(0,$APP.$app$render_wasm$wasm$internal_module$$._hide_grid)(),$JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$=$APP.$app$render_wasm$api$request_render$$("clear-grid");
else $JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$=null;return $JSCompiler_temp$jscomp$1541_JSCompiler_temp$jscomp$1542_buffer_54515$jscomp$inline_9055_id$jscomp$inline_9054$$});$app$main$ui$workspace$viewport$hooks$setup_dom_events$$($zoom__$1$jscomp$4$$,$disable_paste_ref$jscomp$3$$,$in_viewport_ref$jscomp$4$$,$read_only_QMARK_$jscomp$36$$,$drawing_tool$jscomp$7$$,$path_drawing_QMARK_$$);$app$main$ui$workspace$viewport$hooks$setup_viewport_size$$($vport$jscomp$14$$,
$viewport_ref$jscomp$3$$);$app$main$ui$workspace$viewport$hooks$setup_cursor$$($cursor$jscomp$6$$,$alt_QMARK_$jscomp$25$$,$mod_QMARK_$jscomp$14$$,$space_QMARK_$jscomp$5$$,$panning$jscomp$2$$,$drawing_tool$jscomp$7$$,$path_drawing_QMARK_$$,$path_editing_QMARK_$jscomp$3$$,$z_QMARK_$jscomp$5$$,$read_only_QMARK_$jscomp$36$$);$app$main$ui$workspace$viewport$hooks$setup_keyboard$$($alt_QMARK_$jscomp$25$$,$mod_QMARK_$jscomp$14$$,$space_QMARK_$jscomp$5$$,$z_QMARK_$jscomp$5$$,$shift_QMARK_$jscomp$45$$);$app$main$ui$workspace$viewport$hooks$setup_hover_shapes$$($page_id$jscomp$426$$,
$move_stream$jscomp$4$$,$base_objects$jscomp$2$$,$transform$jscomp$123$$,$selected$jscomp$201$$,$mod_QMARK_$jscomp$14$$,$hover$jscomp$11$$,$measure_hover$jscomp$1$$,$hover_ids$jscomp$7$$,$hover_top_frame_id$jscomp$7$$,$APP.$cljs$core$_deref$$($hover_disabled_QMARK_$jscomp$3$$),$focus$jscomp$22$$,$zoom__$1$jscomp$4$$,$show_measures_QMARK_$jscomp$1$$);$app$main$ui$workspace$viewport$hooks$setup_shortcuts$$($path_editing_QMARK_$jscomp$3$$,$path_drawing_QMARK_$$,$text_editing_QMARK_$jscomp$2$$,$grid_editing_QMARK_$jscomp$2$$);
$app$main$ui$workspace$viewport$hooks$setup_active_frames$$($base_objects$jscomp$2$$,$hover_ids$jscomp$7$$,$selected$jscomp$201$$,$active_frames$jscomp$3$$,$zoom__$1$jscomp$4$$,$transform$jscomp$123$$,$vbox$jscomp$60$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--zoom":$zoom__$1$jscomp$4$$},"data-testid":"viewport",className:"main_ui_workspace_viewport_wasm__viewport",children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$34$$))?
$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$36$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$view_only_bar_STAR_$$,{}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$hide_ui_QMARK_$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$top_toolbar$top_toolbar_STAR_$$,{layout:$layout$jscomp$30$$}),$path_editing_QMARK_$jscomp$3$$&&$single_select_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$path_edition_bar_STAR_$$,{shape:$editing_shape__$1$jscomp$1$$,
editPathState:$edit_path_state$jscomp$2$$,layout:$layout$jscomp$30$$}):null,$grid_editing_QMARK_$jscomp$2$$&&$single_select_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$grid_edition_bar_STAR_$$,{shape:$editing_shape__$1$jscomp$1$$}):null]}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport_wasm__viewport-overlays",children:[$show_comments_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$comments$comments_layer_STAR_$$,
{vbox:$vbox$jscomp$60$$,pageId:$page_id$jscomp$426$$,fileId:$file_id$jscomp$396$$,vport:$vport$jscomp$14$$,zoom:$zoom__$1$jscomp$4$$}):null,$APP.$cljs$core$truth_$$($picking_color_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay_wasm_STAR_$$,{viewportRef:$viewport_ref$jscomp$3$$,canvasRef:$canvas_ref$jscomp$5$$}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_text_editor_QMARK_$$)?$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),
"text-editor-wasm/v1"):$show_text_editor_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$render_wasm$text_editor_input$text_editor_input$$,{shape:$editing_shape__$1$jscomp$1$$,zoom:$zoom__$1$jscomp$4$$,vbox:$vbox$jscomp$60$$}):null]}),(0,$APP.$rumext$v2$jsx$$)("canvas",{id:"render","data-testid":"canvas-wasm-shapes",ref:$canvas_ref$jscomp$5$$,width:$APP.$app$render_wasm$api$dpr$$*$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$2$($vport$jscomp$14$$,0),height:$APP.$app$render_wasm$api$dpr$$*$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$2$($vport$jscomp$14$$,
0),style:{backgroundColor:$background$jscomp$10$$,pointerEvents:"none"},className:"main_ui_workspace_viewport_wasm__render-shapes"},"render"+($page_id$jscomp$426$$??"")),(0,$APP.$rumext$v2$jsxs$$)("svg",{onDoubleClick:$on_double_click$jscomp$5$$,onDragEnter:$on_drag_enter$jscomp$8$$,xmlns:"http://www.w3.org/2000/svg",className:"viewport-controls "+(""+($APP.$cljs$core$_deref$$($cursor$jscomp$6$$)??"")+(($APP.$cljs$core$truth_$$($drawing_tool$jscomp$7$$)?" drawing":null)??"")+" main_ui_workspace_viewport_wasm__viewport-controls"),
children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:"clip-handlers",children:(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$)+$rule_area_size$jscomp$1$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$)+$rule_area_size$jscomp$1$$,width:function(){var $y__5111__auto__$jscomp$182$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$)-$rule_area_size$jscomp$1$$;
return 0>$y__5111__auto__$jscomp$182$$?0:$y__5111__auto__$jscomp$182$$}(),height:function(){var $y__5111__auto__$jscomp$183$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$60$$)-$rule_area_size$jscomp$1$$;return 0>$y__5111__auto__$jscomp$183$$?0:$y__5111__auto__$jscomp$183$$}()})})}),(0,$APP.$rumext$v2$jsxs$$)("g",{style:{pointerEvents:$disable_events_QMARK_$$?"none":"auto"},children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_text_editor_QMARK_$$)?$APP.$cljs$core$not$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),
"text-editor-wasm/v1")):$show_text_editor_QMARK_$$)?$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$v2_editor$text_editor$$,{shape:$editing_shape__$1$jscomp$1$$,"canvas-ref":$canvas_ref$jscomp$5$$,ref:$text_editor_ref$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$editor$text_editor_svg$$,{shape:$editing_shape__$1$jscomp$1$$,
ref:$text_editor_ref$$}):null,$show_frame_outline_QMARK_$$?function(){var $outlined_frame_id$$=$APP.$cljs$core$last$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$201$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78972_SHARP_$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$p1__78972_SHARP_$$))},$APP.$cljs$core$_deref$$($hover_ids$jscomp$7$$)))),
$outlined_frame$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$806$$,$outlined_frame_id$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,{objects:$base_objects$jscomp$2$$,hover:$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$outlined_frame_id$$]),zoom:$zoom__$1$jscomp$4$$}),$APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($outlined_frame$$)?
(0,$APP.$rumext$v2$jsx$$)("g",{className:"ghost-outline blurrable",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,{objects:$base_objects$jscomp$2$$,selected:$selected$jscomp$201$$,zoom:$zoom__$1$jscomp$4$$})}):null]})}():null,$show_outlines_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,{objects:$base_objects$jscomp$2$$,selected:$selected$jscomp$201$$,hover:$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($hover$jscomp$11$$)),
$APP.$cljs$core$_deref$$($frame_hover$jscomp$2$$)]),highlighted:$highlighted$jscomp$4$$,edition:$edition$jscomp$17$$,zoom:$zoom__$1$jscomp$4$$}):null,$APP.$cljs$core$truth_$$($show_selection_handlers_QMARK_$$?$selected_shapes$jscomp$36$$:$show_selection_handlers_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$area_STAR_$$,{shapes:$selected_shapes$jscomp$36$$,zoom:$zoom__$1$jscomp$4$$,edition:$edition$jscomp$17$$,disabled:function(){if($APP.$cljs$core$truth_$$($drawing_tool$jscomp$7$$))return $drawing_tool$jscomp$7$$;
if($APP.$cljs$core$truth_$$($edition$jscomp$17$$))return $edition$jscomp$17$$;var $or__5025__auto____$2$jscomp$37$$=$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$5$$);return $APP.$cljs$core$truth_$$($or__5025__auto____$2$jscomp$37$$)?$or__5025__auto____$2$jscomp$37$$:$APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$14$$)}(),onMoveSelected:$on_move_selected$jscomp$11$$,onContextMenu:$on_menu_selected$$}):null,$APP.$cljs$core$truth_$$($show_text_editor_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$text_edition_outline$text_edition_outline$$,
{shape:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$2$$,$edition$jscomp$17$$),zoom:$zoom__$1$jscomp$4$$}):null,$APP.$cljs$core$truth_$$($show_measures_QMARK_$jscomp$1$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$measurement$$,{bounds:$vbox$jscomp$60$$,"selected-shapes":$selected_shapes$jscomp$36$$,frame:$selected_frame$jscomp$5$$,"hover-shape":$APP.$cljs$core$_deref$$($measure_hover$jscomp$1$$),zoom:$zoom__$1$jscomp$4$$}):null,$show_padding_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$padding$padding_control$$,
{frame:$first_shape$jscomp$12$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$2$$),zoom:$zoom__$1$jscomp$4$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$25$$),"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$45$$),"on-move-selected":$on_move_selected$jscomp$11$$,"on-context-menu":$on_menu_selected$$}):null,$show_padding_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$gap$gap_control$$,{frame:$first_shape$jscomp$12$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$2$$),
zoom:$zoom__$1$jscomp$4$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$25$$),"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$45$$),"on-move-selected":$on_move_selected$jscomp$11$$,"on-context-menu":$on_menu_selected$$}):null,$show_margin_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$margin$margin_control$$,{shape:$first_shape$jscomp$12$$,parent:$selected_frame$jscomp$5$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$2$$),zoom:$zoom__$1$jscomp$4$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$25$$),
"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$45$$)}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_titles_STAR_$$,{objects:$APP.$cljs$core$with_meta$$($objects_modified$$,null),selected:$selected$jscomp$201$$,zoom:$zoom__$1$jscomp$4$$,isShowArtboardNames:$show_artboard_names_QMARK_$$,onFrameEnter:$on_frame_enter$jscomp$4$$,onFrameLeave:$on_frame_leave$jscomp$4$$,onFrameSelect:$on_frame_select$jscomp$4$$,focus:$focus$jscomp$22$$}),$show_prototypes_QMARK_$$?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_flows_STAR_$$,{flows:$APP.$cljs$cst$2041$flows$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$158$$),objects:$objects_modified$$,selected:$selected$jscomp$201$$,zoom:$zoom__$1$jscomp$4$$,onFrameEnter:$on_frame_enter$jscomp$4$$,onFrameLeave:$on_frame_leave$jscomp$4$$,onFrameSelect:$on_frame_select$jscomp$4$$}):null,$drawing_obj$$&&$APP.$app$common$types$shape$shape_QMARK_$$($drawing_obj$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$drawarea$draw_area_STAR_$$,
{shape:$drawing_obj$$,zoom:$zoom__$1$jscomp$4$$,tool:$drawing_tool$jscomp$7$$}):null,$show_grids_QMARK_$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$frame_grid$frame_grid$$,{zoom:$zoom__$1$jscomp$4$$,selected:$selected$jscomp$201$$,transform:$transform$jscomp$123$$,focus:$focus$jscomp$22$$}):null,$show_pixel_grid_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$pixel_grid_STAR_$$,{vbox:$vbox$jscomp$60$$,zoom:$zoom__$1$jscomp$4$$}):null,$APP.$cljs$core$truth_$$($show_snap_points_QMARK_$$)?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_points$snap_points$$,{layout:$layout$jscomp$30$$,transform:$transform$jscomp$123$$,drawing:$drawing_obj$$,zoom:$zoom__$1$jscomp$4$$,"page-id":$page_id$jscomp$426$$,selected:$selected$jscomp$201$$,objects:$objects_modified$$,focus:$focus$jscomp$22$$}):null,$show_snap_distance_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_distances$snap_distances$$,{layout:$layout$jscomp$30$$,zoom:$zoom__$1$jscomp$4$$,transform:$transform$jscomp$123$$,
selected:$selected$jscomp$201$$,"selected-shapes":$selected_shapes$jscomp$36$$,"page-id":$page_id$jscomp$426$$}):null,$APP.$cljs$core$truth_$$($tooltip$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$cursor_tooltip_STAR_$$,{zoom:$zoom__$1$jscomp$4$$,tooltip:$tooltip$jscomp$2$$}):null,$APP.$cljs$core$truth_$$($show_selrect_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$selection_rect_STAR_$$,{data:$selrect$jscomp$91$$,zoom:$zoom__$1$jscomp$4$$}):
null,$APP.$cljs$core$truth_$$($page_id$jscomp$426$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$presence$active_cursors$$,{"page-id":$page_id$jscomp$426$$}):null,$hide_ui_QMARK_$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$rulers$$,{zoom:$zoom__$1$jscomp$4$$,"zoom-inverse":$zoom_inverse$jscomp$9$$,vbox:$vbox$jscomp$60$$,"selected-shapes":$selected_shapes$jscomp$36$$,"offset-x":$offset_x$jscomp$17$$,"offset-y":$offset_y$jscomp$18$$,"show-rulers?":$show_rulers_QMARK_$jscomp$2$$}),
$show_rulers_QMARK_$jscomp$2$$&&$show_grids_QMARK_$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$viewport_guides_STAR_$$,{zoom:$zoom__$1$jscomp$4$$,vbox:$vbox$jscomp$60$$,guides:$guides$jscomp$7$$,hoverFrame:$guide_frame$$,disabledGuides:$disabled_guides_QMARK_$$,modifiers:$wasm_modifiers$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2918$layout_drop_zones$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_drop_zones$$,{"selected-shapes":$selected_shapes$jscomp$36$$,
objects:$base_objects$jscomp$2$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$),zoom:$zoom__$1$jscomp$4$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2917$layout_content_bounds$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_content_bounds$$,{"selected-shapes":$selected_shapes$jscomp$36$$,objects:$base_objects$jscomp$2$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$),zoom:$zoom__$1$jscomp$4$$}):
null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2913$layout_lines$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_layout_lines$$,{"selected-shapes":$selected_shapes$jscomp$36$$,objects:$base_objects$jscomp$2$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$),zoom:$zoom__$1$jscomp$4$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2919$parent_bounds$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_parent_bounds$$,
{"selected-shapes":$selected_shapes$jscomp$36$$,objects:$base_objects$jscomp$2$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$),zoom:$zoom__$1$jscomp$4$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2911$grid_layout$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_grid_layout$$,{"selected-shapes":$selected_shapes$jscomp$36$$,objects:$base_objects$jscomp$2$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$),
zoom:$zoom__$1$jscomp$4$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2927$text_outline$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_text_wasm_position_data$$,{"selected-shapes":$selected_shapes$jscomp$36$$,objects:$base_objects$jscomp$2$$,zoom:$zoom__$1$jscomp$4$$}):null,$show_selection_handlers_QMARK_$$?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"selection-handlers",clipPath:"url(#clip-handlers)",children:[$text_editing_QMARK_$jscomp$2$$?null:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$1$$)?
$path_editing_QMARK_$jscomp$3$$:$editing_shape__$1$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_editor_STAR_$$,{shape:$editing_shape__$1$jscomp$1$$,state:$edit_path_state$jscomp$2$$,zoom:$zoom__$1$jscomp$4$$}):$APP.$cljs$core$truth_$$($selected_shapes$jscomp$36$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$handlers_STAR_$$,{selected:$selected$jscomp$201$$,shapes:$selected_shapes$jscomp$36$$,zoom:$zoom__$1$jscomp$4$$,disabled:$APP.$cljs$core$truth_$$($drawing_tool$jscomp$7$$)?
$drawing_tool$jscomp$7$$:$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$5$$)}):null,$show_prototypes_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interactions$$,{selected:$selected$jscomp$201$$,"page-id":$page_id$jscomp$426$$,zoom:$zoom__$1$jscomp$4$$,objects:$objects_modified$$,"current-transform":$transform$jscomp$123$$,"hover-disabled?":$hover_disabled_QMARK_$jscomp$3$$}):null]}):null,$show_gradient_handlers_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$gradient_handlers_STAR_$$,
{id:$APP.$cljs$core$first$$($selected$jscomp$201$$),zoom:$zoom__$1$jscomp$4$$}):null,$APP.$cljs$core$truth_$$($show_add_variant_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$button_add_STAR_$$,{shape:$first_shape$jscomp$12$$,zoom:$zoom__$1$jscomp$4$$,onClick:$add_variant$$}):null,(0,$APP.$rumext$v2$jsx$$)("g",{className:"grid-layout-editor",clipPath:"url(#clip-handlers)",children:$APP.$cljs$core$truth_$$($show_grid_editor_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$editor$$,
{zoom:$zoom__$1$jscomp$4$$,objects:$objects_modified$$,shape:function(){var $or__5025__auto__$jscomp$1258$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects_modified$$,$edition$jscomp$17$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1258$$)?$or__5025__auto__$jscomp$1258$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects_modified$$,$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$7$$))}(),"view-only":$APP.$cljs$core$not$$($show_grid_editor_QMARK_$$)}):null}),
(0,$APP.$rumext$v2$jsx$$)("g",{className:"scrollbar-wrapper",clipPath:"url(#clip-handlers)",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$scroll_bars$viewport_scrollbars$$,{objects:$base_objects$jscomp$2$$,zoom:$zoom__$1$jscomp$4$$,vbox:$vbox$jscomp$60$$,"bottom-padding":$APP.$cljs$core$truth_$$($palete_size$$)?$palete_size$$+8:null})})]})],id:"viewport-controls",viewBox:$app$main$ui$workspace$viewport$utils$format_viewbox$$($vbox$jscomp$60$$),onPointerUp:$on_pointer_up$jscomp$7$$,
onContextMenu:$on_context_menu$jscomp$28$$,onDrop:$on_drop$jscomp$19$$,preserveAspectRatio:"xMidYMid meet",style:{touchAction:"none"},xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",onDragOver:$on_drag_over$jscomp$2$$,onDragEnd:$on_drag_end$jscomp$2$$,onClick:$on_click$jscomp$58$$,onPointerMove:$on_pointer_move$jscomp$15$$,ref:$on_viewport_ref$$,onPointerDown:$on_pointer_down$jscomp$21$$,onPointerLeave:$on_pointer_leave$jscomp$18$$,onPointerEnter:$on_pointer_enter$jscomp$18$$},["viewport",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$426$$)].join(""))]})};
$app$main$ui$workspace$viewport$apply_modifiers_to_selected$$=function($selected$jscomp$202$$,$objects$jscomp$807$$,$text_modifiers$jscomp$4$$,$modifiers$jscomp$136$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($objects__$1$jscomp$40$$,$id$jscomp$998$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($objects__$1$jscomp$40$$,$id$jscomp$998$$,function($G__79002__$1_shape$jscomp$1073$$){$G__79002__$1_shape$jscomp$1073$$=$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__79002__$1_shape$jscomp$1073$$)&&
$APP.$cljs$core$contains_QMARK_$$($text_modifiers$jscomp$4$$,$id$jscomp$998$$)?$APP.$app$main$data$workspace$modifiers$apply_text_modifier$$($G__79002__$1_shape$jscomp$1073$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($text_modifiers$jscomp$4$$,$id$jscomp$998$$)):$G__79002__$1_shape$jscomp$1073$$;return $APP.$cljs$core$contains_QMARK_$$($modifiers$jscomp$136$$,$id$jscomp$998$$)?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($G__79002__$1_shape$jscomp$1073$$,
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$136$$,$id$jscomp$998$$),$APP.$cljs$cst$1794$modifiers$$)):$G__79002__$1_shape$jscomp$1073$$})},$objects$jscomp$807$$,$selected$jscomp$202$$)};
$app$main$ui$workspace$viewport$viewport_classic_STAR_$$=function($props_79008$$){var $palete_size$jscomp$1$$=$props_79008$$.paleteSize,$selected$jscomp$203$$=$props_79008$$.selected,$layout$jscomp$31$$=$props_79008$$.layout,$file$jscomp$178$$=$props_79008$$.file,$page$jscomp$159$$=$props_79008$$.page,$wglobal$jscomp$2$$=$props_79008$$.wglobal,$map__79013$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_local$$),$map__79013__$1$$=$APP.$cljs$core$__destructure_map$$($map__79013$$),$edition$jscomp$18$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$2161$edition$$),$selrect$jscomp$92$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$1589$selrect$$),$zoom_inverse$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$3467$zoom_inverse$$),$panning$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$4297$panning$$),$zoom$jscomp$168$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$2158$zoom$$),$transform$jscomp$124$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$1275$transform$$),$vbox$jscomp$61$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$1910$vbox$$),$edit_path$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$1908$edit_path$$),$highlighted$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,
$APP.$cljs$cst$2151$highlighted$$),$vport$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79013__$1$$,$APP.$cljs$cst$2165$vport$$),$map__79014__$1$$=$APP.$cljs$core$__destructure_map$$($wglobal$jscomp$2$$),$options_mode$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79014__$1$$,$APP.$cljs$cst$2162$options_mode$$),$tooltip$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79014__$1$$,$APP.$cljs$cst$2630$tooltip$$),$show_distances_QMARK_$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79014__$1$$,$APP.$cljs$cst$4336$show_distances_QMARK_$$),$picking_color_QMARK_$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79014__$1$$,$APP.$cljs$cst$4014$picking_color_QMARK_$$),$vbox_SINGLEQUOTE_$jscomp$1$$=$rumext$v2$use_debounce$$($vbox$jscomp$61$$),$permissions$jscomp$35$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$),$read_only_QMARK_$jscomp$37$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),
$drawing$jscomp$6$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_drawing$$),$focus$jscomp$23$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$),$file_id$jscomp$397$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$178$$,$APP.$cljs$cst$266$id$$),$page_id$jscomp$427$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$159$$,$APP.$cljs$cst$266$id$$),$objects$jscomp$808$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$159$$,
$APP.$cljs$cst$1615$objects$$),$background$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($page$jscomp$159$$,$APP.$cljs$cst$2043$background$$,"#E8E9EA"),$base_objects$jscomp$3$$=$app$main$ui$hooks$with_focus_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$808$$,$focus$jscomp$23$$),$modifiers$jscomp$137$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_modifiers$$),$text_modifiers$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_text_modifier$$),
$objects_modified$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_objects$jscomp$3$$),$APP.$rumext$v2$adapt$$($text_modifiers$jscomp$5$$),$APP.$rumext$v2$adapt$$($modifiers$jscomp$137$$)],function(){return $app$main$ui$workspace$viewport$apply_modifiers_to_selected$$($selected$jscomp$203$$,$base_objects$jscomp$3$$,$text_modifiers$jscomp$5$$,$modifiers$jscomp$137$$)}),$selected_shapes$jscomp$37$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects_modified$jscomp$1$$)),$selected$jscomp$203$$)),$alt_QMARK_$jscomp$26$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$shift_QMARK_$jscomp$46$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$mod_QMARK_$jscomp$15$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$space_QMARK_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$z_QMARK_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$cursor$jscomp$7$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($cljs$cst$5661$pointer_inner$$)}),$hover_ids$jscomp$8$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$hover$jscomp$12$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$measure_hover$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),
$hover_disabled_QMARK_$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$hover_top_frame_id$jscomp$8$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$frame_hover$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$active_frames$jscomp$4$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentHashSet$EMPTY$$),$vec__79015$$=$app$main$ui$workspace$viewport$viewport_ref$create_viewport_ref$$(),
$viewport_ref$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__79015$$,0,null),$on_viewport_ref$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__79015$$,1,null),$canvas_ref$jscomp$6$$=(0,$APP.$rumext$v2$use_ref$$)(null),$disable_paste_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$in_viewport_ref$jscomp$5$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$move_stream$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$beicon$v2$core$subject$$()}),
$guide_frame$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($hover_ids$jscomp$8$$)),$APP.$rumext$v2$adapt$$($base_objects$jscomp$3$$)],function(){var $parent_id$jscomp$114$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$files$helpers$root_frame_QMARK_$$,$base_objects$jscomp$3$$),$APP.$cljs$core$_deref$$($hover_ids$jscomp$8$$));
return $parent_id$jscomp$114$$!=null?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$parent_id$jscomp$114$$):null}),$zoom__$1$jscomp$5$$=$APP.$app$common$math$finite$$($zoom$jscomp$168$$,1),$drawing_tool$jscomp$8$$=$APP.$cljs$cst$2159$tool$$.$cljs$core$IFn$_invoke$arity$1$($drawing$jscomp$6$$),$drawing_obj$jscomp$1$$=$APP.$cljs$cst$2160$object$$.$cljs$core$IFn$_invoke$arity$1$($drawing$jscomp$6$$),$selected_frames$jscomp$3$$=$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$1591$frame_id$$),$selected_shapes$jscomp$37$$),$selected_frame$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_frames$jscomp$3$$),1)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$APP.$cljs$core$first$$($selected_frames$jscomp$3$$)):null,$edit_path_state$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edit_path$jscomp$1$$,$edition$jscomp$18$$),
$edit_path_mode$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edit_path_state$jscomp$3$$,$APP.$cljs$cst$4107$edit_mode$$),$path_editing_QMARK_$jscomp$4$$=$edit_path_state$jscomp$3$$!=null,$path_drawing_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edit_path_mode$jscomp$1$$,$APP.$cljs$cst$4108$draw$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$294$path$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($drawing_obj$jscomp$1$$,
$APP.$cljs$cst$139$type$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2037$curve$$,$drawing_tool$jscomp$8$$),$editing_shape$jscomp$2$$=$APP.$cljs$core$truth_$$($edition$jscomp$18$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$edition$jscomp$18$$):null,$editing_shape__$1$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($editing_shape$jscomp$2$$),$APP.$rumext$v2$adapt$$($path_editing_QMARK_$jscomp$4$$),
$APP.$rumext$v2$adapt$$($base_objects$jscomp$3$$)],function(){return $path_editing_QMARK_$jscomp$4$$?$APP.$app$common$types$path$convert_to_path$$.$cljs$core$IFn$_invoke$arity$2$($editing_shape$jscomp$2$$,$base_objects$jscomp$3$$):$editing_shape$jscomp$2$$}),$create_comment_QMARK_$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3313$comments$$,$drawing_tool$jscomp$8$$),$text_editing_QMARK_$jscomp$3$$=$APP.$app$common$files$helpers$text_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$2$$),
$grid_editing_QMARK_$jscomp$3$$=$APP.$cljs$core$truth_$$($edition$jscomp$18$$)?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$edition$jscomp$18$$):$edition$jscomp$18$$,$mode_inspect_QMARK_$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode$jscomp$4$$,$APP.$cljs$cst$3600$inspect$$),$on_click$jscomp$59$$=$app$main$ui$workspace$viewport$actions$on_click$$($hover$jscomp$12$$,$selected$jscomp$203$$,$edition$jscomp$18$$,
$path_drawing_QMARK_$jscomp$1$$,$drawing_tool$jscomp$8$$,$space_QMARK_$jscomp$6$$,$selrect$jscomp$92$$,$z_QMARK_$jscomp$6$$),$on_context_menu$jscomp$29$$=$app$main$ui$workspace$viewport$actions$on_context_menu$$($hover$jscomp$12$$,$hover_ids$jscomp$8$$,$read_only_QMARK_$jscomp$37$$),$on_double_click$jscomp$6$$=$app$main$ui$workspace$viewport$actions$on_double_click$$($hover$jscomp$12$$,$hover_ids$jscomp$8$$,$hover_top_frame_id$jscomp$8$$,$path_drawing_QMARK_$jscomp$1$$,$base_objects$jscomp$3$$,$edition$jscomp$18$$,
$drawing_tool$jscomp$8$$,$z_QMARK_$jscomp$6$$,$read_only_QMARK_$jscomp$37$$),$comp_inst_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$on_drag_enter$jscomp$9$$=$app$main$ui$workspace$viewport$actions$on_drag_enter$$($comp_inst_ref$jscomp$4$$),$on_drag_over$jscomp$3$$=$app$main$ui$workspace$viewport$actions$on_drag_over$$($move_stream$jscomp$5$$),$on_drag_end$jscomp$3$$=$app$main$ui$workspace$viewport$actions$on_drag_over$$($comp_inst_ref$jscomp$4$$),$on_drop$jscomp$20$$=$app$main$ui$workspace$viewport$actions$on_drop$$($file$jscomp$178$$,
$comp_inst_ref$jscomp$4$$),$on_pointer_down$jscomp$22$$=$app$main$ui$workspace$viewport$actions$on_pointer_down$$($APP.$cljs$core$_deref$$($hover$jscomp$12$$),$selected$jscomp$203$$,$edition$jscomp$18$$,$drawing_tool$jscomp$8$$,$text_editing_QMARK_$jscomp$3$$,$path_editing_QMARK_$jscomp$4$$,$grid_editing_QMARK_$jscomp$3$$,$path_drawing_QMARK_$jscomp$1$$,$create_comment_QMARK_$jscomp$2$$,$space_QMARK_$jscomp$6$$,$panning$jscomp$3$$,$z_QMARK_$jscomp$6$$,$read_only_QMARK_$jscomp$37$$),$on_pointer_up$jscomp$8$$=
$app$main$ui$workspace$viewport$actions$on_pointer_up$$($disable_paste_ref$jscomp$4$$),$on_pointer_enter$jscomp$19$$=$app$main$ui$workspace$viewport$actions$on_pointer_enter$$($in_viewport_ref$jscomp$5$$),$on_pointer_leave$jscomp$19$$=$app$main$ui$workspace$viewport$actions$on_pointer_leave$$($in_viewport_ref$jscomp$5$$),$on_pointer_move$jscomp$16$$=$app$main$ui$workspace$viewport$actions$on_pointer_move$$($move_stream$jscomp$5$$),$on_move_selected$jscomp$12$$=$app$main$ui$workspace$viewport$actions$on_move_selected$$($hover$jscomp$12$$,
$hover_ids$jscomp$8$$,$selected$jscomp$203$$,$space_QMARK_$jscomp$6$$,$z_QMARK_$jscomp$6$$,$read_only_QMARK_$jscomp$37$$),$on_menu_selected$jscomp$1$$=$app$main$ui$workspace$viewport$actions$on_menu_selected$$($hover$jscomp$12$$,$hover_ids$jscomp$8$$,$selected$jscomp$203$$,$read_only_QMARK_$jscomp$37$$),$on_frame_enter$jscomp$5$$=$app$main$ui$workspace$viewport$actions$on_frame_enter$$($frame_hover$jscomp$3$$),$on_frame_leave$jscomp$5$$=$app$main$ui$workspace$viewport$actions$on_frame_leave$$($frame_hover$jscomp$3$$),
$on_frame_select$jscomp$5$$=$app$main$ui$workspace$viewport$actions$on_frame_select$$($selected$jscomp$203$$,$read_only_QMARK_$jscomp$37$$),$disable_events_QMARK_$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3313$comments$$),$show_comments_QMARK_$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawing_tool$jscomp$8$$,$APP.$cljs$cst$3313$comments$$),$show_gradient_handlers_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected$jscomp$203$$),
1),$show_grids_QMARK_$jscomp$3$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3594$display_guides$$),$show_frame_outline_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$124$$,$APP.$cljs$cst$1782$move$$),$show_outlines_QMARK_$jscomp$1$$=$transform$jscomp$124$$==null&&$APP.$cljs$core$not$$($edition$jscomp$18$$)&&$APP.$cljs$core$not$$($drawing_obj$jscomp$1$$)&&$APP.$cljs$core$not$$(function(){var $fexpr__79029$$=new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$2037$curve$$,null],null),null);return $fexpr__79029$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__79029$$.$cljs$core$IFn$_invoke$arity$1$($drawing_tool$jscomp$8$$):$fexpr__79029$$($drawing_tool$jscomp$8$$)}()),$show_pixel_grid_QMARK_$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3587$show_pixel_grid$$)&&$zoom__$1$jscomp$5$$>=8,$show_text_editor_QMARK_$jscomp$1$$=$APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$2$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$2$$)):$editing_shape__$1$jscomp$2$$,$hover_grid_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$927$$=$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$)!=null;return $and__5023__auto__$jscomp$927$$?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$808$$,$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$)):
$and__5023__auto__$jscomp$927$$}(),$show_grid_editor_QMARK_$jscomp$1$$=$APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$2$$)?$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($editing_shape__$1$jscomp$2$$):$editing_shape__$1$jscomp$2$$,$show_prototypes_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode$jscomp$4$$,$APP.$cljs$cst$3601$prototype$$),$show_selection_handlers_QMARK_$jscomp$1$$=$APP.$cljs$core$seq$$($selected$jscomp$203$$)&&
$APP.$cljs$core$not$$($show_text_editor_QMARK_$jscomp$1$$),$show_snap_distance_QMARK_$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3593$dynamic_alignment$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$124$$,$APP.$cljs$cst$1782$move$$)&&$APP.$cljs$core$seq$$($selected$jscomp$203$$),$show_snap_points_QMARK_$jscomp$1$$=function(){var $and__5023__auto__$jscomp$929$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3593$dynamic_alignment$$)||
$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3590$snap_guides$$);return $and__5023__auto__$jscomp$929$$?$APP.$cljs$core$truth_$$($drawing_obj$jscomp$1$$)?$drawing_obj$jscomp$1$$:$transform$jscomp$124$$:$and__5023__auto__$jscomp$929$$}(),$show_selrect_QMARK_$jscomp$1$$=$APP.$cljs$core$truth_$$($selrect$jscomp$92$$)?$APP.$cljs$core$empty_QMARK_$$($drawing$jscomp$6$$)&&!$text_editing_QMARK_$jscomp$3$$:$selrect$jscomp$92$$,$show_measures_QMARK_$jscomp$2$$=function(){var $and__5023__auto__$jscomp$931_and__5023__auto____$1$jscomp$154$$=
$APP.$cljs$core$not$$($transform$jscomp$124$$);return $and__5023__auto__$jscomp$931_and__5023__auto____$1$jscomp$154$$?($and__5023__auto__$jscomp$931_and__5023__auto____$1$jscomp$154$$=!$path_editing_QMARK_$jscomp$4$$)?$APP.$cljs$core$truth_$$($show_distances_QMARK_$jscomp$1$$)?$show_distances_QMARK_$jscomp$1$$:$mode_inspect_QMARK_$jscomp$2$$?$mode_inspect_QMARK_$jscomp$2$$:$read_only_QMARK_$jscomp$37$$:$and__5023__auto__$jscomp$931_and__5023__auto____$1$jscomp$154$$:$and__5023__auto__$jscomp$931_and__5023__auto____$1$jscomp$154$$}(),
$show_artboard_names_QMARK_$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$3591$display_artboard_names$$),$hide_ui_QMARK_$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$4639$hide_ui$$),$show_rulers_QMARK_$jscomp$3$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$31$$,$APP.$cljs$cst$2173$rulers$$)&&!$hide_ui_QMARK_$jscomp$1$$,$disabled_guides_QMARK_$jscomp$1$$=function(){if($APP.$cljs$core$truth_$$($drawing_tool$jscomp$8$$))return $drawing_tool$jscomp$8$$;
if($APP.$cljs$core$truth_$$($transform$jscomp$124$$))return $transform$jscomp$124$$;if($path_drawing_QMARK_$jscomp$1$$)return $path_drawing_QMARK_$jscomp$1$$;if($path_editing_QMARK_$jscomp$4$$)return $path_editing_QMARK_$jscomp$4$$;var $or__5025__auto____$4$jscomp$7$$=$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto____$4$jscomp$7$$)?$or__5025__auto____$4$jscomp$7$$:$APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$15$$)}(),$single_select_QMARK_$jscomp$1$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_shapes$jscomp$37$$),1),$first_shape$jscomp$13$$=$APP.$cljs$core$first$$($selected_shapes$jscomp$37$$),$show_add_variant_QMARK_$jscomp$1$$=function(){if($single_select_QMARK_$jscomp$1$$){var $or__5025__auto__$jscomp$1262$$=$APP.$app$common$types$component$is_variant_container_QMARK_$$($first_shape$jscomp$13$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1262$$)?$or__5025__auto__$jscomp$1262$$:$APP.$app$common$types$component$is_variant_QMARK_$$($first_shape$jscomp$13$$)}return $single_select_QMARK_$jscomp$1$$}(),
$show_padding_QMARK_$jscomp$1$$=$transform$jscomp$124$$==null&&$single_select_QMARK_$jscomp$1$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$),$APP.$cljs$cst$1590$frame$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$),$APP.$cljs$cst$1644$flex$$)&&$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$)===
0,$show_margin_QMARK_$jscomp$1$$=$transform$jscomp$124$$==null&&$single_select_QMARK_$jscomp$1$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$6$$),$APP.$cljs$cst$1644$flex$$)&&$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$)===0,$selecting_first_level_frame_QMARK_$jscomp$1$$=$single_select_QMARK_$jscomp$1$$&&$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$),
$offset_x$jscomp$18$$=$selecting_first_level_frame_QMARK_$jscomp$1$$?$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$):$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$6$$),$offset_y$jscomp$19$$=$selecting_first_level_frame_QMARK_$jscomp$1$$?$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$):$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$6$$),$rule_area_size$jscomp$2$$=22/$zoom__$1$jscomp$5$$,
$add_variant$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($first_shape$jscomp$13$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$variants$add_new_variant$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($first_shape$jscomp$13$$)))});$app$main$ui$workspace$viewport$hooks$setup_dom_events$$($zoom__$1$jscomp$5$$,$disable_paste_ref$jscomp$4$$,
$in_viewport_ref$jscomp$5$$,$read_only_QMARK_$jscomp$37$$,$drawing_tool$jscomp$8$$,$path_drawing_QMARK_$jscomp$1$$);$app$main$ui$workspace$viewport$hooks$setup_viewport_size$$($vport$jscomp$15$$,$viewport_ref$jscomp$4$$);$app$main$ui$workspace$viewport$hooks$setup_cursor$$($cursor$jscomp$7$$,$alt_QMARK_$jscomp$26$$,$mod_QMARK_$jscomp$15$$,$space_QMARK_$jscomp$6$$,$panning$jscomp$3$$,$drawing_tool$jscomp$8$$,$path_drawing_QMARK_$jscomp$1$$,$path_editing_QMARK_$jscomp$4$$,$z_QMARK_$jscomp$6$$,$read_only_QMARK_$jscomp$37$$);
$app$main$ui$workspace$viewport$hooks$setup_keyboard$$($alt_QMARK_$jscomp$26$$,$mod_QMARK_$jscomp$15$$,$space_QMARK_$jscomp$6$$,$z_QMARK_$jscomp$6$$,$shift_QMARK_$jscomp$46$$);$app$main$ui$workspace$viewport$hooks$setup_hover_shapes$$($page_id$jscomp$427$$,$move_stream$jscomp$5$$,$base_objects$jscomp$3$$,$transform$jscomp$124$$,$selected$jscomp$203$$,$mod_QMARK_$jscomp$15$$,$hover$jscomp$12$$,$measure_hover$jscomp$2$$,$hover_ids$jscomp$8$$,$hover_top_frame_id$jscomp$8$$,$APP.$cljs$core$_deref$$($hover_disabled_QMARK_$jscomp$4$$),
$focus$jscomp$23$$,$zoom__$1$jscomp$5$$,$show_measures_QMARK_$jscomp$2$$);$app$main$ui$workspace$viewport$hooks$setup_viewport_modifiers$$($modifiers$jscomp$137$$,$base_objects$jscomp$3$$);$app$main$ui$workspace$viewport$hooks$setup_shortcuts$$($path_editing_QMARK_$jscomp$4$$,$path_drawing_QMARK_$jscomp$1$$,$text_editing_QMARK_$jscomp$3$$,$grid_editing_QMARK_$jscomp$3$$);$app$main$ui$workspace$viewport$hooks$setup_active_frames$$($base_objects$jscomp$3$$,$hover_ids$jscomp$8$$,$selected$jscomp$203$$,
$active_frames$jscomp$4$$,$zoom__$1$jscomp$5$$,$transform$jscomp$124$$,$vbox$jscomp$61$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--zoom":$zoom__$1$jscomp$5$$},"data-testid":"viewport",className:"main_ui_workspace_viewport__viewport",children:[$APP.$cljs$core$truth_$$($APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$35$$))?$APP.$cljs$core$truth_$$($read_only_QMARK_$jscomp$37$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$view_only_bar_STAR_$$,
{}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$hide_ui_QMARK_$jscomp$1$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$top_toolbar$top_toolbar_STAR_$$,{layout:$layout$jscomp$31$$}),$path_editing_QMARK_$jscomp$4$$&&$single_select_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$path_edition_bar_STAR_$$,{shape:$editing_shape__$1$jscomp$2$$,editPathState:$edit_path_state$jscomp$3$$,layout:$layout$jscomp$31$$}):null,$grid_editing_QMARK_$jscomp$3$$&&
$single_select_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$top_bar$grid_edition_bar_STAR_$$,{shape:$editing_shape__$1$jscomp$2$$}):null]}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_viewport__viewport-overlays",children:[(0,$APP.$rumext$v2$jsx$$)("svg",{style:{top:0,left:0,position:"fixed",width:"100%",height:"100%",opacity:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2934$html_text$$)?null:0},children:(0,$APP.$rumext$v2$jsx$$)("foreignObject",
{x:0,y:0,width:"100%",height:"100%",children:(0,$APP.$rumext$v2$jsx$$)("div",{style:{pointerEvents:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2934$html_text$$)?null:"none",opacity:.6},children:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$933$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$35$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$933$$)?$APP.$cljs$core$not$$($read_only_QMARK_$jscomp$37$$):$and__5023__auto__$jscomp$933$$}())?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$viewport_texts$$,{"page-id":$page_id$jscomp$427$$,objects:$objects$jscomp$808$$,modifiers:$modifiers$jscomp$137$$,edition:$edition$jscomp$18$$},"texts-"+($page_id$jscomp$427$$??"")):null})})}),$show_comments_QMARK_$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$comments$comments_layer_STAR_$$,{vbox:$vbox$jscomp$61$$,pageId:$page_id$jscomp$427$$,fileId:$file_id$jscomp$397$$,vport:$vport$jscomp$15$$,
zoom:$zoom__$1$jscomp$5$$}):null,$APP.$cljs$core$truth_$$($picking_color_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$pixel_overlay$pixel_overlay$$,{vport:$vport$jscomp$15$$,vbox:$vbox$jscomp$61$$,layout:$layout$jscomp$31$$,"viewport-ref":$viewport_ref$jscomp$4$$}):null]}),(0,$APP.$rumext$v2$jsxs$$)("svg",{"xmlns:penpot":"https://penpot.app/xmlns",width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$2$($vport$jscomp$15$$,0),xmlns:"http://www.w3.org/2000/svg",
height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$2$($vport$jscomp$15$$,0),className:"main_ui_workspace_viewport__render-shapes",children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsxs$$)("linearGradient",{id:"frame-placeholder-gradient",children:[(0,$APP.$rumext$v2$jsx$$)("animateTransform",{attributeName:"gradientTransform",type:"translate",from:"-1 0",to:"1 0",dur:"2s",repeatCount:"indefinite"}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"0%",stopColor:["color-mix(in srgb-linear, ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($background$jscomp$11$$)," 90%, #777)"].join(""),stopOpacity:1}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"50%",stopColor:["color-mix(in srgb-linear, ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($background$jscomp$11$$)," 80%, #777)"].join(""),stopOpacity:1}),(0,$APP.$rumext$v2$jsx$$)("stop",{offset:"100%",stopColor:["color-mix(in srgb-linear, ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($background$jscomp$11$$)," 90%, #777)"].join(""),
stopOpacity:1})]})}),$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2930$show_export_metadata$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$shapes$export$0$export_page$$,{page:$page$jscomp$159$$}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$61$$,0),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$61$$,0),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$61$$,0),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$61$$,
0),fill:$background$jscomp$11$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_vbox$$),{value:$vbox_SINGLEQUOTE_$jscomp$1$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$shapes$export$0$include_metadata_ctx$$),{value:$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2930$show_export_metadata$$),children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$workspace$shapes$root_shape$$,{objects:$base_objects$jscomp$3$$,"active-frames":$APP.$cljs$core$_deref$$($active_frames$jscomp$4$$)},
$page_id$jscomp$427$$)})})],id:"render",viewBox:$app$main$ui$workspace$viewport$utils$format_viewbox$$($vbox$jscomp$61$$),preserveAspectRatio:"xMidYMid meet",style:{backgroundColor:$background$jscomp$11$$,pointerEvents:"none"},xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none"},["render",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$427$$)].join("")),(0,$APP.$rumext$v2$jsxs$$)("svg",{onDoubleClick:$on_double_click$jscomp$6$$,onDragEnter:$on_drag_enter$jscomp$9$$,xmlns:"http://www.w3.org/2000/svg",
className:"viewport-controls "+(""+($APP.$cljs$core$_deref$$($cursor$jscomp$7$$)??"")+(($APP.$cljs$core$truth_$$($drawing_tool$jscomp$8$$)?" drawing":null)??"")+" main_ui_workspace_viewport__viewport-controls"),children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:"clip-handlers",children:(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$61$$)+$rule_area_size$jscomp$2$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$61$$)+
$rule_area_size$jscomp$2$$,width:function(){var $y__5111__auto__$jscomp$184$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$61$$)-$rule_area_size$jscomp$2$$;return 0>$y__5111__auto__$jscomp$184$$?0:$y__5111__auto__$jscomp$184$$}(),height:function(){var $y__5111__auto__$jscomp$185$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$61$$)-$rule_area_size$jscomp$2$$;return 0>$y__5111__auto__$jscomp$185$$?0:$y__5111__auto__$jscomp$185$$}()})})}),(0,$APP.$rumext$v2$jsxs$$)("g",
{style:{pointerEvents:$disable_events_QMARK_$jscomp$1$$?"none":"auto"},children:[$APP.$cljs$core$truth_$$($show_text_editor_QMARK_$jscomp$1$$)?$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$v2_editor$text_editor$$,{shape:$editing_shape__$1$jscomp$2$$,"canvas-ref":$canvas_ref$jscomp$6$$,modifiers:$modifiers$jscomp$137$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$editor$text_editor_svg$$,
{shape:$editing_shape__$1$jscomp$2$$,modifiers:$modifiers$jscomp$137$$}):null,$show_frame_outline_QMARK_$jscomp$1$$?function(){var $outlined_frame_id$jscomp$1$$=$APP.$cljs$core$last$$($APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$203$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__79007_SHARP_$$){return $APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,
$p1__79007_SHARP_$$))},$APP.$cljs$core$_deref$$($hover_ids$jscomp$8$$)))),$outlined_frame$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$808$$,$outlined_frame_id$jscomp$1$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,{objects:$base_objects$jscomp$3$$,hover:$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$outlined_frame_id$jscomp$1$$]),zoom:$zoom__$1$jscomp$5$$,
modifiers:$modifiers$jscomp$137$$}),$APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($outlined_frame$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"ghost-outline",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,{objects:$base_objects$jscomp$3$$,selected:$selected$jscomp$203$$,zoom:$zoom__$1$jscomp$5$$})}):null]})}():null,$show_outlines_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$shape_outlines$$,
{objects:$base_objects$jscomp$3$$,selected:$selected$jscomp$203$$,hover:$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($hover$jscomp$12$$)),$APP.$cljs$core$_deref$$($frame_hover$jscomp$3$$)]),highlighted:$highlighted$jscomp$5$$,edition:$edition$jscomp$18$$,zoom:$zoom__$1$jscomp$5$$,modifiers:$modifiers$jscomp$137$$}):null,$APP.$cljs$core$truth_$$($show_selection_handlers_QMARK_$jscomp$1$$?$selected_shapes$jscomp$37$$:
$show_selection_handlers_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$area_STAR_$$,{shapes:$selected_shapes$jscomp$37$$,zoom:$zoom__$1$jscomp$5$$,edition:$edition$jscomp$18$$,disabled:function(){if($APP.$cljs$core$truth_$$($drawing_tool$jscomp$8$$))return $drawing_tool$jscomp$8$$;if($APP.$cljs$core$truth_$$($edition$jscomp$18$$))return $edition$jscomp$18$$;var $or__5025__auto____$2$jscomp$39$$=$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$6$$);return $APP.$cljs$core$truth_$$($or__5025__auto____$2$jscomp$39$$)?
$or__5025__auto____$2$jscomp$39$$:$APP.$cljs$core$_deref$$($mod_QMARK_$jscomp$15$$)}(),onMoveSelected:$on_move_selected$jscomp$12$$,onContextMenu:$on_menu_selected$jscomp$1$$}):null,$APP.$cljs$core$truth_$$($show_text_editor_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$text_edition_outline$text_edition_outline$$,{shape:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$edition$jscomp$18$$),zoom:$zoom__$1$jscomp$5$$,modifiers:$modifiers$jscomp$137$$}):
null,$APP.$cljs$core$truth_$$($show_measures_QMARK_$jscomp$2$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$measurement$$,{bounds:$vbox$jscomp$61$$,"selected-shapes":$selected_shapes$jscomp$37$$,frame:$selected_frame$jscomp$6$$,"hover-shape":$APP.$cljs$core$_deref$$($measure_hover$jscomp$2$$),zoom:$zoom__$1$jscomp$5$$}):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$124$$,
$APP.$cljs$cst$1782$move$$);return $and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$?($and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$=$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$26$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$)?$APP.$cljs$core$seq$$($selected_shapes$jscomp$37$$):$and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$):$and__5023__auto__$jscomp$935_and__5023__auto____$1$jscomp$155$$}())?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$measurement$$,
{bounds:$vbox$jscomp$61$$,"selected-shapes":$selected_shapes$jscomp$37$$,frame:$selected_frame$jscomp$6$$,"hover-shape":$APP.$cljs$core$_deref$$($hover$jscomp$12$$),zoom:$zoom__$1$jscomp$5$$}):null,function(){var $state_var$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(typeof $app$$!=="undefined"&&typeof $app$main$$!=="undefined"&&typeof $app$main$store$$!=="undefined"&&typeof $APP.$app$main$store$state$$!=="undefined"?new $APP.$cljs$core$Var$$(function(){return $APP.$app$main$store$state$$},
$APP.$cljs$core$with_meta$$($cljs$cst$5695$app_DOT_main_DOT_store_SLASH_state$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$269$cljs_DOT_analyzer_SLASH_no_resolve$$,!0],null)),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$176$ns$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$218$end_column$$,$APP.$cljs$cst$216$column$$,$APP.$cljs$cst$209$line$$,$APP.$cljs$cst$217$end_line$$,$APP.$cljs$cst$1468$arglists$$,$APP.$cljs$cst$1469$doc$$,$APP.$cljs$cst$171$test$$],
[$cljs$cst$5696$app_DOT_main_DOT_store$$,$APP.$cljs$cst$44$state$$,"app/main/store.cljs",15,1,71,71,$APP.$cljs$core$List$EMPTY$$,null,$APP.$cljs$core$truth_$$($APP.$app$main$store$state$$)?$APP.$app$main$store$state$$.$cljs$lang$test$:null])):null),$duplicated_info$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$deref$$($APP.$cljs$core$_deref$$($state_var$$)),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,
$APP.$cljs$cst$3502$duplicated$$],null));return $APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($transform$jscomp$124$$,$APP.$cljs$cst$1782$move$$);return $and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$?($and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$=$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$26$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$)?
$duplicated_info$$:$and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$):$and__5023__auto__$jscomp$936_and__5023__auto____$1$jscomp$156$$}())?(0,$APP.$rumext$v2$jsx$$)("g",{className:"duplicated-distance",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$distance_display$$,{from:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($duplicated_info$$,$cljs$cst$5697$selrect_original$$),to:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($duplicated_info$$,$cljs$cst$5698$selrect_duplicated$$),
zoom:$zoom__$1$jscomp$5$$,bounds:$vbox$jscomp$61$$})}):null}(),$show_padding_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$padding$padding_control$$,{frame:$first_shape$jscomp$13$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$3$$),zoom:$zoom__$1$jscomp$5$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$26$$),"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$46$$),"on-move-selected":$on_move_selected$jscomp$12$$,"on-context-menu":$on_menu_selected$jscomp$1$$}):
null,$show_padding_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$gap$gap_control$$,{frame:$first_shape$jscomp$13$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$3$$),zoom:$zoom__$1$jscomp$5$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$26$$),"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$46$$),"on-move-selected":$on_move_selected$jscomp$12$$,"on-context-menu":$on_menu_selected$jscomp$1$$}):null,$show_margin_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$flex_controls$margin$margin_control$$,
{shape:$first_shape$jscomp$13$$,parent:$selected_frame$jscomp$6$$,hover:$APP.$cljs$core$_deref$$($frame_hover$jscomp$3$$),zoom:$zoom__$1$jscomp$5$$,"alt?":$APP.$cljs$core$_deref$$($alt_QMARK_$jscomp$26$$),"shift?":$APP.$cljs$core$_deref$$($shift_QMARK_$jscomp$46$$)}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_titles_STAR_$$,{objects:$base_objects$jscomp$3$$,selected:$selected$jscomp$203$$,zoom:$zoom__$1$jscomp$5$$,isShowArtboardNames:$show_artboard_names_QMARK_$jscomp$1$$,
onFrameEnter:$on_frame_enter$jscomp$5$$,onFrameLeave:$on_frame_leave$jscomp$5$$,onFrameSelect:$on_frame_select$jscomp$5$$,focus:$focus$jscomp$23$$}),$show_prototypes_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_flows_STAR_$$,{flows:$APP.$cljs$cst$2041$flows$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$159$$),objects:$objects_modified$jscomp$1$$,selected:$selected$jscomp$203$$,zoom:$zoom__$1$jscomp$5$$,onFrameEnter:$on_frame_enter$jscomp$5$$,onFrameLeave:$on_frame_leave$jscomp$5$$,
onFrameSelect:$on_frame_select$jscomp$5$$}):null,$drawing_obj$jscomp$1$$&&$APP.$app$common$types$shape$shape_QMARK_$$($drawing_obj$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$drawarea$draw_area_STAR_$$,{shape:$drawing_obj$jscomp$1$$,zoom:$zoom__$1$jscomp$5$$,tool:$drawing_tool$jscomp$8$$}):null,$show_grids_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$frame_grid$frame_grid$$,{zoom:$zoom__$1$jscomp$5$$,selected:$selected$jscomp$203$$,transform:$transform$jscomp$124$$,
focus:$focus$jscomp$23$$}):null,$show_pixel_grid_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$pixel_grid_STAR_$$,{vbox:$vbox$jscomp$61$$,zoom:$zoom__$1$jscomp$5$$}):null,$APP.$cljs$core$truth_$$($show_snap_points_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_points$snap_points$$,{layout:$layout$jscomp$31$$,transform:$transform$jscomp$124$$,drawing:$drawing_obj$jscomp$1$$,zoom:$zoom__$1$jscomp$5$$,"page-id":$page_id$jscomp$427$$,
selected:$selected$jscomp$203$$,objects:$objects_modified$jscomp$1$$,focus:$focus$jscomp$23$$}):null,$show_snap_distance_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_distances$snap_distances$$,{layout:$layout$jscomp$31$$,zoom:$zoom__$1$jscomp$5$$,transform:$transform$jscomp$124$$,selected:$selected$jscomp$203$$,"selected-shapes":$selected_shapes$jscomp$37$$,"page-id":$page_id$jscomp$427$$}):null,$APP.$cljs$core$truth_$$($tooltip$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$cursor_tooltip_STAR_$$,
{zoom:$zoom__$1$jscomp$5$$,tooltip:$tooltip$jscomp$3$$}):null,$APP.$cljs$core$truth_$$($show_selrect_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$selection_rect_STAR_$$,{data:$selrect$jscomp$92$$,zoom:$zoom__$1$jscomp$5$$}):null,$APP.$cljs$core$truth_$$($show_add_variant_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$button_add_STAR_$$,{shape:$first_shape$jscomp$13$$,zoom:$zoom__$1$jscomp$5$$,onClick:$add_variant$jscomp$1$$}):
null,$APP.$cljs$core$truth_$$($page_id$jscomp$427$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$presence$active_cursors$$,{"page-id":$page_id$jscomp$427$$}):null,$hide_ui_QMARK_$jscomp$1$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$rulers$$,{zoom:$zoom__$1$jscomp$5$$,"zoom-inverse":$zoom_inverse$jscomp$10$$,vbox:$vbox$jscomp$61$$,"selected-shapes":$selected_shapes$jscomp$37$$,"offset-x":$offset_x$jscomp$18$$,"offset-y":$offset_y$jscomp$19$$,"show-rulers?":$show_rulers_QMARK_$jscomp$3$$}),
$show_rulers_QMARK_$jscomp$3$$&&$show_grids_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$viewport_guides_STAR_$$,{zoom:$zoom__$1$jscomp$5$$,vbox:$vbox$jscomp$61$$,guides:$APP.$cljs$cst$2042$guides$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$159$$),hoverFrame:$guide_frame$jscomp$1$$,disabledGuides:$disabled_guides_QMARK_$jscomp$1$$,modifiers:$modifiers$jscomp$137$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2918$layout_drop_zones$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_drop_zones$$,
{"selected-shapes":$selected_shapes$jscomp$37$$,objects:$base_objects$jscomp$3$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),zoom:$zoom__$1$jscomp$5$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2917$layout_content_bounds$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_content_bounds$$,{"selected-shapes":$selected_shapes$jscomp$37$$,objects:$base_objects$jscomp$3$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),
zoom:$zoom__$1$jscomp$5$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2913$layout_lines$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_layout_lines$$,{"selected-shapes":$selected_shapes$jscomp$37$$,objects:$base_objects$jscomp$3$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),zoom:$zoom__$1$jscomp$5$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2919$parent_bounds$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_parent_bounds$$,
{"selected-shapes":$selected_shapes$jscomp$37$$,objects:$base_objects$jscomp$3$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),zoom:$zoom__$1$jscomp$5$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2911$grid_layout$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$debug$debug_grid_layout$$,{"selected-shapes":$selected_shapes$jscomp$37$$,objects:$base_objects$jscomp$3$$,"hover-top-frame-id":$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),
zoom:$zoom__$1$jscomp$5$$}):null,$show_selection_handlers_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"selection-handlers",clipPath:"url(#clip-handlers)",children:[$text_editing_QMARK_$jscomp$3$$?null:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($editing_shape__$1$jscomp$2$$)?$path_editing_QMARK_$jscomp$4$$:$editing_shape__$1$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$path$editor$path_editor_STAR_$$,{shape:$editing_shape__$1$jscomp$2$$,state:$edit_path_state$jscomp$3$$,
zoom:$zoom__$1$jscomp$5$$}):$APP.$cljs$core$truth_$$($selected_shapes$jscomp$37$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$selection$handlers_STAR_$$,{selected:$selected$jscomp$203$$,shapes:$selected_shapes$jscomp$37$$,zoom:$zoom__$1$jscomp$5$$,disabled:$APP.$cljs$core$truth_$$($drawing_tool$jscomp$8$$)?$drawing_tool$jscomp$8$$:$APP.$cljs$core$_deref$$($space_QMARK_$jscomp$6$$)}):null,$show_prototypes_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$interactions$interactions$$,
{selected:$selected$jscomp$203$$,"page-id":$page_id$jscomp$427$$,zoom:$zoom__$1$jscomp$5$$,objects:$objects_modified$jscomp$1$$,"current-transform":$transform$jscomp$124$$,"hover-disabled?":$hover_disabled_QMARK_$jscomp$4$$}):null]}):null,$show_gradient_handlers_QMARK_$jscomp$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$gradient_handlers_STAR_$$,{id:$APP.$cljs$core$first$$($selected$jscomp$203$$),zoom:$zoom__$1$jscomp$5$$}):null,(0,$APP.$rumext$v2$jsxs$$)("g",{className:"grid-layout-editor",
clipPath:"url(#clip-handlers)",children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($show_grid_editor_QMARK_$jscomp$1$$)?$show_grid_editor_QMARK_$jscomp$1$$:$hover_grid_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$editor$$,{zoom:$zoom__$1$jscomp$5$$,objects:$base_objects$jscomp$3$$,modifiers:$modifiers$jscomp$137$$,shape:function(){var $or__5025__auto__$jscomp$1266$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,
$edition$jscomp$18$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1266$$)?$or__5025__auto__$jscomp$1266$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($base_objects$jscomp$3$$,$APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$))}(),"view-only":$APP.$cljs$core$not$$($show_grid_editor_QMARK_$jscomp$1$$)}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$248$$,$frame$jscomp$97$$){$out_arr__44057__auto__$jscomp$248$$.push($APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$97$$)&&
$APP.$cljs$core$empty_QMARK_$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$97$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$18$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$97$$))&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($hover_top_frame_id$jscomp$8$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$97$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$editor$$,
{zoom:$zoom__$1$jscomp$5$$,objects:$base_objects$jscomp$3$$,modifiers:$modifiers$jscomp$137$$,shape:$frame$jscomp$97$$,"view-only":!0},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$97$$)??"")):null);return $out_arr__44057__auto__$jscomp$248$$},[],$APP.$app$common$types$shape_tree$get_frames$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$808$$))]}),(0,$APP.$rumext$v2$jsx$$)("g",{className:"scrollbar-wrapper",clipPath:"url(#clip-handlers)",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$scroll_bars$viewport_scrollbars$$,
{objects:$base_objects$jscomp$3$$,zoom:$zoom__$1$jscomp$5$$,vbox:$vbox$jscomp$61$$,"bottom-padding":$APP.$cljs$core$truth_$$($palete_size$jscomp$1$$)?$palete_size$jscomp$1$$+8:null})})]})],viewBox:$app$main$ui$workspace$viewport$utils$format_viewbox$$($vbox$jscomp$61$$),onPointerUp:$on_pointer_up$jscomp$8$$,onContextMenu:$on_context_menu$jscomp$29$$,onDrop:$on_drop$jscomp$20$$,preserveAspectRatio:"xMidYMid meet",style:{touchAction:"none"},xmlnsXlink:"http://www.w3.org/1999/xlink",fill:"none",onDragOver:$on_drag_over$jscomp$3$$,
onDragEnd:$on_drag_end$jscomp$3$$,onClick:$on_click$jscomp$59$$,onPointerMove:$on_pointer_move$jscomp$16$$,ref:$on_viewport_ref$jscomp$1$$,onPointerDown:$on_pointer_down$jscomp$22$$,onPointerLeave:$on_pointer_leave$jscomp$19$$,onPointerEnter:$on_pointer_enter$jscomp$19$$},["viewport",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$427$$)].join(""))]})};
$app$main$ui$workspace$viewport$viewport_STAR_$$=function($props_79050$$){return $app$main$features$use_feature$$("render-wasm/v1")?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport_wasm$viewport_STAR_$$,$props_79050$$):(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$viewport_classic_STAR_$$,$props_79050$$)};
$app$main$ui$workspace$workspace_content_STAR_$$=function($props_79061_wglobal$jscomp$3$$){var $layout$jscomp$32$$=$props_79061_wglobal$jscomp$3$$.layout,$file$jscomp$179$$=$props_79061_wglobal$jscomp$3$$.file,$page$jscomp$160$$=$props_79061_wglobal$jscomp$3$$.page;$props_79061_wglobal$jscomp$3$$=$props_79061_wglobal$jscomp$3$$.wglobal;var $palete_size$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$selected$jscomp$204$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$),
$page_id$jscomp$428$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$160$$,$APP.$cljs$cst$266$id$$),$vport$jscomp$16$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_vport$$),$map__79062__$1_options_mode$jscomp$5$$=$APP.$cljs$core$__destructure_map$$($props_79061_wglobal$jscomp$3$$);$map__79062__$1_options_mode$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__79062__$1_options_mode$jscomp$5$$,$APP.$cljs$cst$2162$options_mode$$);var $drawing$jscomp$7$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_drawing$$),$colorpalette_QMARK_$jscomp$1$$=$APP.$cljs$cst$3585$colorpalette$$.$cljs$core$IFn$_invoke$arity$1$($layout$jscomp$32$$),$textpalette_QMARK_$$=$APP.$cljs$cst$3610$textpalette$$.$cljs$core$IFn$_invoke$arity$1$($layout$jscomp$32$$),$hide_ui_QMARK_$jscomp$2$$=$APP.$cljs$cst$4639$hide_ui$$.$cljs$core$IFn$_invoke$arity$1$($layout$jscomp$32$$),$node_ref$jscomp$5_on_resize$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vport$jscomp$16$$)],
function($resize_type$jscomp$4$$,$size$jscomp$159$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($vport$jscomp$16$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($size$jscomp$159$$,$vport$jscomp$16$$):$vport$jscomp$16$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$viewport$update_viewport_size$$($resize_type$jscomp$4$$,$size$jscomp$159$$)):null}),$on_resize_palette$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($size$jscomp$160$$){return $APP.$cljs$core$reset_BANG_$$($palete_size$jscomp$2$$,
$size$jscomp$160$$)});$node_ref$jscomp$5_on_resize$jscomp$6$$=$app$main$ui$hooks$resize$use_resize_observer$$($node_ref$jscomp$5_on_resize$jscomp$6$$);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$hide_ui_QMARK_$jscomp$2$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$palette$palette_STAR_$$,{layout:$layout$jscomp$32$$,onChangeSize:$on_resize_palette$$}),(0,$APP.$rumext$v2$jsx$$)("section",{ref:$node_ref$jscomp$5_on_resize$jscomp$6$$,className:"main_ui_workspace__workspace-content",
children:(0,$APP.$rumext$v2$jsxs$$)("section",{className:"main_ui_workspace__workspace-viewport",children:[$APP.$app$util$debug$enabled_QMARK_$$($cljs$cst$5699$coordinates$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$coordinates$coordinates$$,{"colorpalette?":$colorpalette_QMARK_$jscomp$1$$}):null,$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2922$history_overlay$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace__history-debug-overlay",children:[(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$workspace$undo$reinitialize_undo$$)},children:"CLEAR"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$history$history_toolbox_STAR_$$,{})]}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$viewport_STAR_$$,{file:$file$jscomp$179$$,page:$page$jscomp$160$$,wglobal:$props_79061_wglobal$jscomp$3$$,selected:$selected$jscomp$204$$,layout:$layout$jscomp$32$$,paleteSize:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$939$$=
$APP.$cljs$core$truth_$$($colorpalette_QMARK_$jscomp$1$$)?$colorpalette_QMARK_$jscomp$1$$:$textpalette_QMARK_$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$939$$)?$APP.$cljs$core$not$$($hide_ui_QMARK_$jscomp$2$$):$and__5023__auto__$jscomp$939$$}())?$APP.$cljs$core$_deref$$($palete_size$jscomp$2$$):null})]})},"workspace-"+($page_id$jscomp$428$$??"")),$APP.$cljs$core$truth_$$($hide_ui_QMARK_$jscomp$2$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$sidebar_STAR_$$,{layout:$layout$jscomp$32$$,
fileId:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$179$$,$APP.$cljs$cst$266$id$$),pageId:$page_id$jscomp$428$$,file:$file$jscomp$179$$,selected:$selected$jscomp$204$$,section:$map__79062__$1_options_mode$jscomp$5$$,drawingTool:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($drawing$jscomp$7$$,$APP.$cljs$cst$2159$tool$$)})]})};
$app$main$ui$workspace$workspace_loader_STAR_$$=function(){return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$product$loader$loader_STAR_$$,{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.loading"),className:"main_ui_workspace__workspace-loader",overlay:!0,fileLoading:!0})};
$app$main$ui$workspace$make_team_ref$$=function($team_id$jscomp$138$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($state$jscomp$1113_teams$jscomp$10$$){$state$jscomp$1113_teams$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1113_teams$jscomp$10$$,$APP.$cljs$cst$2133$teams$$);return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1113_teams$jscomp$10$$,$team_id$jscomp$138$$)},$APP.$app$main$store$state$$)};
$app$main$ui$workspace$make_file_ref$$=function($file_id$jscomp$398$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$,$APP.$cljs$cst$1902$current_file_id$$),$file_id$jscomp$398$$)?($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$,
$APP.$cljs$cst$1901$files$$),$file$jscomp$180_files$jscomp$32_state$jscomp$1114$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$,$file_id$jscomp$398$$),$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$,$APP.$cljs$cst$142$data$$),$cljs$cst$5700$app_DOT_main_DOT_ui_DOT_workspace_SLASH_has_data$$,$APP.$cljs$core$contains_QMARK_$$($file$jscomp$180_files$jscomp$32_state$jscomp$1114$$,
$APP.$cljs$cst$142$data$$))):null},$APP.$app$main$store$state$$,$APP.$cljs$core$_EQ_$$)};
$app$main$ui$workspace$make_page_ref$$=function($file_id$jscomp$399$$,$page_id$jscomp$429$$){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($state$jscomp$1115$$){var $current_page_id$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1115$$,$APP.$cljs$cst$1903$current_page_id$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_page_id$jscomp$7$$,$page_id$jscomp$429$$)?$APP.$app$main$data$helpers$lookup_page$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1115$$,
$file_id$jscomp$399$$,$page_id$jscomp$429$$):null},$APP.$app$main$store$state$$)};
$app$main$ui$workspace$workspace_inner_STAR_$$=function($props_79071_wglobal$jscomp$4$$){var $file_id$jscomp$400$$=$props_79071_wglobal$jscomp$4$$.fileId,$layout$jscomp$33$$=$props_79071_wglobal$jscomp$4$$.layout,$file$jscomp$181$$=$props_79071_wglobal$jscomp$4$$.file,$page_id$jscomp$430$$=$props_79071_wglobal$jscomp$4$$.pageId;$props_79071_wglobal$jscomp$4$$=$props_79071_wglobal$jscomp$4$$.wglobal;var $page$jscomp$161_page_ref$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$400$$),
$APP.$rumext$v2$adapt$$($page_id$jscomp$430$$)],function(){return $app$main$ui$workspace$make_page_ref$$($file_id$jscomp$400$$,$page_id$jscomp$430$$)});$page$jscomp$161_page_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($page$jscomp$161_page_ref$jscomp$1$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $key$jscomp$424$$=$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"blur",function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$workspace_focus_lost$$())});
return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$goog$events$unlistenByKey$$,$key$jscomp$424$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$400$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$430$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$pages$initialize_page$$($file_id$jscomp$400$$,$page_id$jscomp$430$$));return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$pages$finalize_page$$($file_id$jscomp$400$$,
$page_id$jscomp$430$$))}});return $page$jscomp$161_page_ref$jscomp$1$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$workspace_content_STAR_$$,{file:$file$jscomp$181$$,page:$page$jscomp$161_page_ref$jscomp$1$$,wglobal:$props_79071_wglobal$jscomp$4$$,layout:$layout$jscomp$33$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$workspace_loader_STAR_$$,{})};
$APP.$app$main$ui$workspace$workspace_page_STAR_$$=function($props_79095$$){return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$workspace_STAR_$$,$props_79095$$)};
$cljs$core$CHAR_MAP$$={"]":"_RBRACK_","'":"_SINGLEQUOTE_","\x3d":"_EQ_",'"':"_DOUBLEQUOTE_","!":"_BANG_","*":"_STAR_","%":"_PERCENT_","|":"_BAR_","~":"_TILDE_","/":"_SLASH_","\\":"_BSLASH_","-":"_","?":"_QMARK_","\x26":"_AMPERSAND_",":":"_COLON_","\x3c":"_LT_","{":"_LBRACE_","}":"_RBRACE_","[":"_LBRACK_","#":"_SHARP_","^":"_CARET_","+":"_PLUS_","@":"_CIRCA_","\x3e":"_GT_"};$cljs$core$js_reserved_arr$$="arguments abstract await boolean break byte case catch char class const continue debugger default delete do double else enum export extends final finally float for function goto if implements import in instanceof int interface let long native new package private protected public return short static super switch synchronized this throw throws transient try typeof var void volatile while with yield methods null constructor".split(" ");
$cljs$core$js_reserved$$=null;$cljs$core$NS_CACHE$$=null;$cljs$tools$reader$READ_EOF$$={};$cljs$tools$reader$READ_FINISHED$$={};$cljs$tools$reader$_STAR_read_delim_STAR_$$=!1;$cljs$tools$reader$_STAR_suppress_read_STAR_$$=!1;$cljs$tools$reader$NO_MATCH$$={};$cljs$tools$reader$arg_env$$=null;$cljs$tools$reader$gensym_env$$=null;$app$$={};$app$main$$={};$app$main$store$$={};$app$render_wasm$wasm$canvas$$=null;$app$render_wasm$wasm$canvas_pixels$$=null;$app$render_wasm$wasm$gl_context_handle$$=null;
$app$render_wasm$wasm$gl_context$$=null;$app$render_wasm$api$default_context_options$$={antialias:!1,depth:!0,stencil:!0,alpha:!0,preserveDrawingBuffer:!0};$cljs$core$Namespace$$.prototype.$getName$=function(){return this.name};$cljs$core$Namespace$$.prototype.toString=function(){return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(this.name)};
$cljs$core$Namespace$$.prototype.$cljs$core$IEquiv$_equiv$arity$2$=function($_$jscomp$160$$,$other$jscomp$119$$){return $other$jscomp$119$$ instanceof $cljs$core$Namespace$$?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.name,$other$jscomp$119$$.name):!1};$cljs$core$Namespace$$.prototype.$cljs$core$IHash$_hash$arity$1$=function(){return $APP.$cljs$core$hash$$(this.name)};$APP.$JSCompiler_prototypeAlias$$=$cljs$core$TaggedLiteral$$.prototype;
$APP.$JSCompiler_prototypeAlias$$.toString=function(){return $APP.$cljs$core$pr_str_STAR_$$(this)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this$$jscomp$131$$,$other$jscomp$118$$){return $other$jscomp$118$$ instanceof $cljs$core$TaggedLiteral$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.tag,$other$jscomp$118$$.tag)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.form,$other$jscomp$118$$.form)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){return 31*$APP.$cljs$core$hash$$(this.tag)+$APP.$cljs$core$hash$$(this.form)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this$$jscomp$133$$,$v$jscomp$78$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$v$jscomp$78$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this$$jscomp$134$$,$v$jscomp$79$$,$not_found$jscomp$60$$){switch($v$jscomp$79$$ instanceof $APP.$cljs$core$Keyword$$?$v$jscomp$79$$.$fqn$:null){case "tag":return this.tag;case "form":return this.form;default:return $not_found$jscomp$60$$}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($o$jscomp$132$$,$writer$jscomp$59$$,$opts$jscomp$56$$){$APP.$cljs$core$_write$$($writer$jscomp$59$$,["#",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(this.tag)," "].join(""));return $APP.$cljs$core$pr_writer$$(this.form,$writer$jscomp$59$$,$opts$jscomp$56$$)};
var $app$common$files$helpers$get_root_frame$$=function $app$common$files$helpers$get_root_frame$$($objects$jscomp$33$$,$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$){$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$=$APP.$cljs$core$truth_$$($APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$33$$,$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$))?$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$33$$,
$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$),$APP.$cljs$cst$1591$frame_id$$);$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$33$$,$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$);if($APP.$app$common$files$helpers$root_QMARK_$$($G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$)||$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$==null)return null;if($APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$))return $G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$;
$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$=$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$);return $app$common$files$helpers$get_root_frame$$.$cljs$core$IFn$_invoke$arity$2$?$app$common$files$helpers$get_root_frame$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$33$$,$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$):$app$common$files$helpers$get_root_frame$$($objects$jscomp$33$$,$G__46654_frame$jscomp$4_frame_id_shape_id$jscomp$8$$)},
$malli$error$_push_in$$=function $malli$error$_push_in$$($a$jscomp$262$$,$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,$G__35277_first__35268_p__35264$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$){var $JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$=$APP.$cljs$core$seq$$($G__35277_first__35268_p__35264$$);$G__35277_first__35268_p__35264$$=$APP.$cljs$core$first$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$);
var $seq__35267__$1$$=$APP.$cljs$core$next$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$),$v_SINGLEQUOTE_$jscomp$2$$=$malli$error$_get$$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,$G__35277_first__35268_p__35264$$);$JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$=$APP.$cljs$core$truth_$$($a$jscomp$262$$)?$a$jscomp$262$$:$APP.$cljs$core$sequential_QMARK_$$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$)?
$APP.$cljs$core$PersistentVector$EMPTY$$:$APP.$cljs$core$record_QMARK_$$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$)?$APP.$cljs$core$PersistentArrayMap$EMPTY$$:$APP.$cljs$core$empty$$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($G__35277_first__35268_p__35264$$)?$APP.$cljs$cst$884$malli_DOT_error_SLASH_error$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)):
$G__35277_first__35268_p__35264$$)?$a$jscomp$262$$:$APP.$cljs$core$truth_$$($G__35277_first__35268_p__35264$$)?($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$=$malli$error$_get$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,$G__35277_first__35268_p__35264$$),$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$=$malli$error$_push_in$$.$cljs$core$IFn$_invoke$arity$4$?$malli$error$_push_in$$.$cljs$core$IFn$_invoke$arity$4$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,
$v_SINGLEQUOTE_$jscomp$2$$,$seq__35267__$1$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$):$malli$error$_push_in$$($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,$v_SINGLEQUOTE_$jscomp$2$$,$seq__35267__$1$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$),$APP.$cljs$core$int_QMARK_$$($G__35277_first__35268_p__35264$$)&&$APP.$cljs$core$sequential_QMARK_$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)&&
$G__35277_first__35268_p__35264$$>$APP.$cljs$core$count$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)&&($G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$=$APP.$cljs$core$repeat$cljs$0core$0IFn$0_invoke$0arity$02$$($G__35277_first__35268_p__35264$$-$APP.$cljs$core$count$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$),null),$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$=
$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$),$JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$=$JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$==null||$APP.$cljs$core$seq_QMARK_$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)?
$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$:$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$empty$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$),$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$)),$JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$==null||$APP.$cljs$core$associative_QMARK_$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,$G__35277_first__35268_p__35264$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$):$APP.$cljs$core$set_QMARK_$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,
$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$):$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$list$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$vec$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$),$G__35277_first__35268_p__35264$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$))):$APP.$cljs$core$map_QMARK_$$($a$jscomp$262$$)?($G__35277_first__35268_p__35264$$=new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$885$malli_SLASH_error$$],null),$malli$error$_push_in$$.$cljs$core$IFn$_invoke$arity$4$?$malli$error$_push_in$$.$cljs$core$IFn$_invoke$arity$4$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,$G__35277_first__35268_p__35264$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$):$malli$error$_push_in$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,
$G__35253$jscomp$inline_14033_G__35270$jscomp$inline_12542_v$jscomp$216_y$jscomp$inline_14032$$,$G__35277_first__35268_p__35264$$,$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$)):$APP.$cljs$core$truth_$$($APP.$cljs$cst$884$malli_DOT_error_SLASH_error$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$meta$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$)))?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$,
$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$):$APP.$cljs$core$vector_QMARK_$$($APP.$cljs$core$not_empty$$($JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$))?$JSCompiler_temp$jscomp$13971_a_SINGLEQUOTE__seq__35267_x_SINGLEQUOTE_$jscomp$inline_13835$$:$APP.$cljs$core$with_meta$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$JSCompiler_inline_result$jscomp$10539_e$jscomp$175$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$884$malli_DOT_error_SLASH_error$$,!0],null))},$app$common$types$token$update_token_value_references$$=function $app$common$types$token$update_token_value_references$$($value$jscomp$428$$,$old_name$$,$new_name$$){return typeof $value$jscomp$428$$==="string"?$APP.$cuerdas$core$replace$$($value$jscomp$428$$,$APP.$cljs$core$re_pattern$$(["\\{",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$replace$$($old_name$$,".","\\.")),"\\}"].join("")),["{",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($new_name$$),
"}"].join("")):$APP.$cljs$core$map_QMARK_$$($value$jscomp$428$$)?$APP.$app$common$data$update_vals$$($value$jscomp$428$$,function($p1__48941_SHARP_$$){return $app$common$types$token$update_token_value_references$$.$cljs$core$IFn$_invoke$arity$3$?$app$common$types$token$update_token_value_references$$.$cljs$core$IFn$_invoke$arity$3$($p1__48941_SHARP_$$,$old_name$$,$new_name$$):$app$common$types$token$update_token_value_references$$($p1__48941_SHARP_$$,$old_name$$,$new_name$$)}):$APP.$cljs$core$sequential_QMARK_$$($value$jscomp$428$$)?
$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__48942_SHARP_$$){return $app$common$types$token$update_token_value_references$$.$cljs$core$IFn$_invoke$arity$3$?$app$common$types$token$update_token_value_references$$.$cljs$core$IFn$_invoke$arity$3$($p1__48942_SHARP_$$,$old_name$$,$new_name$$):$app$common$types$token$update_token_value_references$$($p1__48942_SHARP_$$,$old_name$$,$new_name$$)},$value$jscomp$428$$):$value$jscomp$428$$},$app$common$path_names$build_tree_node$$=function $app$common$path_names$build_tree_node$$($segment_name$$,
$remaining_segments$jscomp$1$$,$separator$jscomp$10$$,$is_leaf_QMARK__parent_path$jscomp$1$$,$depth$jscomp$12$$){var $current_path$$=$APP.$cljs$core$truth_$$($is_leaf_QMARK__parent_path$jscomp$1$$)?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($is_leaf_QMARK__parent_path$jscomp$1$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($segment_name$$)].join(""):$segment_name$$,$leaf_segment$$=($is_leaf_QMARK__parent_path$jscomp$1$$=$APP.$cljs$core$seq$$($remaining_segments$jscomp$1$$)&&
$APP.$cljs$core$every_QMARK_$$(function($remaining_segment_name_segment$jscomp$41$$){$remaining_segment_name_segment$jscomp$41$$=$APP.$cljs$core$first$$($APP.$app$common$path_names$split_path$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($remaining_segment_name_segment$jscomp$41$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1461$separator$$,$separator$jscomp$10$$])));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($segment_name$$,
$remaining_segment_name_segment$jscomp$41$$)},$remaining_segments$jscomp$1$$))?$APP.$cljs$core$first$$($remaining_segments$jscomp$1$$):null;return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$723$name$$,$segment_name$$,$APP.$cljs$cst$294$path$$,$current_path$$,$APP.$cljs$cst$837$depth$$,$depth$jscomp$12$$,$APP.$cljs$cst$1983$leaf$$,$leaf_segment$$,$APP.$cljs$cst$1984$children_fn$$,$is_leaf_QMARK__parent_path$jscomp$1$$?null:function(){var $grouped_elements$$=$app$common$path_names$sort_and_group_segments$$($remaining_segments$jscomp$1$$,
$separator$jscomp$10$$);return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p__49031_remaining_child_segments$$){var $child_segment_name$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49031_remaining_child_segments$$,0,null);$p__49031_remaining_child_segments$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__49031_remaining_child_segments$$,1,null);var $G__49039$$=$depth$jscomp$12$$+1;return $app$common$path_names$build_tree_node$$.$cljs$core$IFn$_invoke$arity$5$?
$app$common$path_names$build_tree_node$$.$cljs$core$IFn$_invoke$arity$5$($child_segment_name$$,$p__49031_remaining_child_segments$$,$separator$jscomp$10$$,$current_path$$,$G__49039$$):$app$common$path_names$build_tree_node$$($child_segment_name$$,$p__49031_remaining_child_segments$$,$separator$jscomp$10$$,$current_path$$,$G__49039$$)},$grouped_elements$$)}],null)},$app$main$data$persistence$run_persistence_task$$=function $app$main$data$persistence$run_persistence_task$$(){typeof $app$main$data$persistence$run_persistence_task_54743$$===
"undefined"&&($app$main$data$persistence$run_persistence_task_54743$$=function($meta54744$$){this.$meta54744$=$meta54744$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$persistence$run_persistence_task_54743$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$run_persistence_task_54743$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3112$app_DOT_main_DOT_data_DOT_persistence_SLASH_run_persistence_task$$},
$app$main$data$persistence$run_persistence_task_54743$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_54745$$,$meta54744__$1$$){return new $app$main$data$persistence$run_persistence_task_54743$$($meta54744__$1$$)},$app$main$data$persistence$run_persistence_task_54743$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta54744$},$app$main$data$persistence$run_persistence_task_54743$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$persistence$run_persistence_task_54743$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$1639_queue$jscomp$1_stoper_s$$,$state$jscomp$174$$,$stream$jscomp$26$$){$_$jscomp$1639_queue$jscomp$1_stoper_s$$=$APP.$cljs$cst$1473$queue$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2138$persistence$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$174$$));var $temp__5823__auto__$jscomp$156$$=$APP.$cljs$core$peek$$($_$jscomp$1639_queue$jscomp$1_stoper_s$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$156$$)?($_$jscomp$1639_queue$jscomp$1_stoper_s$$=$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3112$app_DOT_main_DOT_data_DOT_persistence_SLASH_run_persistence_task$$),
$stream$jscomp$26$$),$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3109$app_DOT_main_DOT_data_DOT_persistence_SLASH_error$$),$stream$jscomp$26$$)),$APP.$app$common$logging$enabled_QMARK_$$("app.main.data.persistence",$APP.$cljs$cst$1158$debug$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,2,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$$,"run-persistence-task"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3096$commit_id$$,""+($temp__5823__auto__$jscomp$156$$??"")],null)],null)}),null,"app.main.data.persistence",$APP.$cljs$cst$1158$debug$$,!1),$APP.$beicon$v2$core$take_until$$($_$jscomp$1639_queue$jscomp$1_stoper_s$$,$APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$persist_commit$$($temp__5823__auto__$jscomp$156$$)),
$APP.$beicon$v2$core$mapcat$$(function(){return(0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$discard_commit$$($temp__5823__auto__$jscomp$156$$),$app$main$data$persistence$run_persistence_task$$.$cljs$core$IFn$_invoke$arity$0$?$app$main$data$persistence$run_persistence_task$$.$cljs$core$IFn$_invoke$arity$0$():$app$main$data$persistence$run_persistence_task$$())},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$(function($p1__54725_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($temp__5823__auto__$jscomp$156$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__54725_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$3111$app_DOT_main_DOT_data_DOT_persistence_SLASH_commit_persisted$$),$stream$jscomp$26$$)))))))):(0,$APP.$beicon$v2$core$of$$)($app$main$data$persistence$update_status$$($APP.$cljs$cst$3101$saved$$))});return new $app$main$data$persistence$run_persistence_task_54743$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$APP.$JSCompiler_prototypeAlias$$=$cljs$tools$reader$impl$utils$ReaderConditional$$.prototype;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this__5323__auto__$$,$k__5324__auto__$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$k__5324__auto__$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this__5325__auto__$$,$k24290$$,$else__5326__auto__$$){switch($k24290$$ instanceof $APP.$cljs$core$Keyword$$?$k24290$$.$fqn$:null){case "splicing?":return this.$splicing_QMARK_$;case "form":return this.form;default:return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k24290$$,$else__5326__auto__$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($this__5343__auto__$$,$f__5344__auto__$$,$init__5345__auto__$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ret__5346__auto__$$,$p__24308_v__5348__auto__$$){var $k__5347__auto__$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__24308_v__5348__auto__$$,0,null);$p__24308_v__5348__auto__$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__24308_v__5348__auto__$$,
1,null);return $f__5344__auto__$$.$cljs$core$IFn$_invoke$arity$3$?$f__5344__auto__$$.$cljs$core$IFn$_invoke$arity$3$($ret__5346__auto__$$,$k__5347__auto__$$,$p__24308_v__5348__auto__$$):$f__5344__auto__$$($ret__5346__auto__$$,$k__5347__auto__$$,$p__24308_v__5348__auto__$$)},$init__5345__auto__$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($this__5338__auto__$$,$writer__5339__auto__$$,$opts__5340__auto__$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$$,function($keyval__5342__auto__$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$$,$APP.$cljs$core$pr_writer$$,""," ","",$opts__5340__auto__$$,$keyval__5342__auto__$$)},"#cljs.tools.reader.impl.utils.ReaderConditional{",", ","}",$opts__5340__auto__$$,
$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$178$splicing_QMARK_$$,this.$splicing_QMARK_$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$179$form$$,this.form],null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIterable$_iterator$arity$1$=function(){return new $APP.$cljs$core$RecordIter$$(this,2,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$178$splicing_QMARK_$$,$APP.$cljs$cst$179$form$$],null),$APP.$cljs$core$truth_$$(this.$__extmap$)?$APP.$cljs$core$_iterator$$(this.$__extmap$):$APP.$cljs$core$nil_iter$$())};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$__meta$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICloneable$_clone$arity$1$=function(){return new $cljs$tools$reader$impl$utils$ReaderConditional$$(this.$splicing_QMARK_$,this.form,this.$__meta$,this.$__extmap$,this.$__hash$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return 2+$APP.$cljs$core$count$$(this.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){var $h__5134__auto__$jscomp$26_h__5134__auto____$1$jscomp$26$$=this.$__hash$;return $h__5134__auto__$jscomp$26_h__5134__auto____$1$jscomp$26$$!=null?$h__5134__auto__$jscomp$26_h__5134__auto____$1$jscomp$26$$:this.$__hash$=$h__5134__auto__$jscomp$26_h__5134__auto____$1$jscomp$26$$=-209062840^$APP.$cljs$core$hash_unordered_coll$$(this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this24291$$,$other24292$$){return $other24292$$!=null&&this.constructor===$other24292$$.constructor&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$splicing_QMARK_$,$other24292$$.$splicing_QMARK_$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.form,$other24292$$.form)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$other24292$$.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMap$_dissoc$arity$2$=function($this__5333__auto__$$,$k__5334__auto__$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$178$splicing_QMARK_$$,null,$APP.$cljs$cst$179$form$$,null],null),null),$k__5334__auto__$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
this),this.$__meta$),$k__5334__auto__$$):new $cljs$tools$reader$impl$utils$ReaderConditional$$(this.$splicing_QMARK_$,this.form,this.$__meta$,$APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$k__5334__auto__$$)),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($this__5330__auto__$$,$k24290$jscomp$1$$){switch($k24290$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$k24290$jscomp$1$$.$fqn$:null){case "splicing?":case "form":return!0;default:return $APP.$cljs$core$contains_QMARK_$$(this.$__extmap$,$k24290$jscomp$1$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($this__5331__auto__$$,$k__5332__auto__$$,$G__24289$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$178$splicing_QMARK_$$,$k__5332__auto__$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$178$splicing_QMARK_$$,$k__5332__auto__$$))?new $cljs$tools$reader$impl$utils$ReaderConditional$$($G__24289$jscomp$1$$,
this.form,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$179$form$$,$k__5332__auto__$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$179$form$$,$k__5332__auto__$$))?new $cljs$tools$reader$impl$utils$ReaderConditional$$(this.$splicing_QMARK_$,$G__24289$jscomp$1$$,this.$__meta$,this.$__extmap$,null):new $cljs$tools$reader$impl$utils$ReaderConditional$$(this.$splicing_QMARK_$,
this.form,this.$__meta$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k__5332__auto__$$,$G__24289$jscomp$1$$),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$178$splicing_QMARK_$$,this.$splicing_QMARK_$,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$179$form$$,this.form,null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($this__5322__auto__$$,$G__24289$jscomp$2$$){return new $cljs$tools$reader$impl$utils$ReaderConditional$$(this.$splicing_QMARK_$,this.form,$G__24289$jscomp$2$$,this.$__extmap$,this.$__hash$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($this__5328__auto__$$,$entry__5329__auto__$$){return $APP.$cljs$core$vector_QMARK_$$($entry__5329__auto__$$)?this.$cljs$core$IAssociative$_assoc$arity$3$(null,$APP.$cljs$core$_nth$$($entry__5329__auto__$$,0),$APP.$cljs$core$_nth$$($entry__5329__auto__$$,1)):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$_conj$$,this,$entry__5329__auto__$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($coll$jscomp$819$$,$writer$jscomp$60$$,$opts$jscomp$57$$){$APP.$cljs$core$_write$$($writer$jscomp$60$$,["#?",$APP.$cljs$core$truth_$$(this.$splicing_QMARK_$)?"@":null].join(""));return $APP.$cljs$core$pr_writer$$(this.form,$writer$jscomp$60$$,$opts$jscomp$57$$)};
var $app$main$data$workspace$texts$update_text_modifier$$=function $app$main$data$workspace$texts$update_text_modifier$$($id$jscomp$612$$,$props$jscomp$184$$){var $cur_event$jscomp$4$$=Symbol();typeof $app$main$data$workspace$texts$update_text_modifier_68854$$==="undefined"&&($app$main$data$workspace$texts$update_text_modifier_68854$$=function($id$jscomp$613$$,$props$jscomp$185$$,$cur_event$jscomp$5$$,$meta68855$$){this.id=$id$jscomp$613$$;this.props=$props$jscomp$185$$;this.$cur_event$=$cur_event$jscomp$5$$;
this.$meta68855$=$meta68855$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3862$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier$$},$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_68856$$,$meta68855__$1$$){return new $app$main$data$workspace$texts$update_text_modifier_68854$$(this.id,this.props,this.$cur_event$,$meta68855__$1$$)},$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68855$},$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($G__68858__$jscomp$2083$$,$state$jscomp$529$$){$G__68858__$jscomp$2083$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$529$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2198$workspace_text_modifier$$,this.id],null),$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$merge$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$),
this.props),$APP.$cljs$cst$3861$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_ids$$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentHashSet$EMPTY$$),this.id);return $APP.$cljs$cst$3863$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_event$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$529$$)==null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68858__$jscomp$2083$$,
$APP.$cljs$cst$3863$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_event$$,this.$cur_event$):$G__68858__$jscomp$2083$$},$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_text_modifier_68854$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2084_stopper$jscomp$16$$,$state$jscomp$530$$,$stream$jscomp$54$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3863$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_event$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$530$$),
this.$cur_event$)?($_$jscomp$2084_stopper$jscomp$16$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3737$app_DOT_main_DOT_data_DOT_workspace_SLASH_finalize$$),$stream$jscomp$54$$),$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$2084_stopper$jscomp$16$$,$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$texts$commit_update_text_modifier$$()},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$debounce$$(50,
$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3862$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier$$),$stream$jscomp$54$$))))),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$texts$update_text_modifier$$.$cljs$core$IFn$_invoke$arity$2$?$app$main$data$workspace$texts$update_text_modifier$$.$cljs$core$IFn$_invoke$arity$2$(this.id,this.props):$app$main$data$workspace$texts$update_text_modifier$$(this.id,
this.props))),(0,$APP.$beicon$v2$core$of$$)(function($p1__68853_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($p1__68853_SHARP_$$,$APP.$cljs$cst$3863$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_event$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3861$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_text_modifier_debounce_ids$$]))}))):$APP.$beicon$v2$core$empty$$()});return new $app$main$data$workspace$texts$update_text_modifier_68854$$($id$jscomp$612$$,
$props$jscomp$184$$,$cur_event$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)},$app$main$worker$ask_buffered_BANG_$$=function $app$main$worker$ask_buffered_BANG_$$($var_args$jscomp$1128$$){switch(arguments.length){case 1:return $app$main$worker$ask_buffered_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(arguments[0]);case 2:return $app$main$worker$ask_buffered_BANG_$$.$cljs$core$IFn$_invoke$arity$2$(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));
}};$app$main$worker$ask_buffered_BANG_$$.$cljs$core$IFn$_invoke$arity$1$=function($message$jscomp$77$$){return $APP.$cljs$core$truth_$$($APP.$app$main$worker$instance$$)?$app$util$worker$ask_buffered_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($message$jscomp$77$$,null):$APP.$beicon$v2$core$empty$$()};
$app$main$worker$ask_buffered_BANG_$$.$cljs$core$IFn$_invoke$arity$2$=function($message$jscomp$78$$,$transfer$jscomp$11$$){return $APP.$cljs$core$truth_$$($APP.$app$main$worker$instance$$)?$app$util$worker$ask_buffered_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($message$jscomp$78$$,$transfer$jscomp$11$$):$APP.$beicon$v2$core$empty$$()};$app$main$worker$ask_buffered_BANG_$$.$cljs$lang$maxFixedArity$=2;
var $app$common$types$tokens_lib$get_tokens_of_unknown_type$$=function $app$common$types$tokens_lib$get_tokens_of_unknown_type$$($decoded_json$jscomp$7$$,$json_format$jscomp$1_p__50105$$){var $map__50106__$1$$=$APP.$cljs$core$__destructure_map$$($json_format$jscomp$1_p__50105$$);$json_format$jscomp$1_p__50105$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__50106__$1$$,$APP.$cljs$cst$2117$json_format$$,$app$common$types$tokens_lib$get_json_format$cljs$0core$0IFn$0_invoke$0arity$03$$($decoded_json$jscomp$7$$));
var $parent_path$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__50106__$1$$,$APP.$cljs$cst$2099$parent_path$$,""),$process_token_type$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($map__50106__$1$$,$APP.$cljs$cst$2118$process_token_type$$,$APP.$cljs$core$identity$$),$type_key$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($json_format$jscomp$1_p__50105$$,$APP.$cljs$cst$2114$json_format_SLASH_dtcg$$)?"$type":"type";return $APP.$cljs$core$reduce_kv$$(function($unknown_tokens$$,
$k$jscomp$603_nested_unknown_tokens$$,$v$jscomp$533$$){var $child_path$jscomp$2$$=$APP.$cljs$core$empty_QMARK_$$($parent_path$jscomp$5$$)?$APP.$cljs$core$name$$($k$jscomp$603_nested_unknown_tokens$$):[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($parent_path$jscomp$5$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($k$jscomp$603_nested_unknown_tokens$$)].join("");if($APP.$cljs$core$map_QMARK_$$($v$jscomp$533$$)&&!$APP.$cljs$core$contains_QMARK_$$($v$jscomp$533$$,$type_key$$))return $k$jscomp$603_nested_unknown_tokens$$=
function(){var $G__50112$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__50106__$1$$,$APP.$cljs$cst$2099$parent_path$$,$child_path$jscomp$2$$);return $app$common$types$tokens_lib$get_tokens_of_unknown_type$$.$cljs$core$IFn$_invoke$arity$2$?$app$common$types$tokens_lib$get_tokens_of_unknown_type$$.$cljs$core$IFn$_invoke$arity$2$($v$jscomp$533$$,$G__50112$$):$app$common$types$tokens_lib$get_tokens_of_unknown_type$$($v$jscomp$533$$,$G__50112$$)}(),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$unknown_tokens$$,
$k$jscomp$603_nested_unknown_tokens$$]));var $token_type_str$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($v$jscomp$533$$,$type_key$$);return function(){var $G__50114$$=$APP.$app$common$types$token$dtcg_token_type__GT_token_type$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$app$common$types$token$dtcg_token_type__GT_token_type$$.$cljs$core$IFn$_invoke$arity$1$($token_type_str$$):(0,$APP.$app$common$types$token$dtcg_token_type__GT_token_type$$)($token_type_str$$);return $process_token_type$$.$cljs$core$IFn$_invoke$arity$1$?
$process_token_type$$.$cljs$core$IFn$_invoke$arity$1$($G__50114$$):$process_token_type$$($G__50114$$)}()==null&&$token_type_str$$!=null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($unknown_tokens$$,$child_path$jscomp$2$$,$token_type_str$$):$unknown_tokens$$},null,$decoded_json$jscomp$7$$)},$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$=function $app$common$logic$libraries$generate_sync_shape_inverse_recursive$$($changes$jscomp$119$$,$container$jscomp$49$$,$shape_inst$jscomp$7$$,
$component$jscomp$69$$,$library$jscomp$21$$,$file$jscomp$52$$,$libraries$jscomp$53$$,$shape_main$jscomp$7$$,$root_inst$jscomp$3$$,$root_main$jscomp$3$$,$initial_root_QMARK_$jscomp$3$$,$redirect_shaperef$jscomp$3$$){function $check_local$$($change$jscomp$23$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($change$jscomp$23$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$7$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($change$jscomp$23$$,
$APP.$cljs$cst$3413$local_change_QMARK_$$,!0):$change$jscomp$23$$}function $moved$jscomp$1$$($changes__$2$jscomp$18$$,$G__65407_child_inst$jscomp$7$$,$child_main$jscomp$7$$){var $G__65406$$=$APP.$app$common$data$index_of$$($children_main$jscomp$1$$,$child_main$jscomp$7$$);$G__65407_child_inst$jscomp$7$$=$APP.$app$common$data$index_of$$($children_inst__$1$jscomp$1$$,$G__65407_child_inst$jscomp$7$$);return $APP.$app$common$logic$libraries$move_shape$$.$cljs$core$IFn$_invoke$arity$6$?$APP.$app$common$logic$libraries$move_shape$$.$cljs$core$IFn$_invoke$arity$6$($changes__$2$jscomp$18$$,
$child_main$jscomp$7$$,$G__65406$$,$G__65407_child_inst$jscomp$7$$,$component_container$jscomp$2$$,!1):$APP.$app$common$logic$libraries$move_shape$$($changes__$2$jscomp$18$$,$child_main$jscomp$7$$,$G__65406$$,$G__65407_child_inst$jscomp$7$$,$component_container$jscomp$2$$,!1)}function $swapped$jscomp$1$$($changes__$2$jscomp$17$$,$child_inst$jscomp$6$$,$child_main$jscomp$6$$){$APP.$app$common$logic$libraries$enabled_shape_QMARK_$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($child_inst$jscomp$6$$),
$container$jscomp$49$$)&&$APP.$app$common$logging$enabled_QMARK_$$("app.common.logic.libraries",$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"Match slot"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$3409$child_inst$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($child_inst$jscomp$6$$))," ",$APP.$app$common$logic$libraries$pretty_uuid$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($child_inst$jscomp$6$$))].join("")],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3411$child_main$$,[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($child_main$jscomp$6$$)),
" ",$APP.$app$common$logic$libraries$pretty_uuid$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($child_main$jscomp$6$$))].join("")],null)],null)}),null,"app.common.logic.libraries",$APP.$cljs$cst$144$trace$$,!1);return $changes__$2$jscomp$17$$}function $both$jscomp$1$$($changes__$2$jscomp$16$$,$child_inst$jscomp$5$$,$child_main$jscomp$5$$){return $app$common$logic$libraries$generate_sync_shape_inverse_recursive$$.$cljs$core$IFn$_invoke$arity$12$?$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$.$cljs$core$IFn$_invoke$arity$12$($changes__$2$jscomp$16$$,
$container$jscomp$49$$,$child_inst$jscomp$5$$,$component$jscomp$69$$,$library$jscomp$21$$,$file$jscomp$52$$,$libraries$jscomp$53$$,$child_main$jscomp$5$$,$root_inst$jscomp$3$$,$root_main$jscomp$3$$,$initial_root_QMARK_$jscomp$3$$,$redirect_shaperef$jscomp$3$$):$app$common$logic$libraries$generate_sync_shape_inverse_recursive$$($changes__$2$jscomp$16$$,$container$jscomp$49$$,$child_inst$jscomp$5$$,$component$jscomp$69$$,$library$jscomp$21$$,$file$jscomp$52$$,$libraries$jscomp$53$$,$child_main$jscomp$5$$,
$root_inst$jscomp$3$$,$root_main$jscomp$3$$,$initial_root_QMARK_$jscomp$3$$,$redirect_shaperef$jscomp$3$$)}function $only_main$jscomp$1$$($changes__$2$jscomp$15$$,$child_main$jscomp$4$$){return $APP.$app$common$logic$libraries$remove_shape$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$common$logic$libraries$remove_shape$$.$cljs$core$IFn$_invoke$arity$4$($changes__$2$jscomp$15$$,$child_main$jscomp$4$$,$component_container$jscomp$2$$,!1):$APP.$app$common$logic$libraries$remove_shape$$($changes__$2$jscomp$15$$,
$child_main$jscomp$4$$,$component_container$jscomp$2$$,!1)}function $only_inst$jscomp$1$$($changes__$2$jscomp$14$$,$child_inst$jscomp$4$$){var $G__65394$$=$APP.$app$common$data$index_of$$($children_inst__$1$jscomp$1$$,$child_inst$jscomp$4$$);return $app$common$logic$libraries$add_shape_to_main$$.$cljs$core$IFn$_invoke$arity$8$?$app$common$logic$libraries$add_shape_to_main$$.$cljs$core$IFn$_invoke$arity$8$($changes__$2$jscomp$14$$,$child_inst$jscomp$4$$,$G__65394$$,$component$jscomp$69$$,$component_container$jscomp$2$$,
$container$jscomp$49$$,$root_inst$jscomp$3$$,$root_main$jscomp$3$$):$app$common$logic$libraries$add_shape_to_main$$($changes__$2$jscomp$14$$,$child_inst$jscomp$4$$,$G__65394$$,$component$jscomp$69$$,$component_container$jscomp$2$$,$container$jscomp$49$$,$root_inst$jscomp$3$$,$root_main$jscomp$3$$)}$APP.$app$common$logic$libraries$enabled_shape_QMARK_$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$7$$),$container$jscomp$49$$)&&$APP.$app$common$logging$enabled_QMARK_$$("app.common.logic.libraries",
$APP.$cljs$cst$144$trace$$)&&$APP.$app$common$logging$emit_log$$(new $APP.$cljs$core$Delay$$(function(){return new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1530$msg$$,"Sync shape inverse recursive"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$7$$))],
null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1609$component$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$69$$)],null)],null)}),null,"app.common.logic.libraries",$APP.$cljs$cst$144$trace$$,!1);if($shape_main$jscomp$7$$==null)return $changes$jscomp$119$$;var $component_container$jscomp$2$$=$APP.$app$common$types$file$get_component_container$$($library$jscomp$21$$,$component$jscomp$69$$),$set_remote_synced_QMARK_$jscomp$1$$=
$APP.$cljs$core$not$$($initial_root_QMARK_$jscomp$3$$),$changes__$1$jscomp$28_changes__$2$jscomp$13$$=function(){var $G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=$APP.$app$common$logic$libraries$update_attrs$$.$cljs$core$IFn$_invoke$arity$7$?$APP.$app$common$logic$libraries$update_attrs$$.$cljs$core$IFn$_invoke$arity$7$($changes$jscomp$119$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$root_main$jscomp$3$$,$root_inst$jscomp$3$$,
$component_container$jscomp$2$$,!1):$APP.$app$common$logic$libraries$update_attrs$$($changes$jscomp$119$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$root_main$jscomp$3$$,$root_inst$jscomp$3$$,$component_container$jscomp$2$$,!1);var $G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3408$reset_touched_QMARK_$$,!0],null);$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=
$APP.$app$common$logic$libraries$change_touched$$.$cljs$core$IFn$_invoke$arity$5$?$APP.$app$common$logic$libraries$change_touched$$.$cljs$core$IFn$_invoke$arity$5$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_inst$jscomp$7$$,$shape_main$jscomp$7$$,$container$jscomp$49$$,$G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$):$APP.$app$common$logic$libraries$change_touched$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,
$shape_inst$jscomp$7$$,$shape_main$jscomp$7$$,$container$jscomp$49$$,$G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$);$G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3412$copy_touched_QMARK_$$,!0],null);$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=$APP.$app$common$logic$libraries$change_touched$$.$cljs$core$IFn$_invoke$arity$5$?$APP.$app$common$logic$libraries$change_touched$$.$cljs$core$IFn$_invoke$arity$5$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,
$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$):$APP.$app$common$logic$libraries$change_touched$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$G__65384$jscomp$inline_12689_G__65389$jscomp$inline_12688$$);$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=
$APP.$app$common$types$shape$layout$flex_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape_main$jscomp$7$$)?$app$common$logic$libraries$update_flex_child_main_attrs$$.$cljs$core$IFn$_invoke$arity$6$?$app$common$logic$libraries$update_flex_child_main_attrs$$.$cljs$core$IFn$_invoke$arity$6$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$container$jscomp$49$$,
!1):$app$common$logic$libraries$update_flex_child_main_attrs$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$container$jscomp$49$$,!1):$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$;$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=
$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape_main$jscomp$7$$)?$app$common$logic$libraries$update_grid_main_attrs$$.$cljs$core$IFn$_invoke$arity$6$?$app$common$logic$libraries$update_grid_main_attrs$$.$cljs$core$IFn$_invoke$arity$6$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$container$jscomp$49$$,!1):
$app$common$logic$libraries$update_grid_main_attrs$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_main$jscomp$7$$,$shape_inst$jscomp$7$$,$component_container$jscomp$2$$,$container$jscomp$49$$,!1):$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$;$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$=$APP.$cljs$core$truth_$$($initial_root_QMARK_$jscomp$3$$)?
$APP.$app$common$logic$libraries$change_remote_synced$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$common$logic$libraries$change_remote_synced$$.$cljs$core$IFn$_invoke$arity$4$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_inst$jscomp$7$$,$container$jscomp$49$$,null):$APP.$app$common$logic$libraries$change_remote_synced$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,
$shape_inst$jscomp$7$$,$container$jscomp$49$$,null):$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$;return $set_remote_synced_QMARK_$jscomp$1$$?$APP.$app$common$logic$libraries$change_remote_synced$$.$cljs$core$IFn$_invoke$arity$4$?$APP.$app$common$logic$libraries$change_remote_synced$$.$cljs$core$IFn$_invoke$arity$4$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_inst$jscomp$7$$,
$container$jscomp$49$$,!0):$APP.$app$common$logic$libraries$change_remote_synced$$($G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$,$shape_inst$jscomp$7$$,$container$jscomp$49$$,!0):$G__65379__$1_G__65379__$2_G__65379__$3_G__65379__$4_G__65380$jscomp$inline_12686_G__65385$jscomp$inline_12687$$}(),$children_inst$jscomp$1$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__65370_SHARP_$$){return $APP.$app$common$types$container$get_shape$$($container$jscomp$49$$,
$p1__65370_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($shape_inst$jscomp$7$$)),$children_main$jscomp$1$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__65371_SHARP_$$){return $APP.$app$common$types$container$get_shape$$($component_container$jscomp$2$$,$p1__65371_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($shape_main$jscomp$7$$)),$children_inst__$1$jscomp$1$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__65372_SHARP_$$){return $redirect_shaperef$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?
$redirect_shaperef$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($p1__65372_SHARP_$$):$redirect_shaperef$jscomp$3$$($p1__65372_SHARP_$$)},$children_inst$jscomp$1$$);$changes__$1$jscomp$28_changes__$2$jscomp$13$$=$APP.$app$common$logic$libraries$compare_children$$.$cljs$core$IFn$_invoke$arity$15$?$APP.$app$common$logic$libraries$compare_children$$.$cljs$core$IFn$_invoke$arity$15$($changes__$1$jscomp$28_changes__$2$jscomp$13$$,$shape_inst$jscomp$7$$,$children_inst__$1$jscomp$1$$,$children_main$jscomp$1$$,
$container$jscomp$49$$,$component_container$jscomp$2$$,$file$jscomp$52$$,$libraries$jscomp$53$$,$only_inst$jscomp$1$$,$only_main$jscomp$1$$,$both$jscomp$1$$,$swapped$jscomp$1$$,$moved$jscomp$1$$,!0,!0):$APP.$app$common$logic$libraries$compare_children$$($changes__$1$jscomp$28_changes__$2$jscomp$13$$,$shape_inst$jscomp$7$$,$children_inst__$1$jscomp$1$$,$children_main$jscomp$1$$,$container$jscomp$49$$,$component_container$jscomp$2$$,$file$jscomp$52$$,$libraries$jscomp$53$$,$only_inst$jscomp$1$$,$only_main$jscomp$1$$,
$both$jscomp$1$$,$swapped$jscomp$1$$,$moved$jscomp$1$$,!0,!0);return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($changes__$1$jscomp$28_changes__$2$jscomp$13$$,$APP.$cljs$cst$3086$redo_changes$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$mapv$$,$check_local$$)),$APP.$cljs$cst$3089$undo_changes$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$map$$,$check_local$$))},
$app$main$data$workspace$libraries$duplicate_component$$=function $app$main$data$workspace$libraries$duplicate_component$$($var_args$jscomp$1253$$){switch(arguments.length){case 2:return $app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$2$(arguments[0],arguments[1]);case 3:return $app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$3$(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));
}};$app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$2$=function($library_id$jscomp$31$$,$component_id$jscomp$49$$){return $app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$3$($library_id$jscomp$31$$,$component_id$jscomp$49$$,$APP.$app$common$uuid$next$$())};
$app$main$data$workspace$libraries$duplicate_component$$.$cljs$core$IFn$_invoke$arity$3$=function($library_id$jscomp$32$$,$component_id$jscomp$50$$,$new_component_id$jscomp$4$$){typeof $app$main$data$workspace$libraries$duplicate_component_68069$$==="undefined"&&($app$main$data$workspace$libraries$duplicate_component_68069$$=function($library_id$jscomp$33$$,$component_id$jscomp$51$$,$new_component_id$jscomp$5$$,$meta68070$$){this.$library_id$=$library_id$jscomp$33$$;this.$component_id$=$component_id$jscomp$51$$;
this.$new_component_id$=$new_component_id$jscomp$5$$;this.$meta68070$=$meta68070$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3765$app_DOT_main_DOT_data_DOT_workspace_DOT_libraries_SLASH_duplicate_component$$},
$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68071$$,$meta68070__$1$$){return new $app$main$data$workspace$libraries$duplicate_component_68069$$(this.$library_id$,this.$component_id$,this.$new_component_id$,$meta68070__$1$$)},$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68070$},$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$libraries$duplicate_component_68069$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$,$changes$jscomp$203_state$jscomp$453_vec__68072$$){$it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$=$APP.$app$main$data$helpers$lookup_libraries$$($changes$jscomp$203_state$jscomp$453_vec__68072$$);$it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$,this.$library_id$);$changes$jscomp$203_state$jscomp$453_vec__68072$$=$app$common$logic$libraries$generate_duplicate_component$$($APP.$app$common$files$changes_builder$empty_changes$cljs$0core$0IFn$0_invoke$0arity$02$$(this,null),$it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$,this.$component_id$,this.$new_component_id$);$it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($changes$jscomp$203_state$jscomp$453_vec__68072$$,0,null);$changes$jscomp$203_state$jscomp$453_vec__68072$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($changes$jscomp$203_state$jscomp$453_vec__68072$$,1,null);return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3514$layout_SLASH_update$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1707$ids$$,new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($it$jscomp$185_libraries$jscomp$71_library$jscomp$23_main_instance$jscomp$1$$)],null)],null)),$APP.$app$main$data$changes$commit_changes$$($changes$jscomp$203_state$jscomp$453_vec__68072$$))});return new $app$main$data$workspace$libraries$duplicate_component_68069$$($library_id$jscomp$32$$,$component_id$jscomp$50$$,$new_component_id$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$workspace$libraries$duplicate_component$$.$cljs$lang$maxFixedArity$=3;
var $app$main$data$workspace$texts$update_position_data$$=function $app$main$data$workspace$texts$update_position_data$$($id$jscomp$618$$,$position_data$jscomp$10$$){var $cur_event$jscomp$6$$=Symbol();typeof $app$main$data$workspace$texts$update_position_data_68887$$==="undefined"&&($app$main$data$workspace$texts$update_position_data_68887$$=function($id$jscomp$619$$,$position_data$jscomp$11$$,$cur_event$jscomp$7$$,$meta68888$$){this.id=$id$jscomp$619$$;this.$position_data$=$position_data$jscomp$11$$;
this.$cur_event$=$cur_event$jscomp$7$$;this.$meta68888$=$meta68888$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$},
$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68889$$,$meta68888__$1$$){return new $app$main$data$workspace$texts$update_position_data_68887$$(this.id,this.$position_data$,this.$cur_event$,$meta68888__$1$$)},$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68888$},$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2090_state__$1$jscomp$27$$,$state$jscomp$535$$){$_$jscomp$2090_state__$1$jscomp$27$$=$APP.$cljs$core$assoc_in$$($state$jscomp$535$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2198$workspace_text_modifier$$,this.id,$APP.$cljs$cst$1875$position_data$$],null),this.$position_data$);
return $APP.$cljs$cst$3868$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data_debounce$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2090_state__$1$jscomp$27$$)==null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($_$jscomp$2090_state__$1$jscomp$27$$,$APP.$cljs$cst$3868$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data_debounce$$,this.$cur_event$):$APP.$cljs$core$assoc_in$$($_$jscomp$2090_state__$1$jscomp$27$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$,this.id],null),this.$position_data$)},$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$update_position_data_68887$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2091_stopper$jscomp$17$$,$state$jscomp$536$$,$stream$jscomp$55$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3868$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data_debounce$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$536$$),
this.$cur_event$)?($_$jscomp$2091_stopper$jscomp$17$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3737$app_DOT_main_DOT_data_DOT_workspace_SLASH_finalize$$),$stream$jscomp$55$$),$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$2091_stopper$jscomp$17$$,$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$texts$commit_position_data$$()},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$debounce$$(50,
$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3867$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_update_position_data$$),$stream$jscomp$55$$))))),(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$texts$update_position_data$$.$cljs$core$IFn$_invoke$arity$2$?$app$main$data$workspace$texts$update_position_data$$.$cljs$core$IFn$_invoke$arity$2$(this.id,this.$position_data$):$app$main$data$workspace$texts$update_position_data$$(this.id,
this.$position_data$)))):$APP.$beicon$v2$core$empty$$()});return new $app$main$data$workspace$texts$update_position_data_68887$$($id$jscomp$618$$,$position_data$jscomp$10$$,$cur_event$jscomp$6$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)},$app$main$data$workspace$texts$resize_text$$=function $app$main$data$workspace$texts$resize_text$$($id$jscomp$610$$,$new_width$jscomp$5$$,$new_height$jscomp$5$$){var $cur_event$jscomp$2$$=Symbol();typeof $app$main$data$workspace$texts$resize_text_68833$$==="undefined"&&
($app$main$data$workspace$texts$resize_text_68833$$=function($id$jscomp$611$$,$new_width$jscomp$6$$,$new_height$jscomp$6$$,$cur_event$jscomp$3$$,$meta68834$$){this.id=$id$jscomp$611$$;this.$new_width$=$new_width$jscomp$6$$;this.$new_height$=$new_height$jscomp$6$$;this.$cur_event$=$cur_event$jscomp$3$$;this.$meta68834$=$meta68834$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3857$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text$$},$app$main$data$workspace$texts$resize_text_68833$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_68835$$,$meta68834__$1$$){return new $app$main$data$workspace$texts$resize_text_68833$$(this.id,this.$new_width$,this.$new_height$,this.$cur_event$,$meta68834__$1$$)},
$app$main$data$workspace$texts$resize_text_68833$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta68834$},$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($G__68836__$jscomp$2079$$,$state$jscomp$525$$){$G__68836__$jscomp$2079$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$525$$,
$APP.$cljs$cst$3856$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_props$$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$assoc$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$),this.id,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[this.$new_width$,this.$new_height$],null));return $APP.$cljs$cst$3858$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_event$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$525$$)==
null?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__68836__$jscomp$2079$$,$APP.$cljs$cst$3858$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_event$$,this.$cur_event$):$G__68836__$jscomp$2079$$},$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$workspace$texts$resize_text_68833$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$2080_stopper$jscomp$15$$,
$state$jscomp$526$$,$stream$jscomp$53$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3858$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_event$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$526$$),this.$cur_event$)?($_$jscomp$2080_stopper$jscomp$15$$=$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3737$app_DOT_main_DOT_data_DOT_workspace_SLASH_finalize$$),$stream$jscomp$53$$),
$APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$2080_stopper$jscomp$15$$,$APP.$beicon$v2$core$map$$(function(){return $app$main$data$workspace$texts$commit_resize_text$$()},$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$debounce$$(50,$APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$3857$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text$$),$stream$jscomp$53$$))))),
(0,$APP.$beicon$v2$core$of$$)($app$main$data$workspace$texts$resize_text$$.$cljs$core$IFn$_invoke$arity$3$?$app$main$data$workspace$texts$resize_text$$.$cljs$core$IFn$_invoke$arity$3$(this.id,this.$new_width$,this.$new_height$):$app$main$data$workspace$texts$resize_text$$(this.id,this.$new_width$,this.$new_height$))),(0,$APP.$beicon$v2$core$of$$)(function($p1__68832_SHARP_$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($p1__68832_SHARP_$$,$APP.$cljs$cst$3856$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_props$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3858$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_resize_text_debounce_event$$]))}))):$APP.$beicon$v2$core$empty$$()});return new $app$main$data$workspace$texts$resize_text_68833$$($id$jscomp$610$$,$new_width$jscomp$5$$,$new_height$jscomp$5$$,$cur_event$jscomp$2$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};$APP.$JSCompiler_prototypeAlias$$=$app$main$data$workspace$transforms$t_app$0main$0data$0workspace$0transforms67400$$.prototype;
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_67402$$,$meta67401__$1$$){return new $app$main$data$workspace$transforms$t_app$0main$0data$0workspace$0transforms67400$$(this.handler,this.ids,this.shape,this.resize,this.$normalize_proportion_lock$,$meta67401__$1$$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta67401$};$APP.$JSCompiler_prototypeAlias$$.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;
$APP.$JSCompiler_prototypeAlias$$.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1952$$,$state$jscomp$406$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$406$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1905$workspace_local$$,$APP.$cljs$cst$1275$transform$$],null),$APP.$cljs$cst$1783$resize$$)};$APP.$JSCompiler_prototypeAlias$$.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;
$APP.$JSCompiler_prototypeAlias$$.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1953_stopper$jscomp$9$$,$state$jscomp$407$$,$resize_events_stream_stream$jscomp$41$$){var $self__$jscomp$4437$$=this;if($APP.$cljs$core$truth_$$($APP.$cljs$cst$1607$blocked$$.$cljs$core$IFn$_invoke$arity$1$($self__$jscomp$4437$$.shape)))return $APP.$beicon$v2$core$empty$$();var $initial_position$$=$APP.$cljs$core$_deref$$($APP.$app$main$streams$mouse_position$$);$_$jscomp$1953_stopper$jscomp$9$$=$APP.$app$util$mouse$drag_stopper$cljs$0core$0IFn$0_invoke$0arity$02$$($resize_events_stream_stream$jscomp$41$$,
null);var $layout$jscomp$10$$=$APP.$cljs$cst$2171$workspace_layout$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$407$$),$page_id$jscomp$158$$=$APP.$cljs$cst$1903$current_page_id$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$407$$),$focus$jscomp$11$$=$APP.$cljs$cst$2188$workspace_focus_selected$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$407$$),$zoom$jscomp$19$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$407$$,$APP.$cljs$cst$1905$workspace_local$$),
$APP.$cljs$cst$2158$zoom$$,1),$objects$jscomp$467$$=$APP.$app$main$data$helpers$lookup_page_objects$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$407$$,$page_id$jscomp$158$$),$shape_ids$jscomp$4$$=$APP.$cljs$core$filterv$$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$not$$,$APP.$cljs$cst$1607$blocked$$,$APP.$app$common$data$getf$$($objects$jscomp$467$$)),$self__$jscomp$4437$$.ids);if($APP.$cljs$core$empty_QMARK_$$($shape_ids$jscomp$4$$))return $APP.$beicon$v2$core$empty$$();
var $shapes$jscomp$93$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$467$$),$shape_ids$jscomp$4$$);$resize_events_stream_stream$jscomp$41$$=$APP.$beicon$v2$core$share$$($APP.$beicon$v2$core$map$$(function($p1__67341_SHARP_$$){return $self__$jscomp$4437$$.resize.$cljs$core$IFn$_invoke$arity$5$?$self__$jscomp$4437$$.resize.$cljs$core$IFn$_invoke$arity$5$($self__$jscomp$4437$$.shape,$initial_position$$,$layout$jscomp$10$$,$objects$jscomp$467$$,$p1__67341_SHARP_$$):
$self__$jscomp$4437$$.resize($self__$jscomp$4437$$.shape,$initial_position$$,$layout$jscomp$10$$,$objects$jscomp$467$$,$p1__67341_SHARP_$$)},$APP.$beicon$v2$core$switch_map$$(function($p__67405$$){var $point$jscomp$61$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67405$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67405$$,1,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__67405$$,2,null);return $APP.$beicon$v2$core$map$$(function($p1__67340_SHARP_$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($p__67405$$,
$p1__67340_SHARP_$$)},$APP.$app$main$snap$closest_snap_point$$($page_id$jscomp$158$$,$shapes$jscomp$93$$,$objects$jscomp$467$$,$layout$jscomp$10$$,$zoom$jscomp$19$$,$focus$jscomp$11$$,$point$jscomp$61$$))},$APP.$beicon$v2$core$map$$($self__$jscomp$4437$$.$normalize_proportion_lock$,$APP.$beicon$v2$core$with_latest_from$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$sub$jscomp$inline_6233$$,$APP.$sub$jscomp$inline_6236$$,$APP.$beicon$v2$core$filter$$($APP.$cljs$core$some_QMARK_$$,$APP.$app$main$streams$mouse_position$$))))));
var $modifiers_stream$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$407$$,"render-wasm/v1"))?$APP.$beicon$v2$core$merge$$($APP.$beicon$v2$core$take_until$$($_$jscomp$1953_stopper$jscomp$9$$,$APP.$beicon$v2$core$mapcat$$(function($modif_tree$jscomp$53_modifiers$jscomp$80$$){$modif_tree$jscomp$53_modifiers$jscomp$80$$=$APP.$app$main$data$workspace$modifiers$create_modif_tree$$($shape_ids$jscomp$4$$,$modif_tree$jscomp$53_modifiers$jscomp$80$$);return(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$set_wasm_modifiers$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($modif_tree$jscomp$53_modifiers$jscomp$80$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3669$ignore_constraints$$,$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$10$$,$APP.$cljs$cst$3586$scale_text$$)])))},$resize_events_stream_stream$jscomp$41$$)),$APP.$beicon$v2$core$map$$(function($p1__67342_SHARP_$$){return $APP.$app$main$data$workspace$modifiers$apply_wasm_modifiers$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$app$main$data$workspace$modifiers$create_modif_tree$$($shape_ids$jscomp$4$$,$p1__67342_SHARP_$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$3669$ignore_constraints$$,$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$10$$,$APP.$cljs$cst$3586$scale_text$$)]))},$APP.$beicon$v2$core$last$$($APP.$beicon$v2$core$take_until$$($_$jscomp$1953_stopper$jscomp$9$$,$resize_events_stream_stream$jscomp$41$$)))):$APP.$beicon$v2$core$take_until$$($_$jscomp$1953_stopper$jscomp$9$$,$APP.$beicon$v2$core$mapcat$$(function($JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$){$JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$=
$APP.$app$main$data$workspace$modifiers$create_modif_tree$$($shape_ids$jscomp$4$$,$JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$);var $ignore_constraints$jscomp$inline_12712$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$10$$,$APP.$cljs$cst$3586$scale_text$$);$JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$=$APP.$app$main$data$workspace$modifiers$set_modifiers$cljs$0core$0IFn$0_invoke$0arity$04$$($JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$,
$ignore_constraints$jscomp$inline_12712$$,!1,null);return(0,$APP.$beicon$v2$core$of$$)($JSCompiler_inline_result$jscomp$10558_modif_tree$jscomp$inline_12711_modifiers$jscomp$81$$)},$resize_events_stream_stream$jscomp$41$$));return $APP.$beicon$v2$core$concat$$($APP.$beicon$v2$core$mapcat$$(function(){return $modifiers_stream$$},$APP.$beicon$v2$core$take_until$$($_$jscomp$1953_stopper$jscomp$9$$,$APP.$beicon$v2$core$take$$($APP.$beicon$v2$core$filter$$(function($p1__67345_SHARP_$$){return $p1__67345_SHARP_$$>
10/$zoom$jscomp$19$$},$APP.$beicon$v2$core$map$$(function($p1__67344_SHARP_$$){return $APP.$app$common$geom$point$length$$($p1__67344_SHARP_$$)},$APP.$beicon$v2$core$map$$(function($p1__67343_SHARP_$$){return $APP.$app$common$geom$point$subtract$$($p1__67343_SHARP_$$,$initial_position$$)},$APP.$app$main$streams$mouse_position$$)))))),$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($state$jscomp$407$$,"render-wasm/v1"))?(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$transforms$finish_transform$$()):
(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$workspace$modifiers$apply_modifiers$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$APP.$app$main$data$workspace$transforms$finish_transform$$()))};
var $cljs$cst$5270$bin_char$$=new $APP.$cljs$core$Keyword$$(null,"bin-char","bin-char",-1662780697),$cljs$cst$5669$orig_shape$$=new $APP.$cljs$core$Keyword$$(null,"orig-shape","orig-shape",-1779157292),$cljs$cst$5689$is_show_artboard_names$$=new $APP.$cljs$core$Keyword$$(null,"is-show-artboard-names","is-show-artboard-names",1177899260),$cljs$cst$5674$mouse_down_picker$$=new $APP.$cljs$core$Keyword$$(null,"mouse-down-picker","mouse-down-picker",-418905630),$cljs$cst$5427$set_alignment$$=new $APP.$cljs$core$Keyword$$(null,
"set-alignment","set-alignment",-2128681649),$cljs$cst$5654$create_rectangle$$=new $APP.$cljs$core$Keyword$$(null,"create-rectangle","create-rectangle",-773298875),$cljs$cst$5653$create_artboard$$=new $APP.$cljs$core$Keyword$$(null,"create-artboard","create-artboard",-183459146),$cljs$cst$5499$localized_date_time$$=new $APP.$cljs$core$Keyword$$(null,"localized-date-time","localized-date-time",358812429),$cljs$cst$5240$paren$$=new $APP.$cljs$core$Keyword$$(null,"paren","paren",-294107600),$cljs$cst$5616$width_p$$=
new $APP.$cljs$core$Keyword$$(null,"width-p","width-p",371756625),$cljs$cst$5613$on_change_width$$=new $APP.$cljs$core$Keyword$$(null,"on-change-width","on-change-width",1217523302),$cljs$cst$5507$all_selected_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"all-selected?","all-selected?",998306472),$cljs$cst$5325$active_tokens$$=new $APP.$cljs$core$Keyword$$(null,"active-tokens","active-tokens",1939368755),$cljs$cst$5631$line_y2$$=new $APP.$cljs$core$Keyword$$(null,"line-y2","line-y2",1362883497),$cljs$cst$5629$line_y1$$=
new $APP.$cljs$core$Keyword$$(null,"line-y1","line-y1",-790998869),$cljs$cst$5628$line_x1$$=new $APP.$cljs$core$Keyword$$(null,"line-x1","line-x1",-1747192142),$cljs$cst$5630$line_x2$$=new $APP.$cljs$core$Keyword$$(null,"line-x2","line-x2",678649845),$cljs$cst$5386$multi_assets_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"multi-assets?","multi-assets?",-1126822393),$cljs$cst$5468$disable_stroke_style$$=new $APP.$cljs$core$Keyword$$(null,"disable-stroke-style","disable-stroke-style",1447608775),$cljs$cst$5394$backends$$=
new $APP.$cljs$core$Keyword$$(null,"backends","backends",-1041162533),$cljs$cst$5655$create_ellipse$$=new $APP.$cljs$core$Keyword$$(null,"create-ellipse","create-ellipse",-403794363),$cljs$cst$5184$start_production$$=new $APP.$cljs$core$Keyword$$(null,"start-production","start-production",687546537),$cljs$cst$5247$reader$$=new $APP.$cljs$core$Symbol$$(null,"reader","reader",1810192380,null),$cljs$cst$5456$presets$$=new $APP.$cljs$core$Keyword$$(null,"presets","presets",-345857391),$cljs$cst$5542$zip$$=
new $APP.$cljs$core$Keyword$$(null,"zip","zip",678448180),$cljs$cst$5259$DQUOTE$$=new $APP.$cljs$core$Keyword$$(null,"DQUOTE","DQUOTE",-571169808),$cljs$cst$5402$rename_typography$$=new $APP.$cljs$core$Keyword$$(null,"rename-typography","rename-typography",-1476102726),$cljs$cst$5423$full_name$$=new $APP.$cljs$core$Keyword$$(null,"full-name","full-name",408178550),$cljs$cst$5677$inside$$=new $APP.$cljs$core$Keyword$$(null,"inside","inside",1972503011),$cljs$cst$5205$msg_cache$$=new $APP.$cljs$core$Keyword$$(null,
"msg-cache","msg-cache",-733775070),$cljs$cst$5680$last_resize_direction$$=new $APP.$cljs$core$Keyword$$(null,"last-resize-direction","last-resize-direction",-1738384379),$cljs$cst$5412$rect_render$$=new $APP.$cljs$core$Keyword$$(null,"rect-render","rect-render",164934616),$cljs$cst$5419$num_items$$=new $APP.$cljs$core$Keyword$$(null,"num-items","num-items",-887909266),$cljs$cst$5334$on_select_color$$=new $APP.$cljs$core$Keyword$$(null,"on-select-color","on-select-color",1794516753),$cljs$cst$5381$on_asset_click$$=
new $APP.$cljs$core$Keyword$$(null,"on-asset-click","on-asset-click",1164784669),$cljs$cst$5194$string_ci$$=new $APP.$cljs$core$Keyword$$(null,"string-ci","string-ci",374631805),$cljs$cst$5377$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_list_style$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.assets","list-style","app.main.data.workspace.assets/list-style",-1347397902),$cljs$cst$5574$new_token_name$$=new $APP.$cljs$core$Keyword$$(null,"new-token-name","new-token-name",554026608),
$cljs$cst$5485$layer$$=new $APP.$cljs$core$Keyword$$(null,"layer","layer",-1601820589),$cljs$cst$5590$empty_themes$$=new $APP.$cljs$core$Keyword$$(null,"empty-themes","empty-themes",-1383438187),$cljs$cst$5248$pending_forms$$=new $APP.$cljs$core$Symbol$$(null,"pending-forms","pending-forms",-1225172071,null),$cljs$cst$5388$open_groups$$=new $APP.$cljs$core$Keyword$$(null,"open-groups","open-groups",1010222446),$cljs$cst$5673$current_transform$$=new $APP.$cljs$core$Keyword$$(null,"current-transform",
"current-transform",786524455),$cljs$cst$5538$left_sidebar$$=new $APP.$cljs$core$Keyword$$(null,"left-sidebar","left-sidebar",-1413634357),$cljs$cst$5561$references_count$$=new $APP.$cljs$core$Keyword$$(null,"references-count","references-count",403887736),$cljs$cst$5324$applied_token$$=new $APP.$cljs$core$Keyword$$(null,"applied-token","applied-token",-1808287379),$cljs$cst$5440$easing_ease_in_out$$=new $APP.$cljs$core$Keyword$$(null,"easing-ease-in-out","easing-ease-in-out",33260603),$cljs$cst$5697$selrect_original$$=
new $APP.$cljs$core$Keyword$$(null,"selrect-original","selrect-original",-1319150208),$cljs$cst$5457$vert$$=new $APP.$cljs$core$Keyword$$(null,"vert","vert",-360932977),$cljs$cst$5540$coce$$=new $APP.$cljs$core$Keyword$$(null,"coce","coce",-1135173234),$cljs$cst$5389$on_clear_selection$$=new $APP.$cljs$core$Keyword$$(null,"on-clear-selection","on-clear-selection",-1065562127),$cljs$cst$5411$shape_link$$=new $APP.$cljs$core$Keyword$$(null,"shape-link","shape-link",-1110484325),$cljs$cst$5266$hide_tag$$=
new $APP.$cljs$core$Keyword$$(null,"hide-tag","hide-tag",1347642501),$cljs$cst$5341$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_SLASH_color_tab$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.colorpicker","color-tab","app.main.ui.workspace.colorpicker/color-tab",-1957999841),$cljs$cst$5241$alt_or_ord$$=new $APP.$cljs$core$Keyword$$(null,"alt-or-ord","alt-or-ord",310249425),$cljs$cst$5206$nodes$$=new $APP.$cljs$core$Keyword$$(null,"nodes","nodes",-2099585805),$cljs$cst$5395$multiple_variants$$=
new $APP.$cljs$core$Keyword$$(null,"multiple-variants","multiple-variants",-1555709443),$cljs$cst$5693$on_frame_leave$$=new $APP.$cljs$core$Keyword$$(null,"on-frame-leave","on-frame-leave",-1225882137),$cljs$cst$5418$show_search$$=new $APP.$cljs$core$Keyword$$(null,"show-search","show-search",266138187),$cljs$cst$5413$shape_list$$=new $APP.$cljs$core$Keyword$$(null,"shape-list","shape-list",-226178330),$cljs$cst$5385$force_open_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"force-open?","force-open?",
514305058),$cljs$cst$5494$bassics$$=new $APP.$cljs$core$Keyword$$(null,"bassics","bassics",1660356961),$cljs$cst$5308$cljs_DOT_spec_DOT_alpha$$=new $APP.$cljs$core$Symbol$$(null,"cljs.spec.alpha","cljs.spec.alpha",505122844,null),$cljs$cst$5508$selected_pred$$=new $APP.$cljs$core$Keyword$$(null,"selected-pred","selected-pred",-1733167808),$cljs$cst$5584$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_typography_SLASH_set_base_font_size$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.tokens.typography",
"set-base-font-size","app.main.data.workspace.tokens.typography/set-base-font-size",196229846),$cljs$cst$5202$next_stack$$=new $APP.$cljs$core$Keyword$$(null,"next-stack","next-stack",-481930728),$cljs$cst$5290$optimize$$=new $APP.$cljs$core$Keyword$$(null,"optimize","optimize",-1912349448),$cljs$cst$5351$disable_booleans$$=new $APP.$cljs$core$Keyword$$(null,"disable-booleans","disable-booleans",1692419768),$cljs$cst$5448$option_highlighted_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"option-highlighted?",
"option-highlighted?",2074036831),$cljs$cst$5261$CR$$=new $APP.$cljs$core$Keyword$$(null,"CR","CR",-1654295403),$cljs$cst$5275$defined_as$$=new $APP.$cljs$core$Keyword$$(null,"defined-as","defined-as",-474679152),$cljs$cst$5595$mouse_pos$$=new $APP.$cljs$core$Keyword$$(null,"mouse-pos","mouse-pos",370762057),$cljs$cst$5280$dec_val$$=new $APP.$cljs$core$Keyword$$(null,"dec-val","dec-val",-1263870894),$cljs$cst$5383$selected_full$$=new $APP.$cljs$core$Keyword$$(null,"selected-full","selected-full",
-948180416),$cljs$cst$5441$colum_gap$$=new $APP.$cljs$core$Keyword$$(null,"colum-gap","colum-gap",2136475955),$cljs$cst$5463$stroke_circle$$=new $APP.$cljs$core$Keyword$$(null,"stroke-circle","stroke-circle",-305167974),$cljs$cst$5319$paths$$=new $APP.$cljs$core$Keyword$$(null,"paths","paths",-1807389588),$cljs$cst$5686$drawing$$=new $APP.$cljs$core$Keyword$$(null,"drawing","drawing",1181749528),$cljs$cst$5253$LF$$=new $APP.$cljs$core$Keyword$$(null,"LF","LF",1177033158),$cljs$cst$5405$is_indirect$$=
new $APP.$cljs$core$Keyword$$(null,"is-indirect","is-indirect",-518601596),$cljs$cst$5452$absolute_position$$=new $APP.$cljs$core$Keyword$$(null,"absolute-position","absolute-position",397125855),$cljs$cst$5605$margin_num$$=new $APP.$cljs$core$Keyword$$(null,"margin-num","margin-num",-23910265),$cljs$cst$5509$allowed_shape_attributes$$=new $APP.$cljs$core$Keyword$$(null,"allowed-shape-attributes","allowed-shape-attributes",-11621484),$cljs$cst$5256$SP$$=new $APP.$cljs$core$Keyword$$(null,"SP","SP",
124290284),$cljs$cst$5473$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_add_frame_grid$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.grid","add-frame-grid","app.main.data.workspace.grid/add-frame-grid",-1083498650),$cljs$cst$5511$attribute_labels$$=new $APP.$cljs$core$Keyword$$(null,"attribute-labels","attribute-labels",-1728954592),$cljs$cst$5331$max_value$$=new $APP.$cljs$core$Keyword$$(null,"max-value","max-value",687805168),$cljs$cst$5180$regexp$$=new $APP.$cljs$core$Keyword$$(null,
"regexp","regexp",-541372782),$cljs$cst$5387$on_ungroup$$=new $APP.$cljs$core$Keyword$$(null,"on-ungroup","on-ungroup",-1285143350),$cljs$cst$5327$sidebar$$=new $APP.$cljs$core$Keyword$$(null,"sidebar","sidebar",35784458),$cljs$cst$5512$on_update_shape_all$$=new $APP.$cljs$core$Keyword$$(null,"on-update-shape-all","on-update-shape-all",421199428),$cljs$cst$5397$on_key_down$$=new $APP.$cljs$core$Keyword$$(null,"on-key-down","on-key-down",-1374733765),$cljs$cst$5283$repetition$$=new $APP.$cljs$core$Keyword$$(null,
"repetition","repetition",1938392115),$cljs$cst$5492$sub_sec$$=new $APP.$cljs$core$Keyword$$(null,"sub-sec","sub-sec",1680069611),$cljs$cst$5618$board_name$$=new $APP.$cljs$core$Keyword$$(null,"board-name","board-name",-677515056),$cljs$cst$5204$negative_listeners$$=new $APP.$cljs$core$Keyword$$(null,"negative-listeners","negative-listeners",55241092),$cljs$cst$5645$l2_y2$$=new $APP.$cljs$core$Keyword$$(null,"l2-y2","l2-y2",1349041214),$cljs$cst$5646$l2_y1$$=new $APP.$cljs$core$Keyword$$(null,"l2-y1",
"l2-y1",503329823),$cljs$cst$5219$listeners$$=new $APP.$cljs$core$Keyword$$(null,"listeners","listeners",394544445),$cljs$cst$5446$centerh$$=new $APP.$cljs$core$Keyword$$(null,"centerh","centerh",463637087),$cljs$cst$5445$centerv$$=new $APP.$cljs$core$Keyword$$(null,"centerv","centerv",-45511012),$cljs$cst$5368$selected_ids$$=new $APP.$cljs$core$Keyword$$(null,"selected-ids","selected-ids",-1154760141),$cljs$cst$5555$matching_aliases$$=new $APP.$cljs$core$Keyword$$(null,"matching-aliases","matching-aliases",
-889687368),$cljs$cst$5345$ordering$$=new $APP.$cljs$core$Keyword$$(null,"ordering","ordering",1096406705),$cljs$cst$5547$attribute$$=new $APP.$cljs$core$Keyword$$(null,"attribute","attribute",-2074029119),$cljs$cst$5589$themes_overview$$=new $APP.$cljs$core$Keyword$$(null,"themes-overview","themes-overview",1335300928),$cljs$cst$5537$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_SLASH_sitemap_collapsed$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.sidebar","sitemap-collapsed","app.main.ui.workspace.sidebar/sitemap-collapsed",
-1053391535),$cljs$cst$5690$is_show_id$$=new $APP.$cljs$core$Keyword$$(null,"is-show-id","is-show-id",-2011614269),$cljs$cst$5622$on_drag_position$$=new $APP.$cljs$core$Keyword$$(null,"on-drag-position","on-drag-position",1447756755),$cljs$cst$5333$on_finish_drag$$=new $APP.$cljs$core$Keyword$$(null,"on-finish-drag","on-finish-drag",471583064),$cljs$cst$5288$low$$=new $APP.$cljs$core$Keyword$$(null,"low","low",-1601362409),$cljs$cst$5335$on_add_library_color$$=new $APP.$cljs$core$Keyword$$(null,"on-add-library-color",
"on-add-library-color",1810204545),$cljs$cst$5187$expecting$$=new $APP.$cljs$core$Keyword$$(null,"expecting","expecting",-57706705),$cljs$cst$5406$open_menu$$=new $APP.$cljs$core$Keyword$$(null,"open-menu","open-menu",1078280881),$cljs$cst$5304$standard$$=new $APP.$cljs$core$Keyword$$(null,"standard","standard",-1769206695),$cljs$cst$5246$read_string_STAR_$$=new $APP.$cljs$core$Symbol$$(null,"read-string*","read-string*",1046768315,null),$cljs$cst$5635$l2_x2$$=new $APP.$cljs$core$Keyword$$(null,"l2-x2",
"l2-x2",-962595741),$cljs$cst$5643$l2_x1$$=new $APP.$cljs$core$Keyword$$(null,"l2-x1","l2-x1",1119885113),$cljs$cst$5685$remove_snap_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"remove-snap?","remove-snap?",-1090687881),$cljs$cst$5390$on_group$$=new $APP.$cljs$core$Keyword$$(null,"on-group","on-group",1496733713),$cljs$cst$5692$on_frame_enter$$=new $APP.$cljs$core$Keyword$$(null,"on-frame-enter","on-frame-enter",-1721032251),$cljs$cst$5460$stroke_arrow$$=new $APP.$cljs$core$Keyword$$(null,"stroke-arrow",
"stroke-arrow",-1800437183),$cljs$cst$5666$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_path$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.viewport.hooks","path","app.main.ui.workspace.viewport.hooks/path",1642934739),$cljs$cst$5297$ebnf$$=new $APP.$cljs$core$Keyword$$(null,"ebnf","ebnf",31967825),$cljs$cst$5572$tokens_SLASH_remapping_confirmation$$=new $APP.$cljs$core$Keyword$$("tokens","remapping-confirmation","tokens/remapping-confirmation",-1629837152),$cljs$cst$5344$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_SLASH_colorpicker$$=
new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.colorpicker","colorpicker","app.main.ui.workspace.colorpicker/colorpicker",1197429294),$cljs$cst$5400$visible_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"visible?","visible?",2129863715),$cljs$cst$5198$neg$$=new $APP.$cljs$core$Keyword$$(null,"neg","neg",1800032960),$cljs$cst$5322$on_token_change$$=new $APP.$cljs$core$Keyword$$(null,"on-token-change","on-token-change",-504087325),$cljs$cst$5401$editable_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,
"editable?","editable?",-1805477333),$cljs$cst$5534$tokens_SLASH_export$$=new $APP.$cljs$core$Keyword$$("tokens","export","tokens/export",-125347700),$cljs$cst$5466$stroke_squared$$=new $APP.$cljs$core$Keyword$$(null,"stroke-squared","stroke-squared",1558407903),$cljs$cst$5624$handle_lost_pointer_capture$$=new $APP.$cljs$core$Keyword$$(null,"handle-lost-pointer-capture","handle-lost-pointer-capture",-895460559),$cljs$cst$5416$search_text$$=new $APP.$cljs$core$Keyword$$(null,"search-text","search-text",
1559451259),$cljs$cst$5221$results$$=new $APP.$cljs$core$Keyword$$(null,"results","results",-1134170113),$cljs$cst$5565$applied_refs$$=new $APP.$cljs$core$Keyword$$(null,"applied-refs","applied-refs",-956375371),$cljs$cst$5570$prev_token$$=new $APP.$cljs$core$Keyword$$(null,"prev-token","prev-token",2072559436),$cljs$cst$5694$is_selected$$=new $APP.$cljs$core$Keyword$$(null,"is-selected","is-selected",-334199992),$cljs$cst$5464$stroke_diamond$$=new $APP.$cljs$core$Keyword$$(null,"stroke-diamond",
"stroke-diamond",1245033185),$cljs$cst$5375$app_DOT_main_DOT_data_DOT_workspace_DOT_history_SLASH_initialize_history$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.history","initialize-history","app.main.data.workspace.history/initialize-history",-627816697),$cljs$cst$5352$disable_flatten$$=new $APP.$cljs$core$Keyword$$(null,"disable-flatten","disable-flatten",570467597),$cljs$cst$5273$char_val$$=new $APP.$cljs$core$Keyword$$(null,"char-val","char-val",1408617933),$cljs$cst$5461$stroke_triangle$$=
new $APP.$cljs$core$Keyword$$(null,"stroke-triangle","stroke-triangle",850121987),$cljs$cst$5620$on_drag_end$$=new $APP.$cljs$core$Keyword$$(null,"on-drag-end","on-drag-end",520272671),$cljs$cst$5183$grammar$$=new $APP.$cljs$core$Keyword$$(null,"grammar","grammar",1881328267),$cljs$cst$5269$hide_tag_rule$$=new $APP.$cljs$core$Keyword$$(null,"hide-tag-rule","hide-tag-rule",150267589),$cljs$cst$5471$token_colors$$=new $APP.$cljs$core$Keyword$$(null,"token-colors","token-colors",-1209312666),$cljs$cst$5621$on_drag_delta$$=
new $APP.$cljs$core$Keyword$$(null,"on-drag-delta","on-drag-delta",-81646512),$cljs$cst$5544$async_errors$$=new $APP.$cljs$core$Keyword$$(null,"async-errors","async-errors",-1865115559),$cljs$cst$5606$hover_v_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"hover-v?","hover-v?",284060266),$cljs$cst$5513$all_attr_labels$$=new $APP.$cljs$core$Keyword$$(null,"all-attr-labels","all-attr-labels",-1560265704),$cljs$cst$5370$file_typographies$$=new $APP.$cljs$core$Keyword$$(null,"file-typographies","file-typographies",
-177702884),$cljs$cst$5486$ignore$$=new $APP.$cljs$core$Keyword$$(null,"ignore","ignore",-1631542033),$cljs$cst$5252$LWSP$$=new $APP.$cljs$core$Keyword$$(null,"LWSP","LWSP",782998598),$cljs$cst$5559$old_name$$=new $APP.$cljs$core$Keyword$$(null,"old-name","old-name",1289683869),$cljs$cst$5289$high$$=new $APP.$cljs$core$Keyword$$(null,"high","high",2027297808),$cljs$cst$5267$whitespace$$=new $APP.$cljs$core$Keyword$$(null,"whitespace","whitespace",-1340035483),$cljs$cst$5514$horizontal_attr_labels$$=
new $APP.$cljs$core$Keyword$$(null,"horizontal-attr-labels","horizontal-attr-labels",641068751),$cljs$cst$5286$hex_val$$=new $APP.$cljs$core$Keyword$$(null,"hex-val","hex-val",1267737401),$cljs$cst$5189$enlive$$=new $APP.$cljs$core$Keyword$$(null,"enlive","enlive",1679023921),$cljs$cst$5577$indexed$$=new $APP.$cljs$core$Keyword$$(null,"indexed","indexed",390758624),$cljs$cst$5500$snapshots$$=new $APP.$cljs$core$Keyword$$(null,"snapshots","snapshots",941363956),$cljs$cst$5443$canvas$$=new $APP.$cljs$core$Keyword$$(null,
"canvas","canvas",-1798817489),$cljs$cst$5591$prev_type$$=new $APP.$cljs$core$Keyword$$(null,"prev-type","prev-type",212113111),$cljs$cst$5604$hover_h_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"hover-h?","hover-h?",1568370393),$cljs$cst$5268$element$$=new $APP.$cljs$core$Keyword$$(null,"element","element",1974019749),$cljs$cst$5545$color_result$$=new $APP.$cljs$core$Keyword$$(null,"color-result","color-result",-859632008),$cljs$cst$5610$transforming$$=new $APP.$cljs$core$Keyword$$(null,"transforming",
"transforming",-464205588),$cljs$cst$5569$token_description$$=new $APP.$cljs$core$Keyword$$(null,"token-description","token-description",-1559156482),$cljs$cst$5699$coordinates$$=new $APP.$cljs$core$Keyword$$(null,"coordinates","coordinates",-1225332668),$cljs$cst$5323$disable_image$$=new $APP.$cljs$core$Keyword$$(null,"disable-image","disable-image",-1920778139),$cljs$cst$5366$show_menu$$=new $APP.$cljs$core$Keyword$$(null,"show-menu","show-menu",14072792),$cljs$cst$5691$on_frame_select$$=new $APP.$cljs$core$Keyword$$(null,
"on-frame-select","on-frame-select",-1813582940),$cljs$cst$5599$resize_negate_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"resize-negate?","resize-negate?",-1130986046),$cljs$cst$5231$lookahead$$=new $APP.$cljs$core$Keyword$$(null,"lookahead","lookahead",-400102393),$cljs$cst$5516$is_selected_inside_layout$$=new $APP.$cljs$core$Keyword$$(null,"is-selected-inside-layout","is-selected-inside-layout",-932422043),$cljs$cst$5641$l3_y2$$=new $APP.$cljs$core$Keyword$$(null,"l3-y2","l3-y2",-331288200),$cljs$cst$5640$l3_y1$$=
new $APP.$cljs$core$Keyword$$(null,"l3-y1","l3-y1",-159671272),$cljs$cst$5637$l3_x2$$=new $APP.$cljs$core$Keyword$$(null,"l3-x2","l3-x2",-949175405),$cljs$cst$5638$l3_x1$$=new $APP.$cljs$core$Keyword$$(null,"l3-x1","l3-x1",-228486922),$cljs$cst$5658$pen$$=new $APP.$cljs$core$Keyword$$(null,"pen","pen",2006675445),$cljs$cst$5237$hide_nt$$=new $APP.$cljs$core$Keyword$$(null,"hide-nt","hide-nt",-228813845),$cljs$cst$5455$clip_content$$=new $APP.$cljs$core$Keyword$$(null,"clip-content","clip-content",
-1393212533),$cljs$cst$5201$node_builder$$=new $APP.$cljs$core$Keyword$$(null,"node-builder","node-builder",-1956562605),$cljs$cst$5505$locked_by$$=new $APP.$cljs$core$Keyword$$(null,"locked-by","locked-by",-545502839),$cljs$cst$5306$cljs_DOT_spec_DOT_alpha_SLASH__STAR_runtime_asserts_STAR_$$=new $APP.$cljs$core$Symbol$$("cljs.spec.alpha","*runtime-asserts*","cljs.spec.alpha/*runtime-asserts*",-1060443587,null),$cljs$cst$5321$color_selection$$=new $APP.$cljs$core$Keyword$$(null,"color-selection",
"color-selection",923516039),$cljs$cst$5551$containers_count$$=new $APP.$cljs$core$Keyword$$(null,"containers-count","containers-count",-2090453936),$cljs$cst$5365$nudge_option$$=new $APP.$cljs$core$Keyword$$(null,"nudge-option","nudge-option",-726591721),$cljs$cst$5688$is_grid_edition$$=new $APP.$cljs$core$Keyword$$(null,"is-grid-edition","is-grid-edition",-1875178500),$cljs$cst$5550$referenced_token_name$$=new $APP.$cljs$core$Keyword$$(null,"referenced-token-name","referenced-token-name",462027675),
$cljs$cst$5506$own$$=new $APP.$cljs$core$Keyword$$(null,"own","own",-286380473),$cljs$cst$5272$NUM$$=new $APP.$cljs$core$Keyword$$(null,"NUM","NUM",-218662260),$cljs$cst$5438$easing_ease_in$$=new $APP.$cljs$core$Keyword$$(null,"easing-ease-in","easing-ease-in",-842794625),$cljs$cst$5174$ord$$=new $APP.$cljs$core$Keyword$$(null,"ord","ord",1142548323),$cljs$cst$5588$theme_info$$=new $APP.$cljs$core$Keyword$$(null,"theme-info","theme-info",1015163604),$cljs$cst$5185$NOT$$=new $APP.$cljs$core$Keyword$$(null,
"NOT","NOT",-1689245341),$cljs$cst$5332$vertical_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"vertical?","vertical?",-1522630444),$cljs$cst$5195$char$$=new $APP.$cljs$core$Keyword$$(null,"char","char",-641587586),$cljs$cst$5700$app_DOT_main_DOT_ui_DOT_workspace_SLASH_has_data$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace","has-data","app.main.ui.workspace/has-data",-1439290016),$cljs$cst$5415$operation$$=new $APP.$cljs$core$Keyword$$(null,"operation","operation",-1267664310),$cljs$cst$5472$library_colors$$=
new $APP.$cljs$core$Keyword$$(null,"library-colors","library-colors",-1244860886),$cljs$cst$5408$matrix_render$$=new $APP.$cljs$core$Keyword$$(null,"matrix-render","matrix-render",278382090),$cljs$cst$5417$filters$$=new $APP.$cljs$core$Keyword$$(null,"filters","filters",974726919),$cljs$cst$5444$show_more_options$$=new $APP.$cljs$core$Keyword$$(null,"show-more-options","show-more-options",-1066587564),$cljs$cst$5592$on_pointer_leave$$=new $APP.$cljs$core$Keyword$$(null,"on-pointer-leave","on-pointer-leave",
253985380),$cljs$cst$5615$on_change_finish$$=new $APP.$cljs$core$Keyword$$(null,"on-change-finish","on-change-finish",-985157970),$cljs$cst$5602$resize_type$$=new $APP.$cljs$core$Keyword$$(null,"resize-type","resize-type",-1850768191),$cljs$cst$5287$dec_char$$=new $APP.$cljs$core$Keyword$$(null,"dec-char","dec-char",-646625154),$cljs$cst$5579$tokens_SLASH_boolean$$=new $APP.$cljs$core$Keyword$$("tokens","boolean","tokens/boolean",1104647026),$cljs$cst$5337$app_DOT_main_DOT_ui_DOT_workspace_DOT_colorpicker_DOT_libraries_SLASH_id$$=
new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.colorpicker.libraries","id","app.main.ui.workspace.colorpicker.libraries/id",-2085412349),$cljs$cst$5597$hover_value$$=new $APP.$cljs$core$Keyword$$(null,"hover-value","hover-value",1679488403),$cljs$cst$5369$name_only_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"name-only?","name-only?",667437857),$cljs$cst$5557$total_references$$=new $APP.$cljs$core$Keyword$$(null,"total-references","total-references",1857252869),$cljs$cst$5284$rulename_left$$=
new $APP.$cljs$core$Keyword$$(null,"rulename-left","rulename-left",-1824251564),$cljs$cst$5566$alias_refs$$=new $APP.$cljs$core$Keyword$$(null,"alias-refs","alias-refs",665806110),$cljs$cst$5449$preview_complete_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"preview-complete?","preview-complete?",-1244024070),$cljs$cst$5277$hex_char$$=new $APP.$cljs$core$Keyword$$(null,"hex-char","hex-char",764443568),$cljs$cst$5421$variants_help_modal$$=new $APP.$cljs$core$Keyword$$(null,"variants-help-modal","variants-help-modal",
1413487149),$cljs$cst$5222$full_results$$=new $APP.$cljs$core$Keyword$$(null,"full-results","full-results",-1500225407),$cljs$cst$5236$rule$$=new $APP.$cljs$core$Keyword$$(null,"rule","rule",729973257),$cljs$cst$5459$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_menus_DOT_shadow_SLASH_index$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.sidebar.options.menus.shadow","index","app.main.ui.workspace.sidebar.options.menus.shadow/index",-1426814770),$cljs$cst$5585$change_view$$=
new $APP.$cljs$core$Keyword$$(null,"change-view","change-view",-1206699831),$cljs$cst$5233$Epsilon$$=new $APP.$cljs$core$Keyword$$(null,"Epsilon","Epsilon",133418452),$cljs$cst$5382$on_rename_group$$=new $APP.$cljs$core$Keyword$$(null,"on-rename-group","on-rename-group",-1516017186),$cljs$cst$5242$factor$$=new $APP.$cljs$core$Keyword$$(null,"factor","factor",-2103172748),$cljs$cst$5649$rect_width$$=new $APP.$cljs$core$Keyword$$(null,"rect-width","rect-width",1414450590),$cljs$cst$5338$delete_stop$$=
new $APP.$cljs$core$Keyword$$(null,"delete-stop","delete-stop",-1177718181),$cljs$cst$5676$outside$$=new $APP.$cljs$core$Keyword$$(null,"outside","outside",-13164995),$cljs$cst$5384$on_assets_delete$$=new $APP.$cljs$core$Keyword$$(null,"on-assets-delete","on-assets-delete",-1367349600),$cljs$cst$5675$bottom_padding$$=new $APP.$cljs$core$Keyword$$(null,"bottom-padding","bottom-padding",-1809629359),$cljs$cst$5458$color_row$$=new $APP.$cljs$core$Keyword$$(null,"color-row","color-row",804190296),$cljs$cst$5524$on_context_menu$$=
new $APP.$cljs$core$Keyword$$(null,"on-context-menu","on-context-menu",-1330744340),$cljs$cst$5611$angle$$=new $APP.$cljs$core$Keyword$$(null,"angle","angle",1622094254),$cljs$cst$5398$navigate_to_library$$=new $APP.$cljs$core$Keyword$$(null,"navigate-to-library","navigate-to-library",184349536),$cljs$cst$5660$create_shape$$=new $APP.$cljs$core$Keyword$$(null,"create-shape","create-shape",-897512870),$cljs$cst$5650$rect_height$$=new $APP.$cljs$core$Keyword$$(null,"rect-height","rect-height",1948275951),
$cljs$cst$5668$arrow_dir$$=new $APP.$cljs$core$Keyword$$(null,"arrow-dir","arrow-dir",-591621960),$cljs$cst$5425$render$$=new $APP.$cljs$core$Keyword$$(null,"render","render",-1408033454),$cljs$cst$5554$total_alias_refs$$=new $APP.$cljs$core$Keyword$$(null,"total-alias-refs","total-alias-refs",369704626),$cljs$cst$5232$negative_lookahead$$=new $APP.$cljs$core$Keyword$$(null,"negative-lookahead","negative-lookahead",874382387),$cljs$cst$5617$display_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"display?",
"display?",-1189123617),$cljs$cst$5532$grouped_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"grouped?","grouped?",531080948),$cljs$cst$5274$num_val$$=new $APP.$cljs$core$Keyword$$(null,"num-val","num-val",1497434478),$cljs$cst$5310$rgb$$=new $APP.$cljs$core$Keyword$$(null,"rgb","rgb",1432123467),$cljs$cst$5193$rep$$=new $APP.$cljs$core$Keyword$$(null,"rep","rep",-1226820564),$cljs$cst$5350$shortcut$$=new $APP.$cljs$core$Keyword$$(null,"shortcut","shortcut",-431647697),$cljs$cst$5372$close_menu$$=new $APP.$cljs$core$Keyword$$(null,
"close-menu","close-menu",1433041309),$cljs$cst$5478$frame_height$$=new $APP.$cljs$core$Keyword$$(null,"frame-height","frame-height",1932367973),$cljs$cst$5262$OCTET$$=new $APP.$cljs$core$Keyword$$(null,"OCTET","OCTET",-743420682),$cljs$cst$5632$show_rulers_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"show-rulers?","show-rulers?",1630765732),$cljs$cst$5657$zoom_out$$=new $APP.$cljs$core$Keyword$$(null,"zoom-out","zoom-out",681508467),$cljs$cst$5355$is_empty$$=new $APP.$cljs$core$Keyword$$(null,"is-empty",
"is-empty",-1040302908),$cljs$cst$5489$control$$=new $APP.$cljs$core$Keyword$$(null,"control","control",1892578036),$cljs$cst$5490$translation$$=new $APP.$cljs$core$Keyword$$(null,"translation","translation",-701621547),$cljs$cst$5587$edit_theme$$=new $APP.$cljs$core$Keyword$$(null,"edit-theme","edit-theme",1508129664),$cljs$cst$5363$v2_info_shown$$=new $APP.$cljs$core$Keyword$$(null,"v2-info-shown","v2-info-shown",1459219808),$cljs$cst$5349$for_design_tab_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,
"for-design-tab?","for-design-tab?",-900372392),$cljs$cst$5301$input_format$$=new $APP.$cljs$core$Keyword$$(null,"input-format","input-format",-422703481),$cljs$cst$5263$ALPHA$$=new $APP.$cljs$core$Keyword$$(null,"ALPHA","ALPHA",-1463859144),$cljs$cst$5687$remove_node$$=new $APP.$cljs$core$Keyword$$(null,"remove-node","remove-node",-1450759511),$cljs$cst$5264$CHAR$$=new $APP.$cljs$core$Keyword$$(null,"CHAR","CHAR",-1280338086),$cljs$cst$5356$library_file_ids$$=new $APP.$cljs$core$Keyword$$(null,"library-file-ids",
"library-file-ids",65064728),$cljs$cst$5364$v2_info$$=new $APP.$cljs$core$Keyword$$(null,"v2-info","v2-info",1679610198),$cljs$cst$5414$modify$$=new $APP.$cljs$core$Keyword$$(null,"modify","modify",-1261040869),$cljs$cst$5594$on_pointer_enter$$=new $APP.$cljs$core$Keyword$$(null,"on-pointer-enter","on-pointer-enter",199832041),$cljs$cst$5190$epsilon$$=new $APP.$cljs$core$Keyword$$(null,"epsilon","epsilon",-730158570),$cljs$cst$5520$submenu_offset$$=new $APP.$cljs$core$Keyword$$(null,"submenu-offset",
"submenu-offset",1888650638),$cljs$cst$5302$allow_namespaced_nts$$=new $APP.$cljs$core$Keyword$$(null,"allow-namespaced-nts","allow-namespaced-nts",-507534966),$cljs$cst$5682$sr2$$=new $APP.$cljs$core$Keyword$$(null,"sr2","sr2",-1173654748),$cljs$cst$5681$sr1$$=new $APP.$cljs$core$Keyword$$(null,"sr1","sr1",1440906108),$cljs$cst$5568$token_value$$=new $APP.$cljs$core$Keyword$$(null,"token-value","token-value",1433419008),$cljs$cst$5480$show_advanced_options$$=new $APP.$cljs$core$Keyword$$(null,"show-advanced-options",
"show-advanced-options",-561220032),$cljs$cst$5203$generation$$=new $APP.$cljs$core$Keyword$$(null,"generation","generation",-2132542044),$cljs$cst$5567$error_SLASH_unknown_error$$=new $APP.$cljs$core$Keyword$$("error","unknown-error","error/unknown-error",843694167),$cljs$cst$5376$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_ordering$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.assets","ordering","app.main.data.workspace.assets/ordering",-515349399),$cljs$cst$5484$measure$$=new $APP.$cljs$core$Keyword$$(null,
"measure","measure",-1857519826),$cljs$cst$5493$sec$$=new $APP.$cljs$core$Keyword$$(null,"sec","sec",-1580376553),$cljs$cst$5552$total_applied_refs$$=new $APP.$cljs$core$Keyword$$(null,"total-applied-refs","total-applied-refs",1091146793),$cljs$cst$5186$char_range$$=new $APP.$cljs$core$Keyword$$(null,"char-range","char-range",1443391389),$cljs$cst$5612$on_pointer_up$$=new $APP.$cljs$core$Keyword$$(null,"on-pointer-up","on-pointer-up",385194E3),$cljs$cst$5191$plus$$=new $APP.$cljs$core$Keyword$$(null,
"plus","plus",211540661),$cljs$cst$5548$token_alias$$=new $APP.$cljs$core$Keyword$$(null,"token-alias","token-alias",2012298055),$cljs$cst$5339$combined_tokens$$=new $APP.$cljs$core$Keyword$$(null,"combined-tokens","combined-tokens",879038436),$cljs$cst$5553$matching_applied$$=new $APP.$cljs$core$Keyword$$(null,"matching-applied","matching-applied",-1367639331),$cljs$cst$5515$vertical_attr_labels$$=new $APP.$cljs$core$Keyword$$(null,"vertical-attr-labels","vertical-attr-labels",1255704246),$cljs$cst$5330$min_value$$=
new $APP.$cljs$core$Keyword$$(null,"min-value","min-value",-1119123315),$cljs$cst$5343$checked$$=new $APP.$cljs$core$Keyword$$(null,"checked","checked",-50955819),$cljs$cst$5536$tokens_SLASH_settings$$=new $APP.$cljs$core$Keyword$$("tokens","settings","tokens/settings",150998605),$cljs$cst$5378$thumbs$$=new $APP.$cljs$core$Keyword$$(null,"thumbs","thumbs",-1134286339),$cljs$cst$5318$expand_token_sets$$=new $APP.$cljs$core$Keyword$$(null,"expand-token-sets","expand-token-sets",1253386),$cljs$cst$5546$reference$$=
new $APP.$cljs$core$Keyword$$(null,"reference","reference",-1711695023),$cljs$cst$5560$new_name$$=new $APP.$cljs$core$Keyword$$(null,"new-name","new-name",1288355058),$cljs$cst$5517$submenu$$=new $APP.$cljs$core$Keyword$$(null,"submenu","submenu",2142563344),$cljs$cst$5483$layout_item$$=new $APP.$cljs$core$Keyword$$(null,"layout-item","layout-item",-1207087322),$cljs$cst$5573$old_token_name$$=new $APP.$cljs$core$Keyword$$(null,"old-token-name","old-token-name",-978310636),$cljs$cst$5598$rect_data$$=
new $APP.$cljs$core$Keyword$$(null,"rect-data","rect-data",627750614),$cljs$cst$5652$hand$$=new $APP.$cljs$core$Keyword$$(null,"hand","hand",791601933),$cljs$cst$5614$on_change_start$$=new $APP.$cljs$core$Keyword$$(null,"on-change-start","on-change-start",-1484497624),$cljs$cst$5188$hiccup$$=new $APP.$cljs$core$Keyword$$(null,"hiccup","hiccup",1218876238),$cljs$cst$5235$rule_separator$$=new $APP.$cljs$core$Keyword$$(null,"rule-separator","rule-separator",1539322213),$cljs$cst$5265$BIT$$=new $APP.$cljs$core$Keyword$$(null,
"BIT","BIT",-1854474115),$cljs$cst$5442$is_column$$=new $APP.$cljs$core$Keyword$$(null,"is-column","is-column",1610131457),$cljs$cst$5470$all_colors$$=new $APP.$cljs$core$Keyword$$(null,"all-colors","all-colors",541687080),$cljs$cst$5533$tokens_SLASH_themes$$=new $APP.$cljs$core$Keyword$$("tokens","themes","tokens/themes",31381800),$cljs$cst$5220$full_listeners$$=new $APP.$cljs$core$Keyword$$(null,"full-listeners","full-listeners",50621827),$cljs$cst$5354$colorpalette_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,
"colorpalette?","colorpalette?",-706812758),$cljs$cst$5426$is_col_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"is-col?","is-col?",-405323997),$cljs$cst$5255$DIGIT$$=new $APP.$cljs$core$Keyword$$(null,"DIGIT","DIGIT",341251338),$cljs$cst$5678$resize_side$$=new $APP.$cljs$core$Keyword$$(null,"resize-side","resize-side",-532712885),$cljs$cst$5623$handle_pointer_down$$=new $APP.$cljs$core$Keyword$$(null,"handle-pointer-down","handle-pointer-down",761659029),$cljs$cst$5437$easing_ease$$=new $APP.$cljs$core$Keyword$$(null,
"easing-ease","easing-ease",-1909581280),$cljs$cst$5576$on_rename$$=new $APP.$cljs$core$Keyword$$(null,"on-rename","on-rename",2102721909),$cljs$cst$5504$restore_dialog$$=new $APP.$cljs$core$Keyword$$(null,"restore-dialog","restore-dialog",230231813),$cljs$cst$5582$remap_modal$$=new $APP.$cljs$core$Keyword$$(null,"remap-modal","remap-modal",-2098032472),$cljs$cst$5307$dynamic$$=new $APP.$cljs$core$Keyword$$(null,"dynamic","dynamic",704819571),$cljs$cst$5450$static$$=new $APP.$cljs$core$Keyword$$(null,
"static","static",1214358571),$cljs$cst$5424$listing_thumbs_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"listing-thumbs?","listing-thumbs?",1714462360),$cljs$cst$5549$source_token_id$$=new $APP.$cljs$core$Keyword$$(null,"source-token-id","source-token-id",-86861571),$cljs$cst$5601$initial_value$$=new $APP.$cljs$core$Keyword$$(null,"initial-value","initial-value",470619381),$cljs$cst$5633$selection_rect$$=new $APP.$cljs$core$Keyword$$(null,"selection-rect","selection-rect",-1035077680),$cljs$cst$5664$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_workspace$$=
new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.viewport.hooks","workspace","app.main.ui.workspace.viewport.hooks/workspace",1534742616),$cljs$cst$5403$detail_open_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"detail-open?","detail-open?",-1192975497),$cljs$cst$5353$deletable_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"deletable?","deletable?",2134719819),$cljs$cst$5258$CTL$$=new $APP.$cljs$core$Keyword$$(null,"CTL","CTL",-9995632),$cljs$cst$5291$memory$$=new $APP.$cljs$core$Keyword$$(null,"memory",
"memory",-1449401430),$cljs$cst$5447$selected_blend_mode$$=new $APP.$cljs$core$Keyword$$(null,"selected-blend-mode","selected-blend-mode",67585278),$cljs$cst$5436$easing_linear$$=new $APP.$cljs$core$Keyword$$(null,"easing-linear","easing-linear",-1638484978),$cljs$cst$5320$token_type$$=new $APP.$cljs$core$Keyword$$(null,"token-type","token-type",-835337612),$cljs$cst$5422$from_pos$$=new $APP.$cljs$core$Keyword$$(null,"from-pos","from-pos",1141953080),$cljs$cst$5373$on_select_palette$$=new $APP.$cljs$core$Keyword$$(null,
"on-select-palette","on-select-palette",-1960461941),$cljs$cst$5230$end_of_string$$=new $APP.$cljs$core$Keyword$$(null,"end-of-string","end-of-string",1567354241),$cljs$cst$5647$rect_x$$=new $APP.$cljs$core$Keyword$$(null,"rect-x","rect-x",2027933546),$cljs$cst$5648$rect_y$$=new $APP.$cljs$core$Keyword$$(null,"rect-y","rect-y",-234175138),$cljs$cst$5683$coord$$=new $APP.$cljs$core$Keyword$$(null,"coord","coord",-1453656639),$cljs$cst$5192$star$$=new $APP.$cljs$core$Keyword$$(null,"star","star",279424429),
$cljs$cst$5556$token_aliases$$=new $APP.$cljs$core$Keyword$$(null,"token-aliases","token-aliases",-1660509197),$cljs$cst$5596$on_move_selected$$=new $APP.$cljs$core$Keyword$$(null,"on-move-selected","on-move-selected",117316753),$cljs$cst$5667$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_text$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.viewport.hooks","text","app.main.ui.workspace.viewport.hooks/text",409069194),$cljs$cst$5358$connected_to$$=new $APP.$cljs$core$Keyword$$(null,
"connected-to","connected-to",-1930163150),$cljs$cst$5393$input_class$$=new $APP.$cljs$core$Keyword$$(null,"input-class","input-class",-62053138),$cljs$cst$5409$cells_render$$=new $APP.$cljs$core$Keyword$$(null,"cells-render","cells-render",-828771788),$cljs$cst$5619$on_drag_start$$=new $APP.$cljs$core$Keyword$$(null,"on-drag-start","on-drag-start",-47712205),$cljs$cst$5197$look$$=new $APP.$cljs$core$Keyword$$(null,"look","look",-539441433),$cljs$cst$5367$app_DOT_main_DOT_ui_DOT_workspace_DOT_color_palette_ctx_menu_SLASH_id$$=
new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.color-palette-ctx-menu","id","app.main.ui.workspace.color-palette-ctx-menu/id",-1642411096),$cljs$cst$5396$name_input_ref$$=new $APP.$cljs$core$Keyword$$(null,"name-input-ref","name-input-ref",-188911910),$cljs$cst$5580$tokens_SLASH_other$$=new $APP.$cljs$core$Keyword$$("tokens","other","tokens/other",-552061926),$cljs$cst$5477$frame_width$$=new $APP.$cljs$core$Keyword$$(null,"frame-width","frame-width",-1171477082),$cljs$cst$5200$fail_index$$=
new $APP.$cljs$core$Keyword$$(null,"fail-index","fail-index",248726923),$cljs$cst$5488$esc$$=new $APP.$cljs$core$Keyword$$(null,"esc","esc",-1671924121),$cljs$cst$5593$gap_type$$=new $APP.$cljs$core$Keyword$$(null,"gap-type","gap-type",-691516251),$cljs$cst$5665$app_DOT_main_DOT_ui_DOT_workspace_DOT_viewport_DOT_hooks_SLASH_grid$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.viewport.hooks","grid","app.main.ui.workspace.viewport.hooks/grid",-1939984239),$cljs$cst$5531$active_theme_paths$$=
new $APP.$cljs$core$Keyword$$(null,"active-theme-paths","active-theme-paths",283904967),$cljs$cst$5627$text_y$$=new $APP.$cljs$core$Keyword$$(null,"text-y","text-y",-1680264360),$cljs$cst$5626$text_x$$=new $APP.$cljs$core$Keyword$$(null,"text-x","text-x",-1791964043),$cljs$cst$5243$rules_or_parser$$=new $APP.$cljs$core$Keyword$$(null,"rules-or-parser","rules-or-parser",-314380386),$cljs$cst$5474$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_remove_frame_grid$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.grid",
"remove-frame-grid","app.main.data.workspace.grid/remove-frame-grid",-1269415708),$cljs$cst$5696$app_DOT_main_DOT_store$$=new $APP.$cljs$core$Symbol$$(null,"app.main.store","app.main.store",-1614373036,null),$cljs$cst$5465$stroke_rounded$$=new $APP.$cljs$core$Keyword$$(null,"stroke-rounded","stroke-rounded",-1649675426),$cljs$cst$5663$update$$=new $APP.$cljs$core$Keyword$$(null,"update","update",1045576396),$cljs$cst$5329$on_start_drag$$=new $APP.$cljs$core$Keyword$$(null,"on-start-drag","on-start-drag",
-1763010775),$cljs$cst$5625$handle_pointer_move$$=new $APP.$cljs$core$Keyword$$(null,"handle-pointer-move","handle-pointer-move",1990039805),$cljs$cst$5467$show_caps$$=new $APP.$cljs$core$Keyword$$(null,"show-caps","show-caps",-1147469133),$cljs$cst$5642$l1_y2$$=new $APP.$cljs$core$Keyword$$(null,"l1-y2","l1-y2",1399825048),$cljs$cst$5639$l1_y1$$=new $APP.$cljs$core$Keyword$$(null,"l1-y1","l1-y1",-946090345),$cljs$cst$5659$pencil$$=new $APP.$cljs$core$Keyword$$(null,"pencil","pencil",-217778832),
$cljs$cst$5636$l1_x2$$=new $APP.$cljs$core$Keyword$$(null,"l1-x2","l1-x2",-1981212693),$cljs$cst$5644$l1_x1$$=new $APP.$cljs$core$Keyword$$(null,"l1-x1","l1-x1",867974042),$cljs$cst$5543$folder$$=new $APP.$cljs$core$Keyword$$(null,"folder","folder",1515881736),$cljs$cst$5487$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_shapes_DOT_multiple_SLASH_not_found$$=new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.sidebar.options.shapes.multiple","not-found","app.main.ui.workspace.sidebar.options.shapes.multiple/not-found",
-1070649517),$cljs$cst$5374$collapse_left_sidebar$$=new $APP.$cljs$core$Keyword$$(null,"collapse-left-sidebar","collapse-left-sidebar",-1883177143),$cljs$cst$5608$align_center$$=new $APP.$cljs$core$Keyword$$(null,"align-center","align-center",-99300755),$cljs$cst$5391$multi_colors_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"multi-colors?","multi-colors?",-2136724074),$cljs$cst$5541$unknown_tokens$$=new $APP.$cljs$core$Keyword$$(null,"unknown-tokens","unknown-tokens",-366587692),$cljs$cst$5661$pointer_inner$$=
new $APP.$cljs$core$Keyword$$(null,"pointer-inner","pointer-inner",1173575841),$cljs$cst$5176$hi$$=new $APP.$cljs$core$Keyword$$(null,"hi","hi",-1821422114),$cljs$cst$5282$alternation$$=new $APP.$cljs$core$Keyword$$(null,"alternation","alternation",-1162147630),$cljs$cst$5600$resize_axis$$=new $APP.$cljs$core$Keyword$$(null,"resize-axis","resize-axis",-1746101927),$cljs$cst$5177$parser1$$=new $APP.$cljs$core$Keyword$$(null,"parser1","parser1",-439601422),$cljs$cst$5178$parser2$$=new $APP.$cljs$core$Keyword$$(null,
"parser2","parser2",1013754688),$cljs$cst$5271$rulename_right$$=new $APP.$cljs$core$Keyword$$(null,"rulename-right","rulename-right",1125609193),$cljs$cst$5244$cljs_DOT_tools_DOT_reader_SLASH_read_string_STAR_$$=new $APP.$cljs$core$Symbol$$("cljs.tools.reader","read-string*","cljs.tools.reader/read-string*",1492661621,null),$cljs$cst$5348$name_group_dialog$$=new $APP.$cljs$core$Keyword$$(null,"name-group-dialog","name-group-dialog",1853050356),$cljs$cst$5285$rulelist$$=new $APP.$cljs$core$Keyword$$(null,
"rulelist","rulelist",-1871218473),$cljs$cst$5179$parsers$$=new $APP.$cljs$core$Keyword$$(null,"parsers","parsers",-804353827),$cljs$cst$5196$nt$$=new $APP.$cljs$core$Keyword$$(null,"nt","nt",-835425781),$cljs$cst$5583$tokens_SLASH_remap_tokens$$=new $APP.$cljs$core$Keyword$$("tokens","remap-tokens","tokens/remap-tokens",1280442318),$cljs$cst$5175$lo$$=new $APP.$cljs$core$Keyword$$(null,"lo","lo",-931799889),$cljs$cst$5326$color_origin$$=new $APP.$cljs$core$Keyword$$(null,"color-origin","color-origin",
-216238828),$cljs$cst$5482$constraint$$=new $APP.$cljs$core$Keyword$$(null,"constraint","constraint",1725147424),$cljs$cst$5228$instaparse_DOT_gll_SLASH_end_index$$=new $APP.$cljs$core$Keyword$$("instaparse.gll","end-index","instaparse.gll/end-index",-1851404441),$cljs$cst$5558$app_DOT_main_DOT_data_DOT_workspace_DOT_tokens_DOT_remapping_SLASH_remap_tokens$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.tokens.remapping","remap-tokens","app.main.data.workspace.tokens.remapping/remap-tokens",
-1766049516),$cljs$cst$5519$no_selectable$$=new $APP.$cljs$core$Keyword$$(null,"no-selectable","no-selectable",-504485148),$cljs$cst$5671$dest_point$$=new $APP.$cljs$core$Keyword$$(null,"dest-point","dest-point",1315807485),$cljs$cst$5475$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_set_frame_grid$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.grid","set-frame-grid","app.main.data.workspace.grid/set-frame-grid",577735205),$cljs$cst$5328$hover_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,
"hover?","hover?",-1201331489),$cljs$cst$5481$more_options$$=new $APP.$cljs$core$Keyword$$(null,"more-options","more-options",1399478268),$cljs$cst$5502$snapshot$$=new $APP.$cljs$core$Keyword$$(null,"snapshot","snapshot",-1274785710),$cljs$cst$5251$HTAB$$=new $APP.$cljs$core$Keyword$$(null,"HTAB","HTAB",11392612),$cljs$cst$5207$trace_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"trace?","trace?",1730690679),$cljs$cst$5491$sc$$=new $APP.$cljs$core$Keyword$$(null,"sc","sc",1148023032),$cljs$cst$5535$tokens_SLASH_import$$=
new $APP.$cljs$core$Keyword$$("tokens","import","tokens/import",-1680554363),$cljs$cst$5462$stroke_rectangle$$=new $APP.$cljs$core$Keyword$$(null,"stroke-rectangle","stroke-rectangle",-1801371204),$cljs$cst$5698$selrect_duplicated$$=new $APP.$cljs$core$Keyword$$(null,"selrect-duplicated","selrect-duplicated",-729086709),$cljs$cst$5346$open_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"open?","open?",1238443125),$cljs$cst$5249$output_format$$=new $APP.$cljs$core$Keyword$$(null,"output-format","output-format",
-1826382676),$cljs$cst$5298$unhide$$=new $APP.$cljs$core$Keyword$$(null,"unhide","unhide",-413983695),$cljs$cst$5181$reduction_type$$=new $APP.$cljs$core$Keyword$$(null,"reduction-type","reduction-type",-488293450),$cljs$cst$5684$snap$$=new $APP.$cljs$core$Keyword$$(null,"snap","snap",-51714904),$cljs$cst$5603$hover_all_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"hover-all?","hover-all?",1343012409),$cljs$cst$5254$VCHAR$$=new $APP.$cljs$core$Keyword$$(null,"VCHAR","VCHAR",1962437706),$cljs$cst$5380$asset_name$$=
new $APP.$cljs$core$Keyword$$(null,"asset-name","asset-name",-1412454368),$cljs$cst$5399$on_name_blur$$=new $APP.$cljs$core$Keyword$$(null,"on-name-blur","on-name-blur",64241635),$cljs$cst$5407$debug_panel$$=new $APP.$cljs$core$Keyword$$(null,"debug-panel","debug-panel",-1624930518),$cljs$cst$5260$WSP$$=new $APP.$cljs$core$Keyword$$(null,"WSP","WSP",-1046948716),$cljs$cst$5586$create_theme$$=new $APP.$cljs$core$Keyword$$(null,"create-theme","create-theme",279233432),$cljs$cst$5571$composite$$=new $APP.$cljs$core$Keyword$$(null,
"composite","composite",-257118970),$cljs$cst$5479$default_grid_params$$=new $APP.$cljs$core$Keyword$$(null,"default-grid-params","default-grid-params",959189563),$cljs$cst$5227$instaparse_DOT_gll_SLASH_start_index$$=new $APP.$cljs$core$Keyword$$("instaparse.gll","start-index","instaparse.gll/start-index",404653620),$cljs$cst$5476$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_SLASH_set_default_grid$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.grid","set-default-grid","app.main.data.workspace.grid/set-default-grid",
1437308643),$cljs$cst$5278$rulename$$=new $APP.$cljs$core$Keyword$$(null,"rulename","rulename",948914160),$cljs$cst$5581$tokens_SLASH_string$$=new $APP.$cljs$core$Keyword$$("tokens","string","tokens/string",-576029544),$cljs$cst$5454$show_in_viewer$$=new $APP.$cljs$core$Keyword$$(null,"show-in-viewer","show-in-viewer",1111782209),$cljs$cst$5410$points_render$$=new $APP.$cljs$core$Keyword$$(null,"points-render","points-render",-2103762292),$cljs$cst$5503$iso_date$$=new $APP.$cljs$core$Keyword$$(null,
"iso-date","iso-date",-1889998156),$cljs$cst$5453$expand_border_radius$$=new $APP.$cljs$core$Keyword$$(null,"expand-border-radius","expand-border-radius",-352780098),$cljs$cst$5521$popup$$=new $APP.$cljs$core$Keyword$$(null,"popup","popup",635890211),$cljs$cst$5250$CRLF$$=new $APP.$cljs$core$Keyword$$(null,"CRLF","CRLF",11418756),$cljs$cst$5281$concatenation$$=new $APP.$cljs$core$Keyword$$(null,"concatenation","concatenation",-951369614),$cljs$cst$5656$zoom_in$$=new $APP.$cljs$core$Keyword$$(null,
"zoom-in","zoom-in",1242180949),$cljs$cst$5279$bin_val$$=new $APP.$cljs$core$Keyword$$(null,"bin-val","bin-val",1705209105),$cljs$cst$5303$auto_whitespace$$=new $APP.$cljs$core$Keyword$$(null,"auto-whitespace","auto-whitespace",741152317),$cljs$cst$5651$app_DOT_main_DOT_data_DOT_workspace_DOT_grid_layout_DOT_shortcuts_SLASH_esc_pressed$$=new $APP.$cljs$core$Keyword$$("app.main.data.workspace.grid-layout.shortcuts","esc-pressed","app.main.data.workspace.grid-layout.shortcuts/esc-pressed",-1690439930),
$cljs$cst$5234$opt_whitespace$$=new $APP.$cljs$core$Keyword$$(null,"opt-whitespace","opt-whitespace",1115207927),$cljs$cst$5679$resize_point$$=new $APP.$cljs$core$Keyword$$(null,"resize-point","resize-point",-1472965451),$cljs$cst$5670$dest_shape$$=new $APP.$cljs$core$Keyword$$(null,"dest-shape","dest-shape",-1843960370),$cljs$cst$5257$HEXDIG$$=new $APP.$cljs$core$Keyword$$(null,"HEXDIG","HEXDIG",-200221072),$cljs$cst$5276$option$$=new $APP.$cljs$core$Keyword$$(null,"option","option",65132272),$cljs$cst$5609$migrate$$=
new $APP.$cljs$core$Keyword$$(null,"migrate","migrate",-207110743),$cljs$cst$5336$recent$$=new $APP.$cljs$core$Keyword$$(null,"recent","recent",449517715),$cljs$cst$5379$last_path$$=new $APP.$cljs$core$Keyword$$(null,"last-path","last-path",-143957020),$cljs$cst$5342$hsv$$=new $APP.$cljs$core$Keyword$$(null,"hsv","hsv",1279089070),$cljs$cst$5518$on_delete_token$$=new $APP.$cljs$core$Keyword$$(null,"on-delete-token","on-delete-token",-1548486919),$cljs$cst$5245$cljs_DOT_tools_DOT_reader$$=new $APP.$cljs$core$Symbol$$(null,
"cljs.tools.reader","cljs.tools.reader",-831293977,null),$cljs$cst$5662$clip_children_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"clip-children?","clip-children?",-1668191047),$cljs$cst$5340$direct_color$$=new $APP.$cljs$core$Keyword$$(null,"direct-color","direct-color",1226799117),$cljs$cst$5607$padding_num$$=new $APP.$cljs$core$Keyword$$(null,"padding-num","padding-num",-747769845),$cljs$cst$5392$renaming$$=new $APP.$cljs$core$Keyword$$(null,"renaming","renaming",619763182),$cljs$cst$5539$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_SLASH_history_sidebar$$=
new $APP.$cljs$core$Keyword$$("app.main.ui.workspace.sidebar","history-sidebar","app.main.ui.workspace.sidebar/history-sidebar",214720554),$cljs$cst$5439$easing_ease_out$$=new $APP.$cljs$core$Keyword$$(null,"easing-ease-out","easing-ease-out",-82935390),$cljs$cst$5672$hover_disabled_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"hover-disabled?","hover-disabled?",1130690863),$cljs$cst$5634$new_position$$=new $APP.$cljs$core$Keyword$$(null,"new-position","new-position",-102281521),$cljs$cst$5371$show_menu_QMARK_$$=
new $APP.$cljs$core$Keyword$$(null,"show-menu?","show-menu?",1239088094),$cljs$cst$5695$app_DOT_main_DOT_store_SLASH_state$$=new $APP.$cljs$core$Symbol$$("app.main.store","state","app.main.store/state",-1030608881,null),$cljs$cst$5238$inside_comment$$=new $APP.$cljs$core$Keyword$$(null,"inside-comment","inside-comment",1258069708),$cljs$cst$5525$selected_inside_layout_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"selected-inside-layout?","selected-inside-layout?",-1748414769),$cljs$cst$5451$static_position$$=
new $APP.$cljs$core$Keyword$$(null,"static-position","static-position",-2066619638),$cljs$cst$5309$_STAR_runtime_asserts_STAR_$$=new $APP.$cljs$core$Symbol$$(null,"*runtime-asserts*","*runtime-asserts*",1632801956,null),$cljs$cst$5347$title_button$$=new $APP.$cljs$core$Keyword$$(null,"title-button","title-button",-634326965),$cljs$cst$5357$connected_to_names$$=new $APP.$cljs$core$Keyword$$(null,"connected-to-names","connected-to-names",-2033861740),$cljs$cst$5229$instaparse_SLASH_failure$$=new $APP.$cljs$core$Keyword$$("instaparse",
"failure","instaparse/failure",1422918607),$cljs$cst$5575$on_remap$$=new $APP.$cljs$core$Keyword$$(null,"on-remap","on-remap",143137190);$APP.$JSCompiler_prototypeAlias$$=$instaparse$auto_flatten_seq$AutoFlattenSeq$$.prototype;$APP.$JSCompiler_prototypeAlias$$.toString=function(){return $APP.$cljs$core$pr_str_STAR_$$($APP.$cljs$core$seq$$(this))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($self$jscomp$85$$,$key$jscomp$400$$){return this.v.$cljs$core$ILookup$_lookup$arity$2$(null,$key$jscomp$400$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($self$jscomp$86$$,$key$jscomp$401$$,$not_found$jscomp$84$$){return this.v.$cljs$core$ILookup$_lookup$arity$3$(null,$key$jscomp$401$$,$not_found$jscomp$84$$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return $APP.$cljs$core$meta$$(this.v)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$INext$_next$arity$1$=function(){return $APP.$cljs$core$next$$($APP.$cljs$core$seq$$(this))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return this.$cnt$};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){return this.$hashcode$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($self$jscomp$91$$,$other$jscomp$201$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$hashcode$,$APP.$cljs$core$hash$$($other$jscomp$201$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$cnt$,$APP.$cljs$core$count$$($other$jscomp$201$$))&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$cnt$,0)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$seq$$(this),
$other$jscomp$201$$))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEmptyableCollection$_empty$arity$1$=function(){return $APP.$cljs$core$with_meta$$($instaparse$auto_flatten_seq$EMPTY$$,$APP.$cljs$core$meta$$(this))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeq$_first$arity$1$=function(){return $APP.$cljs$core$first$$($APP.$cljs$core$seq$$(this))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeq$_rest$arity$1$=function(){return $APP.$cljs$core$rest$$($APP.$cljs$core$seq$$(this))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){if(!$APP.$cljs$core$truth_$$(this.$cached_seq$)){if(this.$dirty$){var $JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$=this.v;$JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$=$APP.$cljs$core$count$$($JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$)>0?$instaparse$auto_flatten_seq$flat_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$,$instaparse$auto_flatten_seq$delve$$($JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$,
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[0],null))):null}else $JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$=$APP.$cljs$core$seq$$(this.v);this.$cached_seq$=$JSCompiler_temp$jscomp$1657_v$jscomp$inline_8280$$}return this.$cached_seq$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($self$jscomp$96$$,$metamap$$){return new $instaparse$auto_flatten_seq$AutoFlattenSeq$$($APP.$cljs$core$with_meta$$(this.v,$metamap$$),this.$premix_hashcode$,this.$hashcode$,this.$cnt$,this.$dirty$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($self$jscomp$97$$,$o$jscomp$272$$){return $APP.$cljs$core$cons$$($o$jscomp$272$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$instaparse$auto_flatten_seq$ConjFlat$conj_flat$arity$2$=function($phc_self$jscomp$98$$,$obj$jscomp$211$$){if($obj$jscomp$211$$==null)return this;if($APP.$cljs$core$truth_$$($instaparse$auto_flatten_seq$afs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$auto_flatten_seq$afs_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($obj$jscomp$211$$):$instaparse$auto_flatten_seq$afs_QMARK_$$($obj$jscomp$211$$))){if(this.$cnt$===0)return $obj$jscomp$211$$;if($APP.$cljs$core$count$$($obj$jscomp$211$$)<=
32){$phc_self$jscomp$98$$=$instaparse$auto_flatten_seq$hash_cat$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$auto_flatten_seq$hash_cat$$.$cljs$core$IFn$_invoke$arity$2$(this,$obj$jscomp$211$$):$instaparse$auto_flatten_seq$hash_cat$$(this,$obj$jscomp$211$$);var $new_cnt$$=this.$cnt$+$APP.$cljs$core$count$$($obj$jscomp$211$$),$JSCompiler_temp_const$jscomp$1660$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(this.v,$obj$jscomp$211$$),$or__5025__auto__$jscomp$inline_8282$$=this.$dirty$;return new $instaparse$auto_flatten_seq$AutoFlattenSeq$$($JSCompiler_temp_const$jscomp$1660$$,
$phc_self$jscomp$98$$,$APP.$cljs$core$mix_collection_hash$$($phc_self$jscomp$98$$,$new_cnt$$),$new_cnt$$,$or__5025__auto__$jscomp$inline_8282$$?$or__5025__auto__$jscomp$inline_8282$$:$obj$jscomp$211$$.$dirty$)}$phc_self$jscomp$98$$=$instaparse$auto_flatten_seq$hash_cat$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$auto_flatten_seq$hash_cat$$.$cljs$core$IFn$_invoke$arity$2$(this,$obj$jscomp$211$$):$instaparse$auto_flatten_seq$hash_cat$$(this,$obj$jscomp$211$$);$new_cnt$$=this.$cnt$+$APP.$cljs$core$count$$($obj$jscomp$211$$);
return new $instaparse$auto_flatten_seq$AutoFlattenSeq$$($APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$(this.v,$obj$jscomp$211$$),$phc_self$jscomp$98$$,$APP.$cljs$core$mix_collection_hash$$($phc_self$jscomp$98$$,$new_cnt$$),$new_cnt$$,!0)}$phc_self$jscomp$98$$=(0,$APP.$cljs$core$imul$$)(31,this.$premix_hashcode$)+$APP.$cljs$core$hash$$($obj$jscomp$211$$);$new_cnt$$=this.$cnt$+1;return new $instaparse$auto_flatten_seq$AutoFlattenSeq$$($APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$(this.v,
$obj$jscomp$211$$),$phc_self$jscomp$98$$,$APP.$cljs$core$mix_collection_hash$$($phc_self$jscomp$98$$,$new_cnt$$),$new_cnt$$,this.$dirty$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($afs$$,$writer$jscomp$170$$,$opts$jscomp$304$$){return $APP.$cljs$core$_pr_writer$$($APP.$cljs$core$seq$$(this),$writer$jscomp$170$$,$opts$jscomp$304$$)};
var $instaparse$auto_flatten_seq$EMPTY$$=$instaparse$auto_flatten_seq$auto_flatten_seq$$($APP.$cljs$core$PersistentVector$EMPTY$$),$instaparse$auto_flatten_seq$flat_vec_helper$$=function $instaparse$auto_flatten_seq$flat_vec_helper$$($G__73782_G__73784_acc$jscomp$143$$,$G__73783_G__73785_v$jscomp$637$$){for(;;)if($APP.$cljs$core$seq$$($G__73783_G__73785_v$jscomp$637$$)){var $fst$jscomp$2$$=$APP.$cljs$core$first$$($G__73783_G__73785_v$jscomp$637$$);$instaparse$auto_flatten_seq$afs_QMARK_$$($fst$jscomp$2$$)?
($G__73782_G__73784_acc$jscomp$143$$=$instaparse$auto_flatten_seq$flat_vec_helper$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$auto_flatten_seq$flat_vec_helper$$.$cljs$core$IFn$_invoke$arity$2$($G__73782_G__73784_acc$jscomp$143$$,$fst$jscomp$2$$):$instaparse$auto_flatten_seq$flat_vec_helper$$($G__73782_G__73784_acc$jscomp$143$$,$fst$jscomp$2$$),$G__73783_G__73785_v$jscomp$637$$=$APP.$cljs$core$next$$($G__73783_G__73785_v$jscomp$637$$)):($G__73782_G__73784_acc$jscomp$143$$=$APP.$cljs$core$conj_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__73782_G__73784_acc$jscomp$143$$,
$fst$jscomp$2$$),$G__73783_G__73785_v$jscomp$637$$=$APP.$cljs$core$next$$($G__73783_G__73785_v$jscomp$637$$))}else return $G__73782_G__73784_acc$jscomp$143$$};$APP.$JSCompiler_prototypeAlias$$=$instaparse$auto_flatten_seq$FlattenOnDemandVector$$.prototype;$APP.$JSCompiler_prototypeAlias$$.toString=function(){return $APP.$cljs$core$pr_str_STAR_$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($self$jscomp$103$$,$key$jscomp$402$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$ILookup$_lookup$arity$2$(null,$key$jscomp$402$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($self$jscomp$104$$,$key$jscomp$403$$,$not_found$jscomp$85$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$ILookup$_lookup$arity$3$(null,$key$jscomp$403$$,$not_found$jscomp$85$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($self$jscomp$106$$,$f$jscomp$837$$,$init$jscomp$60$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IKVReduce$_kv_reduce$arity$3$(null,$f$jscomp$837$$,$init$jscomp$60$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIndexed$_nth$arity$2$=function($self$jscomp$107$$,$i$jscomp$512$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IIndexed$_nth$arity$2$(null,$i$jscomp$512$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIndexed$_nth$arity$3$=function($self$jscomp$108$$,$i$jscomp$513$$,$not_found$jscomp$86$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IIndexed$_nth$arity$3$(null,$i$jscomp$513$$,$not_found$jscomp$86$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IVector$_assoc_n$arity$3$=function($self$jscomp$109$$,$i$jscomp$514$$,$val$jscomp$193$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IVector$_assoc_n$arity$3$(null,$i$jscomp$514$$,$val$jscomp$193$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$(this.flat))?$APP.$cljs$core$meta$$($APP.$cljs$core$_deref$$(this.flat)):$APP.$cljs$core$meta$$($APP.$cljs$core$_deref$$(this.v))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return this.$cnt$};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IStack$_peek$arity$1$=function(){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IStack$_peek$arity$1$(null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IStack$_pop$arity$1$=function(){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IStack$_pop$arity$1$(null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IReversible$_rseq$arity$1$=function(){if(this.$cnt$>0){var $JSCompiler_temp$jscomp$10239_rev$jscomp$inline_12757$$=$JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this);$JSCompiler_temp$jscomp$10239_rev$jscomp$inline_12757$$=$APP.$cljs$core$_rseq$$($JSCompiler_temp$jscomp$10239_rev$jscomp$inline_12757$$)}else $JSCompiler_temp$jscomp$10239_rev$jscomp$inline_12757$$=null;return $JSCompiler_temp$jscomp$10239_rev$jscomp$inline_12757$$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){return this.$hashcode$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($self$jscomp$116$$,$other$jscomp$202$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$hashcode$,$APP.$cljs$core$hash$$($other$jscomp$202$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$cnt$,$APP.$cljs$core$count$$($other$jscomp$202$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this),$other$jscomp$202$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEmptyableCollection$_empty$arity$1$=function(){return $APP.$cljs$core$with_meta$$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$meta$$(this))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($self$jscomp$118$$,$i$jscomp$515$$,$val$jscomp$194$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this),$i$jscomp$515$$,$val$jscomp$194$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($self$jscomp$119$$,$k$jscomp$669$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$(null,$k$jscomp$669$$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($self$jscomp$121$$,$metamap$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$(this.flat))?new $instaparse$auto_flatten_seq$FlattenOnDemandVector$$($APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$_deref$$(this.v)),this.$hashcode$,this.$cnt$,$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$with_meta$$($APP.$cljs$core$_deref$$(this.flat),$metamap$jscomp$1$$))):
new $instaparse$auto_flatten_seq$FlattenOnDemandVector$$($APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$with_meta$$($APP.$cljs$core$_deref$$(this.v),$metamap$jscomp$1$$)),this.$hashcode$,this.$cnt$,$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$_deref$$(this.flat)))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($self$jscomp$122$$,$obj$jscomp$212$$){return $APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this),$obj$jscomp$212$$)};
$APP.$JSCompiler_prototypeAlias$$.call=function($unused__14253__auto__$jscomp$31$$){switch(arguments.length-1){case 1:return this.$cljs$core$IFn$_invoke$arity$1$(arguments[1]);case 2:return this.$cljs$core$IFn$_invoke$arity$2$(arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length-1)].join(""));}};$APP.$JSCompiler_prototypeAlias$$.apply=function($self__$jscomp$7014$$,$args73681$$){return this.call.apply(this,[this].concat($APP.$cljs$core$aclone$$($args73681$$)))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$1$=function($arg$jscomp$33$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IFn$_invoke$arity$2$(null,$arg$jscomp$33$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$2$=function($arg$jscomp$34$$,$not_found$jscomp$87$$){return $JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this).$cljs$core$IFn$_invoke$arity$3$(null,$arg$jscomp$34$$,$not_found$jscomp$87$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IComparable$_compare$arity$2$=function($self$jscomp$125$$,$that$$){return $APP.$cljs$core$_compare$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this),$that$$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($v$jscomp$641$$,$writer$jscomp$171$$,$opts$jscomp$305$$){return $APP.$cljs$core$_pr_writer$$($JSCompiler_StaticMethods_instaparse$auto_flatten_seq$GetVec$get_vec$arity$1$$(this),$writer$jscomp$171$$,$opts$jscomp$305$$)};var $instaparse$print$paren_for_compound$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$print$paren_for_tags$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$592$cat$$,null,$cljs$cst$5174$ord$$,null,$APP.$cljs$cst$715$alt$$,null],null),null));var $instaparse$reduction$raw_non_terminal_reduction$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null),$instaparse$reduction$reduction_types$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5188$hiccup$$,function($key$jscomp$404$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$key$jscomp$404$$],null)},$cljs$cst$5189$enlive$$,function($key$jscomp$405$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5189$enlive$$,$APP.$cljs$cst$300$key$$,$key$jscomp$405$$],null)}],null),$instaparse$reduction$node_builders$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5189$enlive$$,function($tag$jscomp$87$$,$item$jscomp$116$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$tag$jscomp$87$$,$APP.$cljs$cst$1621$content$$,new $APP.$cljs$core$List$$(null,$item$jscomp$116$$,null,1,null)],null)},$cljs$cst$5188$hiccup$$,function($tag$jscomp$88$$,
$item$jscomp$117$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$tag$jscomp$88$$,$item$jscomp$117$$],null)}],null);var $instaparse$combinators_source$Epsilon$$=new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5190$epsilon$$],null),$instaparse$combinators_source$alt$$=function $instaparse$combinators_source$alt$$($var_args$jscomp$1391$$){for(var $args__5755__auto__$jscomp$239$$=[],$len__5749__auto___73906$$=arguments.length,$i__5750__auto___73907$$=0;;)if($i__5750__auto___73907$$<$len__5749__auto___73906$$)$args__5755__auto__$jscomp$239$$.push(arguments[$i__5750__auto___73907$$]),
$i__5750__auto___73907$$+=1;else break;return $instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$(0<$args__5755__auto__$jscomp$239$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$239$$.slice(0),0,null):null)};
$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$=function($parsers$jscomp$7$$){return $APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$_EQ_$$,$instaparse$combinators_source$Epsilon$$),$parsers$jscomp$7$$)?$instaparse$combinators_source$Epsilon$$:$instaparse$reduction$singleton_QMARK_$$($parsers$jscomp$7$$)?$APP.$cljs$core$first$$($parsers$jscomp$7$$):new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,$parsers$jscomp$7$$],null)};$instaparse$combinators_source$alt$$.$cljs$lang$maxFixedArity$=0;$instaparse$combinators_source$alt$$.$cljs$lang$applyTo$=function($seq73838$$){return this.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$seq$$($seq73838$$))};
var $instaparse$combinators_source$ord$$=function $instaparse$combinators_source$ord$$($var_args$jscomp$1392$$){switch(arguments.length){case 0:return $instaparse$combinators_source$ord$$.$cljs$core$IFn$_invoke$arity$0$();default:for(var $args_arr__5774__auto__$jscomp$105$$=[],$len__5749__auto___73910$$=arguments.length,$i__5750__auto___73911$$=0;;)if($i__5750__auto___73911$$<$len__5749__auto___73910$$)$args_arr__5774__auto__$jscomp$105$$.push(arguments[$i__5750__auto___73911$$]),$i__5750__auto___73911$$+=
1;else break;return $instaparse$combinators_source$ord$$.$cljs$core$IFn$_invoke$arity$variadic$(arguments[0],1<$args_arr__5774__auto__$jscomp$105$$.length?new $APP.$cljs$core$IndexedSeq$$($args_arr__5774__auto__$jscomp$105$$.slice(1),0,null):null)}};$instaparse$combinators_source$ord$$.$cljs$core$IFn$_invoke$arity$0$=function(){return $instaparse$combinators_source$Epsilon$$};
$instaparse$combinators_source$ord$$.$cljs$core$IFn$_invoke$arity$variadic$=function($JSCompiler_temp$jscomp$1671_parser1$jscomp$2$$,$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$){$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1671_parser1$jscomp$2$$,$instaparse$combinators_source$Epsilon$$)?$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$instaparse$combinators_source$Epsilon$$]),
$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$):$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$;$APP.$cljs$core$seq$$($parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$)&&($parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$ord$$,$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$),$JSCompiler_temp$jscomp$1671_parser1$jscomp$2$$=new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5174$ord$$,$cljs$cst$5177$parser1$$,$JSCompiler_temp$jscomp$1671_parser1$jscomp$2$$,$cljs$cst$5178$parser2$$,$parser2$jscomp$inline_8317_parsers$jscomp$8_parsers__$1$$],null));return $JSCompiler_temp$jscomp$1671_parser1$jscomp$2$$};
$instaparse$combinators_source$ord$$.$cljs$lang$applyTo$=function($seq73844_seq73844__$1$$){var $G__73845$$=$APP.$cljs$core$first$$($seq73844_seq73844__$1$$);$seq73844_seq73844__$1$$=$APP.$cljs$core$next$$($seq73844_seq73844__$1$$);return this.$cljs$core$IFn$_invoke$arity$variadic$($G__73845$$,$seq73844_seq73844__$1$$)};$instaparse$combinators_source$ord$$.$cljs$lang$maxFixedArity$=1;
var $instaparse$combinators_source$cat$$=function $instaparse$combinators_source$cat$$($var_args$jscomp$1393$$){for(var $args__5755__auto__$jscomp$240$$=[],$len__5749__auto___73913$$=arguments.length,$i__5750__auto___73914$$=0;;)if($i__5750__auto___73914$$<$len__5749__auto___73913$$)$args__5755__auto__$jscomp$240$$.push(arguments[$i__5750__auto___73914$$]),$i__5750__auto___73914$$+=1;else break;return $instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$(0<$args__5755__auto__$jscomp$240$$.length?
new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$240$$.slice(0),0,null):null)};
$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$=function($parsers$jscomp$9_parsers__$1$jscomp$1$$){if($APP.$cljs$core$every_QMARK_$$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$_EQ_$$,$instaparse$combinators_source$Epsilon$$),$parsers$jscomp$9_parsers__$1$jscomp$1$$))return $instaparse$combinators_source$Epsilon$$;$parsers$jscomp$9_parsers__$1$jscomp$1$$=$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$instaparse$combinators_source$Epsilon$$]),
$parsers$jscomp$9_parsers__$1$jscomp$1$$);return $instaparse$reduction$singleton_QMARK_$$($parsers$jscomp$9_parsers__$1$jscomp$1$$)?$APP.$cljs$core$first$$($parsers$jscomp$9_parsers__$1$jscomp$1$$):new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,$parsers$jscomp$9_parsers__$1$jscomp$1$$],null)};$instaparse$combinators_source$cat$$.$cljs$lang$maxFixedArity$=0;$instaparse$combinators_source$cat$$.$cljs$lang$applyTo$=function($seq73853$$){return this.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$seq$$($seq73853$$))};
var $instaparse$combinators_source$unhide_content$$=function $instaparse$combinators_source$unhide_content$$($parser$jscomp$31$$){var $parser__$1$$=$APP.$cljs$core$truth_$$($APP.$cljs$cst$2302$hide$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$31$$))?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$31$$,$APP.$cljs$cst$2302$hide$$):$parser$jscomp$31$$;return $APP.$cljs$core$truth_$$($APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser__$1$$,
$APP.$cljs$cst$644$parser$$,function(){var $G__73857$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$);return $instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$($G__73857$$):$instaparse$combinators_source$unhide_content$$($G__73857$$)}()):$APP.$cljs$core$truth_$$($cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser__$1$$,
$cljs$cst$5179$parsers$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$unhide_content$$,$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$))):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$),$cljs$cst$5174$ord$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($parser__$1$$,$cljs$cst$5177$parser1$$,function(){var $G__73858$$=$cljs$cst$5177$parser1$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$);
return $instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$($G__73858$$):$instaparse$combinators_source$unhide_content$$($G__73858$$)}(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5178$parser2$$,function(){var $G__73859$$=$cljs$cst$5178$parser2$$.$cljs$core$IFn$_invoke$arity$1$($parser__$1$$);return $instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$?
$instaparse$combinators_source$unhide_content$$.$cljs$core$IFn$_invoke$arity$1$($G__73859$$):$instaparse$combinators_source$unhide_content$$($G__73859$$)}()])):$parser__$1$$},$instaparse$combinators_source$auto_whitespace_parser$$=function $instaparse$combinators_source$auto_whitespace_parser$$($parser$jscomp$32$$,$ws_parser$$){var $G__73891_G__73891__$1$$=$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$);$G__73891_G__73891__$1$$=$G__73891_G__73891__$1$$ instanceof $APP.$cljs$core$Keyword$$?
$G__73891_G__73891__$1$$.$fqn$:null;switch($G__73891_G__73891__$1$$){case "nt":case "epsilon":return $parser$jscomp$32$$;case "opt":case "plus":case "star":case "rep":case "look":case "neg":return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($parser$jscomp$32$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$644$parser$$],null),$instaparse$combinators_source$auto_whitespace_parser$$,$ws_parser$$);case "alt":case "cat":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parser$jscomp$32$$,
$cljs$cst$5179$parsers$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__73890_SHARP_$$){return $instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$($p1__73890_SHARP_$$,$ws_parser$$):$instaparse$combinators_source$auto_whitespace_parser$$($p1__73890_SHARP_$$,$ws_parser$$)},$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$)));case "ord":return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($parser$jscomp$32$$,
$cljs$cst$5177$parser1$$,function(){var $G__73892$$=$cljs$cst$5177$parser1$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$);return $instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$($G__73892$$,$ws_parser$$):$instaparse$combinators_source$auto_whitespace_parser$$($G__73892$$,$ws_parser$$)}(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5178$parser2$$,
function(){var $G__73894$$=$cljs$cst$5178$parser2$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$);return $instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$combinators_source$auto_whitespace_parser$$.$cljs$core$IFn$_invoke$arity$2$($G__73894$$,$ws_parser$$):$instaparse$combinators_source$auto_whitespace_parser$$($G__73894$$,$ws_parser$$)}()]));case "string":case "string-ci":case "regexp":return $APP.$cljs$core$truth_$$($APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$))?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$ws_parser$$,$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($parser$jscomp$32$$,$APP.$cljs$cst$5182$red$$)])),$APP.$cljs$cst$5182$red$$,$APP.$cljs$cst$5182$red$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$32$$)):$instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$ws_parser$$,
$parser$jscomp$32$$]));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73891_G__73891__$1$$)].join(""));}};/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
$APP.$JSCompiler_prototypeAlias$$=$instaparse$gll$Failure$$.prototype;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this__5323__auto__$jscomp$35$$,$k__5324__auto__$jscomp$35$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$k__5324__auto__$jscomp$35$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this__5325__auto__$jscomp$35$$,$k74712$$,$else__5326__auto__$jscomp$35$$){switch($k74712$$ instanceof $APP.$cljs$core$Keyword$$?$k74712$$.$fqn$:null){case "index":return this.index;case "reason":return this.reason;default:return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k74712$$,$else__5326__auto__$jscomp$35$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($this__5343__auto__$jscomp$35$$,$f__5344__auto__$jscomp$35$$,$init__5345__auto__$jscomp$35$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ret__5346__auto__$jscomp$35$$,$p__74726_v__5348__auto__$jscomp$35$$){var $k__5347__auto__$jscomp$35$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74726_v__5348__auto__$jscomp$35$$,0,null);$p__74726_v__5348__auto__$jscomp$35$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74726_v__5348__auto__$jscomp$35$$,
1,null);return $f__5344__auto__$jscomp$35$$.$cljs$core$IFn$_invoke$arity$3$?$f__5344__auto__$jscomp$35$$.$cljs$core$IFn$_invoke$arity$3$($ret__5346__auto__$jscomp$35$$,$k__5347__auto__$jscomp$35$$,$p__74726_v__5348__auto__$jscomp$35$$):$f__5344__auto__$jscomp$35$$($ret__5346__auto__$jscomp$35$$,$k__5347__auto__$jscomp$35$$,$p__74726_v__5348__auto__$jscomp$35$$)},$init__5345__auto__$jscomp$35$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($this__5338__auto__$jscomp$35$$,$writer__5339__auto__$jscomp$35$$,$opts__5340__auto__$jscomp$35$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$35$$,function($keyval__5342__auto__$jscomp$35$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$35$$,$APP.$cljs$core$pr_writer$$,""," ","",$opts__5340__auto__$jscomp$35$$,$keyval__5342__auto__$jscomp$35$$)},"#instaparse.gll.Failure{",
", ","}",$opts__5340__auto__$jscomp$35$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1779$index$$,this.index],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$982$reason$$,this.reason],null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIterable$_iterator$arity$1$=function(){return new $APP.$cljs$core$RecordIter$$(this,2,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1779$index$$,$APP.$cljs$cst$982$reason$$],null),$APP.$cljs$core$truth_$$(this.$__extmap$)?$APP.$cljs$core$_iterator$$(this.$__extmap$):$APP.$cljs$core$nil_iter$$())};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$__meta$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICloneable$_clone$arity$1$=function(){return new $instaparse$gll$Failure$$(this.index,this.reason,this.$__meta$,this.$__extmap$,this.$__hash$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return 2+$APP.$cljs$core$count$$(this.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){var $h__5134__auto__$jscomp$65_h__5134__auto____$1$jscomp$65$$=this.$__hash$;return $h__5134__auto__$jscomp$65_h__5134__auto____$1$jscomp$65$$!=null?$h__5134__auto__$jscomp$65_h__5134__auto____$1$jscomp$65$$:this.$__hash$=$h__5134__auto__$jscomp$65_h__5134__auto____$1$jscomp$65$$=-1140991288^$APP.$cljs$core$hash_unordered_coll$$(this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this74713$$,$other74714$$){return $other74714$$!=null&&this.constructor===$other74714$$.constructor&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.index,$other74714$$.index)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.reason,$other74714$$.reason)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$other74714$$.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMap$_dissoc$arity$2$=function($this__5333__auto__$jscomp$35$$,$k__5334__auto__$jscomp$35$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1779$index$$,null,$APP.$cljs$cst$982$reason$$,null],null),null),$k__5334__auto__$jscomp$35$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
this),this.$__meta$),$k__5334__auto__$jscomp$35$$):new $instaparse$gll$Failure$$(this.index,this.reason,this.$__meta$,$APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$k__5334__auto__$jscomp$35$$)),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($this__5330__auto__$jscomp$35$$,$k74712$jscomp$1$$){switch($k74712$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$k74712$jscomp$1$$.$fqn$:null){case "index":case "reason":return!0;default:return $APP.$cljs$core$contains_QMARK_$$(this.$__extmap$,$k74712$jscomp$1$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($this__5331__auto__$jscomp$35$$,$k__5332__auto__$jscomp$35$$,$G__74711$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1779$index$$,$k__5332__auto__$jscomp$35$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$1779$index$$,$k__5332__auto__$jscomp$35$$))?
new $instaparse$gll$Failure$$($G__74711$jscomp$1$$,this.reason,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$982$reason$$,$k__5332__auto__$jscomp$35$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$982$reason$$,$k__5332__auto__$jscomp$35$$))?new $instaparse$gll$Failure$$(this.index,$G__74711$jscomp$1$$,this.$__meta$,
this.$__extmap$,null):new $instaparse$gll$Failure$$(this.index,this.reason,this.$__meta$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k__5332__auto__$jscomp$35$$,$G__74711$jscomp$1$$),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$1779$index$$,this.index,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$982$reason$$,this.reason,null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($this__5322__auto__$jscomp$35$$,$G__74711$jscomp$2$$){return new $instaparse$gll$Failure$$(this.index,this.reason,$G__74711$jscomp$2$$,this.$__extmap$,this.$__hash$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($this__5328__auto__$jscomp$35$$,$entry__5329__auto__$jscomp$35$$){return $APP.$cljs$core$vector_QMARK_$$($entry__5329__auto__$jscomp$35$$)?this.$cljs$core$IAssociative$_assoc$arity$3$(null,$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$35$$,0),$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$35$$,1)):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$_conj$$,this,$entry__5329__auto__$jscomp$35$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($fail$jscomp$2$$,$writer$jscomp$172$$){var $fail__$1$$=this;return $APP.$cljs$core$_write$$($writer$jscomp$172$$,function(){var $sb__5670__auto__$jscomp$9$$=new $APP.$goog$string$StringBuffer$$,$_STAR_print_newline_STAR__orig_val__74758_74910$$=$APP.$cljs$core$_STAR_print_newline_STAR_$$,$_STAR_print_fn_STAR__orig_val__74759_74911$$=$APP.$cljs$core$_STAR_print_fn_STAR_$$;$APP.$cljs$core$_STAR_print_newline_STAR_$$=
!0;$APP.$cljs$core$_STAR_print_fn_STAR_$$=function($x__5671__auto__$jscomp$10$$){return $sb__5670__auto__$jscomp$9$$.append($x__5671__auto__$jscomp$10$$)};try{$instaparse$failure$pprint_failure$$($fail__$1$$)}finally{$APP.$cljs$core$_STAR_print_fn_STAR_$$=$_STAR_print_fn_STAR__orig_val__74759_74911$$,$APP.$cljs$core$_STAR_print_newline_STAR_$$=$_STAR_print_newline_STAR__orig_val__74758_74910$$}return $APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sb__5670__auto__$jscomp$9$$)}())};
var $instaparse$gll$failure_type$$=$APP.$cljs$core$type$$(new $instaparse$gll$Failure$$(null,null,null,null,null));$APP.$JSCompiler_prototypeAlias$$=$instaparse$gll$Tramp$$.prototype;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this__5323__auto__$jscomp$36$$,$k__5324__auto__$jscomp$36$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$k__5324__auto__$jscomp$36$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this__5325__auto__$jscomp$36$$,$k74763$$,$else__5326__auto__$jscomp$36$$){switch($k74763$$ instanceof $APP.$cljs$core$Keyword$$?$k74763$$.$fqn$:null){case "grammar":return this.$grammar$;case "text":return this.text;case "segment":return this.segment;case "fail-index":return this.$fail_index$;case "node-builder":return this.$node_builder$;case "stack":return this.stack;case "next-stack":return this.$next_stack$;case "generation":return this.$generation$;
case "negative-listeners":return this.$negative_listeners$;case "msg-cache":return this.$msg_cache$;case "nodes":return this.$nodes$;case "success":return this.$success$;case "failure":return this.$failure$;case "trace?":return this.$trace_QMARK_$;default:return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k74763$$,$else__5326__auto__$jscomp$36$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($this__5343__auto__$jscomp$36$$,$f__5344__auto__$jscomp$36$$,$init__5345__auto__$jscomp$36$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ret__5346__auto__$jscomp$36$$,$p__74768_v__5348__auto__$jscomp$36$$){var $k__5347__auto__$jscomp$36$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74768_v__5348__auto__$jscomp$36$$,0,null);$p__74768_v__5348__auto__$jscomp$36$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74768_v__5348__auto__$jscomp$36$$,
1,null);return $f__5344__auto__$jscomp$36$$.$cljs$core$IFn$_invoke$arity$3$?$f__5344__auto__$jscomp$36$$.$cljs$core$IFn$_invoke$arity$3$($ret__5346__auto__$jscomp$36$$,$k__5347__auto__$jscomp$36$$,$p__74768_v__5348__auto__$jscomp$36$$):$f__5344__auto__$jscomp$36$$($ret__5346__auto__$jscomp$36$$,$k__5347__auto__$jscomp$36$$,$p__74768_v__5348__auto__$jscomp$36$$)},$init__5345__auto__$jscomp$36$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($this__5338__auto__$jscomp$36$$,$writer__5339__auto__$jscomp$36$$,$opts__5340__auto__$jscomp$36$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$36$$,function($keyval__5342__auto__$jscomp$36$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$36$$,$APP.$cljs$core$pr_writer$$,""," ","",$opts__5340__auto__$jscomp$36$$,$keyval__5342__auto__$jscomp$36$$)},"#instaparse.gll.Tramp{",
", ","}",$opts__5340__auto__$jscomp$36$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,14,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5183$grammar$$,this.$grammar$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1572$text$$,this.text],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1845$segment$$,this.segment],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5200$fail_index$$,this.$fail_index$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5201$node_builder$$,this.$node_builder$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3556$stack$$,
this.stack],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5202$next_stack$$,this.$next_stack$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5203$generation$$,this.$generation$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5204$negative_listeners$$,this.$negative_listeners$],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5205$msg_cache$$,this.$msg_cache$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5206$nodes$$,this.$nodes$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2301$success$$,this.$success$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$845$failure$$,
this.$failure$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5207$trace_QMARK_$$,this.$trace_QMARK_$],null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIterable$_iterator$arity$1$=function(){return new $APP.$cljs$core$RecordIter$$(this,14,new $APP.$cljs$core$PersistentVector$$(null,14,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5183$grammar$$,$APP.$cljs$cst$1572$text$$,$APP.$cljs$cst$1845$segment$$,$cljs$cst$5200$fail_index$$,$cljs$cst$5201$node_builder$$,$APP.$cljs$cst$3556$stack$$,$cljs$cst$5202$next_stack$$,$cljs$cst$5203$generation$$,$cljs$cst$5204$negative_listeners$$,$cljs$cst$5205$msg_cache$$,
$cljs$cst$5206$nodes$$,$APP.$cljs$cst$2301$success$$,$APP.$cljs$cst$845$failure$$,$cljs$cst$5207$trace_QMARK_$$],null),$APP.$cljs$core$truth_$$(this.$__extmap$)?$APP.$cljs$core$_iterator$$(this.$__extmap$):$APP.$cljs$core$nil_iter$$())};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$__meta$};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICloneable$_clone$arity$1$=function(){return new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,this.$__hash$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return 14+$APP.$cljs$core$count$$(this.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){var $h__5134__auto__$jscomp$66_h__5134__auto____$1$jscomp$66$$=this.$__hash$;return $h__5134__auto__$jscomp$66_h__5134__auto____$1$jscomp$66$$!=null?$h__5134__auto__$jscomp$66_h__5134__auto____$1$jscomp$66$$:this.$__hash$=$h__5134__auto__$jscomp$66_h__5134__auto____$1$jscomp$66$$=166878148^$APP.$cljs$core$hash_unordered_coll$$(this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this74764$$,$other74765$$){return $other74765$$!=null&&this.constructor===$other74765$$.constructor&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$grammar$,$other74765$$.$grammar$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.text,$other74765$$.text)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.segment,$other74765$$.segment)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$fail_index$,
$other74765$$.$fail_index$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$node_builder$,$other74765$$.$node_builder$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.stack,$other74765$$.stack)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$next_stack$,$other74765$$.$next_stack$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$generation$,$other74765$$.$generation$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$negative_listeners$,
$other74765$$.$negative_listeners$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$msg_cache$,$other74765$$.$msg_cache$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$nodes$,$other74765$$.$nodes$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$success$,$other74765$$.$success$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$failure$,$other74765$$.$failure$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$trace_QMARK_$,$other74765$$.$trace_QMARK_$)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$other74765$$.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMap$_dissoc$arity$2$=function($this__5333__auto__$jscomp$36$$,$k__5334__auto__$jscomp$36$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,14,[$cljs$cst$5205$msg_cache$$,null,$cljs$cst$5204$negative_listeners$$,null,$cljs$cst$5203$generation$$,null,$APP.$cljs$cst$845$failure$$,null,$cljs$cst$5200$fail_index$$,null,$cljs$cst$5183$grammar$$,null,$APP.$cljs$cst$2301$success$$,
null,$cljs$cst$5206$nodes$$,null,$cljs$cst$5201$node_builder$$,null,$APP.$cljs$cst$1845$segment$$,null,$APP.$cljs$cst$3556$stack$$,null,$cljs$cst$5207$trace_QMARK_$$,null,$cljs$cst$5202$next_stack$$,null,$APP.$cljs$cst$1572$text$$,null],null),null),$k__5334__auto__$jscomp$36$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,this),this.$__meta$),$k__5334__auto__$jscomp$36$$):
new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,$APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$k__5334__auto__$jscomp$36$$)),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($this__5330__auto__$jscomp$36$$,$k74763$jscomp$1$$){switch($k74763$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$k74763$jscomp$1$$.$fqn$:null){case "grammar":case "text":case "segment":case "fail-index":case "node-builder":case "stack":case "next-stack":case "generation":case "negative-listeners":case "msg-cache":case "nodes":case "success":case "failure":case "trace?":return!0;default:return $APP.$cljs$core$contains_QMARK_$$(this.$__extmap$,
$k74763$jscomp$1$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($this__5331__auto__$jscomp$36$$,$k__5332__auto__$jscomp$36$$,$G__74762$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5183$grammar$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5183$grammar$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$($G__74762$jscomp$1$$,
this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1572$text$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$1572$text$$,
$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,$G__74762$jscomp$1$$,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1845$segment$$,
$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$1845$segment$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,$G__74762$jscomp$1$$,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5200$fail_index$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5200$fail_index$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,$G__74762$jscomp$1$$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,
this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5201$node_builder$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5201$node_builder$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,$G__74762$jscomp$1$$,this.stack,this.$next_stack$,this.$generation$,
this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3556$stack$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$3556$stack$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,
this.text,this.segment,this.$fail_index$,this.$node_builder$,$G__74762$jscomp$1$$,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5202$next_stack$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5202$next_stack$$,
$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,$G__74762$jscomp$1$$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5203$generation$$,
$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5203$generation$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,$G__74762$jscomp$1$$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5204$negative_listeners$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5204$negative_listeners$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,$G__74762$jscomp$1$$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,
this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5205$msg_cache$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5205$msg_cache$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,
this.$generation$,this.$negative_listeners$,$G__74762$jscomp$1$$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5206$nodes$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5206$nodes$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,
this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,$G__74762$jscomp$1$$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2301$success$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$2301$success$$,
$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,$G__74762$jscomp$1$$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$845$failure$$,
$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($APP.$cljs$cst$845$failure$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,$G__74762$jscomp$1$$,this.$trace_QMARK_$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?
$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5207$trace_QMARK_$$,$k__5332__auto__$jscomp$36$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5207$trace_QMARK_$$,$k__5332__auto__$jscomp$36$$))?new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,$G__74762$jscomp$1$$,this.$__meta$,
this.$__extmap$,null):new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,this.$__meta$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k__5332__auto__$jscomp$36$$,$G__74762$jscomp$1$$),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,14,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$MapEntry$$($cljs$cst$5183$grammar$$,this.$grammar$,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$1572$text$$,this.text,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$1845$segment$$,this.segment,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5200$fail_index$$,
this.$fail_index$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5201$node_builder$$,this.$node_builder$,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$3556$stack$$,this.stack,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5202$next_stack$$,this.$next_stack$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5203$generation$$,this.$generation$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5204$negative_listeners$$,this.$negative_listeners$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5205$msg_cache$$,
this.$msg_cache$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5206$nodes$$,this.$nodes$,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$2301$success$$,this.$success$,null),new $APP.$cljs$core$MapEntry$$($APP.$cljs$cst$845$failure$$,this.$failure$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5207$trace_QMARK_$$,this.$trace_QMARK_$,null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($this__5322__auto__$jscomp$36$$,$G__74762$jscomp$2$$){return new $instaparse$gll$Tramp$$(this.$grammar$,this.text,this.segment,this.$fail_index$,this.$node_builder$,this.stack,this.$next_stack$,this.$generation$,this.$negative_listeners$,this.$msg_cache$,this.$nodes$,this.$success$,this.$failure$,this.$trace_QMARK_$,$G__74762$jscomp$2$$,this.$__extmap$,this.$__hash$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($this__5328__auto__$jscomp$36$$,$entry__5329__auto__$jscomp$36$$){return $APP.$cljs$core$vector_QMARK_$$($entry__5329__auto__$jscomp$36$$)?this.$cljs$core$IAssociative$_assoc$arity$3$(null,$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$36$$,0),$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$36$$,1)):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$_conj$$,this,$entry__5329__auto__$jscomp$36$$)};
$APP.$JSCompiler_prototypeAlias$$=$instaparse$gll$Node$$.prototype;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this__5323__auto__$jscomp$37$$,$k__5324__auto__$jscomp$37$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$k__5324__auto__$jscomp$37$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this__5325__auto__$jscomp$37$$,$k74805$$,$else__5326__auto__$jscomp$37$$){switch($k74805$$ instanceof $APP.$cljs$core$Keyword$$?$k74805$$.$fqn$:null){case "listeners":return this.$listeners$;case "full-listeners":return this.$full_listeners$;case "results":return this.results;case "full-results":return this.$full_results$;default:return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k74805$$,$else__5326__auto__$jscomp$37$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($this__5343__auto__$jscomp$37$$,$f__5344__auto__$jscomp$37$$,$init__5345__auto__$jscomp$37$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ret__5346__auto__$jscomp$37$$,$p__74810_v__5348__auto__$jscomp$37$$){var $k__5347__auto__$jscomp$37$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74810_v__5348__auto__$jscomp$37$$,0,null);$p__74810_v__5348__auto__$jscomp$37$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__74810_v__5348__auto__$jscomp$37$$,
1,null);return $f__5344__auto__$jscomp$37$$.$cljs$core$IFn$_invoke$arity$3$?$f__5344__auto__$jscomp$37$$.$cljs$core$IFn$_invoke$arity$3$($ret__5346__auto__$jscomp$37$$,$k__5347__auto__$jscomp$37$$,$p__74810_v__5348__auto__$jscomp$37$$):$f__5344__auto__$jscomp$37$$($ret__5346__auto__$jscomp$37$$,$k__5347__auto__$jscomp$37$$,$p__74810_v__5348__auto__$jscomp$37$$)},$init__5345__auto__$jscomp$37$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($this__5338__auto__$jscomp$37$$,$writer__5339__auto__$jscomp$37$$,$opts__5340__auto__$jscomp$37$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$37$$,function($keyval__5342__auto__$jscomp$37$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$37$$,$APP.$cljs$core$pr_writer$$,""," ","",$opts__5340__auto__$jscomp$37$$,$keyval__5342__auto__$jscomp$37$$)},"#instaparse.gll.Node{",
", ","}",$opts__5340__auto__$jscomp$37$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(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$$,[$cljs$cst$5219$listeners$$,this.$listeners$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5220$full_listeners$$,this.$full_listeners$],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5221$results$$,this.results],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5222$full_results$$,this.$full_results$],null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIterable$_iterator$arity$1$=function(){return new $APP.$cljs$core$RecordIter$$(this,4,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5219$listeners$$,$cljs$cst$5220$full_listeners$$,$cljs$cst$5221$results$$,$cljs$cst$5222$full_results$$],null),$APP.$cljs$core$truth_$$(this.$__extmap$)?$APP.$cljs$core$_iterator$$(this.$__extmap$):$APP.$cljs$core$nil_iter$$())};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$__meta$};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICloneable$_clone$arity$1$=function(){return new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,this.results,this.$full_results$,this.$__meta$,this.$__extmap$,this.$__hash$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return 4+$APP.$cljs$core$count$$(this.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){var $h__5134__auto__$jscomp$67_h__5134__auto____$1$jscomp$67$$=this.$__hash$;return $h__5134__auto__$jscomp$67_h__5134__auto____$1$jscomp$67$$!=null?$h__5134__auto__$jscomp$67_h__5134__auto____$1$jscomp$67$$:this.$__hash$=$h__5134__auto__$jscomp$67_h__5134__auto____$1$jscomp$67$$=-1610074144^$APP.$cljs$core$hash_unordered_coll$$(this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this74806$$,$other74807$$){return $other74807$$!=null&&this.constructor===$other74807$$.constructor&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$listeners$,$other74807$$.$listeners$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$full_listeners$,$other74807$$.$full_listeners$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.results,$other74807$$.results)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$full_results$,
$other74807$$.$full_results$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$other74807$$.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMap$_dissoc$arity$2$=function($this__5333__auto__$jscomp$37$$,$k__5334__auto__$jscomp$37$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$cljs$cst$5222$full_results$$,null,$cljs$cst$5220$full_listeners$$,null,$cljs$cst$5219$listeners$$,null,$cljs$cst$5221$results$$,null],null),null),$k__5334__auto__$jscomp$37$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,
this),this.$__meta$),$k__5334__auto__$jscomp$37$$):new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,this.results,this.$full_results$,this.$__meta$,$APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$k__5334__auto__$jscomp$37$$)),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($this__5330__auto__$jscomp$37$$,$k74805$jscomp$1$$){switch($k74805$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$k74805$jscomp$1$$.$fqn$:null){case "listeners":case "full-listeners":case "results":case "full-results":return!0;default:return $APP.$cljs$core$contains_QMARK_$$(this.$__extmap$,$k74805$jscomp$1$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($this__5331__auto__$jscomp$37$$,$k__5332__auto__$jscomp$37$$,$G__74804$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5219$listeners$$,$k__5332__auto__$jscomp$37$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5219$listeners$$,$k__5332__auto__$jscomp$37$$))?
new $instaparse$gll$Node$$($G__74804$jscomp$1$$,this.$full_listeners$,this.results,this.$full_results$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5220$full_listeners$$,$k__5332__auto__$jscomp$37$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5220$full_listeners$$,$k__5332__auto__$jscomp$37$$))?new $instaparse$gll$Node$$(this.$listeners$,
$G__74804$jscomp$1$$,this.results,this.$full_results$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5221$results$$,$k__5332__auto__$jscomp$37$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5221$results$$,$k__5332__auto__$jscomp$37$$))?new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,$G__74804$jscomp$1$$,
this.$full_results$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5222$full_results$$,$k__5332__auto__$jscomp$37$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5222$full_results$$,$k__5332__auto__$jscomp$37$$))?new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,this.results,$G__74804$jscomp$1$$,this.$__meta$,
this.$__extmap$,null):new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,this.results,this.$full_results$,this.$__meta$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k__5332__auto__$jscomp$37$$,$G__74804$jscomp$1$$),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$MapEntry$$($cljs$cst$5219$listeners$$,this.$listeners$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5220$full_listeners$$,this.$full_listeners$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5221$results$$,this.results,
null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5222$full_results$$,this.$full_results$,null)],null),this.$__extmap$))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($this__5322__auto__$jscomp$37$$,$G__74804$jscomp$2$$){return new $instaparse$gll$Node$$(this.$listeners$,this.$full_listeners$,this.results,this.$full_results$,$G__74804$jscomp$2$$,this.$__extmap$,this.$__hash$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($this__5328__auto__$jscomp$37$$,$entry__5329__auto__$jscomp$37$$){return $APP.$cljs$core$vector_QMARK_$$($entry__5329__auto__$jscomp$37$$)?this.$cljs$core$IAssociative$_assoc$arity$3$(null,$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$37$$,0),$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$37$$,1)):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$_conj$$,this,$entry__5329__auto__$jscomp$37$$)};
var $instaparse$gll$merge_negative_listeners$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$merge_with$$,$APP.$cljs$core$into$$),$instaparse$gll$CatListener$$=function $instaparse$gll$CatListener$$($results_so_far$$,$parser_sequence$$,$node_key$jscomp$11$$,$tramp$jscomp$20$$){return function($JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$){var $JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$=
$APP.$cljs$core$__destructure_map$$($JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$);$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$,$APP.$cljs$cst$826$result$$);$JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$,
$APP.$cljs$cst$1779$index$$);$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$$,$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$);if($APP.$cljs$core$seq$$($parser_sequence$$)){$JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$,$APP.$cljs$core$first$$($parser_sequence$$)],null);var $G__74862$jscomp$inline_8351$$=$APP.$cljs$core$next$$($parser_sequence$$);$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$=$instaparse$gll$CatListener$$.$cljs$core$IFn$_invoke$arity$4$?$instaparse$gll$CatListener$$.$cljs$core$IFn$_invoke$arity$4$($JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$,
$G__74862$jscomp$inline_8351$$,$node_key$jscomp$11$$,$tramp$jscomp$20$$):$instaparse$gll$CatListener$$($JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$,$G__74862$jscomp$inline_8351$$,$node_key$jscomp$11$$,$tramp$jscomp$20$$);$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$=$instaparse$gll$push_listener$$($tramp$jscomp$20$$,$JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$,
$JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$)}else $JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$=$instaparse$gll$push_result$$($tramp$jscomp$20$$,$node_key$jscomp$11$$,$instaparse$gll$make_success$$($JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$,$JSCompiler_temp_const$jscomp$1680_continue_index_map__74860__$1$$));
return $JSCompiler_inline_result$jscomp$1681_JSCompiler_temp$jscomp$1679_new_results_so_far_parsed_result_result$jscomp$333$$}},$instaparse$gll$CatFullListener$$=function $instaparse$gll$CatFullListener$$($results_so_far$jscomp$1$$,$parser_sequence$jscomp$1$$,$node_key$jscomp$12$$,$tramp$jscomp$21$$){return function($parsed_result$jscomp$1_result$jscomp$334$$){var $continue_index$jscomp$1_map__74865__$1$$=$APP.$cljs$core$__destructure_map$$($parsed_result$jscomp$1_result$jscomp$334$$);$parsed_result$jscomp$1_result$jscomp$334$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$1_map__74865__$1$$,$APP.$cljs$cst$826$result$$);$continue_index$jscomp$1_map__74865__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$1_map__74865__$1$$,$APP.$cljs$cst$1779$index$$);var $new_results_so_far$jscomp$1$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$jscomp$1$$,$parsed_result$jscomp$1_result$jscomp$334$$);return $instaparse$reduction$singleton_QMARK_$$($parser_sequence$jscomp$1$$)?
$instaparse$gll$push_full_listener$$($tramp$jscomp$21$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$1_map__74865__$1$$,$APP.$cljs$core$first$$($parser_sequence$jscomp$1$$)],null),function(){var $G__74867$$=$APP.$cljs$core$next$$($parser_sequence$jscomp$1$$);return $instaparse$gll$CatFullListener$$.$cljs$core$IFn$_invoke$arity$4$?$instaparse$gll$CatFullListener$$.$cljs$core$IFn$_invoke$arity$4$($new_results_so_far$jscomp$1$$,
$G__74867$$,$node_key$jscomp$12$$,$tramp$jscomp$21$$):$instaparse$gll$CatFullListener$$($new_results_so_far$jscomp$1$$,$G__74867$$,$node_key$jscomp$12$$,$tramp$jscomp$21$$)}()):$APP.$cljs$core$seq$$($parser_sequence$jscomp$1$$)?$instaparse$gll$push_listener$$($tramp$jscomp$21$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$1_map__74865__$1$$,$APP.$cljs$core$first$$($parser_sequence$jscomp$1$$)],null),function(){var $G__74871$$=
$APP.$cljs$core$next$$($parser_sequence$jscomp$1$$);return $instaparse$gll$CatFullListener$$.$cljs$core$IFn$_invoke$arity$4$?$instaparse$gll$CatFullListener$$.$cljs$core$IFn$_invoke$arity$4$($new_results_so_far$jscomp$1$$,$G__74871$$,$node_key$jscomp$12$$,$tramp$jscomp$21$$):$instaparse$gll$CatFullListener$$($new_results_so_far$jscomp$1$$,$G__74871$$,$node_key$jscomp$12$$,$tramp$jscomp$21$$)}()):$instaparse$gll$push_result$$($tramp$jscomp$21$$,$node_key$jscomp$12$$,$instaparse$gll$make_success$$($new_results_so_far$jscomp$1$$,
$continue_index$jscomp$1_map__74865__$1$$))}},$instaparse$gll$PlusListener$$=function $instaparse$gll$PlusListener$$($results_so_far$jscomp$2$$,$parser$jscomp$38$$,$prev_index$jscomp$2$$,$node_key$jscomp$13$$,$tramp$jscomp$22$$){return function($new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$){var $continue_index$jscomp$2_map__74874__$1$$=$APP.$cljs$core$__destructure_map$$($new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$);$new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$2_map__74874__$1$$,$APP.$cljs$cst$826$result$$);$continue_index$jscomp$2_map__74874__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$2_map__74874__$1$$,$APP.$cljs$cst$1779$index$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$2_map__74874__$1$$,$prev_index$jscomp$2$$))return $APP.$cljs$core$count$$($results_so_far$jscomp$2$$)===0?$instaparse$gll$push_result$$($tramp$jscomp$22$$,
$node_key$jscomp$13$$,$instaparse$gll$make_success$$(null,$continue_index$jscomp$2_map__74874__$1$$)):null;$new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$jscomp$2$$,$new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$);$instaparse$gll$push_listener$$($tramp$jscomp$22$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$2_map__74874__$1$$,
$parser$jscomp$38$$],null),$instaparse$gll$PlusListener$$.$cljs$core$IFn$_invoke$arity$5$?$instaparse$gll$PlusListener$$.$cljs$core$IFn$_invoke$arity$5$($new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$,$parser$jscomp$38$$,$continue_index$jscomp$2_map__74874__$1$$,$node_key$jscomp$13$$,$tramp$jscomp$22$$):$instaparse$gll$PlusListener$$($new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$,$parser$jscomp$38$$,$continue_index$jscomp$2_map__74874__$1$$,$node_key$jscomp$13$$,
$tramp$jscomp$22$$));return $instaparse$gll$push_result$$($tramp$jscomp$22$$,$node_key$jscomp$13$$,$instaparse$gll$make_success$$($new_results_so_far$jscomp$2_parsed_result$jscomp$2_result$jscomp$335$$,$continue_index$jscomp$2_map__74874__$1$$))}},$instaparse$gll$PlusFullListener$$=function $instaparse$gll$PlusFullListener$$($results_so_far$jscomp$3$$,$parser$jscomp$39$$,$prev_index$jscomp$3$$,$node_key$jscomp$14$$,$tramp$jscomp$23$$){return function($new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$){var $continue_index$jscomp$3_map__74875__$1$$=
$APP.$cljs$core$__destructure_map$$($new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$);$new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$3_map__74875__$1$$,$APP.$cljs$cst$826$result$$);$continue_index$jscomp$3_map__74875__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$3_map__74875__$1$$,$APP.$cljs$cst$1779$index$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$3_map__74875__$1$$,
$prev_index$jscomp$3$$))return $APP.$cljs$core$count$$($results_so_far$jscomp$3$$)===0?$instaparse$gll$push_result$$($tramp$jscomp$23$$,$node_key$jscomp$14$$,$instaparse$gll$make_success$$(null,$continue_index$jscomp$3_map__74875__$1$$)):null;$new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$jscomp$3$$,$new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$3_map__74875__$1$$,
$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$23$$)))?$instaparse$gll$push_result$$($tramp$jscomp$23$$,$node_key$jscomp$14$$,$instaparse$gll$make_success$$($new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$,$continue_index$jscomp$3_map__74875__$1$$)):$instaparse$gll$push_listener$$($tramp$jscomp$23$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$3_map__74875__$1$$,
$parser$jscomp$39$$],null),$instaparse$gll$PlusFullListener$$.$cljs$core$IFn$_invoke$arity$5$?$instaparse$gll$PlusFullListener$$.$cljs$core$IFn$_invoke$arity$5$($new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$,$parser$jscomp$39$$,$continue_index$jscomp$3_map__74875__$1$$,$node_key$jscomp$14$$,$tramp$jscomp$23$$):$instaparse$gll$PlusFullListener$$($new_results_so_far$jscomp$3_parsed_result$jscomp$3_result$jscomp$336$$,$parser$jscomp$39$$,$continue_index$jscomp$3_map__74875__$1$$,
$node_key$jscomp$14$$,$tramp$jscomp$23$$))}},$instaparse$gll$RepListener$$=function $instaparse$gll$RepListener$$($results_so_far$jscomp$4$$,$n_results_so_far$$,$parser$jscomp$40$$,$m$jscomp$221$$,$n$jscomp$291$$,$prev_index$jscomp$4$$,$node_key$jscomp$15$$,$tramp$jscomp$24$$){return function($continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$){$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$=$APP.$cljs$core$__destructure_map$$($continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$);
var $new_results_so_far$jscomp$4_parsed_result$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$,$APP.$cljs$cst$826$result$$);$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$,$APP.$cljs$cst$1779$index$$);$new_results_so_far$jscomp$4_parsed_result$jscomp$4$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$jscomp$4$$,
$new_results_so_far$jscomp$4_parsed_result$jscomp$4$$);var $new_n_results_so_far$$=$n_results_so_far$$+1;$m$jscomp$221$$<=$new_n_results_so_far$$&&$new_n_results_so_far$$<=$n$jscomp$291$$&&$instaparse$gll$push_result$$($tramp$jscomp$24$$,$node_key$jscomp$15$$,$instaparse$gll$make_success$$($new_results_so_far$jscomp$4_parsed_result$jscomp$4$$,$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$));return $new_n_results_so_far$$<$n$jscomp$291$$?$instaparse$gll$push_listener$$($tramp$jscomp$24$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$,$parser$jscomp$40$$],null),$instaparse$gll$RepListener$$.$cljs$core$IFn$_invoke$arity$8$?$instaparse$gll$RepListener$$.$cljs$core$IFn$_invoke$arity$8$($new_results_so_far$jscomp$4_parsed_result$jscomp$4$$,$new_n_results_so_far$$,$parser$jscomp$40$$,$m$jscomp$221$$,$n$jscomp$291$$,$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$,$node_key$jscomp$15$$,
$tramp$jscomp$24$$):$instaparse$gll$RepListener$$($new_results_so_far$jscomp$4_parsed_result$jscomp$4$$,$new_n_results_so_far$$,$parser$jscomp$40$$,$m$jscomp$221$$,$n$jscomp$291$$,$continue_index$jscomp$4_map__74876__$1_result$jscomp$337$$,$node_key$jscomp$15$$,$tramp$jscomp$24$$)):null}},$instaparse$gll$RepFullListener$$=function $instaparse$gll$RepFullListener$$($results_so_far$jscomp$5$$,$n_results_so_far$jscomp$1$$,$parser$jscomp$41$$,$m$jscomp$222$$,$n$jscomp$292$$,$prev_index$jscomp$5$$,$node_key$jscomp$16$$,
$tramp$jscomp$25$$){return function($continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$){$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$=$APP.$cljs$core$__destructure_map$$($continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$);var $new_results_so_far$jscomp$5_parsed_result$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,$APP.$cljs$cst$826$result$$);$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,$APP.$cljs$cst$1779$index$$);$new_results_so_far$jscomp$5_parsed_result$jscomp$5$$=$instaparse$auto_flatten_seq$conj_flat$$($results_so_far$jscomp$5$$,$new_results_so_far$jscomp$5_parsed_result$jscomp$5$$);var $new_n_results_so_far$jscomp$1$$=$n_results_so_far$jscomp$1$$+1;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,
$APP.$cljs$core$count$$($APP.$cljs$cst$1572$text$$.$cljs$core$IFn$_invoke$arity$1$($tramp$jscomp$25$$)))?$m$jscomp$222$$<=$new_n_results_so_far$jscomp$1$$&&$new_n_results_so_far$jscomp$1$$<=$n$jscomp$292$$?$instaparse$gll$push_result$$($tramp$jscomp$25$$,$node_key$jscomp$16$$,$instaparse$gll$make_success$$($new_results_so_far$jscomp$5_parsed_result$jscomp$5$$,$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$)):null:$new_n_results_so_far$jscomp$1$$<$n$jscomp$292$$?$instaparse$gll$push_listener$$($tramp$jscomp$25$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,$parser$jscomp$41$$],null),$instaparse$gll$RepFullListener$$.$cljs$core$IFn$_invoke$arity$8$?$instaparse$gll$RepFullListener$$.$cljs$core$IFn$_invoke$arity$8$($new_results_so_far$jscomp$5_parsed_result$jscomp$5$$,$new_n_results_so_far$jscomp$1$$,$parser$jscomp$41$$,$m$jscomp$222$$,$n$jscomp$292$$,$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,
$node_key$jscomp$16$$,$tramp$jscomp$25$$):$instaparse$gll$RepFullListener$$($new_results_so_far$jscomp$5_parsed_result$jscomp$5$$,$new_n_results_so_far$jscomp$1$$,$parser$jscomp$41$$,$m$jscomp$222$$,$n$jscomp$292$$,$continue_index$jscomp$5_map__74877__$1_result$jscomp$338$$,$node_key$jscomp$16$$,$tramp$jscomp$25$$)):null}};var $instaparse$cfg$_STAR_case_insensitive_literals_STAR_$$=$APP.$cljs$cst$205$default$$,$instaparse$cfg$single_quoted_string$$=$APP.$cljs$core$re_pattern$$(/'[^'\\]*(?:\\.[^'\\]*)*'/),$instaparse$cfg$single_quoted_regexp$$=$APP.$cljs$core$re_pattern$$(/#'[^'\\]*(?:\\.[^'\\]*)*'/),$instaparse$cfg$double_quoted_string$$=$APP.$cljs$core$re_pattern$$(/"[^"\\]*(?:\\.[^"\\]*)*"/),$instaparse$cfg$double_quoted_regexp$$=$APP.$cljs$core$re_pattern$$(/#"[^"\\]*(?:\\.[^"\\]*)*"/),$instaparse$cfg$inside_comment$$=
/(?:(?!(?:\(\*|\*\)))[\s\S])*/,$instaparse$cfg$ws$$=$APP.$cljs$core$re_pattern$$("[,\\s]*"),$instaparse$cfg$opt_whitespace$$=$instaparse$combinators_source$hide$$($instaparse$combinators_source$nt$$($cljs$cst$5234$opt_whitespace$$)),$instaparse$cfg$non_terminal$$=$APP.$cljs$core$re_pattern$$("[^, \\r\\t\\n\x3c\x3e(){}\\[\\]+*?:\x3d|'\"#\x26!;./]+"),$instaparse$cfg$non_terminal_namespace_allowed$$=$APP.$cljs$core$re_pattern$$("[^, \\r\\t\\n\x3c\x3e(){}\\[\\]+*?:\x3d|'\"#\x26!;/.][^, \\r\\t\\n\x3c\x3e(){}\\[\\]+*?:\x3d|'\"#\x26!;]*"),
$instaparse$cfg$cfg$$=$instaparse$cfg$make_cfg$$(!1),$instaparse$cfg$cfg_allow_namespaced_nts$$=$instaparse$cfg$make_cfg$$(!0),$read_string_STAR__75166$$=$APP.$cljs$core$deref$$(new $APP.$cljs$core$Var$$(function(){return $cljs$tools$reader$read_string_STAR_$$},$cljs$cst$5244$cljs_DOT_tools_DOT_reader_SLASH_read_string_STAR_$$,$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1467$private$$,$APP.$cljs$cst$176$ns$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$218$end_column$$,
$APP.$cljs$cst$216$column$$,$APP.$cljs$cst$209$line$$,$APP.$cljs$cst$217$end_line$$,$APP.$cljs$cst$1468$arglists$$,$APP.$cljs$cst$1469$doc$$,$APP.$cljs$cst$171$test$$],[!0,$cljs$cst$5245$cljs_DOT_tools_DOT_reader$$,$cljs$cst$5246$read_string_STAR_$$,"cljs/tools/reader.cljs",20,1,306,306,$APP.$cljs$core$list$$(new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$with_meta$$($cljs$cst$5247$reader$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$97$not_native$$],null)),$APP.$cljs$cst$599$_$$,$APP.$cljs$cst$275$opts$$,$cljs$cst$5248$pending_forms$$],null)),null,$APP.$cljs$core$truth_$$($cljs$tools$reader$read_string_STAR_$$)?$cljs$tools$reader$read_string_STAR_$$.$cljs$lang$test$:null]))),$instaparse$cfg$build_rule$$=function $instaparse$cfg$build_rule$$($tree$jscomp$20$$){for(;;){var $G__74972_G__74972__$1_alt_or_ord_vec__74973$$=$APP.$cljs$core$first$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$first$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):
$APP.$cljs$core$first$$($tree$jscomp$20$$);$G__74972_G__74972__$1_alt_or_ord_vec__74973$$=$G__74972_G__74972__$1_alt_or_ord_vec__74973$$ instanceof $APP.$cljs$core$Keyword$$?$G__74972_G__74972__$1_alt_or_ord_vec__74973$$.$fqn$:null;switch($G__74972_G__74972__$1_alt_or_ord_vec__74973$$){case "rule":$G__74972_G__74972__$1_alt_or_ord_vec__74973$$=$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$next$$($tree$jscomp$20$$);
var $nt$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$,0,null);$G__74972_G__74972__$1_alt_or_ord_vec__74973$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$first$$.$cljs$core$IFn$_invoke$arity$1$($nt$jscomp$2$$):$APP.$cljs$core$first$$($nt$jscomp$2$$),
$cljs$cst$5237$hide_nt$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$(function(){var $G__74979$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($nt$jscomp$2$$):$APP.$cljs$core$fnext$$($nt$jscomp$2$$);return $APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($G__74979$$):
$APP.$cljs$core$fnext$$($G__74979$$)}()),$instaparse$combinators_source$hide_tag$$($instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$):$instaparse$cfg$build_rule$$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$))],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($nt$jscomp$2$$):$APP.$cljs$core$fnext$$($nt$jscomp$2$$)),$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$):$instaparse$cfg$build_rule$$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$)],null);case "nt":return $instaparse$combinators_source$nt$$($APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$)));case "alt":return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$alt$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$cfg$build_rule$$,$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$next$$($tree$jscomp$20$$)));case "ord":return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$ord$$,
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$cfg$build_rule$$,$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$next$$($tree$jscomp$20$$)));case "paren":$tree$jscomp$20$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);continue;case "hide":return $instaparse$combinators_source$hide$$(function(){var $G__74980$$=
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74980$$):$instaparse$cfg$build_rule$$($G__74980$$)}());case "cat":return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$cat$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$cfg$build_rule$$,
$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$next$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$next$$($tree$jscomp$20$$)));case "string":return $instaparse$cfg$string_PLUS_$$($instaparse$cfg$process_string$$($APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$)),!1);case "regexp":return $instaparse$combinators_source$regexp$$($instaparse$cfg$process_regexp$$($APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$)));case "opt":return $instaparse$combinators_source$opt$$(function(){var $G__74982$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74982$$):
$instaparse$cfg$build_rule$$($G__74982$$)}());case "star":return $instaparse$combinators_source$star$$(function(){var $G__74983$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74983$$):$instaparse$cfg$build_rule$$($G__74983$$)}());case "plus":return $instaparse$combinators_source$plus$$(function(){var $G__74985$$=
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74985$$):$instaparse$cfg$build_rule$$($G__74985$$)}());case "look":return $instaparse$combinators_source$look$$(function(){var $G__74987$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74987$$):$instaparse$cfg$build_rule$$($G__74987$$)}());case "neg":return $instaparse$combinators_source$neg$$(function(){var $G__74988$$=$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$?$APP.$cljs$core$fnext$$.$cljs$core$IFn$_invoke$arity$1$($tree$jscomp$20$$):
$APP.$cljs$core$fnext$$($tree$jscomp$20$$);return $instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$cfg$build_rule$$.$cljs$core$IFn$_invoke$arity$1$($G__74988$$):$instaparse$cfg$build_rule$$($G__74988$$)}());case "epsilon":return $instaparse$combinators_source$Epsilon$$;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74972_G__74972__$1_alt_or_ord_vec__74973$$)].join(""));}break}},$instaparse$cfg$seq_nt$$=function $instaparse$cfg$seq_nt$$($parser$jscomp$61$$){for(;;){var $G__74993_G__74993__$1$$=
$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$);$G__74993_G__74993__$1$$=$G__74993_G__74993__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__74993_G__74993__$1$$.$fqn$:null;switch($G__74993_G__74993__$1$$){case "nt":return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$221$keyword$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$)],null);case "string":case "string-ci":case "char":case "regexp":case "epsilon":return $APP.$cljs$core$PersistentVector$EMPTY$$;
case "opt":case "plus":case "star":case "look":case "neg":case "rep":$parser$jscomp$61$$=$APP.$cljs$cst$644$parser$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$);continue;case "alt":case "cat":return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($instaparse$cfg$seq_nt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5179$parsers$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$)]));case "ord":return $APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($instaparse$cfg$seq_nt$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5177$parser1$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$),$cljs$cst$5178$parser2$$.$cljs$core$IFn$_invoke$arity$1$($parser$jscomp$61$$)],null)]));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__74993_G__74993__$1$$)].join(""));}break}};var $instaparse$transform$enlive_transform$$=function $instaparse$transform$enlive_transform$$($transform_map$$,$parse_tree$$){var $G__74908$jscomp$inline_8390_transform$jscomp$105$$=$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parse_tree$$);$G__74908$jscomp$inline_8390_transform$jscomp$105$$=$transform_map$$.$cljs$core$IFn$_invoke$arity$1$?$transform_map$$.$cljs$core$IFn$_invoke$arity$1$($G__74908$jscomp$inline_8390_transform$jscomp$105$$):$transform_map$$($G__74908$jscomp$inline_8390_transform$jscomp$105$$);
return $APP.$cljs$core$truth_$$($G__74908$jscomp$inline_8390_transform$jscomp$105$$)?$instaparse$transform$merge_meta$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($G__74908$jscomp$inline_8390_transform$jscomp$105$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$transform$enlive_transform$$,$transform_map$$),$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($parse_tree$$))),$APP.$cljs$core$meta$$($parse_tree$$)):
$APP.$cljs$core$truth_$$($APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parse_tree$$))?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($parse_tree$$,$APP.$cljs$cst$1621$content$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$transform$enlive_transform$$,$transform_map$$),$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($parse_tree$$))):$parse_tree$$},$instaparse$transform$hiccup_transform$$=
function $instaparse$transform$hiccup_transform$$($transform_map$jscomp$1$$,$parse_tree$jscomp$1$$){if($APP.$cljs$core$sequential_QMARK_$$($parse_tree$jscomp$1$$)&&$APP.$cljs$core$seq$$($parse_tree$jscomp$1$$)){var $G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$=$APP.$cljs$core$first$$($parse_tree$jscomp$1$$);$G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$=$transform_map$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$transform_map$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$):
$transform_map$jscomp$1$$($G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$);return $APP.$cljs$core$truth_$$($G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$)?$instaparse$transform$merge_meta$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($G__74921$jscomp$inline_8392_temp__5823__auto__$jscomp$217$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$transform$hiccup_transform$$,$transform_map$jscomp$1$$),
$APP.$cljs$core$next$$($parse_tree$jscomp$1$$))),$APP.$cljs$core$meta$$($parse_tree$jscomp$1$$)):$APP.$cljs$core$with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$first$$($parse_tree$jscomp$1$$)],null),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$transform$hiccup_transform$$,$transform_map$jscomp$1$$),
$APP.$cljs$core$next$$($parse_tree$jscomp$1$$))),$APP.$cljs$core$meta$$($parse_tree$jscomp$1$$))}return $parse_tree$jscomp$1$$},$instaparse$transform$transform$$=function $instaparse$transform$transform$$($JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$,$parse_tree$jscomp$2$$){if(typeof $parse_tree$jscomp$2$$==="string")$JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$=$parse_tree$jscomp$2$$;else{var $JSCompiler_inline_result$jscomp$1686_and__5023__auto__$jscomp$inline_8394$$=($JSCompiler_inline_result$jscomp$1686_and__5023__auto__$jscomp$inline_8394$$=
$APP.$cljs$core$map_QMARK_$$($parse_tree$jscomp$2$$))?$APP.$cljs$cst$78$tag$$.$cljs$core$IFn$_invoke$arity$1$($parse_tree$jscomp$2$$):$JSCompiler_inline_result$jscomp$1686_and__5023__auto__$jscomp$inline_8394$$;$JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$=$APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1686_and__5023__auto__$jscomp$inline_8394$$)?$instaparse$transform$enlive_transform$$($JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$,$parse_tree$jscomp$2$$):$APP.$cljs$core$vector_QMARK_$$($parse_tree$jscomp$2$$)&&
$APP.$cljs$core$first$$($parse_tree$jscomp$2$$)instanceof $APP.$cljs$core$Keyword$$?$instaparse$transform$hiccup_transform$$($JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$,$parse_tree$jscomp$2$$):$APP.$cljs$core$sequential_QMARK_$$($parse_tree$jscomp$2$$)?$APP.$cljs$core$with_meta$$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($instaparse$transform$transform$$,$JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$),$parse_tree$jscomp$2$$),
$APP.$cljs$core$meta$$($parse_tree$jscomp$2$$)):$parse_tree$jscomp$2$$ instanceof $instaparse$gll$Failure$$?$parse_tree$jscomp$2$$:$instaparse$util$throw_illegal_argument_exception$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["Invalid parse-tree, not recognized as either enlive or hiccup format."]))}return $JSCompiler_temp$jscomp$1685_transform_map$jscomp$2$$};var $instaparse$abnf$abnf_core$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5250$CRLF$$,$cljs$cst$5251$HTAB$$,$cljs$cst$5252$LWSP$$,$cljs$cst$5253$LF$$,$cljs$cst$5254$VCHAR$$,$cljs$cst$5255$DIGIT$$,$cljs$cst$5256$SP$$,$cljs$cst$5257$HEXDIG$$,$cljs$cst$5258$CTL$$,$cljs$cst$5259$DQUOTE$$,$cljs$cst$5260$WSP$$,$cljs$cst$5261$CR$$,$cljs$cst$5262$OCTET$$,$cljs$cst$5263$ALPHA$$,$cljs$cst$5264$CHAR$$,$cljs$cst$5265$BIT$$],[$instaparse$combinators_source$string$$("\r\n"),$instaparse$combinators_source$string$$("\t"),
$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$(" "),$instaparse$combinators_source$string$$("\t")])),$instaparse$combinators_source$star$$($instaparse$combinators_source$cat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$("\r\n"),
$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$(" "),$instaparse$combinators_source$string$$("\t")]))])))])),$instaparse$combinators_source$string$$("\n"),$instaparse$combinators_source$regexp$$("[\\u0021-\\u007E]"),$instaparse$combinators_source$regexp$$("[0-9]"),$instaparse$combinators_source$string$$(" "),$instaparse$combinators_source$regexp$$("[0-9a-fA-F]"),$instaparse$combinators_source$regexp$$("[\\u0000-\\u001F|\\u007F]"),
$instaparse$combinators_source$string$$('"'),$instaparse$combinators_source$alt$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$string$$(" "),$instaparse$combinators_source$string$$("\t")])),$instaparse$combinators_source$string$$("\r"),$instaparse$combinators_source$regexp$$("[\\u0000-\\u00FF]"),$instaparse$combinators_source$regexp$$("[a-zA-Z]"),$instaparse$combinators_source$regexp$$("[\\u0001-\\u007F]"),$instaparse$combinators_source$regexp$$("[01]")]),
$instaparse$abnf$abnf_parser$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5198$neg$$,$APP.$cljs$cst$1592$group$$,$cljs$cst$5266$hide_tag$$,$cljs$cst$5267$whitespace$$,$cljs$cst$5268$element$$,$cljs$cst$5269$hide_tag_rule$$,$cljs$cst$5197$look$$,$cljs$cst$5270$bin_char$$,$cljs$cst$5236$rule$$,$cljs$cst$5271$rulename_right$$,$cljs$cst$5255$DIGIT$$,$cljs$cst$5272$NUM$$,$cljs$cst$5273$char_val$$,$cljs$cst$5274$num_val$$,$APP.$cljs$cst$2302$hide$$,$cljs$cst$5275$defined_as$$,$cljs$cst$5257$HEXDIG$$,
$cljs$cst$5276$option$$,$cljs$cst$5277$hex_char$$,$cljs$cst$5278$rulename$$,$cljs$cst$5279$bin_val$$,$cljs$cst$5280$dec_val$$,$cljs$cst$5281$concatenation$$,$cljs$cst$5282$alternation$$,$cljs$cst$5180$regexp$$,$cljs$cst$5283$repetition$$,$cljs$cst$5284$rulename_left$$,$cljs$cst$5285$rulelist$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$714$repeat$$,$cljs$cst$5286$hex_val$$,$cljs$cst$5287$dec_char$$,$cljs$cst$5243$rules_or_parser$$],[new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"!"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5268$element$$],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5198$neg$$],
null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"("],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,")"],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,
"\x3c"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5284$rulename_left$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"\x3e"],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),
null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("\\s+(?:;.*?\\u000D?\\u000A\\s*)*"),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,
$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5267$whitespace$$],null)],null)])),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5271$rulename_right$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$APP.$cljs$cst$1592$group$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$APP.$cljs$cst$2302$hide$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5276$option$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5273$char_val$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5274$num_val$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5197$look$$],null),new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5198$neg$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5180$regexp$$],null),null,1,null),2,null),3,null),4,null),5,null),6,null),7,null),8,null),9,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,
$APP.$cljs$cst$559$raw$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5266$hide_tag$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,
$cljs$cst$5275$defined_as$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,
null),4,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5269$hide_tag_rule$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"\x26"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5268$element$$],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5197$look$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"0"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"1"],null),null,1,null),2,null)],null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,
$APP.$cljs$cst$300$key$$,$cljs$cst$5270$bin_char$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5284$rulename_left$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5275$defined_as$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],
null),null,1,null),2,null),3,null),4,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5236$rule$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5278$rulename$$,$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,
$APP.$cljs$cst$300$key$$,$cljs$cst$5271$rulename_right$$],null)],null),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("[0-9]"),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null)])),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,
$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5255$DIGIT$$],null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5272$NUM$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,'"',$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5192$star$$,$APP.$cljs$cst$644$parser$$,
$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("[\\u0020-\\u0021\\u0023-\\u007E]"),$APP.$cljs$core$PersistentArrayMap$EMPTY$$]))],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,'"',$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null)],null),new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"'",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5192$star$$,$APP.$cljs$cst$644$parser$$,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("[\\u0020-\\u0026(-~]"),
$APP.$cljs$core$PersistentArrayMap$EMPTY$$]))],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"'",$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5273$char_val$$],null)],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"%",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5279$bin_val$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5280$dec_val$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5286$hex_val$$],
null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"\x3c"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"\x3e"],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$2302$hide$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,
"\x3d"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"\x3d/"],null),null,1,null),2,null)],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5275$defined_as$$],null)],null),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("[0-9a-fA-F]"),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null)])),
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"["],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"]"],null),null,1,null),2,null),$APP.$cljs$cst$2302$hide$$,!0],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5276$option$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5257$HEXDIG$$],null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,
$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5277$hex_char$$],null)],null),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("[a-zA-Z][-a-zA-Z0-9]*"),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null)])),new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"b",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5270$bin_char$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,".",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5270$bin_char$$],null),null,1,null),2,null)],null)],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,
$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"-"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5270$bin_char$$],null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5279$bin_val$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"d",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5287$dec_char$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,".",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5287$dec_char$$],null),null,1,null),2,null)],null)],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"-"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5287$dec_char$$],null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5280$dec_val$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5283$repetition$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5192$star$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5267$whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5283$repetition$$],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,
$APP.$cljs$cst$300$key$$,$cljs$cst$5281$concatenation$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5281$concatenation$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5192$star$$,
$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"/"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$],null),null,1,null),2,null),3,null),$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5281$concatenation$$],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5282$alternation$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("#'[^'\\\\]*(?:\\\\.[^'\\\\]*)*'"),
$APP.$cljs$core$PersistentArrayMap$EMPTY$$])),new $APP.$cljs$core$List$$(null,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$('#\\"[^\\"\\\\]*(?:\\\\.[^\\"\\\\]*)*\\"'),$APP.$cljs$core$PersistentArrayMap$EMPTY$$])),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,
$cljs$cst$5180$regexp$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$APP.$cljs$cst$714$repeat$$],null)],null),new $APP.$cljs$core$List$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5268$element$$],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,
$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5283$repetition$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5278$rulename$$,$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5284$rulename_left$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5234$opt_whitespace$$,$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,
$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5236$rule$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5269$hide_tag_rule$$],null),null,1,null),2,null)],null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$instaparse$combinators_source$regexp$$("\\s*(?:;.*?(?:\\u000D?\\u000A\\s*|$))*"),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,
$APP.$cljs$cst$300$key$$,$cljs$cst$5234$opt_whitespace$$],null)],null)])),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5272$NUM$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,
$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5272$NUM$$],null)],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,
"*"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5272$NUM$$],null)],null),null,1,null),2,null),3,null)],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,
$APP.$cljs$cst$300$key$$,$APP.$cljs$cst$714$repeat$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"x",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5277$hex_char$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$991$opt$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,".",$APP.$cljs$cst$2302$hide$$,!0],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5277$hex_char$$],null),null,1,null),2,null)],null)],null),
new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$592$cat$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$198$string$$,$APP.$cljs$cst$198$string$$,"-"],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5277$hex_char$$],
null),null,1,null),2,null)],null),null,1,null),2,null)],null)],null),null,1,null),2,null),3,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5286$hex_val$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5191$plus$$,$APP.$cljs$cst$644$parser$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5255$DIGIT$$],null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5181$reduction_type$$,$cljs$cst$5188$hiccup$$,$APP.$cljs$cst$300$key$$,$cljs$cst$5287$dec_char$$],null)],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$78$tag$$,$APP.$cljs$cst$715$alt$$,$cljs$cst$5179$parsers$$,new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,
$APP.$cljs$cst$221$keyword$$,$cljs$cst$5285$rulelist$$],null),new $APP.$cljs$core$List$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$78$tag$$,$cljs$cst$5196$nt$$,$APP.$cljs$cst$221$keyword$$,$cljs$cst$5282$alternation$$],null),null,1,null),2,null),$APP.$cljs$cst$5182$red$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5181$reduction_type$$,$APP.$cljs$cst$559$raw$$],null)],null)]),$instaparse$abnf$get_char_combinator$$=function $instaparse$abnf$get_char_combinator$$($var_args$jscomp$1399$$){for(var $args__5755__auto__$jscomp$242$$=
[],$len__5749__auto___75624$$=arguments.length,$i__5750__auto___75625$$=0;;)if($i__5750__auto___75625$$<$len__5749__auto___75624$$)$args__5755__auto__$jscomp$242$$.push(arguments[$i__5750__auto___75625$$]),$i__5750__auto___75625$$+=1;else break;return $instaparse$abnf$get_char_combinator$$.$cljs$core$IFn$_invoke$arity$variadic$(0<$args__5755__auto__$jscomp$242$$.length?new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$242$$.slice(0),0,null):null)};
$instaparse$abnf$get_char_combinator$$.$cljs$core$IFn$_invoke$arity$variadic$=function($nums$$){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("-",$APP.$cljs$core$second$$($nums$$))){var $lo$jscomp$9$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($nums$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($nums$$,1,null);var $hi$jscomp$11$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($nums$$,2,null);return $instaparse$combinators_source$unicode_char$cljs$0core$0IFn$0_invoke$0arity$02$$($lo$jscomp$9$$,
$hi$jscomp$11$$)}return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$cat$$,function(){return function $instaparse$abnf$iter__75571$$($s__75572$$){return new $APP.$cljs$core$LazySeq$$(null,function(){for(;;){var $s__75572__$2_temp__5825__auto__$jscomp$321$$=$APP.$cljs$core$seq$$($s__75572$$);if($s__75572__$2_temp__5825__auto__$jscomp$321$$){if($APP.$cljs$core$chunked_seq_QMARK_$$($s__75572__$2_temp__5825__auto__$jscomp$321$$)){var $JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$=
$APP.$cljs$core$_chunked_first$$($s__75572__$2_temp__5825__auto__$jscomp$321$$),$size__5502__auto__$jscomp$43$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$),$b__75574_n$jscomp$295$$=$APP.$cljs$core$chunk_buffer$$($size__5502__auto__$jscomp$43$$);a:{for(var $i__75573$jscomp$inline_8396$$=0;;)if($i__75573$jscomp$inline_8396$$<$size__5502__auto__$jscomp$43$$){var $n$jscomp$inline_8397$$=$APP.$cljs$core$_nth$$($JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$,
$i__75573$jscomp$inline_8396$$);$b__75574_n$jscomp$295$$.add($instaparse$combinators_source$unicode_char$cljs$0core$0IFn$0_invoke$0arity$02$$($n$jscomp$inline_8397$$,$n$jscomp$inline_8397$$));$i__75573$jscomp$inline_8396$$+=1}else{$JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$=!0;break a}$JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$=void 0}return $JSCompiler_inline_result$jscomp$1687_c__5501__auto__$jscomp$43$$?$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__75574_n$jscomp$295$$),
$instaparse$abnf$iter__75571$$($APP.$cljs$core$_chunked_rest$$($s__75572__$2_temp__5825__auto__$jscomp$321$$))):$APP.$cljs$core$chunk_cons$$($APP.$cljs$core$chunk$$($b__75574_n$jscomp$295$$),null)}$b__75574_n$jscomp$295$$=$APP.$cljs$core$first$$($s__75572__$2_temp__5825__auto__$jscomp$321$$);return $APP.$cljs$core$cons$$($instaparse$combinators_source$unicode_char$cljs$0core$0IFn$0_invoke$0arity$02$$($b__75574_n$jscomp$295$$,$b__75574_n$jscomp$295$$),$instaparse$abnf$iter__75571$$($APP.$cljs$core$rest$$($s__75572__$2_temp__5825__auto__$jscomp$321$$)))}return null}},
null,null)}($nums$$)}())};$instaparse$abnf$get_char_combinator$$.$cljs$lang$maxFixedArity$=0;$instaparse$abnf$get_char_combinator$$.$cljs$lang$applyTo$=function($seq75566$$){return this.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$seq$$($seq75566$$))};
var $instaparse$abnf$parse_int$$=parseInt,$instaparse$abnf$abnf_transformer$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5198$neg$$,$cljs$cst$5269$hide_tag_rule$$,$cljs$cst$5197$look$$,$cljs$cst$5270$bin_char$$,$cljs$cst$5236$rule$$,$cljs$cst$5271$rulename_right$$,$cljs$cst$5272$NUM$$,$cljs$cst$5273$char_val$$,$APP.$cljs$cst$2302$hide$$,$cljs$cst$5276$option$$,$cljs$cst$5277$hex_char$$,$cljs$cst$5279$bin_val$$,$cljs$cst$5280$dec_val$$,$cljs$cst$5281$concatenation$$,$cljs$cst$5282$alternation$$,
$cljs$cst$5180$regexp$$,$cljs$cst$5283$repetition$$,$cljs$cst$5284$rulename_left$$,$APP.$cljs$cst$714$repeat$$,$cljs$cst$5286$hex_val$$,$cljs$cst$5287$dec_char$$],[$instaparse$combinators_source$neg$$,function($tag$jscomp$90$$,$rule$jscomp$4$$){return $APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$tag$jscomp$90$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($rule$jscomp$4$$,$APP.$cljs$cst$5182$red$$,$instaparse$reduction$raw_non_terminal_reduction$$)])},$instaparse$combinators_source$look$$,
function(){function $G__75637$$($var_args$jscomp$1400$$){var $G__75638__i_cs$jscomp$4$$=null;if(arguments.length>0){$G__75638__i_cs$jscomp$4$$=0;for(var $G__75638__a$$=Array(arguments.length-0);$G__75638__i_cs$jscomp$4$$<$G__75638__a$$.length;)$G__75638__a$$[$G__75638__i_cs$jscomp$4$$]=arguments[$G__75638__i_cs$jscomp$4$$+0],++$G__75638__i_cs$jscomp$4$$;$G__75638__i_cs$jscomp$4$$=new $APP.$cljs$core$IndexedSeq$$($G__75638__a$$,0,null)}return $G__75637__delegate$$.call(this,$G__75638__i_cs$jscomp$4$$)}
function $G__75637__delegate$$($G__75588_cs$jscomp$3$$){$G__75588_cs$jscomp$3$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$G__75588_cs$jscomp$3$$);return $instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$2$($G__75588_cs$jscomp$3$$,2):$instaparse$abnf$parse_int$$($G__75588_cs$jscomp$3$$,2)}$G__75637$$.$cljs$lang$maxFixedArity$=0;$G__75637$$.$cljs$lang$applyTo$=function($arglist__75639_cs$jscomp$5$$){$arglist__75639_cs$jscomp$5$$=
$APP.$cljs$core$seq$$($arglist__75639_cs$jscomp$5$$);return $G__75637__delegate$$($arglist__75639_cs$jscomp$5$$)};$G__75637$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75637__delegate$$;return $G__75637$$}(),$APP.$cljs$core$hash_map$$,function(){function $G__75640$$($var_args$jscomp$1401$$){var $G__75641__i_rest__75586_SHARP_$jscomp$1$$=null;if(arguments.length>0){$G__75641__i_rest__75586_SHARP_$jscomp$1$$=0;for(var $G__75641__a$$=Array(arguments.length-0);$G__75641__i_rest__75586_SHARP_$jscomp$1$$<
$G__75641__a$$.length;)$G__75641__a$$[$G__75641__i_rest__75586_SHARP_$jscomp$1$$]=arguments[$G__75641__i_rest__75586_SHARP_$jscomp$1$$+0],++$G__75641__i_rest__75586_SHARP_$jscomp$1$$;$G__75641__i_rest__75586_SHARP_$jscomp$1$$=new $APP.$cljs$core$IndexedSeq$$($G__75641__a$$,0,null)}return $G__75640__delegate$$.call(this,$G__75641__i_rest__75586_SHARP_$jscomp$1$$)}function $G__75640__delegate$$($rest__75586_SHARP_$$){return $APP.$cljs$core$truth_$$(!1)?$instaparse$combinators_source$nt$$($APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$clojure$string$upper_case$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,
$rest__75586_SHARP_$$)))):$instaparse$combinators_source$nt$$($APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$rest__75586_SHARP_$$)))}$G__75640$$.$cljs$lang$maxFixedArity$=0;$G__75640$$.$cljs$lang$applyTo$=function($arglist__75642_rest__75586_SHARP_$jscomp$2$$){$arglist__75642_rest__75586_SHARP_$jscomp$2$$=$APP.$cljs$core$seq$$($arglist__75642_rest__75586_SHARP_$jscomp$2$$);return $G__75640__delegate$$($arglist__75642_rest__75586_SHARP_$jscomp$2$$)};
$G__75640$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75640__delegate$$;return $G__75640$$}(),function(){function $G__75643$$($var_args$jscomp$1402$$){var $G__75644__i_rest__75587_SHARP_$jscomp$1$$=null;if(arguments.length>0){$G__75644__i_rest__75587_SHARP_$jscomp$1$$=0;for(var $G__75644__a$$=Array(arguments.length-0);$G__75644__i_rest__75587_SHARP_$jscomp$1$$<$G__75644__a$$.length;)$G__75644__a$$[$G__75644__i_rest__75587_SHARP_$jscomp$1$$]=arguments[$G__75644__i_rest__75587_SHARP_$jscomp$1$$+0],
++$G__75644__i_rest__75587_SHARP_$jscomp$1$$;$G__75644__i_rest__75587_SHARP_$jscomp$1$$=new $APP.$cljs$core$IndexedSeq$$($G__75644__a$$,0,null)}return $G__75643__delegate$$.call(this,$G__75644__i_rest__75587_SHARP_$jscomp$1$$)}function $G__75643__delegate$$($G__75590_rest__75587_SHARP_$$){$G__75590_rest__75587_SHARP_$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$G__75590_rest__75587_SHARP_$$);return $instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$1$($G__75590_rest__75587_SHARP_$$):
$instaparse$abnf$parse_int$$($G__75590_rest__75587_SHARP_$$)}$G__75643$$.$cljs$lang$maxFixedArity$=0;$G__75643$$.$cljs$lang$applyTo$=function($arglist__75645_rest__75587_SHARP_$jscomp$2$$){$arglist__75645_rest__75587_SHARP_$jscomp$2$$=$APP.$cljs$core$seq$$($arglist__75645_rest__75587_SHARP_$jscomp$2$$);return $G__75643__delegate$$($arglist__75645_rest__75587_SHARP_$jscomp$2$$)};$G__75643$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75643__delegate$$;return $G__75643$$}(),function(){function $G__75646$$($var_args$jscomp$1403$$){var $G__75647__i_cs$jscomp$7$$=
null;if(arguments.length>0){$G__75647__i_cs$jscomp$7$$=0;for(var $G__75647__a$$=Array(arguments.length-0);$G__75647__i_cs$jscomp$7$$<$G__75647__a$$.length;)$G__75647__a$$[$G__75647__i_cs$jscomp$7$$]=arguments[$G__75647__i_cs$jscomp$7$$+0],++$G__75647__i_cs$jscomp$7$$;$G__75647__i_cs$jscomp$7$$=new $APP.$cljs$core$IndexedSeq$$($G__75647__a$$,0,null)}return $G__75646__delegate$$.call(this,$G__75647__i_cs$jscomp$7$$)}function $G__75646__delegate$$($cs$jscomp$6$$){return $instaparse$cfg$string_PLUS_$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,
$cs$jscomp$6$$),!0)}$G__75646$$.$cljs$lang$maxFixedArity$=0;$G__75646$$.$cljs$lang$applyTo$=function($arglist__75648_cs$jscomp$8$$){$arglist__75648_cs$jscomp$8$$=$APP.$cljs$core$seq$$($arglist__75648_cs$jscomp$8$$);return $G__75646__delegate$$($arglist__75648_cs$jscomp$8$$)};$G__75646$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75646__delegate$$;return $G__75646$$}(),$instaparse$combinators_source$hide$$,$instaparse$combinators_source$opt$$,function(){function $G__75649$$($var_args$jscomp$1404$$){var $G__75650__i_cs$jscomp$10$$=
null;if(arguments.length>0){$G__75650__i_cs$jscomp$10$$=0;for(var $G__75650__a$$=Array(arguments.length-0);$G__75650__i_cs$jscomp$10$$<$G__75650__a$$.length;)$G__75650__a$$[$G__75650__i_cs$jscomp$10$$]=arguments[$G__75650__i_cs$jscomp$10$$+0],++$G__75650__i_cs$jscomp$10$$;$G__75650__i_cs$jscomp$10$$=new $APP.$cljs$core$IndexedSeq$$($G__75650__a$$,0,null)}return $G__75649__delegate$$.call(this,$G__75650__i_cs$jscomp$10$$)}function $G__75649__delegate$$($G__75591_cs$jscomp$9$$){$G__75591_cs$jscomp$9$$=
$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$G__75591_cs$jscomp$9$$);return $instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$2$?$instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$2$($G__75591_cs$jscomp$9$$,16):$instaparse$abnf$parse_int$$($G__75591_cs$jscomp$9$$,16)}$G__75649$$.$cljs$lang$maxFixedArity$=0;$G__75649$$.$cljs$lang$applyTo$=function($arglist__75651_cs$jscomp$11$$){$arglist__75651_cs$jscomp$11$$=$APP.$cljs$core$seq$$($arglist__75651_cs$jscomp$11$$);
return $G__75649__delegate$$($arglist__75651_cs$jscomp$11$$)};$G__75649$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75649__delegate$$;return $G__75649$$}(),$instaparse$abnf$get_char_combinator$$,$instaparse$abnf$get_char_combinator$$,$instaparse$combinators_source$cat$$,$instaparse$combinators_source$alt$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($instaparse$combinators_source$regexp$$,$instaparse$cfg$process_regexp$$),function(){function $G__75652__2$$($repeat$$,$element$jscomp$77$$){return $APP.$cljs$core$empty_QMARK_$$($repeat$$)?
$instaparse$combinators_source$star$$($element$jscomp$77$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($repeat$$),2)?$instaparse$combinators_source$rep$$($cljs$cst$5288$low$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$),$cljs$cst$5289$high$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$),$element$jscomp$77$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5288$low$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$),1)?$instaparse$combinators_source$plus$$($element$jscomp$77$$):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5289$high$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$),1)?$instaparse$combinators_source$opt$$($element$jscomp$77$$):$instaparse$combinators_source$rep$$(function(){var $or__5025__auto__$jscomp$990$$=$cljs$cst$5288$low$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$990$$)?$or__5025__auto__$jscomp$990$$:0}(),function(){var $or__5025__auto__$jscomp$991$$=$cljs$cst$5289$high$$.$cljs$core$IFn$_invoke$arity$1$($repeat$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$991$$)?$or__5025__auto__$jscomp$991$$:Infinity}(),$element$jscomp$77$$)}var $G__75652$$=null;$G__75652$$=function($repeat$jscomp$1$$,$element$jscomp$78$$){switch(arguments.length){case 1:return $repeat$jscomp$1$$;case 2:return $G__75652__2$$.call(this,$repeat$jscomp$1$$,$element$jscomp$78$$)}throw Error("Invalid arity: "+arguments.length);};$G__75652$$.$cljs$core$IFn$_invoke$arity$1$=function($element$jscomp$76$$){return $element$jscomp$76$$};
$G__75652$$.$cljs$core$IFn$_invoke$arity$2$=$G__75652__2$$;return $G__75652$$}(),function(){function $G__75656$$($var_args$jscomp$1405$$){var $G__75657__i_rest__75585_SHARP_$jscomp$1$$=null;if(arguments.length>0){$G__75657__i_rest__75585_SHARP_$jscomp$1$$=0;for(var $G__75657__a$$=Array(arguments.length-0);$G__75657__i_rest__75585_SHARP_$jscomp$1$$<$G__75657__a$$.length;)$G__75657__a$$[$G__75657__i_rest__75585_SHARP_$jscomp$1$$]=arguments[$G__75657__i_rest__75585_SHARP_$jscomp$1$$+0],++$G__75657__i_rest__75585_SHARP_$jscomp$1$$;
$G__75657__i_rest__75585_SHARP_$jscomp$1$$=new $APP.$cljs$core$IndexedSeq$$($G__75657__a$$,0,null)}return $G__75656__delegate$$.call(this,$G__75657__i_rest__75585_SHARP_$jscomp$1$$)}function $G__75656__delegate$$($rest__75585_SHARP_$$){return $APP.$cljs$core$truth_$$(!1)?$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$clojure$string$upper_case$$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$rest__75585_SHARP_$$))):$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,
$rest__75585_SHARP_$$))}$G__75656$$.$cljs$lang$maxFixedArity$=0;$G__75656$$.$cljs$lang$applyTo$=function($arglist__75658_rest__75585_SHARP_$jscomp$2$$){$arglist__75658_rest__75585_SHARP_$jscomp$2$$=$APP.$cljs$core$seq$$($arglist__75658_rest__75585_SHARP_$jscomp$2$$);return $G__75656__delegate$$($arglist__75658_rest__75585_SHARP_$jscomp$2$$)};$G__75656$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75656__delegate$$;return $G__75656$$}(),function(){function $G__75659$$($var_args$jscomp$1406$$){var $G__75665__i_items$jscomp$52$$=
null;if(arguments.length>0){$G__75665__i_items$jscomp$52$$=0;for(var $G__75665__a$$=Array(arguments.length-0);$G__75665__i_items$jscomp$52$$<$G__75665__a$$.length;)$G__75665__a$$[$G__75665__i_items$jscomp$52$$]=arguments[$G__75665__i_items$jscomp$52$$+0],++$G__75665__i_items$jscomp$52$$;$G__75665__i_items$jscomp$52$$=new $APP.$cljs$core$IndexedSeq$$($G__75665__a$$,0,null)}return $G__75659__delegate$$.call(this,$G__75665__i_items$jscomp$52$$)}function $G__75659__delegate$$($items$jscomp$51$$){var $G__75594$$=
$APP.$cljs$core$count$$($items$jscomp$51$$);switch($G__75594$$){case 1:return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($items$jscomp$51$$),"*")?$APP.$cljs$core$PersistentArrayMap$EMPTY$$:new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5288$low$$,$APP.$cljs$core$first$$($items$jscomp$51$$),$cljs$cst$5289$high$$,$APP.$cljs$core$first$$($items$jscomp$51$$)],null);case 2:return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($items$jscomp$51$$),
"*")?new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5289$high$$,$APP.$cljs$core$second$$($items$jscomp$51$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5288$low$$,$APP.$cljs$core$first$$($items$jscomp$51$$)],null);case 3:return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5288$low$$,$APP.$cljs$core$first$$($items$jscomp$51$$),$cljs$cst$5289$high$$,$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($items$jscomp$51$$,2)],null);default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__75594$$)].join(""));}}$G__75659$$.$cljs$lang$maxFixedArity$=0;$G__75659$$.$cljs$lang$applyTo$=function($arglist__75667_items$jscomp$53$$){$arglist__75667_items$jscomp$53$$=$APP.$cljs$core$seq$$($arglist__75667_items$jscomp$53$$);return $G__75659__delegate$$($arglist__75667_items$jscomp$53$$)};$G__75659$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75659__delegate$$;return $G__75659$$}(),$instaparse$abnf$get_char_combinator$$,function(){function $G__75668$$($var_args$jscomp$1407$$){var $G__75670__i_cs$jscomp$13$$=
null;if(arguments.length>0){$G__75670__i_cs$jscomp$13$$=0;for(var $G__75670__a$$=Array(arguments.length-0);$G__75670__i_cs$jscomp$13$$<$G__75670__a$$.length;)$G__75670__a$$[$G__75670__i_cs$jscomp$13$$]=arguments[$G__75670__i_cs$jscomp$13$$+0],++$G__75670__i_cs$jscomp$13$$;$G__75670__i_cs$jscomp$13$$=new $APP.$cljs$core$IndexedSeq$$($G__75670__a$$,0,null)}return $G__75668__delegate$$.call(this,$G__75670__i_cs$jscomp$13$$)}function $G__75668__delegate$$($G__75595_cs$jscomp$12$$){$G__75595_cs$jscomp$12$$=
$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$str$$,$G__75595_cs$jscomp$12$$);return $instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$1$?$instaparse$abnf$parse_int$$.$cljs$core$IFn$_invoke$arity$1$($G__75595_cs$jscomp$12$$):$instaparse$abnf$parse_int$$($G__75595_cs$jscomp$12$$)}$G__75668$$.$cljs$lang$maxFixedArity$=0;$G__75668$$.$cljs$lang$applyTo$=function($arglist__75671_cs$jscomp$14$$){$arglist__75671_cs$jscomp$14$$=$APP.$cljs$core$seq$$($arglist__75671_cs$jscomp$14$$);
return $G__75668__delegate$$($arglist__75671_cs$jscomp$14$$)};$G__75668$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__75668__delegate$$;return $G__75668$$}()]);var $instaparse$repeat$failure_signal$$=new $instaparse$gll$Failure$$(null,null,null,null,null),$instaparse$repeat$get_end$$=function $instaparse$repeat$get_end$$($var_args$jscomp$1409$$){switch(arguments.length){case 1:return $instaparse$repeat$get_end$$.$cljs$core$IFn$_invoke$arity$1$(arguments[0]);case 2:return $instaparse$repeat$get_end$$.$cljs$core$IFn$_invoke$arity$2$(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));
}};$instaparse$repeat$get_end$$.$cljs$core$IFn$_invoke$arity$1$=function($parse$jscomp$5$$){var $end$jscomp$100_vec__74914$$=$instaparse$viz$span$$($parse$jscomp$5$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$100_vec__74914$$,0,null);$end$jscomp$100_vec__74914$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$100_vec__74914$$,1,null);return $APP.$cljs$core$truth_$$($end$jscomp$100_vec__74914$$)?$APP.$cljs$core$fix$$($end$jscomp$100_vec__74914$$):$APP.$cljs$core$count$$($parse$jscomp$5$$)};
$instaparse$repeat$get_end$$.$cljs$core$IFn$_invoke$arity$2$=function($parse$jscomp$6$$,$index$jscomp$445$$){var $end$jscomp$101_vec__74917$$=$instaparse$viz$span$$($parse$jscomp$6$$);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$101_vec__74917$$,0,null);$end$jscomp$101_vec__74917$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($end$jscomp$101_vec__74917$$,1,null);return $APP.$cljs$core$truth_$$($end$jscomp$101_vec__74917$$)?$APP.$cljs$core$fix$$($end$jscomp$101_vec__74917$$):
$index$jscomp$445$$+$APP.$cljs$core$count$$($parse$jscomp$6$$)};$instaparse$repeat$get_end$$.$cljs$lang$maxFixedArity$=2;var $instaparse$core$parse$$=function $instaparse$core$parse$$($var_args$jscomp$1415$$){for(var $args__5755__auto__$jscomp$244$$=[],$len__5749__auto___76077$$=arguments.length,$i__5750__auto___76078$$=0;;)if($i__5750__auto___76078$$<$len__5749__auto___76077$$)$args__5755__auto__$jscomp$244$$.push(arguments[$i__5750__auto___76078$$]),$i__5750__auto___76078$$+=1;else break;return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(arguments[0],arguments[1],2<$args__5755__auto__$jscomp$244$$.length?
new $APP.$cljs$core$IndexedSeq$$($args__5755__auto__$jscomp$244$$.slice(2),0,null):null)};
$instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$=function($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$p__75975_start_production$jscomp$5$$){var $JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$=$APP.$cljs$core$__destructure_map$$($p__75975_start_production$jscomp$5$$);
$p__75975_start_production$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,$APP.$cljs$cst$1278$start$$,$cljs$cst$5184$start_production$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$));var $build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,
$APP.$cljs$cst$2107$partial$$,!1),$JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,$cljs$cst$5290$optimize$$,!1),$fail_index$jscomp$inline_13902_unhide$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,$cljs$cst$5298$unhide$$);$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,
$APP.$cljs$cst$144$trace$$,!1);$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$=$instaparse$core$unhide_parser$$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$,$fail_index$jscomp$inline_13902_unhide$jscomp$1$$);return $APP.$cljs$core$truth_$$($APP.$cljs$cst$2286$total$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$))?($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$=
$cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$=$cljs$cst$5249$output_format$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),$JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$=$instaparse$reduction$node_builders$$.$cljs$core$IFn$_invoke$arity$1$?
$instaparse$reduction$node_builders$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$):$instaparse$reduction$node_builders$$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$=$instaparse$gll$parse$$($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$,
$p__75975_start_production$jscomp$5$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$),$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$ instanceof $instaparse$gll$Failure$$?($fail_index$jscomp$inline_13902_unhide$jscomp$1$$=$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),
$JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$=$instaparse$gll$make_tramp$cljs$0core$0IFn$0_invoke$0arity$05$$($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$fail_index$jscomp$inline_13902_unhide$jscomp$1$$,
$JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$),$instaparse$gll$start_parser$$($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$,$instaparse$combinators_source$nt$$($p__75975_start_production$jscomp$5$$),$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$),$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$=$instaparse$gll$run$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$,
null),$APP.$cljs$core$truth_$$($build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$)?$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$=$APP.$cljs$core$first$$($build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$):($build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$=
$instaparse$gll$build_node_with_meta$$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,$cljs$cst$5229$instaparse_SLASH_failure$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,0,$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$)),$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$=
$instaparse$gll$build_node_with_meta$$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$,$p__75975_start_production$jscomp$5$$,$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$,0,$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$))),$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$=
$APP.$cljs$core$with_meta$$($JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$,$APP.$cljs$core$meta$$($JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$)])))):
$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$=$G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$)?$APP.$cljs$core$not$$($build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$):
$JSCompiler_temp_const$jscomp$10596_optimize_QMARK__tramp$jscomp$inline_13903$$)?($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$=$instaparse$repeat$try_repeating_parse_strategy$$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,$p__75975_start_production$jscomp$5$$),$APP.$cljs$core$truth_$$($instaparse$core$failure_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?
$instaparse$core$failure_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$):$instaparse$core$failure_QMARK_$$($JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$))?$instaparse$gll$parse$$($cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),$p__75975_start_production$jscomp$5$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,
$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$):$JSCompiler_inline_result$jscomp$10597_options$jscomp$599_result$jscomp$344$$):$instaparse$gll$parse$$($cljs$cst$5183$grammar$$.$cljs$core$IFn$_invoke$arity$1$($G__75979$jscomp$inline_12862_parser$jscomp$64_parser__$1$jscomp$1_result$jscomp$inline_13899$$),$p__75975_start_production$jscomp$5$$,$JSCompiler_inline_result$jscomp$inline_13901_JSCompiler_temp$jscomp$inline_13900_JSCompiler_temp$jscomp$inline_13905_text$jscomp$117$$,
$build_failure_node$jscomp$inline_13906_partial_QMARK_$jscomp$7_temp__5823__auto__$jscomp$inline_13904$$)};$instaparse$core$parse$$.$cljs$lang$maxFixedArity$=2;
$instaparse$core$parse$$.$cljs$lang$applyTo$=function($G__75973_seq75971$$){var $G__75972$$=$APP.$cljs$core$first$$($G__75973_seq75971$$),$seq75971__$1_seq75971__$2$$=$APP.$cljs$core$next$$($G__75973_seq75971$$);$G__75973_seq75971$$=$APP.$cljs$core$first$$($seq75971__$1_seq75971__$2$$);$seq75971__$1_seq75971__$2$$=$APP.$cljs$core$next$$($seq75971__$1_seq75971__$2$$);return this.$cljs$core$IFn$_invoke$arity$variadic$($G__75972$$,$G__75973_seq75971$$,$seq75971__$1_seq75971__$2$$)};
$APP.$JSCompiler_prototypeAlias$$=$instaparse$core$Parser$$.prototype;$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$2$=function($this__5323__auto__$jscomp$39$$,$k__5324__auto__$jscomp$39$$){return this.$cljs$core$ILookup$_lookup$arity$3$(null,$k__5324__auto__$jscomp$39$$,null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ILookup$_lookup$arity$3$=function($this__5325__auto__$jscomp$39$$,$k75999$$,$else__5326__auto__$jscomp$39$$){switch($k75999$$ instanceof $APP.$cljs$core$Keyword$$?$k75999$$.$fqn$:null){case "grammar":return this.$grammar$;case "start-production":return this.$start_production$;case "output-format":return this.$output_format$;default:return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k75999$$,$else__5326__auto__$jscomp$39$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IKVReduce$_kv_reduce$arity$3$=function($this__5343__auto__$jscomp$39$$,$f__5344__auto__$jscomp$39$$,$init__5345__auto__$jscomp$39$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($ret__5346__auto__$jscomp$39$$,$p__76007_v__5348__auto__$jscomp$39$$){var $k__5347__auto__$jscomp$39$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76007_v__5348__auto__$jscomp$39$$,0,null);$p__76007_v__5348__auto__$jscomp$39$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76007_v__5348__auto__$jscomp$39$$,
1,null);return $f__5344__auto__$jscomp$39$$.$cljs$core$IFn$_invoke$arity$3$?$f__5344__auto__$jscomp$39$$.$cljs$core$IFn$_invoke$arity$3$($ret__5346__auto__$jscomp$39$$,$k__5347__auto__$jscomp$39$$,$p__76007_v__5348__auto__$jscomp$39$$):$f__5344__auto__$jscomp$39$$($ret__5346__auto__$jscomp$39$$,$k__5347__auto__$jscomp$39$$,$p__76007_v__5348__auto__$jscomp$39$$)},$init__5345__auto__$jscomp$39$$,this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($this__5338__auto__$jscomp$39$$,$writer__5339__auto__$jscomp$39$$,$opts__5340__auto__$jscomp$39$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$39$$,function($keyval__5342__auto__$jscomp$39$$){return $APP.$cljs$core$pr_sequential_writer$$($writer__5339__auto__$jscomp$39$$,$APP.$cljs$core$pr_writer$$,""," ","",$opts__5340__auto__$jscomp$39$$,$keyval__5342__auto__$jscomp$39$$)},"#instaparse.core.Parser{",
", ","}",$opts__5340__auto__$jscomp$39$$,$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5183$grammar$$,this.$grammar$],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5184$start_production$$,this.$start_production$],null),new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5249$output_format$$,this.$output_format$],null)],null),this.$__extmap$))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IIterable$_iterator$arity$1$=function(){return new $APP.$cljs$core$RecordIter$$(this,3,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5183$grammar$$,$cljs$cst$5184$start_production$$,$cljs$cst$5249$output_format$$],null),$APP.$cljs$core$truth_$$(this.$__extmap$)?$APP.$cljs$core$_iterator$$(this.$__extmap$):$APP.$cljs$core$nil_iter$$())};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$__meta$};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICloneable$_clone$arity$1$=function(){return new $instaparse$core$Parser$$(this.$grammar$,this.$start_production$,this.$output_format$,this.$__meta$,this.$__extmap$,this.$__hash$)};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICounted$_count$arity$1$=function(){return 3+$APP.$cljs$core$count$$(this.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IHash$_hash$arity$1$=function(){var $h__5134__auto__$jscomp$69_h__5134__auto____$1$jscomp$69$$=this.$__hash$;return $h__5134__auto__$jscomp$69_h__5134__auto____$1$jscomp$69$$!=null?$h__5134__auto__$jscomp$69_h__5134__auto____$1$jscomp$69$$:this.$__hash$=$h__5134__auto__$jscomp$69_h__5134__auto____$1$jscomp$69$$=-360509877^$APP.$cljs$core$hash_unordered_coll$$(this)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IEquiv$_equiv$arity$2$=function($this76000$$,$other76001$$){return $other76001$$!=null&&this.constructor===$other76001$$.constructor&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$grammar$,$other76001$$.$grammar$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$start_production$,$other76001$$.$start_production$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$output_format$,$other76001$$.$output_format$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,
$other76001$$.$__extmap$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IMap$_dissoc$arity$2$=function($this__5333__auto__$jscomp$39$$,$k__5334__auto__$jscomp$39$$){return $APP.$cljs$core$contains_QMARK_$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5184$start_production$$,null,$cljs$cst$5183$grammar$$,null,$cljs$cst$5249$output_format$$,null],null),null),$k__5334__auto__$jscomp$39$$)?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_with_meta$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,this),
this.$__meta$),$k__5334__auto__$jscomp$39$$):new $instaparse$core$Parser$$(this.$grammar$,this.$start_production$,this.$output_format$,this.$__meta$,$APP.$cljs$core$not_empty$$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.$__extmap$,$k__5334__auto__$jscomp$39$$)),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_contains_key_QMARK_$arity$2$=function($this__5330__auto__$jscomp$39$$,$k75999$jscomp$1$$){switch($k75999$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$k75999$jscomp$1$$.$fqn$:null){case "grammar":case "start-production":case "output-format":return!0;default:return $APP.$cljs$core$contains_QMARK_$$(this.$__extmap$,$k75999$jscomp$1$$)}};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IAssociative$_assoc$arity$3$=function($this__5331__auto__$jscomp$39$$,$k__5332__auto__$jscomp$39$$,$G__75998$jscomp$1$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5183$grammar$$,$k__5332__auto__$jscomp$39$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5183$grammar$$,$k__5332__auto__$jscomp$39$$))?
new $instaparse$core$Parser$$($G__75998$jscomp$1$$,this.$start_production$,this.$output_format$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5184$start_production$$,$k__5332__auto__$jscomp$39$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5184$start_production$$,$k__5332__auto__$jscomp$39$$))?new $instaparse$core$Parser$$(this.$grammar$,
$G__75998$jscomp$1$$,this.$output_format$,this.$__meta$,this.$__extmap$,null):$APP.$cljs$core$truth_$$($APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$?$APP.$cljs$core$keyword_identical_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5249$output_format$$,$k__5332__auto__$jscomp$39$$):$APP.$cljs$core$keyword_identical_QMARK_$$($cljs$cst$5249$output_format$$,$k__5332__auto__$jscomp$39$$))?new $instaparse$core$Parser$$(this.$grammar$,this.$start_production$,$G__75998$jscomp$1$$,
this.$__meta$,this.$__extmap$,null):new $instaparse$core$Parser$$(this.$grammar$,this.$start_production$,this.$output_format$,this.$__meta$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.$__extmap$,$k__5332__auto__$jscomp$39$$,$G__75998$jscomp$1$$),null)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ISeqable$_seq$arity$1$=function(){return $APP.$cljs$core$seq$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$MapEntry$$($cljs$cst$5183$grammar$$,this.$grammar$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5184$start_production$$,this.$start_production$,null),new $APP.$cljs$core$MapEntry$$($cljs$cst$5249$output_format$$,this.$output_format$,
null)],null),this.$__extmap$))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IWithMeta$_with_meta$arity$2$=function($this__5322__auto__$jscomp$39$$,$G__75998$jscomp$2$$){return new $instaparse$core$Parser$$(this.$grammar$,this.$start_production$,this.$output_format$,$G__75998$jscomp$2$$,this.$__extmap$,this.$__hash$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$ICollection$_conj$arity$2$=function($this__5328__auto__$jscomp$39$$,$entry__5329__auto__$jscomp$39$$){return $APP.$cljs$core$vector_QMARK_$$($entry__5329__auto__$jscomp$39$$)?this.$cljs$core$IAssociative$_assoc$arity$3$(null,$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$39$$,0),$APP.$cljs$core$_nth$$($entry__5329__auto__$jscomp$39$$,1)):$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$_conj$$,this,$entry__5329__auto__$jscomp$39$$)};
$APP.$JSCompiler_prototypeAlias$$.call=function($unused__14253__auto__$jscomp$32$$){switch(arguments.length-1){case 1:return this.$cljs$core$IFn$_invoke$arity$1$(arguments[1]);case 3:return this.$cljs$core$IFn$_invoke$arity$3$(arguments[1],arguments[2],arguments[3]);case 5:return this.$cljs$core$IFn$_invoke$arity$5$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);case 7:return this.$cljs$core$IFn$_invoke$arity$7$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],
arguments[7]);case 9:return this.$cljs$core$IFn$_invoke$arity$9$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9]);case 11:return this.$cljs$core$IFn$_invoke$arity$11$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11]);case 13:return this.$cljs$core$IFn$_invoke$arity$13$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],
arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13]);case 15:return this.$cljs$core$IFn$_invoke$arity$15$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15]);case 17:return this.$cljs$core$IFn$_invoke$arity$17$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],
arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17]);case 19:return this.$cljs$core$IFn$_invoke$arity$19$(arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18],arguments[19]);case 21:return this.$cljs$core$IFn$_invoke$arity$21$(arguments[1],
arguments[2],arguments[3],arguments[4],arguments[5],arguments[6],arguments[7],arguments[8],arguments[9],arguments[10],arguments[11],arguments[12],arguments[13],arguments[14],arguments[15],arguments[16],arguments[17],arguments[18],arguments[19],arguments[20],arguments[21]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length-1)].join(""));}};
$APP.$JSCompiler_prototypeAlias$$.apply=function($self__$jscomp$7099$$,$args76004$$){return this.call.apply(this,[this].concat($APP.$cljs$core$aclone$$($args76004$$)))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$1$=function($text$jscomp$119$$){return $instaparse$core$parse$$(this,$text$jscomp$119$$)};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$3$=function($text$jscomp$120$$,$key1$jscomp$3$$,$val1$jscomp$8$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$120$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$key1$jscomp$3$$,$val1$jscomp$8$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$5$=function($text$jscomp$121$$,$key1$jscomp$4$$,$val1$jscomp$9$$,$key2$jscomp$3$$,$val2$jscomp$8$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$121$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$key1$jscomp$4$$,$val1$jscomp$9$$,$key2$jscomp$3$$,$val2$jscomp$8$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$7$=function($text$jscomp$122$$,$key1$jscomp$5$$,$val1$jscomp$10$$,$key2$jscomp$4$$,$val2$jscomp$9$$,$key3$jscomp$1$$,$val3$jscomp$2$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$122$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$key1$jscomp$5$$,$val1$jscomp$10$$,$key2$jscomp$4$$,$val2$jscomp$9$$,$key3$jscomp$1$$,$val3$jscomp$2$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$9$=function($text$jscomp$123$$,$a$jscomp$417$$,$b$jscomp$344$$,$c$jscomp$302$$,$d$jscomp$235$$,$e$jscomp$335$$,$f$jscomp$842$$,$g$jscomp$149$$,$h$jscomp$167$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$123$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$417$$,$b$jscomp$344$$,$c$jscomp$302$$,$d$jscomp$235$$,$e$jscomp$335$$,$f$jscomp$842$$,$g$jscomp$149$$,$h$jscomp$167$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$11$=function($text$jscomp$124$$,$a$jscomp$418$$,$b$jscomp$345$$,$c$jscomp$303$$,$d$jscomp$236$$,$e$jscomp$336$$,$f$jscomp$843$$,$g$jscomp$150$$,$h$jscomp$168$$,$i$jscomp$518$$,$j$jscomp$115$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$124$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$418$$,$b$jscomp$345$$,$c$jscomp$303$$,$d$jscomp$236$$,$e$jscomp$336$$,$f$jscomp$843$$,
$g$jscomp$150$$,$h$jscomp$168$$,$i$jscomp$518$$,$j$jscomp$115$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$13$=function($text$jscomp$125$$,$a$jscomp$419$$,$b$jscomp$346$$,$c$jscomp$304$$,$d$jscomp$237$$,$e$jscomp$337$$,$f$jscomp$844$$,$g$jscomp$151$$,$h$jscomp$169$$,$i$jscomp$519$$,$j$jscomp$116$$,$k$jscomp$681$$,$l$jscomp$107$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$125$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$419$$,$b$jscomp$346$$,$c$jscomp$304$$,$d$jscomp$237$$,
$e$jscomp$337$$,$f$jscomp$844$$,$g$jscomp$151$$,$h$jscomp$169$$,$i$jscomp$519$$,$j$jscomp$116$$,$k$jscomp$681$$,$l$jscomp$107$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$15$=function($text$jscomp$126$$,$a$jscomp$420$$,$b$jscomp$347$$,$c$jscomp$305$$,$d$jscomp$238$$,$e$jscomp$338$$,$f$jscomp$845$$,$g$jscomp$152$$,$h$jscomp$170$$,$i$jscomp$520$$,$j$jscomp$117$$,$k$jscomp$682$$,$l$jscomp$108$$,$m$jscomp$230$$,$n$jscomp$297$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$126$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$420$$,$b$jscomp$347$$,
$c$jscomp$305$$,$d$jscomp$238$$,$e$jscomp$338$$,$f$jscomp$845$$,$g$jscomp$152$$,$h$jscomp$170$$,$i$jscomp$520$$,$j$jscomp$117$$,$k$jscomp$682$$,$l$jscomp$108$$,$m$jscomp$230$$,$n$jscomp$297$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$17$=function($text$jscomp$127$$,$a$jscomp$421$$,$b$jscomp$348$$,$c$jscomp$306$$,$d$jscomp$239$$,$e$jscomp$339$$,$f$jscomp$846$$,$g$jscomp$153$$,$h$jscomp$171$$,$i$jscomp$521$$,$j$jscomp$118$$,$k$jscomp$683$$,$l$jscomp$109$$,$m$jscomp$231$$,$n$jscomp$298$$,$o$jscomp$273$$,$p$jscomp$247$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$127$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$421$$,
$b$jscomp$348$$,$c$jscomp$306$$,$d$jscomp$239$$,$e$jscomp$339$$,$f$jscomp$846$$,$g$jscomp$153$$,$h$jscomp$171$$,$i$jscomp$521$$,$j$jscomp$118$$,$k$jscomp$683$$,$l$jscomp$109$$,$m$jscomp$231$$,$n$jscomp$298$$,$o$jscomp$273$$,$p$jscomp$247$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$19$=function($text$jscomp$128$$,$a$jscomp$422$$,$b$jscomp$349$$,$c$jscomp$307$$,$d$jscomp$240$$,$e$jscomp$340$$,$f$jscomp$847$$,$g$jscomp$154$$,$h$jscomp$172$$,$i$jscomp$522$$,$j$jscomp$119$$,$k$jscomp$684$$,$l$jscomp$110$$,$m$jscomp$232$$,$n$jscomp$299$$,$o$jscomp$274$$,$p$jscomp$248$$){return $instaparse$core$parse$$.$cljs$core$IFn$_invoke$arity$variadic$(this,$text$jscomp$128$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$a$jscomp$422$$,
$b$jscomp$349$$,$c$jscomp$307$$,$d$jscomp$240$$,$e$jscomp$340$$,$f$jscomp$847$$,$g$jscomp$154$$,$h$jscomp$172$$,$i$jscomp$522$$,$j$jscomp$119$$,$k$jscomp$684$$,$l$jscomp$110$$,$m$jscomp$232$$,$n$jscomp$299$$,$o$jscomp$274$$,$p$jscomp$248$$]))};
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IFn$_invoke$arity$21$=function($text$jscomp$129$$,$a$jscomp$423$$,$b$jscomp$350$$,$c$jscomp$308$$,$d$jscomp$241$$,$e$jscomp$341$$,$f$jscomp$848$$,$g$jscomp$155$$,$h$jscomp$173$$,$i$jscomp$523$$,$j$jscomp$120$$,$k$jscomp$685$$,$l$jscomp$111$$,$m$jscomp$233$$,$n$jscomp$300$$,$o$jscomp$275$$,$p$jscomp$249$$,$q$jscomp$40$$,$r$jscomp$133$$,$s$jscomp$560$$,$more$jscomp$52$$){return $APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$variadic$($instaparse$core$parse$$,
this,$text$jscomp$129$$,$a$jscomp$423$$,$b$jscomp$350$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$c$jscomp$308$$,$d$jscomp$241$$,$e$jscomp$341$$,$f$jscomp$848$$,$g$jscomp$155$$,$h$jscomp$173$$,$i$jscomp$523$$,$j$jscomp$120$$,$k$jscomp$685$$,$l$jscomp$111$$,$m$jscomp$233$$,$n$jscomp$300$$,$o$jscomp$275$$,$p$jscomp$249$$,$q$jscomp$40$$,$r$jscomp$133$$,$s$jscomp$560$$,$more$jscomp$52$$]))};$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$;
$APP.$JSCompiler_prototypeAlias$$.$cljs$core$IPrintWithWriter$_pr_writer$arity$3$=function($parser$jscomp$77$$,$writer$jscomp$173$$){return $APP.$cljs$core$_write$$($writer$jscomp$173$$,$instaparse$print$Parser__GT_str$$(this))};var $instaparse$core$standard_whitespace_parsers$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5304$standard$$,$instaparse$core$parser$$("whitespace \x3d #'\\s+'"),$APP.$cljs$cst$5305$comma$$,$instaparse$core$parser$$("whitespace \x3d #'[,\\s]+'")],null);var $app$util$simple_math$parser$$=$instaparse$core$parser$$("opt-expr \x3d '' | expr\n     expr \x3d term (\x3cspaces\x3e ('+'|'-') \x3cspaces\x3e expr)* |\n            ('+'|'-'|'*'|'/') \x3cspaces\x3e factor\n     term \x3d factor (\x3cspaces\x3e ('*'|'/') \x3cspaces\x3e term)*\n     factor \x3d number | ('(' \x3cspaces\x3e expr \x3cspaces\x3e ')')\n     number \x3d #'[0-9]*[.,]?[0-9]+%?'\n     spaces \x3d ' '*"),$app$util$simple_math$interpret$$=function $app$util$simple_math$interpret$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,
$init_value$$){var $G__76097_token$jscomp$109_value__$1$jscomp$34$$=$APP.$cljs$core$first$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$),$args$jscomp$261$$=$APP.$cljs$core$rest$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$);switch($G__76097_token$jscomp$109_value__$1$jscomp$34$$ instanceof $APP.$cljs$core$Keyword$$?$G__76097_token$jscomp$109_value__$1$jscomp$34$$.$fqn$:null){case "opt-expr":if($APP.$cljs$core$empty_QMARK_$$($args$jscomp$261$$))return null;
$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=$APP.$cljs$core$first$$($args$jscomp$261$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,$init_value$$):$app$util$simple_math$interpret$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,$init_value$$);
case "expr":if($APP.$cljs$core$truth_$$($APP.$clojure$string$index_of$cljs$0core$0IFn$0_invoke$0arity$02$$("+-*/",$APP.$cljs$core$first$$($args$jscomp$261$$)))){var $G__76108_G__76113_operator$$=$APP.$cljs$core$first$$($args$jscomp$261$$);$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=function(){var $G__76094$$=$APP.$cljs$core$second$$($args$jscomp$261$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76094$$,
$init_value$$):$app$util$simple_math$interpret$$($G__76094$$,$init_value$$)}();$G__76097_token$jscomp$109_value__$1$jscomp$34$$=$G__76108_G__76113_operator$$;switch($G__76097_token$jscomp$109_value__$1$jscomp$34$$){case "+":return $init_value$$+$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;case "-":return 0-$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;case "*":return $init_value$$*$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;
case "/":return $init_value$$/$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76097_token$jscomp$109_value__$1$jscomp$34$$)].join(""));}}else{$G__76097_token$jscomp$109_value__$1$jscomp$34$$=$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=function(){var $G__76104$$=$APP.$cljs$core$first$$($args$jscomp$261$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?
$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76104$$,$init_value$$):$app$util$simple_math$interpret$$($G__76104$$,$init_value$$)}();for(var $rest_expr$$=$APP.$cljs$core$rest$$($args$jscomp$261$$);;){if($APP.$cljs$core$empty_QMARK_$$($rest_expr$$))return $G__76097_token$jscomp$109_value__$1$jscomp$34$$;$G__76108_G__76113_operator$$=$APP.$cljs$core$first$$($rest_expr$$);$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=function(){var $G__76106$$=
$APP.$cljs$core$second$$($rest_expr$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76106$$,$init_value$$):$app$util$simple_math$interpret$$($G__76106$$,$init_value$$)}();var $G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$=$APP.$cljs$core$rest$$($APP.$cljs$core$rest$$($rest_expr$$));switch($G__76108_G__76113_operator$$){case "+":$G__76097_token$jscomp$109_value__$1$jscomp$34$$+=$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;
$rest_expr$$=$G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$;continue;case "-":$G__76097_token$jscomp$109_value__$1$jscomp$34$$-=$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;$rest_expr$$=$G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$;continue;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76108_G__76113_operator$$)].join(""));}break}}break;case "term":$G__76097_token$jscomp$109_value__$1$jscomp$34$$=
$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=function(){var $G__76109$$=$APP.$cljs$core$first$$($args$jscomp$261$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76109$$,$init_value$$):$app$util$simple_math$interpret$$($G__76109$$,$init_value$$)}();for($rest_expr$$=$APP.$cljs$core$rest$$($args$jscomp$261$$);;){if($APP.$cljs$core$empty_QMARK_$$($rest_expr$$))return $G__76097_token$jscomp$109_value__$1$jscomp$34$$;
$G__76108_G__76113_operator$$=$APP.$cljs$core$first$$($rest_expr$$);$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=function(){var $G__76111$$=$APP.$cljs$core$second$$($rest_expr$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76111$$,$init_value$$):$app$util$simple_math$interpret$$($G__76111$$,$init_value$$)}();$G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$=
$APP.$cljs$core$rest$$($APP.$cljs$core$rest$$($rest_expr$$));switch($G__76108_G__76113_operator$$){case "*":$G__76097_token$jscomp$109_value__$1$jscomp$34$$*=$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;$rest_expr$$=$G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$;continue;case "/":$G__76097_token$jscomp$109_value__$1$jscomp$34$$/=$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$;$rest_expr$$=$G__76124_G__76126_G__76133_G__76135_rest_expr__$1$$;
continue;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76108_G__76113_operator$$)].join(""));}break}break;case "factor":if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$first$$($args$jscomp$261$$),"("))return $G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=$APP.$cljs$core$second$$($args$jscomp$261$$),$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,
$init_value$$):$app$util$simple_math$interpret$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,$init_value$$);$G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=$APP.$cljs$core$first$$($args$jscomp$261$$);return $app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$?$app$util$simple_math$interpret$$.$cljs$core$IFn$_invoke$arity$2$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,
$init_value$$):$app$util$simple_math$interpret$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,$init_value$$);case "number":return $G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$=$APP.$cuerdas$core$replace$$($APP.$cljs$core$first$$($args$jscomp$261$$),",","."),$APP.$cuerdas$core$ends_with_QMARK_$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,"%")?$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cuerdas$core$replace$$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$,
"%",""))/100*$init_value$$:$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($G__76090_G__76114_G__76116_second_value_tree$jscomp$24_value$jscomp$756_value_str$$);default:throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$(["Unknown token",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76097_token$jscomp$109_value__$1$jscomp$34$$),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($args$jscomp$261$$)].join(""),$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2211$validation$$,$APP.$cljs$cst$273$hint$$,["Unknown token",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76097_token$jscomp$109_value__$1$jscomp$34$$),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($args$jscomp$261$$)].join("")],null),null])),null);}};var $app$main$ui$components$numeric_input$numeric_input_STAR_$$=(0,$APP.$rumext$v2$forward_ref$$)(function($props_76143_props__$1$jscomp$63$$,$external_ref$jscomp$2_handle_key_down$jscomp$5$$){var $value_str$jscomp$1$$=$props_76143_props__$1$jscomp$63$$.value,$handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$=$props_76143_props__$1$jscomp$63$$.min,$handle_blur$jscomp$1_max_value$$=$props_76143_props__$1$jscomp$63$$.max,$handle_focus$jscomp$1_step_value$$=$props_76143_props__$1$jscomp$63$$.step,
$wrap_value_QMARK_$$=$props_76143_props__$1$jscomp$63$$["data-wrap"],$on_change$jscomp$29$$=$props_76143_props__$1$jscomp$63$$.onChange,$on_blur$jscomp$6$$=$props_76143_props__$1$jscomp$63$$.onBlur,$on_focus$jscomp$4$$=$props_76143_props__$1$jscomp$63$$.onFocus,$title$jscomp$30$$=$props_76143_props__$1$jscomp$63$$.title,$default$$jscomp$90$$=$props_76143_props__$1$jscomp$63$$["default"],$nillable_QMARK_$$=$props_76143_props__$1$jscomp$63$$.nillable,$class$$jscomp$48$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_76143_props__$1$jscomp$63$$.className,
""),$min_value__$1$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$),$max_value__$1$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($handle_blur$jscomp$1_max_value$$),$step_value__$1$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($handle_focus$jscomp$1_step_value$$,1),$default$__$1$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($default$$jscomp$90$$,
$APP.$cljs$core$truth_$$($nillable_QMARK_$$)?null:0),$integer_QMARK_$$=$props_76143_props__$1$jscomp$63$$.integer,$select_on_focus_QMARK_$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($props_76143_props__$1$jscomp$63$$.selectOnFocus,!0);$handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)();var $ref$jscomp$45$$=$APP.$cljs$core$truth_$$($external_ref$jscomp$2_handle_key_down$jscomp$5$$)?$external_ref$jscomp$2_handle_key_down$jscomp$5$$:$handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$,
$value$jscomp$757$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$value_str$jscomp$1$$)?$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$2$($value_str$jscomp$1$$,$default$__$1$$):null,$dirty_ref$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$last_value_STAR_$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$($value$jscomp$757$$),$parse_value$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($min_value__$1$$),
$APP.$rumext$v2$adapt$$($max_value__$1$$),$APP.$rumext$v2$adapt$$($value$jscomp$757$$),$APP.$rumext$v2$adapt$$($nillable_QMARK_$$),$APP.$rumext$v2$adapt$$($default$__$1$$),$APP.$rumext$v2$adapt$$($integer_QMARK_$$)],function(){var $G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);return $APP.$cljs$core$truth_$$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$)?($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$=
$app$util$simple_math$expr_eval$$($APP.$cuerdas$core$strip_suffix$$($APP.$app$util$dom$get_value$$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$),"."),$value$jscomp$757$$),$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$))?($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$=$APP.$app$common$data$min$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$max$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$truth_$$($integer_QMARK_$$)?
$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$):$G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$,-1073741824),1.0737418235E9),$G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$=$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($min_value__$1$$))?$APP.$app$common$data$max$$.$cljs$core$IFn$_invoke$arity$2$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$,
$min_value__$1$$):$G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$,$APP.$cljs$core$truth_$$($APP.$app$common$math$finite_QMARK_$$($max_value__$1$$))?$APP.$app$common$data$min$$.$cljs$core$IFn$_invoke$arity$2$($G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$,$max_value__$1$$):$G__76144_G__76145$jscomp$inline_12864_new_value$jscomp$9_temp__5825__auto__$jscomp$323$$):$APP.$cljs$core$truth_$$($nillable_QMARK_$$)?$default$__$1$$:
$value$jscomp$757$$):null}),$update_input$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($new_value$jscomp$10$$){var $temp__5825__auto__$jscomp$324$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$324$$)?$app$util$dom$set_value_BANG_$$($temp__5825__auto__$jscomp$324$$,$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($new_value$jscomp$10$$)):null}),$apply_value$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$29$$),
$APP.$rumext$v2$adapt$$($update_input$$),$APP.$rumext$v2$adapt$$($value$jscomp$757$$)],function($event$jscomp$263$$,$new_value$jscomp$11$$){$APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$$,!1);$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_value$jscomp$11$$,$value$jscomp$757$$)&&$APP.$cljs$core$fn_QMARK_$$($on_change$jscomp$29$$)&&($on_change$jscomp$29$$.$cljs$core$IFn$_invoke$arity$2$?$on_change$jscomp$29$$.$cljs$core$IFn$_invoke$arity$2$($new_value$jscomp$11$$,$event$jscomp$263$$):
$on_change$jscomp$29$$($new_value$jscomp$11$$,$event$jscomp$263$$));return $update_input$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$$.$cljs$core$IFn$_invoke$arity$1$($new_value$jscomp$11$$):$update_input$$($new_value$jscomp$11$$)}),$set_delta$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($wrap_value_QMARK_$$),$APP.$rumext$v2$adapt$$($min_value__$1$$),$APP.$rumext$v2$adapt$$($max_value__$1$$),$APP.$rumext$v2$adapt$$($parse_value$$),$APP.$rumext$v2$adapt$$($apply_value$$)],
function($event$jscomp$264$$,$up_QMARK_$$,$down_QMARK_$$){var $current_value$jscomp$4$$=$parse_value$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$$(),$current_value__$1_new_value__$1_new_value__$2$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$669$$=$APP.$cljs$core$not$$($current_value$jscomp$4$$);return $and__5023__auto__$jscomp$669$$?$APP.$cljs$core$truth_$$($down_QMARK_$$)?$max_value__$1$$:$down_QMARK_$$:$and__5023__auto__$jscomp$669$$}())?
$max_value__$1$$:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$670$$=$APP.$cljs$core$not$$($current_value$jscomp$4$$);return $and__5023__auto__$jscomp$670$$?$APP.$cljs$core$truth_$$($up_QMARK_$$)?$min_value__$1$$:$up_QMARK_$$:$and__5023__auto__$jscomp$670$$}())?$min_value__$1$$:$APP.$cljs$core$not$$($current_value$jscomp$4$$)?$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($default$__$1$$,0):$current_value$jscomp$4$$;if($APP.$cljs$core$truth_$$($current_value__$1_new_value__$1_new_value__$2$$)){var $new_value$jscomp$12$$=
$current_value__$1_new_value__$1_new_value__$2$$+($event$jscomp$264$$.shiftKey?$APP.$cljs$core$truth_$$($up_QMARK_$$)?$step_value__$1$$*10:$step_value__$1$$*-10:$event$jscomp$264$$.altKey?$APP.$cljs$core$truth_$$($up_QMARK_$$)?$step_value__$1$$*.1:$step_value__$1$$*-.1:$APP.$cljs$core$truth_$$($up_QMARK_$$)?$step_value__$1$$:-$step_value__$1$$);$current_value__$1_new_value__$1_new_value__$2$$=$APP.$cljs$core$truth_$$(function(){if($APP.$cljs$core$truth_$$($wrap_value_QMARK_$$)){var $and__5023__auto____$1$jscomp$115_and__5023__auto____$2$jscomp$35$$=
$APP.$app$common$data$num_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($max_value__$1$$,$min_value__$1$$);return $and__5023__auto____$1$jscomp$115_and__5023__auto____$2$jscomp$35$$?($and__5023__auto____$1$jscomp$115_and__5023__auto____$2$jscomp$35$$=$new_value$jscomp$12$$>$max_value__$1$$)?$up_QMARK_$$:$and__5023__auto____$1$jscomp$115_and__5023__auto____$2$jscomp$35$$:$and__5023__auto____$1$jscomp$115_and__5023__auto____$2$jscomp$35$$}return $wrap_value_QMARK_$$}())?$new_value$jscomp$12$$-$max_value__$1$$+
$min_value__$1$$-$step_value__$1$$:$APP.$cljs$core$truth_$$(function(){if($APP.$cljs$core$truth_$$($wrap_value_QMARK_$$)){var $and__5023__auto____$1$jscomp$116_and__5023__auto____$2$jscomp$36$$=$APP.$app$common$data$num_QMARK_$cljs$0core$0IFn$0_invoke$0arity$02$$($max_value__$1$$,$min_value__$1$$);return $and__5023__auto____$1$jscomp$116_and__5023__auto____$2$jscomp$36$$?($and__5023__auto____$1$jscomp$116_and__5023__auto____$2$jscomp$36$$=$new_value$jscomp$12$$<$min_value__$1$$)?$down_QMARK_$$:$and__5023__auto____$1$jscomp$116_and__5023__auto____$2$jscomp$36$$:
$and__5023__auto____$1$jscomp$116_and__5023__auto____$2$jscomp$36$$}return $wrap_value_QMARK_$$}())?$new_value$jscomp$12$$-$min_value__$1$$+$max_value__$1$$+$step_value__$1$$:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$673$$=$APP.$app$common$math$finite_QMARK_$$($min_value__$1$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$673$$)?$new_value$jscomp$12$$<$min_value__$1$$:$and__5023__auto__$jscomp$673$$}())?$min_value__$1$$:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$674$$=
$APP.$app$common$math$finite_QMARK_$$($max_value__$1$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$674$$)?$new_value$jscomp$12$$>$max_value__$1$$:$and__5023__auto__$jscomp$674$$}())?$max_value__$1$$:$new_value$jscomp$12$$;$current_value__$1_new_value__$1_new_value__$2$$=$APP.$cljs$core$truth_$$($integer_QMARK_$$)?$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($current_value__$1_new_value__$1_new_value__$2$$):$current_value__$1_new_value__$1_new_value__$2$$;return $apply_value$$.$cljs$core$IFn$_invoke$arity$2$?
$apply_value$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$264$$,$current_value__$1_new_value__$1_new_value__$2$$):$apply_value$$($event$jscomp$264$$,$current_value__$1_new_value__$1_new_value__$2$$)}return null});$external_ref$jscomp$2_handle_key_down$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($set_delta$$),$APP.$rumext$v2$adapt$$($apply_value$$),$APP.$rumext$v2$adapt$$($update_input$$),$APP.$rumext$v2$adapt$$($parse_value$$)],function($event$jscomp$265$$){$APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$$,
!0);var $up_QMARK_$jscomp$1$$=(0,$APP.$app$util$keyboard$up_arrow_QMARK_$$)($event$jscomp$265$$),$down_QMARK_$jscomp$1$$=(0,$APP.$app$util$keyboard$down_arrow_QMARK_$$)($event$jscomp$265$$),$enter_QMARK_$jscomp$1$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$265$$),$esc_QMARK_$jscomp$2$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$265$$),$node$jscomp$389$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($up_QMARK_$jscomp$1$$)?$up_QMARK_$jscomp$1$$:
$down_QMARK_$jscomp$1$$)&&($set_delta$$.$cljs$core$IFn$_invoke$arity$3$?$set_delta$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$265$$,$up_QMARK_$jscomp$1$$,$down_QMARK_$jscomp$1$$):$set_delta$$($event$jscomp$265$$,$up_QMARK_$jscomp$1$$,$down_QMARK_$jscomp$1$$));$APP.$cljs$core$reset_BANG_$$($last_value_STAR_$$,$parse_value$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$$());$APP.$cljs$core$truth_$$($enter_QMARK_$jscomp$1$$)&&$APP.$app$util$dom$blur_BANG_$$($node$jscomp$389$$);
return $APP.$cljs$core$truth_$$($esc_QMARK_$jscomp$2$$)?($update_input$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$$.$cljs$core$IFn$_invoke$arity$1$($value_str$jscomp$1$$):$update_input$$($value_str$jscomp$1$$),$APP.$app$util$dom$blur_BANG_$$($node$jscomp$389$$)):null});$handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($parse_value$$)],function(){return $APP.$cljs$core$reset_BANG_$$($last_value_STAR_$$,
$parse_value$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$$())});var $handle_mouse_wheel$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($set_delta$$)],function($event$jscomp$266$$){var $G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);if($APP.$cljs$core$truth_$$($G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$)&&$APP.$cljs$core$truth_$$($G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$!=
null?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$globals$document$$.activeElement,$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$):null)){$APP.$app$util$dom$prevent_default$$($event$jscomp$266$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$266$$);$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$=$app$util$dom$get_delta_position$$($event$jscomp$266$$);$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$=$APP.$cljs$core$__destructure_map$$($G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$);
var $G__76150_y$jscomp$457$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$,$APP.$cljs$cst$1500$y$$);$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$=$G__76150_y$jscomp$457$$<0;$G__76150_y$jscomp$457$$=$G__76150_y$jscomp$457$$>0;return $set_delta$$.$cljs$core$IFn$_invoke$arity$3$?$set_delta$$.$cljs$core$IFn$_invoke$arity$3$($event$jscomp$266$$,$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$,
$G__76150_y$jscomp$457$$):$set_delta$$($event$jscomp$266$$,$G__76149_map__76147_map__76147__$1_temp__5825__auto__$jscomp$325$$,$G__76150_y$jscomp$457$$)}return null});$handle_blur$jscomp$1_max_value$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($parse_value$$),$APP.$rumext$v2$adapt$$($apply_value$$),$APP.$rumext$v2$adapt$$($update_input$$),$APP.$rumext$v2$adapt$$($on_blur$jscomp$6$$)],function($event$jscomp$267$$){if($APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dirty_ref$$))){var $new_value_76151_or__5025__auto__$jscomp$inline_12866$$=
$APP.$cljs$core$_deref$$($last_value_STAR_$$);$new_value_76151_or__5025__auto__$jscomp$inline_12866$$=$APP.$cljs$core$truth_$$($new_value_76151_or__5025__auto__$jscomp$inline_12866$$)?$new_value_76151_or__5025__auto__$jscomp$inline_12866$$:$default$__$1$$;$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($nillable_QMARK_$$)?$nillable_QMARK_$$:$new_value_76151_or__5025__auto__$jscomp$inline_12866$$)?$apply_value$$.$cljs$core$IFn$_invoke$arity$2$?$apply_value$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$267$$,
$new_value_76151_or__5025__auto__$jscomp$inline_12866$$):$apply_value$$($event$jscomp$267$$,$new_value_76151_or__5025__auto__$jscomp$inline_12866$$):$update_input$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$$.$cljs$core$IFn$_invoke$arity$1$($new_value_76151_or__5025__auto__$jscomp$inline_12866$$):$update_input$$($new_value_76151_or__5025__auto__$jscomp$inline_12866$$);return $APP.$cljs$core$fn_QMARK_$$($on_blur$jscomp$6$$)?$on_blur$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$on_blur$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$267$$):
$on_blur$jscomp$6$$($event$jscomp$267$$):null}return null});var $handle_unmount$$=$app$main$ui$hooks$use_ref_callback$$($handle_blur$jscomp$1_max_value$$),$on_click$jscomp$32$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$268_target$jscomp$138$$){$event$jscomp$268_target$jscomp$138$$=$APP.$app$util$dom$get_target$$($event$jscomp$268_target$jscomp$138$$);var $node$jscomp$391$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);return $node$jscomp$391$$!=null&&$APP.$cljs$core$not$$($APP.$app$util$dom$child_QMARK_$$($node$jscomp$391$$,
$event$jscomp$268_target$jscomp$138$$))?$APP.$app$util$dom$blur_BANG_$$($node$jscomp$391$$):null});$handle_focus$jscomp$1_step_value$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_focus$jscomp$4$$),$APP.$rumext$v2$adapt$$($select_on_focus_QMARK_$$)],function($event$jscomp$269$$){$APP.$cljs$core$reset_BANG_$$($last_value_STAR_$$,$parse_value$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$$());var $target$jscomp$139$$=
$APP.$app$util$dom$get_target$$($event$jscomp$269$$);$APP.$cljs$core$truth_$$($on_focus$jscomp$4$$)&&($APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$$,!0),$on_focus$jscomp$4$$.$cljs$core$IFn$_invoke$arity$1$?$on_focus$jscomp$4$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$269$$):$on_focus$jscomp$4$$($event$jscomp$269$$));return $APP.$cljs$core$truth_$$($select_on_focus_QMARK_$$)?($APP.$app$util$dom$select_text_BANG_$$($target$jscomp$139$$),$target$jscomp$139$$.addEventListener("mouseup",$APP.$app$util$dom$prevent_default$$,
{once:!0})):null});$props_76143_props__$1$jscomp$63$$=$APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$set_BANG_$$($APP.$app$util$object$unset_BANG_$$($APP.$app$util$object$unset_BANG_$$($APP.$app$util$object$unset_BANG_$$($APP.$app$util$object$clone$$($props_76143_props__$1$jscomp$63$$),
"selectOnFocus"),"nillable"),"integer"),"value"),"onChange",$handle_change$jscomp$2_local_ref$jscomp$2_min_value$jscomp$1$$),"className",$class$$jscomp$48$$),"type","text"),"ref",$ref$jscomp$45$$),"defaultValue",$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($value$jscomp$757$$)),"title",$title$jscomp$30$$),"onKeyDown",$external_ref$jscomp$2_handle_key_down$jscomp$5$$),"onBlur",$handle_blur$jscomp$1_max_value$$),"onFocus",$handle_focus$jscomp$1_step_value$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value$jscomp$757$$)],
function(){var $temp__5825__auto__$jscomp$326$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$326$$)?$app$util$dom$set_value_BANG_$$($temp__5825__auto__$jscomp$326$$,$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$02$$($value$jscomp$757$$)):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($handle_unmount$$)],function(){return $handle_unmount$$});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){var $keys$jscomp$55$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"pointerdown",$on_click$jscomp$32$$),$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"click",$on_click$jscomp$32$$)],null);return function(){return $APP.$cljs$core$run_BANG_$$($APP.$goog$events$unlistenByKey$$,$keys$jscomp$55$$)}});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($handle_mouse_wheel$$)],
function(){var $temp__5825__auto__$jscomp$327$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$45$$);if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$327$$)){var $key$jscomp$406$$=$APP.$goog$events$listen$$($temp__5825__auto__$jscomp$327$$,"wheel",$handle_mouse_wheel$$,{passive:!1});return function(){return $APP.$goog$events$unlistenByKey$$($key$jscomp$406$$)}}return null});return(0,$APP.$rumext$v2$create_element$$)("input",$props_76143_props__$1$jscomp$63$$)});var $app$main$ui$ds$controls$utilities$input_field$input_field_STAR_$$=(0,$APP.$rumext$v2$forward_ref$$)(function($input_ref$jscomp$2_props_74756$$,$ref$jscomp$46$$){var $aria_label$jscomp$6$$=void 0,$max_length$jscomp$3_props__$1$jscomp$64$$=void 0,$tooltip_id$jscomp$2_variant$jscomp$20$$=void 0,$slot_end$$=void 0,$type$jscomp$583_type__$1$jscomp$12$$=void 0,$icon$jscomp$17$$=void 0,$hint_type$$=void 0,$id$jscomp$877_inside_class$$=void 0,$class$$jscomp$50$$=void 0,$slot_start$$=void 0,$has_hint$$=
void 0,$on_icon_click_props$jscomp$290$$=void 0;({"aria-label":$aria_label$jscomp$6$$,maxLength:$max_length$jscomp$3_props__$1$jscomp$64$$,variant:$tooltip_id$jscomp$2_variant$jscomp$20$$,slotEnd:$slot_end$$,type:$type$jscomp$583_type__$1$jscomp$12$$,icon:$icon$jscomp$17$$,hintType:$hint_type$$,id:$id$jscomp$877_inside_class$$,className:$class$$jscomp$50$$,slotStart:$slot_start$$,hasHint:$has_hint$$,...$on_icon_click_props$jscomp$290$$}=$input_ref$jscomp$2_props_74756$$);$input_ref$jscomp$2_props_74756$$=
(0,$APP.$rumext$v2$use_ref$$)();$type$jscomp$583_type__$1$jscomp$12$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$583_type__$1$jscomp$12$$,"text");var $variant__$1$jscomp$4$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($tooltip_id$jscomp$2_variant$jscomp$20$$,"dense");$tooltip_id$jscomp$2_variant$jscomp$20$$=(0,$APP.$rumext$v2$use_id$$)();$max_length$jscomp$3_props__$1$jscomp$64$$={...$on_icon_click_props$jscomp$290$$,className:($class$$jscomp$50$$??
"")+" main_ui_ds_controls_utilities_input_field__input "+($icon$jscomp$17$$!=null?"main_ui_ds_controls_utilities_input_field__input-with-icon":""),ref:$APP.$cljs$core$truth_$$($ref$jscomp$46$$)?$ref$jscomp$46$$:$input_ref$jscomp$2_props_74756$$,"aria-invalid":$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$678$$=$has_hint$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$678$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hint_type$$,"error"):$and__5023__auto__$jscomp$678$$}())?
"true":null,"aria-describedby":$APP.$cljs$core$truth_$$($has_hint$$)?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$877_inside_class$$),"-hint"].join(""):null,"aria-labelledby":$tooltip_id$jscomp$2_variant$jscomp$20$$,type:$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$583_type__$1$jscomp$12$$,"text"),id:$id$jscomp$877_inside_class$$,maxLength:$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($max_length$jscomp$3_props__$1$jscomp$64$$,255)};
$id$jscomp$877_inside_class$$="main_ui_ds_controls_utilities_input_field__input-wrapper "+($APP.$cljs$core$truth_$$($has_hint$$)?"main_ui_ds_controls_utilities_input_field__has-hint":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hint_type$$,"hint")?"main_ui_ds_controls_utilities_input_field__hint-type-hint":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hint_type$$,"warning")?"main_ui_ds_controls_utilities_input_field__hint-type-warning":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hint_type$$,
"error")?"main_ui_ds_controls_utilities_input_field__hint-type-error":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($variant__$1$jscomp$4$$,"seamless")?"main_ui_ds_controls_utilities_input_field__variant-seamless":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($variant__$1$jscomp$4$$,"dense")?"main_ui_ds_controls_utilities_input_field__variant-dense":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($variant__$1$jscomp$4$$,"comfortable")?"main_ui_ds_controls_utilities_input_field__variant-comfortable":
"");$on_icon_click_props$jscomp$290$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ref$jscomp$46$$)],function(){return $APP.$app$util$dom$focus_BANG_$$($APP.$rumext$v2$ref_val$$($ref$jscomp$46$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:($id$jscomp$877_inside_class$$??"")+" "+($class$$jscomp$50$$??""),children:[$slot_start$$!=null?$slot_start$$:null,$icon$jscomp$17$$!=null?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,
{iconId:$icon$jscomp$17$$,className:"main_ui_ds_controls_utilities_input_field__icon",size:"s",onClick:$on_icon_click_props$jscomp$290$$}):null,$APP.$cljs$core$truth_$$($aria_label$jscomp$6$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$tooltip$tooltip$tooltip_STAR_$$,{content:$aria_label$jscomp$6$$,triggerRef:$APP.$cljs$core$truth_$$($ref$jscomp$46$$)?$ref$jscomp$46$$:$input_ref$jscomp$2_props_74756$$,className:"main_ui_ds_controls_utilities_input_field__tooltip-wrapper",id:$tooltip_id$jscomp$2_variant$jscomp$20$$,
children:(0,$APP.$rumext$v2$create_element$$)("input",$max_length$jscomp$3_props__$1$jscomp$64$$)}):(0,$APP.$rumext$v2$create_element$$)("input",$max_length$jscomp$3_props__$1$jscomp$64$$),$slot_end$$!=null?$slot_end$$:null]})});var $app$main$ui$ds$controls$input$input_STAR_$$=(0,$APP.$rumext$v2$forward_ref$$)(function($id__$1$jscomp$15_props_74878$$,$ref$jscomp$47_ref__$1$$){var $hint_formated$$=void 0,$has_hint$jscomp$1_max_length$jscomp$4$$=void 0,$variant$jscomp$21_variant__$1$jscomp$5$$=void 0,$type$jscomp$584_type__$1$jscomp$13$$=void 0,$hint_type$jscomp$1$$=void 0,$is_optional$jscomp$1_is_optional__$1$jscomp$1$$=void 0,$hint_message$$=void 0,$label$jscomp$33$$=void 0,$id$jscomp$878$$=void 0,$class$$jscomp$52$$=void 0,
$props$jscomp$292_props__$1$jscomp$66$$=void 0;({hintFormated:$hint_formated$$,maxLength:$has_hint$jscomp$1_max_length$jscomp$4$$,variant:$variant$jscomp$21_variant__$1$jscomp$5$$,type:$type$jscomp$584_type__$1$jscomp$13$$,hintType:$hint_type$jscomp$1$$,isOptional:$is_optional$jscomp$1_is_optional__$1$jscomp$1$$,hintMessage:$hint_message$$,label:$label$jscomp$33$$,id:$id$jscomp$878$$,className:$class$$jscomp$52$$,...$props$jscomp$292_props__$1$jscomp$66$$}=$id__$1$jscomp$15_props_74878$$);$id__$1$jscomp$15_props_74878$$=
function(){var $or__5025__auto__$jscomp$1002$$=$id$jscomp$878$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1002$$)?$or__5025__auto__$jscomp$1002$$:(0,$APP.$rumext$v2$use_id$$)()}();$variant$jscomp$21_variant__$1$jscomp$5$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($variant$jscomp$21_variant__$1$jscomp$5$$,"dense");var $hint_class$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$679$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("error",
$hint_type$jscomp$1$$);return $and__5023__auto__$jscomp$679$$?$hint_formated$$:$and__5023__auto__$jscomp$679$$}())?"main_ui_ds_controls_input__hint-formated":"";$is_optional$jscomp$1_is_optional__$1$jscomp$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($is_optional$jscomp$1_is_optional__$1$jscomp$1$$,!1);$type$jscomp$584_type__$1$jscomp$13$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$584_type__$1$jscomp$13$$,"text");var $max_length__$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($has_hint$jscomp$1_max_length$jscomp$4$$,
255);$has_hint$jscomp$1_max_length$jscomp$4$$=$hint_message$$!=null&&!$APP.$cuerdas$core$blank_QMARK_$$($hint_message$$);var $has_label$$=!$APP.$cuerdas$core$blank_QMARK_$$($label$jscomp$33$$);$ref$jscomp$47_ref__$1$$=$APP.$cljs$core$truth_$$($ref$jscomp$47_ref__$1$$)?$ref$jscomp$47_ref__$1$$:(0,$APP.$rumext$v2$use_ref$$)();$props$jscomp$292_props__$1$jscomp$66$$={...$props$jscomp$292_props__$1$jscomp$66$$,ref:$ref$jscomp$47_ref__$1$$,type:$type$jscomp$584_type__$1$jscomp$13$$,id:$id__$1$jscomp$15_props_74878$$,
maxLength:$max_length__$1$$,hasHint:$has_hint$jscomp$1_max_length$jscomp$4$$,hintType:$hint_type$jscomp$1$$,variant:$variant$jscomp$21_variant__$1$jscomp$5$$};return(0,$APP.$rumext$v2$jsxs$$)("div",{className:""+($class$$jscomp$52$$??"")+" main_ui_ds_controls_input__input-wrapper "+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($variant$jscomp$21_variant__$1$jscomp$5$$,"dense")?"main_ui_ds_controls_input__variant-dense":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($variant$jscomp$21_variant__$1$jscomp$5$$,
"comfortable")?"main_ui_ds_controls_input__variant-comfortable":"")+" "+($has_hint$jscomp$1_max_length$jscomp$4$$?"main_ui_ds_controls_input__has-hint":"")),children:[$has_label$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$utilities$label$label_STAR_$$,{htmlFor:$id__$1$jscomp$15_props_74878$$,isOptional:$is_optional$jscomp$1_is_optional__$1$jscomp$1$$,children:$label$jscomp$33$$}):null,(0,$APP.$rumext$v2$create_element$$)($app$main$ui$ds$controls$utilities$input_field$input_field_STAR_$$,
$props$jscomp$292_props__$1$jscomp$66$$),$has_hint$jscomp$1_max_length$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$controls$utilities$hint_message$hint_message_STAR_$$,{id:$id__$1$jscomp$15_props_74878$$,className:$hint_class$$,message:$hint_message$$,type:$hint_type$jscomp$1$$}):null]})});var $app$main$ui$components$color_input$color_input_STAR_$$=(0,$APP.$rumext$v2$forward_ref$$)(function($class$__$1$jscomp$8_props_75074$$,$external_ref$jscomp$3_handle_key_down$jscomp$6$$){var $aria_label$jscomp$7$$=void 0,$on_change$jscomp$31$$=void 0,$aria_label__$1_select_on_focus$$=void 0,$on_focus$jscomp$5$$=void 0,$value$jscomp$760$$=void 0,$on_blur$jscomp$7$$=void 0,$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$=void 0,$props$jscomp$297_props__$1$jscomp$67$$=void 0;({value:$value$jscomp$760$$,
onChange:$on_change$jscomp$31$$,onBlur:$on_blur$jscomp$7$$,onFocus:$on_focus$jscomp$5$$,selectOnFocus:$aria_label__$1_select_on_focus$$,className:$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$,"aria-label":$aria_label$jscomp$7$$,...$props$jscomp$297_props__$1$jscomp$67$$}=$class$__$1$jscomp$8_props_75074$$);var $select_on_focus_QMARK_$jscomp$1$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($aria_label__$1_select_on_focus$$,!0);$class$__$1$jscomp$8_props_75074$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$,
"color-input");$aria_label__$1_select_on_focus$$=function(){var $or__5025__auto__$jscomp$1004$$=$aria_label$jscomp$7$$;return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1004$$)?$or__5025__auto__$jscomp$1004$$:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("inspect.attributes.color")}();$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)();var $ref$jscomp$49$$=$APP.$cljs$core$truth_$$($external_ref$jscomp$3_handle_key_down$jscomp$6$$)?$external_ref$jscomp$3_handle_key_down$jscomp$6$$:
$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$,$dirty_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(!1),$parse_value$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $input_node$jscomp$2$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$49$$);try{var $status$jscomp$inline_12874_value__$1$jscomp$35$$=$APP.$app$common$types$color$prepend_hash$$($APP.$app$common$types$color$parse$$($APP.$app$common$types$color$expand_hex$$($APP.$app$util$dom$get_value$$($input_node$jscomp$2$$))));
$input_node$jscomp$2$$!=null&&($input_node$jscomp$2$$.setCustomValidity(""),$input_node$jscomp$2$$.reportValidity());return $status$jscomp$inline_12874_value__$1$jscomp$35$$}catch($e75106$$){return $status$jscomp$inline_12874_value__$1$jscomp$35$$=$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("errors.invalid-color"),$input_node$jscomp$2$$!=null&&($input_node$jscomp$2$$.setCustomValidity($status$jscomp$inline_12874_value__$1$jscomp$35$$),$input_node$jscomp$2$$.reportValidity()),null}}),
$update_input$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($new_value$jscomp$14$$){return $app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($ref$jscomp$49$$),$app$common$types$color$remove_hash$$($new_value$jscomp$14$$))}),$apply_value$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$31$$),$APP.$rumext$v2$adapt$$($update_input$jscomp$1$$)],function($new_value$jscomp$15$$){$APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$jscomp$1$$,
!1);return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($new_value$jscomp$15$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($app$common$types$color$remove_hash$$($new_value$jscomp$15$$),$value$jscomp$760$$):$new_value$jscomp$15$$)?($APP.$cljs$core$truth_$$($on_change$jscomp$31$$)&&($on_change$jscomp$31$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$31$$.$cljs$core$IFn$_invoke$arity$1$($new_value$jscomp$15$$):$on_change$jscomp$31$$($new_value$jscomp$15$$)),$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($new_value$jscomp$15$$):$update_input$jscomp$1$$($new_value$jscomp$15$$)):null});$external_ref$jscomp$3_handle_key_down$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($apply_value$jscomp$1$$),$APP.$rumext$v2$adapt$$($update_input$jscomp$1$$)],function($event$jscomp$274$$){$APP.$rumext$v2$set_ref_val_BANG_$$($dirty_ref$jscomp$1$$,!0);var $input_node$jscomp$4$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$49$$);
if($APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$274$$))){var $value__$1$jscomp$36$$=$parse_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$jscomp$1$$();$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($value__$1$jscomp$36$$):$update_input$jscomp$1$$($value__$1$jscomp$36$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$274$$);
return $APP.$app$util$dom$blur_BANG_$$($input_node$jscomp$4$$)}return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$274$$))?($update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$760$$):$update_input$jscomp$1$$($value$jscomp$760$$),$APP.$app$util$dom$prevent_default$$($event$jscomp$274$$),$APP.$app$util$dom$blur_BANG_$$($input_node$jscomp$4$$)):null});var $on_click$jscomp$35$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$275_target$jscomp$140$$){$event$jscomp$275_target$jscomp$140$$=
$APP.$app$util$dom$get_target$$($event$jscomp$275_target$jscomp$140$$);var $current$jscomp$53$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$49$$);return $current$jscomp$53$$!=null&&$APP.$cljs$core$not$$($current$jscomp$53$$.contains($event$jscomp$275_target$jscomp$140$$))?$APP.$app$util$dom$blur_BANG_$$($current$jscomp$53$$):null}),$on_mouse_up$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$276$$){return $APP.$app$util$dom$prevent_default$$($event$jscomp$276$$)});$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$277$$){var $target$jscomp$141$$=$APP.$app$util$dom$get_target$$($event$jscomp$277$$);$APP.$cljs$core$truth_$$($on_focus$jscomp$5$$)&&($on_focus$jscomp$5$$.$cljs$core$IFn$_invoke$arity$0$?$on_focus$jscomp$5$$.$cljs$core$IFn$_invoke$arity$0$():$on_focus$jscomp$5$$());return $APP.$cljs$core$truth_$$($select_on_focus_QMARK_$jscomp$1$$)?($APP.$app$util$dom$get_target$$($event$jscomp$277$$).select(),$target$jscomp$141$$.addEventListener("mouseup",
$on_mouse_up$$,{once:!0})):null});var $handle_blur$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($parse_value$jscomp$1$$),$APP.$rumext$v2$adapt$$($apply_value$jscomp$1$$),$APP.$rumext$v2$adapt$$($update_input$jscomp$1$$)],function(){var $new_value$jscomp$16$$=$parse_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$parse_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$parse_value$jscomp$1$$();$APP.$cljs$core$truth_$$($new_value$jscomp$16$$)?$apply_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$apply_value$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($new_value$jscomp$16$$):$apply_value$jscomp$1$$($new_value$jscomp$16$$):$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$update_input$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$760$$):$update_input$jscomp$1$$($value$jscomp$760$$);return $APP.$cljs$core$truth_$$($on_blur$jscomp$7$$)?$on_blur$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$?$on_blur$jscomp$7$$.$cljs$core$IFn$_invoke$arity$0$():$on_blur$jscomp$7$$():null}),$handle_blur__$1$$=
$app$main$ui$hooks$use_ref_callback$$($handle_blur$jscomp$2$$);$props$jscomp$297_props__$1$jscomp$67$$={...$props$jscomp$297_props__$1$jscomp$67$$,className:$class$__$1$jscomp$8_props_75074$$,type:"text",ref:$ref$jscomp$49$$,"aria-label":$aria_label__$1_select_on_focus$$,defaultValue:$value$jscomp$760$$,onKeyDown:$external_ref$jscomp$3_handle_key_down$jscomp$6$$,onBlur:$handle_blur__$1$$,onFocus:$class$$jscomp$53_handle_focus$jscomp$2_local_ref$jscomp$3$$};$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($value$jscomp$760$$)],
function(){var $temp__5825__auto__$jscomp$331$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$49$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$331$$)?$app$util$dom$set_value_BANG_$$($temp__5825__auto__$jscomp$331$$,$value$jscomp$760$$):null});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return function(){return $APP.$cljs$core$truth_$$($APP.$rumext$v2$ref_val$$($dirty_ref$jscomp$1$$))?$handle_blur__$1$$.$cljs$core$IFn$_invoke$arity$0$?$handle_blur__$1$$.$cljs$core$IFn$_invoke$arity$0$():
$handle_blur__$1$$():null}});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $key1$jscomp$6$$=$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"pointerdown",$on_click$jscomp$35$$),$key2$jscomp$5$$=$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"click",$on_click$jscomp$35$$);return function(){$APP.$goog$events$unlistenByKey$$($key1$jscomp$6$$);return $APP.$goog$events$unlistenByKey$$($key2$jscomp$5$$)}});return(0,$APP.$rumext$v2$create_element$$)("input",
$props$jscomp$297_props__$1$jscomp$67$$)});var $app$main$ui$workspace$colorpicker$shortcuts$shortcuts$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$shortcuts$shortcuts$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5338$delete_stop$$,new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$supr$$(),$APP.$cljs$cst$1796$command$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["del","backspace"],null),$APP.$cljs$cst$4601$subsections$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4698$edit$$],null),$APP.$cljs$cst$2631$overwrite$$,!0,$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$remove_gradient_stop$cljs$0core$0IFn$0_invoke$0arity$01$$(null))}],null)],null)]));var $app$main$ui$workspace$colorpicker$picking_color_QMARK_$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4014$picking_color_QMARK_$$,$APP.$app$main$refs$workspace_global$$),$app$main$ui$workspace$colorpicker$picked_color$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4019$picked_color$$,$APP.$app$main$refs$workspace_global$$),$app$main$ui$workspace$colorpicker$picked_color_select$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4016$picked_color_select$$,
$APP.$app$main$refs$workspace_global$$),$app$main$ui$workspace$colorpicker$viewport$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2165$vport$$,$APP.$app$main$refs$workspace_local$$);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$13$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$13$$,$APP.$cljs$cst$2199$colorpicker$$,$app$main$ui$workspace$colorpicker$colorpicker_modal$$)});var $app$main$ui$workspace$sidebar$assets$common$assets_filters$$=(0,$APP.$rumext$v2$create_context$$)(null),$app$main$ui$workspace$sidebar$assets$common$assets_toggle_ordering$$=(0,$APP.$rumext$v2$create_context$$)(null),$app$main$ui$workspace$sidebar$assets$common$assets_toggle_list_style$$=(0,$APP.$rumext$v2$create_context$$)(null),$app$main$ui$workspace$sidebar$assets$common$initial_context_menu_state$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5346$open_QMARK_$$,!1,$APP.$cljs$cst$1546$top$$,
null,$APP.$cljs$cst$257$left$$,null],null);var $app$main$ui$workspace$context_menu$menu_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2167$context_menu$$,$APP.$app$main$refs$workspace_local$$),$app$main$ui$workspace$context_menu$shape_context_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($disable_booleans$jscomp$1_props$jscomp$299_props_75669$$){var $disable_flatten$jscomp$1_map__75675__$1$$=$APP.$cljs$core$__destructure_map$$($disable_booleans$jscomp$1_props$jscomp$299_props_75669$$.mdata);
$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($disable_flatten$jscomp$1_map__75675__$1$$,$cljs$cst$5351$disable_booleans$$);$disable_flatten$jscomp$1_map__75675__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($disable_flatten$jscomp$1_map__75675__$1$$,$cljs$cst$5352$disable_flatten$$);var $objects$jscomp$744_shapes$jscomp$193$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$),$is_not_variant_container_QMARK__shape_ids$jscomp$105$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$);$objects$jscomp$744_shapes$jscomp$193$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$data$getf$$($objects$jscomp$744_shapes$jscomp$193$$),$is_not_variant_container_QMARK__shape_ids$jscomp$105$$);$is_not_variant_container_QMARK__shape_ids$jscomp$105$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__75664_SHARP_$$){return $APP.$cljs$core$not$$($APP.$app$common$types$component$is_variant_container_QMARK_$$($p1__75664_SHARP_$$))},
$objects$jscomp$744_shapes$jscomp$193$$);$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$={shapes:$objects$jscomp$744_shapes$jscomp$193$$,disableBooleans:$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$,disableFlatten:$disable_flatten$jscomp$1_map__75675__$1$$};return $APP.$cljs$core$empty_QMARK_$$($objects$jscomp$744_shapes$jscomp$193$$)?null:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_edit_STAR_$$,
$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_layer_position_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),$APP.$cljs$core$truth_$$($is_not_variant_container_QMARK__shape_ids$jscomp$105$$)?(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_flip_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$):null,(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_thumbnail_STAR_$$,
$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_rename_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_group_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_focus_mode_menu_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),
(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_path_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_layer_options_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_prototype_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),$APP.$cljs$core$truth_$$($is_not_variant_container_QMARK__shape_ids$jscomp$105$$)?
(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_layout_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$):null,(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_component_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$context_menu$context_menu_delete_STAR_$$,$disable_booleans$jscomp$1_props$jscomp$299_props_75669$$)]})});var $app$main$ui$workspace$libraries$close_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_libraries__close-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-close"})}),$app$main$ui$workspace$libraries$add_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_libraries__add-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-add"})});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$14$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$14$$,$APP.$cljs$cst$3811$libraries_dialog$$,$app$main$ui$workspace$libraries$libraries_dialog$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$15$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$15$$,$cljs$cst$5364$v2_info$$,$app$main$ui$workspace$libraries$v2_info_dialog$$)});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$16$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$16$$,$cljs$cst$5365$nudge_option$$,$app$main$ui$workspace$nudge$nudge_modal$$)});var $app$main$ui$workspace$color_palette$palette_item_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_75964_size$jscomp$141$$){var $selected$jscomp$140$$=$props_75964_size$jscomp$141$$.selected,$color$jscomp$155$$=$props_75964_size$jscomp$141$$.color;$props_75964_size$jscomp$141$$=$props_75964_size$jscomp$141$$.size;var $select_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($color$jscomp$155$$),$APP.$rumext$v2$adapt$$($selected$jscomp$140$$)],
function($event$jscomp$313$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$colors$add_recent_color$$($color$jscomp$155$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$colors$apply_color_from_palette$$($color$jscomp$155$$,$event$jscomp$313$$.altKey),$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$140$$,$cljs$cst$5336$recent$$)?$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$$,"use-library-color",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"color-palette",$APP.$cljs$cst$3773$external_library$$,$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$140$$,$APP.$cljs$cst$208$file$$)],null)):null]))}),$title$jscomp$34$$=$app$util$color$get_color_name$$($color$jscomp$155$$);return(0,$APP.$rumext$v2$jsxs$$)("button",{title:$title$jscomp$34$$,
"aria-label":$title$jscomp$34$$,type:"button",onClick:$select_color$$,className:"main_ui_workspace_color_palette__color-cell "+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$155$$)==null?"main_ui_workspace_color_palette__is-not-library-color":"")+" "+($props_75964_size$jscomp$141$$<=64?"main_ui_workspace_color_palette__no-text":""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$color$jscomp$155$$,size:"medium"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$color_bullet$color_name$$,
{color:$color$jscomp$155$$,size:$props_75964_size$jscomp$141$$,origin:$APP.$cljs$cst$4568$palette$$})]})}),$app$main$ui$workspace$color_palette$palette_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($offset_step_props_75970$$){var $selected$jscomp$141$$=$offset_step_props_75970$$.selected,$width$jscomp$185_width__$1$jscomp$8$$=$offset_step_props_75970$$.width,$colors$jscomp$15$$=$offset_step_props_75970$$.colors,$size$jscomp$142$$=$offset_step_props_75970$$.size,$state$jscomp$1068$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5366$show_menu$$,!1],null)});$offset_step_props_75970$$=$size$jscomp$142$$<=64?40:72;$width$jscomp$185_width__$1$jscomp$8$$-=$size$jscomp$142$$<=64?164:132;var $offset$jscomp$199_visible$jscomp$2$$=$width$jscomp$185_width__$1$jscomp$8$$/$offset_step_props_75970$$|0,$show_arrows_QMARK_$$=$APP.$cljs$core$count$$($colors$jscomp$15$$)>$offset$jscomp$199_visible$jscomp$2$$,
$on_scroll_visible__$1$$=$show_arrows_QMARK_$$?($width$jscomp$185_width__$1$jscomp$8$$-48)/$offset_step_props_75970$$|0:$offset$jscomp$199_visible$jscomp$2$$;$offset$jscomp$199_visible$jscomp$2$$=$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_deref$$($state$jscomp$1068$$),0);var $max_offset$jscomp$2$$=$APP.$cljs$core$count$$($colors$jscomp$15$$)-$on_scroll_visible__$1$$,$container$jscomp$81$$=(0,$APP.$rumext$v2$use_ref$$)(null),$bullet_size$$=$size$jscomp$142$$<=64?"32":
$size$jscomp$142$$<=72?"28":"32",$color_cell_width$$=$size$jscomp$142$$<=64?32:64,$on_left_arrow_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$2$$),$APP.$rumext$v2$adapt$$($on_scroll_visible__$1$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1068$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$195$offset$$,function($offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$){return $offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$>
0?(--$offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$,$offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$>0?$offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$:0):$offset__$1$jscomp$22_x__5110__auto__$jscomp$134$$})}),$on_right_arrow_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$2$$),$APP.$rumext$v2$adapt$$($on_scroll_visible__$1$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1068$$,
$APP.$cljs$core$update$$,$APP.$cljs$cst$195$offset$$,function($offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$){return $offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$<$max_offset$jscomp$2$$?($offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$+=1,$max_offset$jscomp$2$$<$offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$?$max_offset$jscomp$2$$:$offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$):$offset__$1$jscomp$23_y__5114__auto__$jscomp$79$$})});$on_scroll_visible__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($max_offset$jscomp$2$$)],
function($event$jscomp$314_event__$1$jscomp$3$$){$event$jscomp$314_event__$1$jscomp$3$$=$event$jscomp$314_event__$1$jscomp$3$$.nativeEvent;return $event$jscomp$314_event__$1$jscomp$3$$.deltaY+$event$jscomp$314_event__$1$jscomp$3$$.deltaX>0?$on_right_arrow_click$$.$cljs$core$IFn$_invoke$arity$1$?$on_right_arrow_click$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$314_event__$1$jscomp$3$$):$on_right_arrow_click$$($event$jscomp$314_event__$1$jscomp$3$$):$on_left_arrow_click$$.$cljs$core$IFn$_invoke$arity$1$?
$on_left_arrow_click$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$314_event__$1$jscomp$3$$):$on_left_arrow_click$$($event$jscomp$314_event__$1$jscomp$3$$)});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1068$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$288$width$$,$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($container$jscomp$81$$),"clientWidth"))});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($width$jscomp$185_width__$1$jscomp$8$$),$APP.$rumext$v2$adapt$$($colors$jscomp$15$$)],function(){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$cljs$cst$195$offset$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1068$$)))?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1068$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$195$offset$$,0):null});
return(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--bullet-size":""+($bullet_size$$??"")+"px","--color-cell-width":""+($color_cell_width$$??"")+"px"},className:"main_ui_workspace_color_palette__color-palette "+($size$jscomp$142$$<64?"main_ui_workspace_color_palette__no-text":""),children:[$show_arrows_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$199_visible$jscomp$2$$,0),onClick:$on_left_arrow_click$$,className:"main_ui_workspace_color_palette__left-arrow",
children:$APP.$app$main$ui$icons$arrow$$}):null,(0,$APP.$rumext$v2$jsx$$)("div",{ref:$container$jscomp$81$$,onWheel:$on_scroll_visible__$1$$,className:"main_ui_workspace_color_palette__color-palette-content",children:$APP.$cljs$core$empty_QMARK_$$($colors$jscomp$15$$)?(0,$APP.$rumext$v2$jsx$$)("div",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"},className:"main_ui_workspace_color_palette__color-palette-empty",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.colors.empty-palette")}):
(0,$APP.$rumext$v2$jsx$$)("div",{style:{position:"relative",maxWidth:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($width$jscomp$185_width__$1$jscomp$8$$),"px"].join(""),right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset_step_props_75970$$*$offset$jscomp$199_visible$jscomp$2$$),"px"].join("")},className:"main_ui_workspace_color_palette__color-palette-inside",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$124$$,
$item$jscomp$121_p__75980$$){var $idx$jscomp$111$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$121_p__75980$$,0,null);$item$jscomp$121_p__75980$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($item$jscomp$121_p__75980$$,1,null);$out_arr__44057__auto__$jscomp$124$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$color_palette$palette_item_STAR_$$,{color:$item$jscomp$121_p__75980$$,size:$size$jscomp$142$$,selected:$selected$jscomp$141$$},$idx$jscomp$111$$));
return $out_arr__44057__auto__$jscomp$124$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$colors$jscomp$15$$))})}),$show_arrows_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$199_visible$jscomp$2$$,$max_offset$jscomp$2$$),onClick:$on_right_arrow_click$$,className:"main_ui_workspace_color_palette__right-arrow",children:$APP.$app$main$ui$icons$arrow$$}):null]})}),$app$main$ui$workspace$color_palette$color_palette_STAR_$$=
$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76003_props__$1$jscomp$70$$){var $selected$jscomp$142$$=$props_76003_props__$1$jscomp$70$$.selected,$file_id$jscomp$342$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$142$$,$cljs$cst$5336$recent$$))return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$color_palette$recent_colors_palette_STAR_$$,$props_76003_props__$1$jscomp$70$$);
$props_76003_props__$1$jscomp$70$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($selected$jscomp$142$$,$APP.$cljs$cst$208$file$$)?{...$props_76003_props__$1$jscomp$70$$,fileId:$file_id$jscomp$342$$}:{...$props_76003_props__$1$jscomp$70$$,fileId:$selected$jscomp$142$$};return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$color_palette$file_color_palette_STAR_$$,$props_76003_props__$1$jscomp$70$$)});var $app$main$ui$workspace$color_palette_ctx_menu$xf_COLON_sample_colors$$=$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$val$$),$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$1$(7));var $app$main$ui$workspace$text_palette$text_palette$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__76073_props_76072_size$jscomp$145$$){$map__76073_props_76072_size$jscomp$145$$=$APP.$rumext$v2$util$wrap_props$$($map__76073_props_76072_size$jscomp$145$$);var $map__76073__$1_selected$jscomp$145$$=$APP.$cljs$core$__destructure_map$$($map__76073_props_76072_size$jscomp$145$$);$map__76073_props_76072_size$jscomp$145$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76073__$1_selected$jscomp$145$$,
$APP.$cljs$cst$872$size$$);var $width$jscomp$187$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76073__$1_selected$jscomp$145$$,$APP.$cljs$cst$288$width$$);$map__76073__$1_selected$jscomp$145$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76073__$1_selected$jscomp$145$$,$APP.$cljs$cst$1906$selected$$);var $selected_ids$jscomp$7$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$),$file_typographies$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_file_typography$$),
$libraries$jscomp$136$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$),$current_file_id$jscomp$15$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$text_palette$palette$$,{"current-file-id":$current_file_id$jscomp$15$$,"selected-ids":$selected_ids$jscomp$7$$,"file-typographies":$file_typographies$jscomp$1$$,libraries:$libraries$jscomp$136$$,width:$width$jscomp$187$$,selected:$map__76073__$1_selected$jscomp$145$$,
size:$map__76073_props_76072_size$jscomp$145$$})});var $app$main$ui$workspace$palette$ref_COLON_viewport$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2165$vport$$,$APP.$app$main$refs$workspace_local$$);var $app$main$ui$workspace$main_menu$help_info_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($plugins_QMARK__props_76187$$){var $on_close$jscomp$19$$=$plugins_QMARK__props_76187$$.onClose,$layout$jscomp$16$$=$plugins_QMARK__props_76187$$.layout,$nav_to_helpc_center$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-help-center-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu:in-app"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://help.penpot.app")}),$nav_to_community$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-community-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu:in-app"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://community.penpot.app")}),$nav_to_youtube$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-tutorials-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu:in-app"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://www.youtube.com/c/Penpot")}),$nav_to_templates$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-libraries-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://penpot.app/libraries-templates")}),$nav_to_github$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-github-repository-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu:in-app"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://github.com/penpot/penpot")}),$nav_to_terms$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"explore-terms-service-click",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu:in-app"],null)));return $APP.$app$util$dom$open_new_window$cljs$0core$0IFn$0_invoke$0arity$01$$("https://penpot.app/terms")}),$nav_to_feedback$$=$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$go_to_feedback$$())});
$plugins_QMARK__props_76187$$=$APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"plugins/runtime");var $show_shortcuts$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout$jscomp$16$$)],function(){$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$16$$,$cljs$cst$5374$collapse_left_sidebar$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($cljs$cst$5374$collapse_left_sidebar$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$2634$shortcuts$$),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-header"))}),$show_release_notes$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$319$$){var $version$jscomp$22$$=$APP.$cljs$cst$1266$main$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$config$version$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"show-release-notes",$APP.$cljs$cst$2247$version$$,$version$jscomp$22$$],null)));$APP.$cljs$core$println$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$version$jscomp$22$$]));
return $event$jscomp$319$$.altKey&&$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$319$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1215$onboarding$$],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$5118$release_notes$$,$APP.$cljs$cst$2247$version$$,$version$jscomp$22$$],null)))});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,onClose:$on_close$jscomp$19$$,className:"main_ui_workspace_main_menu__sub-menu "+($APP.$cljs$core$truth_$$($plugins_QMARK__props_76187$$)?"main_ui_workspace_main_menu__help-info":"")+" "+($APP.$cljs$core$not$$($plugins_QMARK__props_76187$$)?"main_ui_workspace_main_menu__help-info-old":
""),children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$nav_to_helpc_center$$,onKeyDown:function($event$jscomp$320$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$320$$))?$nav_to_helpc_center$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_helpc_center$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$320$$):$nav_to_helpc_center$$($event$jscomp$320$$):
null},id:"file-menu-help-center",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.help-center")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$nav_to_community$$,onKeyDown:function($event$jscomp$321$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$321$$))?
$nav_to_community$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_community$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$321$$):$nav_to_community$$($event$jscomp$321$$):null},id:"file-menu-community",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.community")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",
onClick:$nav_to_youtube$$,onKeyDown:function($event$jscomp$322$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$322$$))?$nav_to_youtube$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_youtube$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$322$$):$nav_to_youtube$$($event$jscomp$322$$):null},id:"file-menu-youtube",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.tutorials")})}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$show_release_notes$jscomp$1$$,onKeyDown:function($event$jscomp$323$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$323$$))?$show_release_notes$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$show_release_notes$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$323$$):$show_release_notes$jscomp$1$$($event$jscomp$323$$):
null},id:"file-menu-release-notes",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.release-notes")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$nav_to_templates$$,onKeyDown:function($event$jscomp$324$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$324$$))?
$nav_to_templates$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_templates$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$324$$):$nav_to_templates$$($event$jscomp$324$$):null},id:"file-menu-templates",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.libraries-and-templates")})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",
onClick:$nav_to_github$$,onKeyDown:function($event$jscomp$325$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$325$$))?$nav_to_github$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_github$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$325$$):$nav_to_github$$($event$jscomp$325$$):null},id:"file-menu-github",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.github-repo")})}),
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$nav_to_terms$$,onKeyDown:function($event$jscomp$326$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$326$$))?$nav_to_terms$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_terms$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$326$$):$nav_to_terms$$($event$jscomp$326$$):null},id:"file-menu-terms",children:(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.terms-of-service")})}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$show_shortcuts$$,onKeyDown:function($event$jscomp$327$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$327$$))?$show_shortcuts$$.$cljs$core$IFn$_invoke$arity$1$?
$show_shortcuts$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$327$$):$show_shortcuts$$($event$jscomp$327$$):null},id:"file-menu-shortcuts",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("label.shortcuts")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$130$$,
$sc$jscomp$10$$){$out_arr__44057__auto__$jscomp$130$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$10$$},$sc$jscomp$10$$));return $out_arr__44057__auto__$jscomp$130$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4681$show_shortcuts$$)))})]}),$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$1220$user_feedback$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$nav_to_feedback$$,onKeyDown:function($event$jscomp$328$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$328$$))?$nav_to_feedback$$.$cljs$core$IFn$_invoke$arity$1$?$nav_to_feedback$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$328$$):$nav_to_feedback$$($event$jscomp$328$$):null},id:"file-menu-feedback",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__feedback main_ui_workspace_main_menu__item-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.give-feedback")})}):null]})}),$app$main$ui$workspace$main_menu$preferences_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76191$$){var $toggle_theme$$=$props_76191$$.toggleTheme,$profile$jscomp$56$$=$props_76191$$.profile,$on_close$jscomp$20$$=$props_76191$$.onClose,$layout$jscomp$17$$=$props_76191$$.layout,$toggle_flag$$=$props_76191$$.toggleFlag,$show_nudge_options$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$139$type$$,$cljs$cst$5365$nudge_option$$],null))});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,className:"main_ui_workspace_main_menu__sub-menu main_ui_workspace_main_menu__preferences",onClose:$on_close$jscomp$20$$,children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_flag$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$329$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$329$$))?
$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$329$$):$toggle_flag$$($event$jscomp$329$$):null},"data-testid":"scale-text",id:"file-menu-scale-text",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$17$$,$APP.$cljs$cst$3586$scale_text$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.disable-scale-content"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.enable-scale-content")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$131$$,$sc$jscomp$11$$){$out_arr__44057__auto__$jscomp$131$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$11$$},$sc$jscomp$11$$));return $out_arr__44057__auto__$jscomp$131$$},
[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$1887$scale$$)))})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_flag$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$330$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$330$$))?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$330$$):
$toggle_flag$$($event$jscomp$330$$):null},"data-testid":"snap-ruler-guides",id:"file-menu-snap-ruler-guides",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$17$$,$APP.$cljs$cst$3592$snap_ruler_guides$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.disable-snap-ruler-guides"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.enable-snap-ruler-guides")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$132$$,$sc$jscomp$12$$){$out_arr__44057__auto__$jscomp$132$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$12$$},$sc$jscomp$12$$));return $out_arr__44057__auto__$jscomp$132$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4627$toggle_snap_ruler_guide$$)))})]}),
$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_flag$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$331$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$331$$))?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$331$$):$toggle_flag$$($event$jscomp$331$$):null},"data-testid":"snap-guides",id:"file-menu-snap-guides",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$17$$,$APP.$cljs$cst$3590$snap_guides$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.disable-snap-guides"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.enable-snap-guides")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$133$$,
$sc$jscomp$13$$){$out_arr__44057__auto__$jscomp$133$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$13$$},$sc$jscomp$13$$));return $out_arr__44057__auto__$jscomp$133$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4662$toggle_snap_guides$$)))})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_flag$$,className:"main_ui_workspace_main_menu__submenu-item",
onKeyDown:function($event$jscomp$332$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$332$$))?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$332$$):$toggle_flag$$($event$jscomp$332$$):null},"data-testid":"dynamic-alignment",id:"file-menu-dynamic-alignment",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$17$$,
$APP.$cljs$cst$3593$dynamic_alignment$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.disable-dynamic-alignment"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.enable-dynamic-alignment")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$134$$,$sc$jscomp$14$$){$out_arr__44057__auto__$jscomp$134$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$14$$},$sc$jscomp$14$$));return $out_arr__44057__auto__$jscomp$134$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4674$toggle_alignment$$)))})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_flag$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$333$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$333$$))?
$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$333$$):$toggle_flag$$($event$jscomp$333$$):null},"data-testid":"snap-pixel-grid",id:"file-menu-pixel-grid",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$17$$,$APP.$cljs$cst$2172$snap_pixel_grid$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.disable-snap-pixel-grid"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.enable-snap-pixel-grid")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$135$$,$sc$jscomp$15$$){$out_arr__44057__auto__$jscomp$135$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$15$$},$sc$jscomp$15$$));return $out_arr__44057__auto__$jscomp$135$$},
[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$2172$snap_pixel_grid$$)))})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$show_nudge_options$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$334$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$334$$))?$show_nudge_options$$.$cljs$core$IFn$_invoke$arity$1$?
$show_nudge_options$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$334$$):$show_nudge_options$$($event$jscomp$334$$):null},"data-testid":"snap-pixel-grid",id:"file-menu-nudge",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("modals.nudge-title")})}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$toggle_theme$$,className:"main_ui_workspace_main_menu__submenu-item",
onKeyDown:function($event$jscomp$335$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$335$$))?$toggle_theme$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_theme$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$335$$):$toggle_theme$$($event$jscomp$335$$):null},"data-testid":"toggle-theme",id:"file-menu-toggle-theme",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:function(){switch($APP.$cljs$cst$3177$theme$$.$cljs$core$IFn$_invoke$arity$1$($profile$jscomp$56$$)){case "dark":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.toggle-light-theme");
case "light":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.toggle-system-theme");case "system":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.toggle-dark-theme");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.toggle-light-theme")}}()}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$136$$,
$sc$jscomp$16$$){$out_arr__44057__auto__$jscomp$136$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$16$$},$sc$jscomp$16$$));return $out_arr__44057__auto__$jscomp$136$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4688$toggle_theme$$)))})]})]})}),$app$main$ui$workspace$main_menu$view_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76205_read_only_QMARK_$jscomp$12$$){var $on_close$jscomp$21$$=
$props_76205_read_only_QMARK_$jscomp$12$$.onClose,$layout$jscomp$18$$=$props_76205_read_only_QMARK_$jscomp$12$$.layout,$toggle_flag$jscomp$1$$=$props_76205_read_only_QMARK_$jscomp$12$$.toggleFlag;$props_76205_read_only_QMARK_$jscomp$12$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);var $toggle_color_palette$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1547$bottom$$;
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3610$textpalette$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3585$colorpalette$$),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu")]))}),$toggle_text_palette$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$app$main$ui$hooks$resize$last_resize_type$$=$APP.$cljs$cst$1547$bottom$$;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$3585$colorpalette$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($APP.$cljs$cst$3610$textpalette$$),
$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-menu")]))});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,className:"main_ui_workspace_main_menu__sub-menu main_ui_workspace_main_menu__view",onClose:$on_close$jscomp$21$$,children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_flag$jscomp$1$$,onKeyDown:function($event$jscomp$336$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$336$$))?
$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$336$$):$toggle_flag$jscomp$1$$($event$jscomp$336$$):null},"data-testid":"rulers",id:"file-menu-rulers",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$2173$rulers$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-rules"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-rules")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$137$$,$sc$jscomp$17$$){$out_arr__44057__auto__$jscomp$137$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$17$$},$sc$jscomp$17$$));return $out_arr__44057__auto__$jscomp$137$$},
[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4685$toggle_rulers$$)))})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_flag$jscomp$1$$,onKeyDown:function($event$jscomp$337$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$337$$))?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?
$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$337$$):$toggle_flag$jscomp$1$$($event$jscomp$337$$):null},"data-testid":"display-guides",id:"file-menu-guides",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$3594$display_guides$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-guides"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-guides")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$138$$,$sc$jscomp$18$$){$out_arr__44057__auto__$jscomp$138$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$18$$},$sc$jscomp$18$$));return $out_arr__44057__auto__$jscomp$138$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4640$toggle_guides$$)))})]}),
$props_76205_read_only_QMARK_$jscomp$12$$?null:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_color_palette$$,onKeyDown:function($event$jscomp$338$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$338$$))?$toggle_color_palette$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_color_palette$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$338$$):
$toggle_color_palette$$($event$jscomp$338$$):null},id:"file-menu-color-palette",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$3585$colorpalette$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-palette"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-palette")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",
children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$139$$,$sc$jscomp$19$$){$out_arr__44057__auto__$jscomp$139$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$19$$},$sc$jscomp$19$$));return $out_arr__44057__auto__$jscomp$139$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4623$toggle_colorpalette$$)))})]}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_text_palette$$,onKeyDown:function($event$jscomp$339$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$339$$))?$toggle_text_palette$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_text_palette$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$339$$):$toggle_text_palette$$($event$jscomp$339$$):null},id:"file-menu-text-palette",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",
children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$3610$textpalette$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-textpalette"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-textpalette")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$140$$,$sc$jscomp$20$$){$out_arr__44057__auto__$jscomp$140$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$20$$},$sc$jscomp$20$$));return $out_arr__44057__auto__$jscomp$140$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4667$toggle_textpalette$$)))})]})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_flag$jscomp$1$$,onKeyDown:function($event$jscomp$340$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$340$$))?
$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$340$$):$toggle_flag$jscomp$1$$($event$jscomp$340$$):null},"data-testid":"display-artboard-names",id:"file-menu-artboards",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$3591$display_artboard_names$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-artboard-names"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-artboard-names")})}),$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_flag$jscomp$1$$,onKeyDown:function($event$jscomp$341$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$341$$))?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$341$$):
$toggle_flag$jscomp$1$$($event$jscomp$341$$):null},"data-testid":"show-pixel-grid",id:"file-menu-pixel-grid",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$18$$,$APP.$cljs$cst$3587$show_pixel_grid$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.hide-pixel-grid"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.show-pixel-grid")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$141$$,$sc$jscomp$21$$){$out_arr__44057__auto__$jscomp$141$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$21$$},$sc$jscomp$21$$));return $out_arr__44057__auto__$jscomp$141$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$3587$show_pixel_grid$$)))})]}),
$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$toggle_flag$jscomp$1$$,onKeyDown:function($event$jscomp$342$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$342$$))?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$toggle_flag$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$342$$):$toggle_flag$jscomp$1$$($event$jscomp$342$$):null},
"data-testid":"hide-ui",id:"file-menu-hide-ui",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.hide-ui")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$142$$,$sc$jscomp$22$$){$out_arr__44057__auto__$jscomp$142$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$22$$},$sc$jscomp$22$$));return $out_arr__44057__auto__$jscomp$142$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4639$hide_ui$$)))})]})]})}),$app$main$ui$workspace$main_menu$edit_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($on_close$jscomp$22_props_76215$$){$on_close$jscomp$22_props_76215$$=$on_close$jscomp$22_props_76215$$.onClose;
var $select_all$$=$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$workspace$selection$select_all$$())}),$undo$jscomp$6$$=$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$workspace$undo$undo$$)}),$redo$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.$app$main$data$workspace$undo$redo$$)}),
$can_edit$jscomp$3_perms$jscomp$1$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$permissions$$);$can_edit$jscomp$3_perms$jscomp$1$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($can_edit$jscomp$3_perms$jscomp$1$$);return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,className:"main_ui_workspace_main_menu__sub-menu main_ui_workspace_main_menu__edit",onClose:$on_close$jscomp$22_props_76215$$,children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{className:"main_ui_workspace_main_menu__submenu-item",onClick:$select_all$$,onKeyDown:function($event$jscomp$343$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$343$$))?$select_all$$.$cljs$core$IFn$_invoke$arity$1$?$select_all$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$343$$):$select_all$$($event$jscomp$343$$):null},id:"file-menu-select-all",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.select-all")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$143$$,$sc$jscomp$23$$){$out_arr__44057__auto__$jscomp$143$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$23$$},$sc$jscomp$23$$));return $out_arr__44057__auto__$jscomp$143$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4657$select_all$$)))})]}),
$APP.$cljs$core$truth_$$($can_edit$jscomp$3_perms$jscomp$1$$)?$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$undo$jscomp$6$$,onKeyDown:function($event$jscomp$344$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$344$$))?$undo$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$?$undo$jscomp$6$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$344$$):$undo$jscomp$6$$($event$jscomp$344$$):
null},id:"file-menu-undo",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.undo")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$144$$,$sc$jscomp$24$$){$out_arr__44057__auto__$jscomp$144$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$24$$},$sc$jscomp$24$$));return $out_arr__44057__auto__$jscomp$144$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4664$undo$$)))})]}):null,$APP.$cljs$core$truth_$$($can_edit$jscomp$3_perms$jscomp$1$$)?$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{className:"main_ui_workspace_main_menu__submenu-item",onClick:$redo$jscomp$1$$,
onKeyDown:function($event$jscomp$345$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$345$$))?$redo$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$redo$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$345$$):$redo$jscomp$1$$($event$jscomp$345$$):null},id:"file-menu-redo",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.menu.redo")}),
(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$145$$,$sc$jscomp$25$$){$out_arr__44057__auto__$jscomp$145$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$25$$},$sc$jscomp$25$$));return $out_arr__44057__auto__$jscomp$145$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4636$redo$$)))})]}):
null]})}),$app$main$ui$workspace$main_menu$plugins_menu_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($on_close$jscomp$24_props_76231$$){var $open_plugins$$=$on_close$jscomp$24_props_76231$$.openPlugins;$on_close$jscomp$24_props_76231$$=$on_close$jscomp$24_props_76231$$.onClose;if($APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"plugins/runtime"))){var $plugins$jscomp$1$$=$APP.$app$plugins$register$plugins_list$$(),
$user_can_edit_QMARK_$jscomp$3$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$refs$permissions$$)),$permissions_peek$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$plugins_permissions_peek$$);return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_STAR_$$,{show:!0,className:"main_ui_workspace_main_menu__sub-menu main_ui_workspace_main_menu__plugins",onClose:$on_close$jscomp$24_props_76231$$,children:[$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,
{onClick:$open_plugins$$,className:"main_ui_workspace_main_menu__submenu-item",onKeyDown:function($event$jscomp$354$$){return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$354$$))?$open_plugins$$.$cljs$core$IFn$_invoke$arity$1$?$open_plugins$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$354$$):$open_plugins$$($event$jscomp$354$$):null},"data-testid":"open-plugins",id:"file-menu-open-plugins",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.plugins.menu.plugins-manager")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$148$$,$sc$jscomp$28$$){$out_arr__44057__auto__$jscomp$148$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__shortcut-key",children:$sc$jscomp$28$$},$sc$jscomp$28$$));return $out_arr__44057__auto__$jscomp$148$$},
[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$3135$plugins$$)))})]}),$APP.$app$common$data$not_empty_QMARK_$$($plugins$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_main_menu__separator"}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$149$$,$map__76238_p__76234$$){var $idx$jscomp$114$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__76238_p__76234$$,
0,null);$map__76238_p__76234$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__76238_p__76234$$,1,null);var $map__76238__$1$$=$APP.$cljs$core$__destructure_map$$($map__76238_p__76234$$),$plugin_id$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76238__$1$$,$APP.$cljs$cst$1704$plugin_id$$),$name$jscomp$421$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76238__$1$$,$APP.$cljs$cst$723$name$$),$host$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76238__$1$$,
$APP.$cljs$cst$742$host$$),$permissions$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76238__$1$$,$APP.$cljs$cst$1706$permissions$$);$out_arr__44057__auto__$jscomp$149$$.push(function(){var $is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$=function(){var $or__5025__auto__$jscomp$1034$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($permissions_peek$$,$plugin_id$jscomp$9$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1034$$)?
$or__5025__auto__$jscomp$1034$$:$permissions$jscomp$30$$}();$is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$=$APP.$cljs$core$contains_QMARK_$$($is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$,"content:write")||$APP.$cljs$core$contains_QMARK_$$($is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$,"library:write");var $can_open_QMARK_$jscomp$1$$=$APP.$cljs$core$truth_$$($user_can_edit_QMARK_$jscomp$3$$)?$user_can_edit_QMARK_$jscomp$3$$:
!$is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$;$is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_open_QMARK_$jscomp$1$$),$APP.$rumext$v2$adapt$$($name$jscomp$421$$),$APP.$rumext$v2$adapt$$($host$jscomp$14$$),$APP.$rumext$v2$adapt$$($map__76238__$1$$),$APP.$rumext$v2$adapt$$($user_can_edit_QMARK_$jscomp$3$$)],function($event$jscomp$355$$){return $APP.$cljs$core$truth_$$($can_open_QMARK_$jscomp$1$$)?
($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,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"start-plugin",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:menu",$APP.$cljs$cst$723$name$$,$name$jscomp$421$$,$APP.$cljs$cst$742$host$$,$host$jscomp$14$$],null))),
$APP.$app$main$data$plugins$open_plugin_BANG_$$($map__76238__$1$$,$user_can_edit_QMARK_$jscomp$3$$)):$APP.$app$util$dom$stop_propagation$$($event$jscomp$355$$)});var $on_key_down$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_open_QMARK_$jscomp$1$$),$APP.$rumext$v2$adapt$$($name$jscomp$421$$),$APP.$rumext$v2$adapt$$($host$jscomp$14$$),$APP.$rumext$v2$adapt$$($map__76238__$1$$),$APP.$rumext$v2$adapt$$($user_can_edit_QMARK_$jscomp$3$$)],function($event$jscomp$356$$){return $APP.$cljs$core$truth_$$($can_open_QMARK_$jscomp$1$$)&&
$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$356$$))?($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,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"start-plugin",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:menu",$APP.$cljs$cst$723$name$$,
$name$jscomp$421$$,$APP.$cljs$cst$742$host$$,$host$jscomp$14$$],null))),$APP.$app$main$data$plugins$open_plugin_BANG_$$($map__76238__$1$$,$user_can_edit_QMARK_$jscomp$3$$)):null});return $APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$dropdown_menu$dropdown_menu_item_STAR_$$,{onClick:$is_edition_plugin_QMARK_$jscomp$2_on_click$jscomp$38_permissions__$1$jscomp$4$$,className:"main_ui_workspace_main_menu__submenu-item "+($APP.$cljs$core$not$$($can_open_QMARK_$jscomp$1$$)?"main_ui_workspace_main_menu__menu-disabled":
""),onKeyDown:$on_key_down$jscomp$10$$,children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_main_menu__item-name",children:$name$jscomp$421$$}),$APP.$cljs$core$truth_$$($can_open_QMARK_$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)("span",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.plugins.error.need-editor"),className:"main_ui_workspace_main_menu__item-icon",children:$APP.$app$main$ui$icons$help$$})]},"plugins-menu-"+($idx$jscomp$114$$??""))}());return $out_arr__44057__auto__$jscomp$149$$},
[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($plugins$jscomp$1$$))]})}return null});var $app$main$data$workspace$history$initialize_history_76224$$;var $app$main$ui$workspace$presence$session_widget$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($profile__$1$jscomp$5_props_76248$$){var $index$jscomp$468$$=$profile__$1$jscomp$5_props_76248$$.index,$color$jscomp$161$$=$profile__$1$jscomp$5_props_76248$$.color;$profile__$1$jscomp$5_props_76248$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($profile__$1$jscomp$5_props_76248$$.profile,$APP.$cljs$cst$1284$color$$,$color$jscomp$161$$);var $full_name$$=$APP.$cljs$cst$1349$fullname$$.$cljs$core$IFn$_invoke$arity$1$($profile__$1$jscomp$5_props_76248$$);
return(0,$APP.$rumext$v2$jsx$$)("li",{style:{zIndex:""+(2+-1*$index$jscomp$468$$),backgroundColor:$color$jscomp$161$$},title:$full_name$$,className:"main_ui_workspace_presence__session-icon",children:(0,$APP.$rumext$v2$jsx$$)("img",{alt:$full_name$$,style:{backgroundColor:$color$jscomp$161$$},src:$APP.$app$config$resolve_profile_photo_url$$($profile__$1$jscomp$5_props_76248$$)})})}),$app$main$ui$workspace$presence$active_sessions$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function(){var $profiles$jscomp$3$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$profiles$$),$presence$jscomp$4_sessions$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_presence$$);$presence$jscomp$4_sessions$$=$APP.$cljs$core$vals$$($presence$jscomp$4_sessions$$);var $num_sessions$$=$APP.$cljs$core$count$$($presence$jscomp$4_sessions$$),$avatar_count$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($num_sessions$$,3)?3:2,$open_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$open_QMARK_$jscomp$9$$=
$APP.$cljs$core$_deref$$($open_STAR_$jscomp$2$$)&&$num_sessions$$>3,$on_open$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$2$$,!0);return $APP.$app$util$timers$schedule_on_idle$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$util$dom$focus_BANG_$$($APP.$goog$dom$getElement$$("users-close"))})}),$on_close$jscomp$25$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$2$$,
!1)});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$open_QMARK_$jscomp$9$$?(0,$APP.$rumext$v2$jsx$$)("button",{id:"users-close",onClick:$on_close$jscomp$25$$,onBlur:$on_close$jscomp$25$$,className:"main_ui_workspace_presence__active-users-opened",children:(0,$APP.$rumext$v2$jsx$$)("ul",{"data-testid":"active-users-list",className:"main_ui_workspace_presence__active-users-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$150$$,
$session$jscomp$3$$){$out_arr__44057__auto__$jscomp$150$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$presence$session_widget$$,{color:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($session$jscomp$3$$),index:0,profile:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profiles$jscomp$3$$,$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($session$jscomp$3$$))},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($session$jscomp$3$$)??"")));return $out_arr__44057__auto__$jscomp$150$$},
[],$presence$jscomp$4_sessions$$)})}):null,(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_open$jscomp$1$$,className:"main_ui_workspace_presence__active-users",children:(0,$APP.$rumext$v2$jsxs$$)("ul",{"data-testid":"active-users-list",className:"main_ui_workspace_presence__active-users-list",children:[$num_sessions$$>3?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_presence__users-num",children:"+"+(1+($num_sessions$$-3))}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$151$$,
$p__76251_session$jscomp$4$$){var $index$jscomp$469$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76251_session$jscomp$4$$,0,null);$p__76251_session$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76251_session$jscomp$4$$,1,null);$out_arr__44057__auto__$jscomp$151$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$presence$session_widget$$,{color:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($p__76251_session$jscomp$4$$),index:$index$jscomp$469$$,
profile:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profiles$jscomp$3$$,$APP.$cljs$cst$2271$profile_id$$.$cljs$core$IFn$_invoke$arity$1$($p__76251_session$jscomp$4$$))},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p__76251_session$jscomp$4$$)??"")));return $out_arr__44057__auto__$jscomp$151$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$($avatar_count$$,$presence$jscomp$4_sessions$$)))]})})]})});var $app$main$ui$workspace$right_header$zoom_widget_workspace$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($open_QMARK_$jscomp$10_props_76259$$){var $on_zoom_reset$jscomp$1$$=$open_QMARK_$jscomp$10_props_76259$$["on-zoom-reset"],$zoom$jscomp$63_zoom__$1$$=$open_QMARK_$jscomp$10_props_76259$$.zoom,$on_zoom_fit$jscomp$1$$=$open_QMARK_$jscomp$10_props_76259$$["on-zoom-fit"],$on_zoom_selected$$=$open_QMARK_$jscomp$10_props_76259$$["on-zoom-selected"],$on_decrease$jscomp$1$$=$open_QMARK_$jscomp$10_props_76259$$["on-decrease"],
$on_increase$jscomp$1$$=$open_QMARK_$jscomp$10_props_76259$$["on-increase"],$open_STAR_$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$open_QMARK_$jscomp$10_props_76259$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$3$$);var $open_dropdown$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$373$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$373$$);return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$3$$,!0)}),$close_dropdown$jscomp$3$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$374$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$374$$);return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$3$$,!1)}),$on_increase__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_increase$jscomp$1$$)],function($event$jscomp$375$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$375$$);return $on_increase$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?
$on_increase$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_increase$jscomp$1$$()}),$on_decrease__$1$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_decrease$jscomp$1$$)],function($event$jscomp$376$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$376$$);return $on_decrease$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$on_decrease$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$on_decrease$jscomp$1$$()});$zoom$jscomp$63_zoom__$1$$=$APP.$app$main$ui$formats$format_percent$cljs$0core$0IFn$0_invoke$0arity$02$$($zoom$jscomp$63_zoom__$1$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$267$precision$$,0],null));return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$open_dropdown$jscomp$3$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.zoom"),className:"main_ui_workspace_right_header__zoom-widget "+($APP.$cljs$core$truth_$$($open_QMARK_$jscomp$10_props_76259$$)?"main_ui_workspace_right_header__selected":""),children:(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_right_header__label",children:$zoom$jscomp$63_zoom__$1$$})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$open_QMARK_$jscomp$10_props_76259$$,"on-close":$close_dropdown$jscomp$3$$,children:(0,$APP.$rumext$v2$jsxs$$)("ul",{className:"main_ui_workspace_right_header__dropdown",children:[(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_right_header__basic-zoom-bar",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_workspace_right_header__zoom-btns",
children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.decrease-zoom"),onClick:$on_decrease__$1$jscomp$1$$,icon:"remove"}),(0,$APP.$rumext$v2$jsx$$)("p",{className:"main_ui_workspace_right_header__zoom-text",children:$zoom$jscomp$63_zoom__$1$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("shortcuts.increase-zoom"),
onClick:$on_increase__$1$jscomp$1$$,icon:"add"})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_zoom_reset$jscomp$1$$,className:"main_ui_workspace_right_header__reset-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.reset-zoom")})]}),(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:$on_zoom_fit$jscomp$1$$,className:"main_ui_workspace_right_header__zoom-option",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.zoom-fit-all"),(0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_right_header__shortcuts",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$152$$,$sc$jscomp$29$$){$out_arr__44057__auto__$jscomp$152$$.push((0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_right_header__shortcut-key",children:$sc$jscomp$29$$},["zoom-fit-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sc$jscomp$29$$)].join("")));return $out_arr__44057__auto__$jscomp$152$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4621$fit_all$$)))})]}),
(0,$APP.$rumext$v2$jsxs$$)("li",{onClick:$on_zoom_selected$$,className:"main_ui_workspace_right_header__zoom-option",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.header.zoom-selected"),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_right_header__shortcuts",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$153$$,$sc$jscomp$30$$){$out_arr__44057__auto__$jscomp$153$$.push((0,$APP.$rumext$v2$jsx$$)("span",
{className:"main_ui_workspace_right_header__shortcut-key",children:$sc$jscomp$30$$},["zoom-selected-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sc$jscomp$30$$)].join("")));return $out_arr__44057__auto__$jscomp$153$$},[],$APP.$app$main$data$shortcuts$split_sc$$($app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4670$zoom_selected$$)))})]})]})})]})});var $app$main$ui$workspace$sidebar$assets$groups$schema_COLON_group_form$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$202$map$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$937$title$$,"GroupForm"],null),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$723$name$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$970$app_DOT_common_DOT_schema_SLASH_text$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$337$max$$,250],null)],null)],null)],null);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$17$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$17$$,$cljs$cst$5348$name_group_dialog$$,$app$main$ui$workspace$sidebar$assets$groups$name_group_dialog$$)});var $app$main$ui$workspace$sidebar$assets$colors$colors_group$$=function $app$main$ui$workspace$sidebar$assets$colors$colors_group$$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$){$group_open_QMARK__map__76318_map__76318__$1_props_76317$$=$APP.$rumext$v2$util$wrap_props$$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$);$group_open_QMARK__map__76318_map__76318__$1_props_76317$$=$APP.$cljs$core$__destructure_map$$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$);
var $groups$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$4342$groups$$),$on_asset_click$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5381$on_asset_click$$),$on_rename_group$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5382$on_rename_group$$),
$selected_full$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5383$selected_full$$),$on_assets_delete$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5384$on_assets_delete$$),$force_open_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5385$force_open_QMARK_$$),
$selected$jscomp$150$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$1906$selected$$),$file_id$jscomp$351$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$1628$file_id$$),$multi_assets_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5386$multi_assets_QMARK_$$),
$on_ungroup$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5387$on_ungroup$$),$local_QMARK_$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$3563$local_QMARK_$$),$colors$jscomp$21$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$2174$colors$$),
$open_groups$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5388$open_groups$$),$prefix$jscomp$68$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$APP.$cljs$cst$969$prefix$$),$on_clear_selection$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5389$on_clear_selection$$),
$on_group$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5390$on_group$$),$multi_colors_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($group_open_QMARK__map__76318_map__76318__$1_props_76317$$,$cljs$cst$5391$multi_colors_QMARK_$$);$group_open_QMARK__map__76318_map__76318__$1_props_76317$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($open_groups$$,$prefix$jscomp$68$$)===!1?!1:
$force_open_QMARK_$$||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_groups$$,$prefix$jscomp$68$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prefix$jscomp$68$$,"")?!0:!1);var $dragging_STAR_$jscomp$6$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$dragging_QMARK_$jscomp$4$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$6$$),$selected_paths$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_full$jscomp$3$$)],
function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$),$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$1$("")),$selected_full$jscomp$3$$)}),$move_color$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$351$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$libraries$rename_color$$,
$file_id$jscomp$351$$)),$on_drag_enter$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$6$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$68$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$5$$)],function($event$jscomp$389$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset_group$$($event$jscomp$389$$,$dragging_STAR_$jscomp$6$$,$prefix$jscomp$68$$,$selected_paths$jscomp$5$$)}),$on_drag_leave$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$6$$)],
function($event$jscomp$390$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$390$$,$dragging_STAR_$jscomp$6$$)}),$on_drop$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$6$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$68$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$5$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$3$$),$APP.$rumext$v2$adapt$$($move_color$jscomp$1$$)],function($event$jscomp$391$$){return $app$main$ui$workspace$sidebar$assets$common$on_drop_asset_group$$($event$jscomp$391$$,
$dragging_STAR_$jscomp$6$$,$prefix$jscomp$68$$,$selected_paths$jscomp$5$$,$selected_full$jscomp$3$$,$move_color$jscomp$1$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$3$$,onDragLeave:$on_drag_leave$jscomp$3$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$6$$,className:"main_ui_workspace_sidebar_assets_colors__colors-group",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$groups$asset_group_title_STAR_$$,{fileId:$file_id$jscomp$351$$,
section:$APP.$cljs$cst$2174$colors$$,path:$prefix$jscomp$68$$,isGroupOpen:$group_open_QMARK__map__76318_map__76318__$1_props_76317$$,onRename:$on_rename_group$$,onUngroup:$on_ungroup$jscomp$1$$}),$group_open_QMARK__map__76318_map__76318__$1_props_76317$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[function(){var $colors__$1$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($groups$jscomp$5$$,"",$APP.$cljs$core$PersistentVector$EMPTY$$);return(0,$APP.$rumext$v2$jsxs$$)("div",
{onDragEnter:$on_drag_enter$jscomp$3$$,onDragLeave:$on_drag_leave$jscomp$3$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$6$$,className:"main_ui_workspace_sidebar_assets_colors__asset-list",children:[$dragging_QMARK_$jscomp$4$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_colors__grid-placeholder",children:" "}):null,$APP.$cljs$core$empty_QMARK_$$($colors__$1$jscomp$5$$)&&$groups$jscomp$5$$!=null?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_colors__drop-space"}):
null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$154$$,$color$jscomp$163$$){$out_arr__44057__auto__$jscomp$154$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$colors$color_item$$,{"selected-full":$selected_full$jscomp$3$$,"on-assets-delete":$on_assets_delete$jscomp$1$$,selected:$selected$jscomp$150$$,color:$color$jscomp$163$$,"file-id":$file_id$jscomp$351$$,"multi-assets?":$multi_assets_QMARK_$jscomp$1$$,"local?":$local_QMARK_$jscomp$6$$,
colors:$colors__$1$jscomp$5$$,"move-color":$move_color$jscomp$1$$,"on-group":$on_group$jscomp$1$$,"on-clear-selection":$on_clear_selection$jscomp$1$$,"multi-colors?":$multi_colors_QMARK_$jscomp$1$$,"selected-paths":$selected_paths$jscomp$5$$,"on-asset-click":$on_asset_click$jscomp$1$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($color$jscomp$163$$)??"")));return $out_arr__44057__auto__$jscomp$154$$},[],$colors__$1$jscomp$5$$)]})}(),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$155$$,
$content$jscomp$234_p__76325$$){var $path_item$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$234_p__76325$$,0,null);$content$jscomp$234_p__76325$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$234_p__76325$$,1,null);$out_arr__44057__auto__$jscomp$155$$.push($APP.$cljs$core$empty_QMARK_$$($path_item$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$colors$colors_group$$,{"selected-full":$selected_full$jscomp$3$$,"on-assets-delete":$on_assets_delete$jscomp$1$$,
"force-open?":$force_open_QMARK_$$,selected:$selected$jscomp$150$$,"file-id":$file_id$jscomp$351$$,"multi-assets?":$multi_assets_QMARK_$jscomp$1$$,"on-ungroup":$on_ungroup$jscomp$1$$,"local?":$local_QMARK_$jscomp$6$$,colors:$colors$jscomp$21$$,"open-groups":$open_groups$$,prefix:$APP.$app$common$path_names$merge_path_item$$($prefix$jscomp$68$$,$path_item$$),"on-group":$on_group$jscomp$1$$,"on-clear-selection":$on_clear_selection$jscomp$1$$,"multi-colors?":$multi_colors_QMARK_$jscomp$1$$,groups:$content$jscomp$234_p__76325$$,
"on-asset-click":$on_asset_click$jscomp$1$$,"on-rename-group":$on_rename_group$$},"group-"+($path_item$$??"")));return $out_arr__44057__auto__$jscomp$155$$},[],$groups$jscomp$5$$)]}):null]})};var $app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2526$is_local$$,!1],null)),$app$main$ui$workspace$sidebar$assets$components$count_leaves$$=function $app$main$ui$workspace$sidebar$assets$components$count_leaves$$($m$jscomp$235$$){return $APP.$cljs$core$reduce_kv$$(function($acc$jscomp$144$$,$_$jscomp$2863$$,$v$jscomp$659$$){return $APP.$cljs$core$map_QMARK_$$($v$jscomp$659$$)?
$acc$jscomp$144$$+($app$main$ui$workspace$sidebar$assets$components$count_leaves$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$workspace$sidebar$assets$components$count_leaves$$.$cljs$core$IFn$_invoke$arity$1$($v$jscomp$659$$):$app$main$ui$workspace$sidebar$assets$components$count_leaves$$($v$jscomp$659$$)):$APP.$cljs$core$vector_QMARK_$$($v$jscomp$659$$)?$acc$jscomp$144$$+$APP.$cljs$core$count$$($v$jscomp$659$$):$acc$jscomp$144$$},0,$m$jscomp$235$$)},$app$main$ui$workspace$sidebar$assets$components$components_group_STAR_$$=
function $app$main$ui$workspace$sidebar$assets$components$components_group_STAR_$$($group_open_QMARK_$jscomp$1_props_76319$$){var $on_group_combine_variants$jscomp$1$$=$group_open_QMARK_$jscomp$1_props_76319$$.onGroupCombineVariants,$groups$jscomp$7$$=$group_open_QMARK_$jscomp$1_props_76319$$.groups,$on_asset_click$jscomp$4$$=$group_open_QMARK_$jscomp$1_props_76319$$.onAssetClick,$on_rename_group$jscomp$2$$=$group_open_QMARK_$jscomp$1_props_76319$$.onRenameGroup,$selected_full$jscomp$6$$=$group_open_QMARK_$jscomp$1_props_76319$$.selectedFull,
$selected$jscomp$153$$=$group_open_QMARK_$jscomp$1_props_76319$$.selected,$file_id$jscomp$355$$=$group_open_QMARK_$jscomp$1_props_76319$$.fileId,$cancel_rename$jscomp$1$$=$group_open_QMARK_$jscomp$1_props_76319$$.cancelRename,$is_listing_thumbs$jscomp$1$$=$group_open_QMARK_$jscomp$1_props_76319$$.isListingThumbs,$count_variants$$=$group_open_QMARK_$jscomp$1_props_76319$$.countVariants,$is_force_open$jscomp$1$$=$group_open_QMARK_$jscomp$1_props_76319$$.isForceOpen,$on_ungroup$jscomp$3$$=$group_open_QMARK_$jscomp$1_props_76319$$.onUngroup,
$on_context_menu$jscomp$5$$=$group_open_QMARK_$jscomp$1_props_76319$$.onContextMenu,$renaming$jscomp$1$$=$group_open_QMARK_$jscomp$1_props_76319$$.renaming,$open_groups$jscomp$2$$=$group_open_QMARK_$jscomp$1_props_76319$$.openGroups,$prefix$jscomp$69$$=$group_open_QMARK_$jscomp$1_props_76319$$.prefix,$do_rename$jscomp$3$$=$group_open_QMARK_$jscomp$1_props_76319$$.doRename,$is_local$jscomp$2$$=$group_open_QMARK_$jscomp$1_props_76319$$.isLocal,$on_group$jscomp$3$$=$group_open_QMARK_$jscomp$1_props_76319$$.onGroup,
$on_drag_start$jscomp$3$$=$group_open_QMARK_$jscomp$1_props_76319$$.onDragStart;$group_open_QMARK_$jscomp$1_props_76319$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($open_groups$jscomp$2$$,$prefix$jscomp$69$$)===!1?!1:$is_force_open$jscomp$1$$||$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_groups$jscomp$2$$,$prefix$jscomp$69$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prefix$jscomp$69$$,"")?!0:!1);var $dragging_STAR_$jscomp$8$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$dragging_QMARK_$jscomp$6$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$8$$),$selected_paths$jscomp$7$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_full$jscomp$6$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$),$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$1$("")),
$selected_full$jscomp$6$$)}),$components$jscomp$13$$=$APP.$cljs$core$not_empty$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($groups$jscomp$7$$,"",$APP.$cljs$core$PersistentVector$EMPTY$$)),$can_combine_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_local$jscomp$2$$),$APP.$rumext$v2$adapt$$($groups$jscomp$7$$),$APP.$rumext$v2$adapt$$($components$jscomp$13$$)],function(){if($APP.$cljs$core$truth_$$($is_local$jscomp$2$$)){var $and__5023__auto____$1$jscomp$125_and__5023__auto____$2$jscomp$39$$=
$app$main$ui$workspace$sidebar$assets$components$count_leaves$$($groups$jscomp$7$$)>1;return $and__5023__auto____$1$jscomp$125_and__5023__auto____$2$jscomp$39$$?($and__5023__auto____$1$jscomp$125_and__5023__auto____$2$jscomp$39$$=$cljs$core$not_any_QMARK_$$($APP.$app$common$types$component$is_variant_QMARK_$$,$components$jscomp$13$$))?$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$_EQ_$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2046$main_instance_page$$,
$components$jscomp$13$$)):$and__5023__auto____$1$jscomp$125_and__5023__auto____$2$jscomp$39$$:$and__5023__auto____$1$jscomp$125_and__5023__auto____$2$jscomp$39$$}return $is_local$jscomp$2$$}),$on_drag_enter$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$8$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$69$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$7$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$2$$),$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],
function($event$jscomp$402$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$2$$)?$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):$is_local$jscomp$2$$)?$app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset_group$$($event$jscomp$402$$,$dragging_STAR_$jscomp$8$$,$prefix$jscomp$69$$,$selected_paths$jscomp$7$$):null}),$on_drag_leave$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$8$$),
$APP.$rumext$v2$adapt$$($is_local$jscomp$2$$),$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],function($event$jscomp$403$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$2$$)?$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):$is_local$jscomp$2$$)?$app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$403$$,
$dragging_STAR_$jscomp$8$$):null}),$on_drop$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$8$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$69$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$7$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$6$$),$APP.$rumext$v2$adapt$$($is_local$jscomp$2$$),$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)],function($event$jscomp$404$$){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_local$jscomp$2$$)?
$APP.$cljs$cst$2526$is_local$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($app$main$ui$workspace$sidebar$assets$components$drag_data_STAR_$$)):$is_local$jscomp$2$$)?$app$main$ui$workspace$sidebar$assets$common$on_drop_asset_group$$($event$jscomp$404$$,$dragging_STAR_$jscomp$8$$,$prefix$jscomp$69$$,$selected_paths$jscomp$7$$,$selected_full$jscomp$6$$,$APP.$app$main$data$workspace$variants$rename_comp_or_variant_and_main$$):null});return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$5$$,
onDragLeave:$on_drag_leave$jscomp$5$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$8$$,className:"main_ui_workspace_sidebar_assets_components__component-group",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$groups$asset_group_title_STAR_$$,{fileId:$file_id$jscomp$355$$,section:$APP.$cljs$cst$1622$components$$,path:$prefix$jscomp$69$$,isGroupOpen:$group_open_QMARK_$jscomp$1_props_76319$$,isCanCombine:$can_combine_QMARK_$$,onRename:$on_rename_group$jscomp$2$$,
onUngroup:$on_ungroup$jscomp$3$$,onGroupCombineVariants:$on_group_combine_variants$jscomp$1$$}),$group_open_QMARK_$jscomp$1_props_76319$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$5$$,onDragLeave:$on_drag_leave$jscomp$5$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$8$$,className:($APP.$cljs$core$truth_$$($is_listing_thumbs$jscomp$1$$)?"main_ui_workspace_sidebar_assets_components__component-group-grid":
"")+" "+($APP.$cljs$core$not$$($is_listing_thumbs$jscomp$1$$)?"main_ui_workspace_sidebar_assets_components__component-group-list":""),children:[$dragging_QMARK_$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_components__component-group-placeholder",children:" "}):null,$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$721_and__5023__auto____$1$jscomp$126$$=$APP.$cljs$core$empty_QMARK_$$($components$jscomp$13$$);return $and__5023__auto__$jscomp$721_and__5023__auto____$1$jscomp$126$$?
($and__5023__auto__$jscomp$721_and__5023__auto____$1$jscomp$126$$=$groups$jscomp$7$$!=null)?$is_local$jscomp$2$$:$and__5023__auto__$jscomp$721_and__5023__auto____$1$jscomp$126$$:$and__5023__auto__$jscomp$721_and__5023__auto____$1$jscomp$126$$}())?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_components__component-group-drop-space "+($APP.$cljs$core$not$$($dragging_QMARK_$jscomp$6$$)?"main_ui_workspace_sidebar_assets_components__component-group-drop-space-small":"")}):
null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$156$$,$component$jscomp$121$$){var $JSCompiler_temp_const$jscomp$1734$$=$out_arr__44057__auto__$jscomp$156$$.push;var $G__76320$jscomp$inline_8532_JSCompiler_inline_result$jscomp$1736$$=$APP.$cljs$cst$1985$variant_id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$121$$);$G__76320$jscomp$inline_8532_JSCompiler_inline_result$jscomp$1736$$=$count_variants$$.$cljs$core$IFn$_invoke$arity$1$?$count_variants$$.$cljs$core$IFn$_invoke$arity$1$($G__76320$jscomp$inline_8532_JSCompiler_inline_result$jscomp$1736$$):
$count_variants$$($G__76320$jscomp$inline_8532_JSCompiler_inline_result$jscomp$1736$$);$JSCompiler_temp_const$jscomp$1734$$.call($out_arr__44057__auto__$jscomp$156$$,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$components$components_item_STAR_$$,{isLocal:$is_local$jscomp$2$$,selected:$selected$jscomp$153$$,onGroup:$on_group$jscomp$3$$,onAssetClick:$on_asset_click$jscomp$4$$,doRename:$do_rename$jscomp$3$$,component:$component$jscomp$121$$,cancelRename:$cancel_rename$jscomp$1$$,numVariants:$G__76320$jscomp$inline_8532_JSCompiler_inline_result$jscomp$1736$$,
onContextMenu:$on_context_menu$jscomp$5$$,isListingThumbs:$is_listing_thumbs$jscomp$1$$,renaming:$renaming$jscomp$1$$,onDragStart:$on_drag_start$jscomp$3$$,fileId:$file_id$jscomp$355$$,selectedFull:$selected_full$jscomp$6$$,selectedPaths:$selected_paths$jscomp$7$$},"component-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($component$jscomp$121$$)??"")));return $out_arr__44057__auto__$jscomp$156$$},[],$components$jscomp$13$$)]}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$157$$,
$content$jscomp$235_p__76321$$){var $path_item$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$235_p__76321$$,0,null);$content$jscomp$235_p__76321$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$235_p__76321$$,1,null);$out_arr__44057__auto__$jscomp$157$$.push($APP.$cljs$core$empty_QMARK_$$($path_item$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$components$components_group_STAR_$$,{isLocal:$is_local$jscomp$2$$,
selected:$selected$jscomp$153$$,onRenameGroup:$on_rename_group$jscomp$2$$,onAssetClick:$on_asset_click$jscomp$4$$,prefix:$APP.$app$common$path_names$merge_path_item$$($prefix$jscomp$69$$,$path_item$jscomp$1$$),isForceOpen:$is_force_open$jscomp$1$$,doRename:$do_rename$jscomp$3$$,countVariants:$count_variants$$,cancelRename:$cancel_rename$jscomp$1$$,onContextMenu:$on_context_menu$jscomp$5$$,isListingThumbs:$is_listing_thumbs$jscomp$1$$,onUngroup:$on_ungroup$jscomp$3$$,onGroupCombineVariants:$on_group_combine_variants$jscomp$1$$,
openGroups:$open_groups$jscomp$2$$,renaming:$renaming$jscomp$1$$,onDragStart:$on_drag_start$jscomp$3$$,fileId:$file_id$jscomp$355$$,groups:$content$jscomp$235_p__76321$$,selectedFull:$selected_full$jscomp$6$$},$path_item$jscomp$1$$));return $out_arr__44057__auto__$jscomp$157$$},[],$groups$jscomp$7$$)]}):null]})};var $shadow$js$shim$module$0react_virtualized$$=shadow$bridge("react-virtualized");var $app$main$ui$workspace$sidebar$options$menus$typography$font_item_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76380_style$jscomp$71$$){var $is_current$$=$props_76380_style$jscomp$71$$.isCurrent,$on_click$jscomp$40$$=$props_76380_style$jscomp$71$$.onClick,$font$jscomp$44$$=$props_76380_style$jscomp$71$$.font;$props_76380_style$jscomp$71$$=$props_76380_style$jscomp$71$$.style;var $item_ref$jscomp$5$$=(0,$APP.$rumext$v2$use_ref$$)(),$on_click__$1$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($font$jscomp$44$$)],function(){return $on_click$jscomp$40$$.$cljs$core$IFn$_invoke$arity$1$?$on_click$jscomp$40$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$44$$):$on_click$jscomp$40$$($font$jscomp$44$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($is_current$$)],function(){if($APP.$cljs$core$truth_$$($is_current$$)){var $element$jscomp$79$$=$APP.$rumext$v2$ref_val$$($item_ref$jscomp$5$$);
return $APP.$cljs$core$truth_$$($app$util$dom$is_in_viewport_QMARK_$$($element$jscomp$79$$))?null:$element$jscomp$79$$!=null?$element$jscomp$79$$.scrollIntoView(!1):null}return null});return(0,$APP.$rumext$v2$jsx$$)("div",{style:$props_76380_style$jscomp$71$$,ref:$item_ref$jscomp$5$$,onClick:$on_click__$1$jscomp$2$$,className:"main_ui_workspace_sidebar_options_menus_typography__font-wrapper",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-item "+
($APP.$cljs$core$truth_$$($is_current$$)?"main_ui_workspace_sidebar_options_menus_typography__selected":""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__label",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font$jscomp$44$$)}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__icon",children:$APP.$cljs$core$truth_$$($is_current$$)?$APP.$app$main$ui$icons$tick$$:null})]})})}),
$app$main$ui$workspace$sidebar$options$menus$typography$typography_advanced_options$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__76417_name_input_ref_props_76416$$){$map__76417_name_input_ref_props_76416$$=$APP.$rumext$v2$util$wrap_props$$($map__76417_name_input_ref_props_76416$$);var $map__76417__$1_typography$jscomp$30$$=$APP.$cljs$core$__destructure_map$$($map__76417_name_input_ref_props_76416$$);$map__76417_name_input_ref_props_76416$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,
$cljs$cst$5396$name_input_ref$$);var $on_key_down$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$cljs$cst$5397$on_key_down$$),$on_change$jscomp$46$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$APP.$cljs$cst$4041$on_change$$),$navigate_to_library$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$cljs$cst$5398$navigate_to_library$$),$on_name_blur$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$cljs$cst$5399$on_name_blur$$),$visible_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$cljs$cst$5400$visible_QMARK_$$),$on_close$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$APP.$cljs$cst$4799$on_close$$),$local_QMARK_$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,
$APP.$cljs$cst$3563$local_QMARK_$$),$editable_QMARK_$jscomp$8$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$cljs$cst$5401$editable_QMARK_$$);$map__76417__$1_typography$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76417__$1_typography$jscomp$30$$,$APP.$cljs$cst$1966$typography$$);var $ref$jscomp$50$$=(0,$APP.$rumext$v2$use_ref$$)(null),$font_data$jscomp$11$$=$APP.$app$main$fonts$get_font_data$$($APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$));
$APP.$app$main$fonts$ensure_loaded_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($visible_QMARK_$jscomp$1$$)],function(){var $temp__5825__auto__$jscomp$339$$=$APP.$rumext$v2$ref_val$$($ref$jscomp$50$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$339$$)?$APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$1$$)?
$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($temp__5825__auto__$jscomp$339$$,!1):null:null});return $APP.$cljs$core$truth_$$($visible_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{ref:$ref$jscomp$50$$,className:"main_ui_workspace_sidebar_options_menus_typography__advanced-options-wrapper",children:$editable_QMARK_$jscomp$8$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__font-name-wrapper",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)},className:"main_ui_workspace_sidebar_options_menus_typography__typography-sample-input",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.sample")}),
(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",ref:$map__76417_name_input_ref_props_76416$$,defaultValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),maxLength:255,onKeyDown:$on_key_down$jscomp$12$$,onBlur:$on_name_blur$$,className:"main_ui_workspace_sidebar_options_menus_typography__adv-typography-name"}),(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$on_close$jscomp$27$$,className:"main_ui_workspace_sidebar_options_menus_typography__action-btn",children:$APP.$app$main$ui$icons$tick$$})]}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$text_options$$,{values:$map__76417__$1_typography$jscomp$30$$,"on-change":$on_change$jscomp$46$$,"show-recent":!1})]}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__typography-info-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__typography-name-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",{style:{fontFamily:$APP.$cljs$cst$1742$font_family$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),
fontWeight:$APP.$cljs$cst$1745$font_weight$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),fontStyle:$APP.$cljs$cst$1746$font_style$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)},className:"main_ui_workspace_sidebar_options_menus_typography__typography-sample",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.sample")}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$),
className:"main_ui_workspace_sidebar_options_menus_typography__typography-name",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__typography-font",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($font_data$jscomp$11$$)}),(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$on_close$jscomp$27$$,className:"main_ui_workspace_sidebar_options_menus_typography__action-btn",
children:$APP.$app$main$ui$icons$menu$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__info-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.font-style")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-content",children:$APP.$cljs$cst$1743$font_variant_id$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__info-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.font-size")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-content",children:$APP.$cljs$cst$1744$font_size$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__info-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.line-height")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-content",children:$APP.$cljs$cst$1749$line_height$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__info-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.letter-spacing")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-content",children:$APP.$cljs$cst$1750$letter_spacing$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_typography__info-row",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.text-transform")}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_typography__info-content",children:$APP.$cljs$cst$1753$text_transform$$.$cljs$core$IFn$_invoke$arity$1$($map__76417__$1_typography$jscomp$30$$)})]}),
$APP.$cljs$core$truth_$$($local_QMARK_$jscomp$7$$)?null:(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$navigate_to_library$$,className:"main_ui_workspace_sidebar_options_menus_typography__link-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography.go-to-edit")})]})}):null});var $app$main$ui$workspace$sidebar$assets$typographies$lens_COLON_typography_section_state$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($gstate$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5402$rename_typography$$,$cljs$cst$5402$rename_typography$$.$cljs$core$IFn$_invoke$arity$1$($gstate$$),$APP.$cljs$cst$3756$edit_typography$$,$APP.$cljs$cst$3756$edit_typography$$.$cljs$core$IFn$_invoke$arity$1$($gstate$$)],null)},$APP.$app$main$refs$workspace_global$$,
$APP.$cljs$core$_EQ_$$),$app$main$ui$workspace$sidebar$assets$typographies$typographies_group$$=function $app$main$ui$workspace$sidebar$assets$typographies$typographies_group$$($group_open_QMARK_$jscomp$2_props_76427$$){var $groups$jscomp$9$$=$group_open_QMARK_$jscomp$2_props_76427$$.groups,$on_asset_click$jscomp$7$$=$group_open_QMARK_$jscomp$2_props_76427$$["on-asset-click"],$on_rename_group$jscomp$4$$=$group_open_QMARK_$jscomp$2_props_76427$$["on-rename-group"],$selected_full$jscomp$9$$=$group_open_QMARK_$jscomp$2_props_76427$$["selected-full"],
$force_open_QMARK_$jscomp$1$$=$group_open_QMARK_$jscomp$2_props_76427$$["force-open?"],$handle_change$jscomp$6$$=$group_open_QMARK_$jscomp$2_props_76427$$["handle-change"],$selected$jscomp$158$$=$group_open_QMARK_$jscomp$2_props_76427$$.selected,$file_id$jscomp$359$$=$group_open_QMARK_$jscomp$2_props_76427$$["file-id"],$file$jscomp$158$$=$group_open_QMARK_$jscomp$2_props_76427$$.file,$on_ungroup$jscomp$5$$=$group_open_QMARK_$jscomp$2_props_76427$$["on-ungroup"],$local_QMARK_$jscomp$10$$=$group_open_QMARK_$jscomp$2_props_76427$$["local?"],
$on_context_menu$jscomp$9$$=$group_open_QMARK_$jscomp$2_props_76427$$["on-context-menu"],$local_data$$=$group_open_QMARK_$jscomp$2_props_76427$$["local-data"],$open_groups$jscomp$4$$=$group_open_QMARK_$jscomp$2_props_76427$$["open-groups"],$prefix$jscomp$70$$=$group_open_QMARK_$jscomp$2_props_76427$$.prefix,$editing_id$jscomp$2$$=$group_open_QMARK_$jscomp$2_props_76427$$["editing-id"],$renaming_id$jscomp$1$$=$group_open_QMARK_$jscomp$2_props_76427$$["renaming-id"];$group_open_QMARK_$jscomp$2_props_76427$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($open_groups$jscomp$4$$,$prefix$jscomp$70$$)===!1?!1:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_groups$jscomp$4$$,$prefix$jscomp$70$$,!0);var $dragging_STAR_$jscomp$10$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$dragging_QMARK_$jscomp$8$$=$APP.$cljs$core$_deref$$($dragging_STAR_$jscomp$10$$),$selected_paths$jscomp$9$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_full$jscomp$9$$)],
function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$),$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$1$("")),$selected_full$jscomp$9$$)}),$move_typography$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$359$$)],$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$data$workspace$libraries$rename_typography$$,
$file_id$jscomp$359$$)),$on_drag_enter$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$10$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$70$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$9$$)],function($event$jscomp$426$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_enter_asset_group$$($event$jscomp$426$$,$dragging_STAR_$jscomp$10$$,$prefix$jscomp$70$$,$selected_paths$jscomp$9$$)}),$on_drag_leave$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$10$$)],
function($event$jscomp$427$$){return $app$main$ui$workspace$sidebar$assets$common$on_drag_leave_asset$$($event$jscomp$427$$,$dragging_STAR_$jscomp$10$$)}),$on_drop$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($dragging_STAR_$jscomp$10$$),$APP.$rumext$v2$adapt$$($prefix$jscomp$70$$),$APP.$rumext$v2$adapt$$($selected_paths$jscomp$9$$),$APP.$rumext$v2$adapt$$($selected_full$jscomp$9$$),$APP.$rumext$v2$adapt$$($move_typography$jscomp$1$$)],function($event$jscomp$428$$){return $app$main$ui$workspace$sidebar$assets$common$on_drop_asset_group$$($event$jscomp$428$$,
$dragging_STAR_$jscomp$10$$,$prefix$jscomp$70$$,$selected_paths$jscomp$9$$,$selected_full$jscomp$9$$,$move_typography$jscomp$1$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$7$$,onDragLeave:$on_drag_leave$jscomp$7$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$10$$,className:"main_ui_workspace_sidebar_assets_typographies__typographies-group",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$groups$asset_group_title_STAR_$$,
{fileId:$file_id$jscomp$359$$,section:$APP.$cljs$cst$2177$typographies$$,path:$prefix$jscomp$70$$,isGroupOpen:$group_open_QMARK_$jscomp$2_props_76427$$,onRename:$on_rename_group$jscomp$4$$,onUngroup:$on_ungroup$jscomp$5$$}),$APP.$cljs$core$truth_$$($group_open_QMARK_$jscomp$2_props_76427$$)?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[function(){var $typographies$jscomp$7$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($groups$jscomp$9$$,"",$APP.$cljs$core$PersistentVector$EMPTY$$);
return(0,$APP.$rumext$v2$jsxs$$)("div",{onDragEnter:$on_drag_enter$jscomp$7$$,onDragLeave:$on_drag_leave$jscomp$7$$,onDragOver:$APP.$app$util$dom$prevent_default$$,onDrop:$on_drop$jscomp$10$$,className:"main_ui_workspace_sidebar_assets_typographies__assets-list",children:[$dragging_QMARK_$jscomp$8$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_typographies__grid-placeholder",children:" "}):null,$APP.$cljs$core$empty_QMARK_$$($typographies$jscomp$7$$)&&$groups$jscomp$9$$!=
null?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_assets_typographies__drop-space"}):null,$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$160$$,$map__76431__$1_p__76430$$){$map__76431__$1_p__76430$$=$APP.$cljs$core$__destructure_map$$($map__76431__$1_p__76430$$);var $id$jscomp$898$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76431__$1_p__76430$$,$APP.$cljs$cst$266$id$$);$out_arr__44057__auto__$jscomp$160$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$typographies$typography_item$$,
{"selected-full":$selected_full$jscomp$9$$,"handle-change":$handle_change$jscomp$6$$,selected:$selected$jscomp$158$$,"rename?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5402$rename_typography$$.$cljs$core$IFn$_invoke$arity$1$($local_data$$),$id$jscomp$898$$),"file-id":$file_id$jscomp$359$$,"local?":$local_QMARK_$jscomp$10$$,"on-context-menu":$on_context_menu$jscomp$9$$,"editing-id":$editing_id$jscomp$2$$,typography:$map__76431__$1_p__76430$$,"renaming-id":$renaming_id$jscomp$1$$,
"selected-paths":$selected_paths$jscomp$9$$,"move-typography":$move_typography$jscomp$1$$,"on-asset-click":$on_asset_click$jscomp$7$$},"typography-"+($id$jscomp$898$$??"")));return $out_arr__44057__auto__$jscomp$160$$},[],$typographies$jscomp$7$$)]})}(),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$161$$,$content$jscomp$236_p__76432$$){var $path_item$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$236_p__76432$$,
0,null);$content$jscomp$236_p__76432$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($content$jscomp$236_p__76432$$,1,null);$out_arr__44057__auto__$jscomp$161$$.push($APP.$cljs$core$empty_QMARK_$$($path_item$jscomp$2$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$typographies$typographies_group$$,{"selected-full":$selected_full$jscomp$9$$,"force-open?":$force_open_QMARK_$jscomp$1$$,"handle-change":$handle_change$jscomp$6$$,selected:$selected$jscomp$158$$,"file-id":$file_id$jscomp$359$$,
"on-ungroup":$on_ungroup$jscomp$5$$,file:$file$jscomp$158$$,"local?":$local_QMARK_$jscomp$10$$,"on-context-menu":$on_context_menu$jscomp$9$$,"local-data":$local_data$$,"open-groups":$open_groups$jscomp$4$$,prefix:$APP.$app$common$path_names$merge_path_item$$($prefix$jscomp$70$$,$path_item$jscomp$2$$),"editing-id":$editing_id$jscomp$2$$,"renaming-id":$renaming_id$jscomp$1$$,groups:$content$jscomp$236_p__76432$$,"on-asset-click":$on_asset_click$jscomp$7$$,"on-rename-group":$on_rename_group$jscomp$4$$},
"group-"+($path_item$jscomp$2$$??"")));return $out_arr__44057__auto__$jscomp$161$$},[],$groups$jscomp$9$$)]}):null]})};var $app$main$ui$workspace$sidebar$assets$file_library$ref_COLON_open_status$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$4339$open_status$$],null)),$APP.$app$main$store$state$$),$app$main$ui$workspace$sidebar$assets$file_library$ref_COLON_selected$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4338$workspace_assets$$,$APP.$cljs$cst$1906$selected$$],null)),$APP.$app$main$store$state$$);var $app$main$ui$workspace$sidebar$assets$assets_libraries_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($libraries$jscomp$138_props_76468$$){var $filters$jscomp$9$$=$libraries$jscomp$138_props_76468$$.filters,$file_id$jscomp$367$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),$files$jscomp$27$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$);$libraries$jscomp$138_props_76468$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($files$jscomp$27$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$367$$)],function(){return $APP.$cljs$core$sort_by$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76467_SHARP_$$){return $APP.$cuerdas$core$lower$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($p1__76467_SHARP_$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($file$jscomp$162$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($file$jscomp$162$$,$APP.$cljs$cst$142$data$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1614$pages_index$$)},
$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76466_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($file_id$jscomp$367$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__76466_SHARP_$$))},$APP.$cljs$core$remove$$.$cljs$core$IFn$_invoke$arity$2$($cljs$cst$5405$is_indirect$$,$APP.$cljs$core$vals$$($APP.$app$main$refs$select_libraries$$($files$jscomp$27$$,$file_id$jscomp$367$$))))))});return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$162$$,
$file$jscomp$163$$){$out_arr__44057__auto__$jscomp$162$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$file_library$file_library_STAR_$$,{file:$file$jscomp$163$$,isLocal:!1,isDefaultOpen:!1,filters:$filters$jscomp$9$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$163$$)??"")));return $out_arr__44057__auto__$jscomp$162$$},[],$libraries$jscomp$138_props_76468$$)}),$app$main$ui$workspace$sidebar$assets$ref_COLON_local_library$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($file$jscomp$164$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($file$jscomp$164$$,
$APP.$cljs$cst$142$data$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$1614$pages_index$$)},$APP.$app$main$refs$file$$),$app$main$ui$workspace$sidebar$assets$assets_toolbox_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76488_size$jscomp$147$$){var $file_id$jscomp$368$$=$props_76488_size$jscomp$147$$.fileId;$props_76488_size$jscomp$147$$=$props_76488_size$jscomp$147$$.size;var $read_only_QMARK_$jscomp$22$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),
$filters_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$2470$term$$,"",$APP.$cljs$cst$1355$section$$,"all",$cljs$cst$5345$ordering$$,$app$main$data$workspace$assets$get_current_assets_ordering$$(),$APP.$cljs$cst$5404$list_style$$,$app$main$data$workspace$assets$get_current_assets_list_style$$(),$cljs$cst$5406$open_menu$$,!1],null)),$filters$jscomp$11$$=$APP.$cljs$core$_deref$$($filters_STAR_$$),$term$jscomp$9$$=
$APP.$cljs$cst$2470$term$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$11$$),$list_style$jscomp$3$$=$APP.$cljs$cst$5404$list_style$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$11$$),$menu_open_QMARK_$$=$cljs$cst$5406$open_menu$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$11$$),$section$jscomp$29$$=$APP.$cljs$cst$1355$section$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$11$$),$ordering$jscomp$3$$=$cljs$cst$5345$ordering$$.$cljs$core$IFn$_invoke$arity$1$($filters$jscomp$11$$),$reverse_sort_QMARK_$jscomp$2$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2656$desc$$,$ordering$jscomp$3$$),$components$jscomp$16_libs$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$libraries$$),$num_libs$$=$APP.$cljs$core$count$$($components$jscomp$16_libs$jscomp$1$$),$file$jscomp$166$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($components$jscomp$16_libs$jscomp$1$$,$file_id$jscomp$368$$);$components$jscomp$16_libs$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file$jscomp$166$$)],
function(){return $APP.$app$common$types$components_list$components$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$166$$))});var $toggle_ordering$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ordering$jscomp$3$$)],function(){var $new_value$jscomp$20$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($ordering$jscomp$3$$,$APP.$cljs$cst$4903$asc$$)?$APP.$cljs$cst$2656$desc$$:$APP.$cljs$cst$4903$asc$$;
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$$,$APP.$cljs$core$assoc$$,$cljs$cst$5345$ordering$$,$new_value$jscomp$20$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$cljs$cst$5376$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_ordering$$,$new_value$jscomp$20$$)}),$toggle_list_style$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($list_style$jscomp$3$$)],
function(){var $new_value$jscomp$21$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($list_style$jscomp$3$$,$cljs$cst$5378$thumbs$$)?$APP.$cljs$cst$201$list$$:$cljs$cst$5378$thumbs$$;$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$5404$list_style$$,$new_value$jscomp$21$$);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($APP.$app$util$storage$user$$,$APP.$cljs$core$assoc$$,$cljs$cst$5377$app_DOT_main_DOT_data_DOT_workspace_DOT_assets_SLASH_list_style$$,
$new_value$jscomp$21$$)}),$on_search_term_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$433$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clear_assets_section_open$$());return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($filters_STAR_$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$2470$term$$,$event$jscomp$433$$)}),$on_section_filter_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$434_value$jscomp$781$$){var $or__5025__auto__$jscomp$inline_8556$$=
$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$434_value$jscomp$781$$));$event$jscomp$434_value$jscomp$781$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8556$$)?$or__5025__auto__$jscomp$inline_8556$$:$APP.$app$util$dom$get_attribute$$($APP.$app$util$dom$get_current_target$$($event$jscomp$434_value$jscomp$781$$),"data-testid");$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$clear_assets_section_open$$());return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($filters_STAR_$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1355$section$$,$event$jscomp$434_value$jscomp$781$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5406$open_menu$$,!1]))}),$show_libraries_dialog$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$368$$)],function(){return $APP.$app$main$data$modal$show_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$3811$libraries_dialog$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,
[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$368$$],null))}),$on_open_menu$$=$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$($filters_STAR_$$,$APP.$cljs$core$update$$,$cljs$cst$5406$open_menu$$,$APP.$cljs$core$not$$)}),$on_menu_close$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$($filters_STAR_$$,$APP.$cljs$core$assoc$$,
$cljs$cst$5406$open_menu$$,!1)}),$options$jscomp$606$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_section_filter_change$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,4,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$("workspace.assets.box-filter-all"),$APP.$cljs$cst$266$id$$,"all",$APP.$cljs$cst$2359$handler$$,
$on_section_filter_change$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.components"),$APP.$cljs$cst$266$id$$,"components",$APP.$cljs$cst$2359$handler$$,$on_section_filter_change$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.colors"),$APP.$cljs$cst$266$id$$,"colors",$APP.$cljs$cst$2359$handler$$,
$on_section_filter_change$$],null),new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$723$name$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.typography"),$APP.$cljs$cst$266$id$$,"typographies",$APP.$cljs$cst$2359$handler$$,$on_section_filter_change$$],null)],null)});return(0,$APP.$rumext$v2$jsxs$$)("article",{className:"main_ui_workspace_sidebar_assets__assets-bar",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets__assets-header",
children:[$read_only_QMARK_$jscomp$22$$?null:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($num_libs$$,1)&&$APP.$cljs$core$empty_QMARK_$$($components$jscomp$16_libs$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$show_libraries_dialog$$,"data-testid":"libraries",className:"main_ui_workspace_sidebar_assets__add-library-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.add-library")}):(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$show_libraries_dialog$$,
"data-testid":"libraries",className:"main_ui_workspace_sidebar_assets__libraries-button",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.manage-library")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_assets__search-wrapper",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$search_bar$search_bar_STAR_$$,{onChange:$on_search_term_change$$,value:$term$jscomp$9$$,placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.search"),
children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_open_menu$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.filter"),className:"main_ui_workspace_sidebar_assets__section-button "+($APP.$cljs$core$truth_$$($menu_open_QMARK_$$)?"main_ui_workspace_sidebar_assets__opened":""),children:$APP.$app$main$ui$icons$filter_icon$$})}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$context_menu_a11y$context_menu_STAR_$$,{selected:$section$jscomp$29$$,width:$props_76488_size$jscomp$147$$,
top:158,onClose:$on_menu_close$jscomp$1$$,fixed:!0,minWidth:!0,show:$menu_open_QMARK_$$,selectable:!0,options:$options$jscomp$606$$,left:18}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.assets.sort"),onClick:$toggle_ordering$$,icon:$reverse_sort_QMARK_$jscomp$2$$?"asc-sort":"desc-sort"})]})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($app$main$ui$workspace$sidebar$assets$common$assets_filters$$),
{value:$filters$jscomp$11$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($app$main$ui$workspace$sidebar$assets$common$assets_toggle_ordering$$),{value:$toggle_ordering$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($app$main$ui$workspace$sidebar$assets$common$assets_toggle_list_style$$),{value:$toggle_list_style$jscomp$2$$,children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$assets_local_library_STAR_$$,
{filters:$filters$jscomp$11$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$assets_libraries_STAR_$$,{filters:$filters$jscomp$11$$})]})})})})]})});var $app$main$ui$workspace$sidebar$debug_shape_info$display_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,18,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$1598$shapes$$,$APP.$cljs$cst$1611$component_id$$,$APP.$cljs$cst$1627$component_file$$,$APP.$cljs$cst$2029$component_root$$,$APP.$cljs$cst$2030$main_instance$$,$APP.$cljs$cst$2032$shape_ref$$,$APP.$cljs$cst$1499$x$$,
$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1589$selrect$$,$APP.$cljs$cst$1588$points$$,$APP.$cljs$cst$1275$transform$$,$APP.$cljs$cst$1771$transform_inverse$$],null),$app$main$ui$workspace$sidebar$debug_shape_info$remove_attrs$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2031$remote_synced$$,null,$APP.$cljs$cst$723$name$$,null],null),null),$app$main$ui$workspace$sidebar$debug_shape_info$custom_renderer$$=
$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1275$transform$$,$APP.$cljs$cst$1680$layout_grid_cells$$,$APP.$cljs$cst$1588$points$$,$APP.$cljs$cst$2032$shape_ref$$,$APP.$cljs$cst$1771$transform_inverse$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$1589$selrect$$,$APP.$cljs$cst$1598$shapes$$],[$cljs$cst$5408$matrix_render$$,$cljs$cst$5409$cells_render$$,$cljs$cst$5410$points_render$$,$cljs$cst$5411$shape_link$$,$cljs$cst$5408$matrix_render$$,$cljs$cst$5411$shape_link$$,
$cljs$cst$5411$shape_link$$,$cljs$cst$5412$rect_render$$,$cljs$cst$5413$shape_list$$]);var $app$main$ui$workspace$sidebar$history$workspace_undo$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$3435$workspace_undo$$,$APP.$app$main$store$state$$);var $app$main$ui$workspace$sidebar$layers$layers_tree$$,$p1__76527_SHARP_$jscomp$inline_8573$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$){var $objects$jscomp$755$$=$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$.objects,$parent_size$jscomp$3$$=$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$["parent-size"],$filtered_QMARK_$jscomp$2$$=$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$["filtered?"];
$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$);var $selected__$1$jscomp$18$$=$APP.$app$main$ui$hooks$use_equal_memo$$($highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$);$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$highlighted_shapes$$);var $highlighted__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$);
$highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$755$$,$APP.$app$common$uuid$zero$$);return(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"layer-item",className:"main_ui_workspace_sidebar_layers__element-list",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$171$$,$JSCompiler_temp_const$jscomp$1755_p__76531$$){var $JSCompiler_inline_result$jscomp$1757_index$jscomp$477$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1755_p__76531$$,0,null),$id$jscomp$908$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1755_p__76531$$,1,null);$JSCompiler_temp_const$jscomp$1755_p__76531$$=$out_arr__44057__auto__$jscomp$171$$.push;var $temp__5825__auto__$jscomp$inline_8571$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$755$$,$id$jscomp$908$$);$JSCompiler_inline_result$jscomp$1757_index$jscomp$477$$=
$APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$inline_8571$$)?$APP.$app$common$files$helpers$frame_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($temp__5825__auto__$jscomp$inline_8571$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers$frame_wrapper$$,{selected:$selected__$1$jscomp$18$$,index:$JSCompiler_inline_result$jscomp$1757_index$jscomp$477$$,objects:$objects$jscomp$755$$,item:$temp__5825__auto__$jscomp$inline_8571$$,highlighted:$highlighted__$1$$,"sortable?":!0,"parent-size":$parent_size$jscomp$3$$,
depth:-1,"filtered?":$filtered_QMARK_$jscomp$2$$},$id$jscomp$908$$):(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$workspace$sidebar$layer_item$layer_item$$,{selected:$selected__$1$jscomp$18$$,index:$JSCompiler_inline_result$jscomp$1757_index$jscomp$477$$,objects:$objects$jscomp$755$$,item:$temp__5825__auto__$jscomp$inline_8571$$,highlighted:$highlighted__$1$$,"sortable?":!0,"parent-size":$parent_size$jscomp$3$$,depth:-1,"filtered?":$filtered_QMARK_$jscomp$2$$},$id$jscomp$908$$):null;$JSCompiler_temp_const$jscomp$1755_p__76531$$.call($out_arr__44057__auto__$jscomp$171$$,
$JSCompiler_inline_result$jscomp$1757_index$jscomp$477$$);return $out_arr__44057__auto__$jscomp$171$$},[],$APP.$cljs$core$reverse$$($APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($highlighted$jscomp$2_props_76528_root$jscomp$66_selected$jscomp$164$$))))})})});$app$main$ui$workspace$sidebar$layers$layers_tree$$=$rumext$v2$throttle$$($p1__76527_SHARP_$jscomp$inline_8573$$,200);
var $app$main$ui$workspace$sidebar$layers$filters_tree$$,$p1__76536_SHARP_$jscomp$inline_8577$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76537_root$jscomp$67_selected$jscomp$165$$){var $objects$jscomp$756$$=$props_76537_root$jscomp$67_selected$jscomp$165$$.objects,$parent_size$jscomp$4$$=$props_76537_root$jscomp$67_selected$jscomp$165$$["parent-size"];$props_76537_root$jscomp$67_selected$jscomp$165$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_shapes$$);var $selected__$1$jscomp$19$$=
$APP.$app$main$ui$hooks$use_equal_memo$$($props_76537_root$jscomp$67_selected$jscomp$165$$);$props_76537_root$jscomp$67_selected$jscomp$165$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$756$$,$APP.$app$common$uuid$zero$$);return(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_sidebar_layers__element-list",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$172$$,$JSCompiler_temp_const$jscomp$1758_p__76539$$){var $JSCompiler_inline_result$jscomp$1760_index$jscomp$478$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1758_p__76539$$,0,null),$id$jscomp$909$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1758_p__76539$$,1,null);$JSCompiler_temp_const$jscomp$1758_p__76539$$=$out_arr__44057__auto__$jscomp$172$$.push;var $temp__5825__auto__$jscomp$inline_8575$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$756$$,$id$jscomp$909$$);$JSCompiler_inline_result$jscomp$1760_index$jscomp$478$$=
$APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$inline_8575$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$workspace$sidebar$layer_item$layer_item$$,{selected:$selected__$1$jscomp$19$$,index:$JSCompiler_inline_result$jscomp$1760_index$jscomp$478$$,objects:$objects$jscomp$756$$,item:$temp__5825__auto__$jscomp$inline_8575$$,"sortable?":!1,"parent-size":$parent_size$jscomp$4$$,depth:-1,"filtered?":!0},$id$jscomp$909$$):null;$JSCompiler_temp_const$jscomp$1758_p__76539$$.call($out_arr__44057__auto__$jscomp$172$$,
$JSCompiler_inline_result$jscomp$1760_index$jscomp$478$$);return $out_arr__44057__auto__$jscomp$172$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($props_76537_root$jscomp$67_selected$jscomp$165$$)))})});$app$main$ui$workspace$sidebar$layers$filters_tree$$=$rumext$v2$throttle$$($p1__76536_SHARP_$jscomp$inline_8577$$,200);
var $app$main$ui$workspace$sidebar$layers$layers_toolbox_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_76557_size_parent$$){function $on_render_container$$($element$jscomp$80_observer$jscomp$7$$){var $temp__5825__auto__$jscomp$346$$=$APP.$rumext$v2$ref_val$$($lazy_load_ref$$);if($APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$346$$)){if($element$jscomp$80_observer$jscomp$7$$!=null&&$APP.$cljs$core$_deref$$($observer_var$jscomp$1$$)==null)return $element$jscomp$80_observer$jscomp$7$$=
new IntersectionObserver($intersection_callback$$,{root:$element$jscomp$80_observer$jscomp$7$$}),$element$jscomp$80_observer$jscomp$7$$.observe($temp__5825__auto__$jscomp$346$$),$APP.$cljs$core$reset_BANG_$$($observer_var$jscomp$1$$,$element$jscomp$80_observer$jscomp$7$$);if($element$jscomp$80_observer$jscomp$7$$==null&&$APP.$cljs$core$_deref$$($observer_var$jscomp$1$$)!=null)return $APP.$cljs$core$_deref$$($observer_var$jscomp$1$$).disconnect(),$APP.$cljs$core$reset_BANG_$$($observer_var$jscomp$1$$,
null)}return null}function $intersection_callback$$($and__5023__auto__$jscomp$inline_8579_entries$jscomp$41$$){$and__5023__auto__$jscomp$inline_8579_entries$jscomp$41$$=$APP.$cljs$core$first$$($and__5023__auto__$jscomp$inline_8579_entries$jscomp$41$$).isIntersecting;return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8579_entries$jscomp$41$$)?$show_more$$!=null:$and__5023__auto__$jscomp$inline_8579_entries$jscomp$41$$)?$show_more$$.$cljs$core$IFn$_invoke$arity$0$?
$show_more$$.$cljs$core$IFn$_invoke$arity$0$():$show_more$$():null}$props_76557_size_parent$$=$props_76557_size_parent$$.sizeParent;var $page$jscomp$152$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page$$),$focus$jscomp$16$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$),$objects$jscomp$759$$=$app$main$ui$hooks$with_focus_objects$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$152$$),$focus$jscomp$16$$),
$title$jscomp$35$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($focus$jscomp$16$$))?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$759$$,$APP.$cljs$core$first$$($focus$jscomp$16$$)),$APP.$cljs$cst$723$name$$):null,$observer_var$jscomp$1$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$lazy_load_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$filter_component_vec__76558$$=
$app$main$ui$workspace$sidebar$layers$use_search$$($page$jscomp$152$$,$objects$jscomp$759$$),$filtered_objects$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filter_component_vec__76558$$,0,null),$show_more$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filter_component_vec__76558$$,1,null);$filter_component_vec__76558$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($filter_component_vec__76558$$,2,null);var $toogle_focus_mode$$=$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$workspace$selection$toggle_focus_mode$$())});
return(0,$APP.$rumext$v2$jsxs$$)("div",{id:"layers","data-testid":"layer-tree",className:"main_ui_workspace_sidebar_layers__layers",children:[$APP.$app$common$data$not_empty_QMARK_$$($focus$jscomp$16$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_layers__tool-window-bar",children:(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$toogle_focus_mode$$,className:"main_ui_workspace_sidebar_layers__focus-title",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_layers__back-button",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow"})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_layers__focus-name",children:$APP.$cljs$core$truth_$$($title$jscomp$35$$)?$title$jscomp$35$$:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_layers__focus-mode-tag-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$notifications$badge$badge_notification$$,
{content:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.focus.focus-mode"),size:$APP.$cljs$cst$3719$small$$,"is-focus":!0})})]})}):$filter_component_vec__76558$$.$cljs$core$IFn$_invoke$arity$0$?$filter_component_vec__76558$$.$cljs$core$IFn$_invoke$arity$0$():$filter_component_vec__76558$$(),$filtered_objects$jscomp$1$$!=null?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{"data-scroll-container":!0,ref:$on_render_container$$,
className:"main_ui_workspace_sidebar_layers__tool-window-content",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers$filters_tree$$,{objects:$filtered_objects$jscomp$1$$,"parent-size":$props_76557_size_parent$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$152$$)??"")),(0,$APP.$rumext$v2$jsx$$)("div",{ref:$lazy_load_ref$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{onScroll:$app$main$ui$workspace$sidebar$layers$on_scroll$$,"data-scroll-container":!0,style:{display:$filtered_objects$jscomp$1$$!=
null?"none":null},className:"main_ui_workspace_sidebar_layers__tool-window-content",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers$layers_tree$$,{objects:$filtered_objects$jscomp$1$$,"filtered?":!0,"parent-size":$props_76557_size_parent$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$152$$)??""))})]}):(0,$APP.$rumext$v2$jsx$$)("div",{onScroll:$app$main$ui$workspace$sidebar$layers$on_scroll$$,"data-scroll-container":!0,style:{display:$filtered_objects$jscomp$1$$!=
null?"none":null},className:"main_ui_workspace_sidebar_layers__tool-window-content",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers$layers_tree$$,{objects:$objects$jscomp$759$$,"filtered?":!1,"parent-size":$props_76557_size_parent$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$152$$)??""))})]})});var $app$main$ui$workspace$sidebar$options$drawing$drawing_options_STAR_$$=$rumext$v2$throttle$$(function($drawing_state$jscomp$2_props_76576$$){$drawing_state$jscomp$2_props_76576$$=$drawing_state$jscomp$2_props_76576$$.drawingState;var $G__76577$$=$APP.$cljs$cst$2159$tool$$.$cljs$core$IFn$_invoke$arity$1$($drawing_state$jscomp$2_props_76576$$);switch($G__76577$$ instanceof $APP.$cljs$core$Keyword$$?$G__76577$$.$fqn$:null){case "frame":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$drawing$frame$options_STAR_$$,
{drawingState:$drawing_state$jscomp$2_props_76576$$});default:return null}},60);var $app$main$ui$workspace$sidebar$options$menus$bool$flatten_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_sidebar_options_menus_bool__flatten-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-boolean-flatten"})});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$18$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$18$$,$cljs$cst$5421$variants_help_modal$$,$app$main$ui$workspace$sidebar$options$menus$variants_help_modal$variants_help_modal$$)});var $app$main$ui$workspace$sidebar$options$menus$component$ref_COLON_annotations_state$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4369$workspace_annotations$$,$APP.$app$main$store$state$$);var $app$main$ui$workspace$sidebar$options$menus$grid_cell$cell_props$$=new $APP.$cljs$core$PersistentVector$$(null,9,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1640$row$$,$APP.$cljs$cst$1641$row_span$$,$APP.$cljs$cst$216$column$$,$APP.$cljs$cst$1642$column_span$$,$APP.$cljs$cst$1661$align_self$$,$APP.$cljs$cst$1662$justify_self$$,$APP.$cljs$cst$1659$area_name$$],null),$app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$=
$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$){$map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$=$APP.$rumext$v2$util$wrap_props$$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$);$map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$=$APP.$cljs$core$__destructure_map$$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$);var $shape$jscomp$960$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$,
$APP.$cljs$cst$1795$shape$$),$area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$,$APP.$cljs$cst$3399$cell$$),$cells$jscomp$28_column_end_map__76602__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$,$APP.$cljs$cst$4357$cells$$),$state_STAR_$jscomp$15$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$3311$open$$,!0],null));$map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$=$APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state_STAR_$jscomp$15$$));var $cells__$1$jscomp$8$$=$APP.$app$main$ui$hooks$use_equal_memo$$($cells$jscomp$28_column_end_map__76602__$1$$),$cell__$1$jscomp$4$$=$APP.$cljs$core$truth_$$($area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$)?$area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$:$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$02$$($cells__$1$jscomp$8$$,
$app$main$ui$workspace$sidebar$options$menus$grid_cell$cell_props$$),$multiple_QMARK_$jscomp$5$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$));$area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$=$multiple_QMARK_$jscomp$5$$?$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$cells__$1$jscomp$8$$):new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$)],null);var $cell_ids__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$);$cells$jscomp$28_column_end_map__76602__$1$$=$APP.$cljs$core$__destructure_map$$($cell__$1$jscomp$4$$);var $cell_mode_cell_mode__$1_position$jscomp$186$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1660$position$$);$area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1659$area_name$$);var $align_self$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1661$align_self$$),$justify_self$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1662$justify_self$$),$column$jscomp$42$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,
$APP.$cljs$cst$216$column$$),$column_span$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1642$column_span$$),$row$jscomp$33$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1640$row$$),$row_span$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($cells$jscomp$28_column_end_map__76602__$1$$,$APP.$cljs$cst$1641$row_span$$);$cells$jscomp$28_column_end_map__76602__$1$$=
$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$747$$=$APP.$app$common$math$finite_QMARK_$$($column$jscomp$42$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$747$$)?$APP.$app$common$math$finite_QMARK_$$($column_span$jscomp$12$$):$and__5023__auto__$jscomp$747$$}())?$column$jscomp$42$$+$column_span$jscomp$12$$:null;var $row_end$$=$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$748$$=$APP.$app$common$math$finite_QMARK_$$($row$jscomp$33$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$748$$)?
$APP.$app$common$math$finite_QMARK_$$($row_span$jscomp$12$$):$and__5023__auto__$jscomp$748$$}())?$row$jscomp$33$$+$row_span$jscomp$12$$:null;$cell_mode_cell_mode__$1_position$jscomp$186$$=$APP.$cljs$core$truth_$$($cell_mode_cell_mode__$1_position$jscomp$186$$)?$cell_mode_cell_mode__$1_position$jscomp$186$$:$APP.$cljs$cst$1656$auto$$;$cell_mode_cell_mode__$1_position$jscomp$186$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1656$auto$$,$cell_mode_cell_mode__$1_position$jscomp$186$$)&&
($APP.$cljs$cst$1642$column_span$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$)>1||$APP.$cljs$cst$1641$row_span$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$)>1)?$APP.$cljs$cst$1657$manual$$:$cell_mode_cell_mode__$1_position$jscomp$186$$;var $valid_area_cells_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($cells__$1$jscomp$8$$)],function(){return $app$common$types$shape$layout$valid_area_cells_QMARK_$$($cells__$1$jscomp$8$$)}),$set_alignment$jscomp$1$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($align_self$jscomp$5$$),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$)),$APP.$rumext$v2$adapt$$($cell_ids__$1$$)],function($value$jscomp$798$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($align_self$jscomp$5$$,$value$jscomp$798$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),
$cell_ids__$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1661$align_self$$,null],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$cell_ids__$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1661$align_self$$,$value$jscomp$798$$],null)))}),$set_justify_self$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($justify_self$jscomp$4$$),
$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$)),$APP.$rumext$v2$adapt$$($cell_ids__$1$$)],function($value$jscomp$799$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($justify_self$jscomp$4$$,$value$jscomp$799$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$cell_ids__$1$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1662$justify_self$$,null],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$cell_ids__$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1662$justify_self$$,$value$jscomp$799$$],null)))}),$on_grid_coordinates$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($column$jscomp$42$$),
$APP.$rumext$v2$adapt$$($row$jscomp$33$$),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$))],function($field$jscomp$6_property$jscomp$84$$,$type$jscomp$599_value__$2$jscomp$7_vec__76603$$,$value$jscomp$800$$){if($multiple_QMARK_$jscomp$5$$)return null;var $value__$1$jscomp$46$$=$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$800$$),
$column__$1$jscomp$3$$=$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($column$jscomp$42$$),$row__$1$jscomp$4$$=$APP.$app$common$math$round$$.$cljs$core$IFn$_invoke$arity$1$($row$jscomp$33$$);$type$jscomp$599_value__$2$jscomp$7_vec__76603$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,$APP.$cljs$cst$216$column$$)&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,$APP.$cljs$cst$2106$all$$)||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,$APP.$cljs$cst$1278$start$$))?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$216$column$$,$value__$1$jscomp$46$$],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,$APP.$cljs$cst$216$column$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,
$APP.$cljs$cst$1279$end$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1642$column_span$$,function(){var $y__5111__auto__$jscomp$137$$=$value__$1$jscomp$46$$-$column__$1$jscomp$3$$;return 1>$y__5111__auto__$jscomp$137$$?1:$y__5111__auto__$jscomp$137$$}()],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,$APP.$cljs$cst$1640$row$$)&&($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,
$APP.$cljs$cst$2106$all$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,$APP.$cljs$cst$1278$start$$))?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1640$row$$,$value__$1$jscomp$46$$],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,$APP.$cljs$cst$1640$row$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($field$jscomp$6_property$jscomp$84$$,
$APP.$cljs$cst$1279$end$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1641$row_span$$,function(){var $y__5111__auto__$jscomp$138$$=$value__$1$jscomp$46$$-$row__$1$jscomp$4$$;return 1>$y__5111__auto__$jscomp$138$$?1:$y__5111__auto__$jscomp$138$$}()],null):null;$field$jscomp$6_property$jscomp$84$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,0,null);$type$jscomp$599_value__$2$jscomp$7_vec__76603$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($type$jscomp$599_value__$2$jscomp$7_vec__76603$$,1,null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cell_position$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$),$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$field$jscomp$6_property$jscomp$84$$,
$type$jscomp$599_value__$2$jscomp$7_vec__76603$$])))}),$on_area_name_change$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$)),$APP.$rumext$v2$adapt$$($cell_ids__$1$$)],function($event$jscomp$468_value$jscomp$801$$){$event$jscomp$468_value$jscomp$801$$=$APP.$app$util$dom$get_value$$($APP.$app$util$dom$get_target$$($event$jscomp$468_value$jscomp$801$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$468_value$jscomp$801$$,
"")?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$cell_ids__$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1659$area_name$$,null],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_grid_cells$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),
$cell_ids__$1$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1659$area_name$$,$event$jscomp$468_value$jscomp$801$$],null)))}),$set_cell_mode$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$)),$APP.$rumext$v2$adapt$$($cell_ids__$1$$)],function($mode$jscomp$43_mode__$1$jscomp$2$$){$mode$jscomp$43_mode__$1$jscomp$2$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($mode$jscomp$43_mode__$1$jscomp$2$$);
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$change_cells_mode$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$),$cell_ids__$1$$,$mode$jscomp$43_mode__$1$jscomp$2$$))}),$toggle_edit_mode$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$))],function(){var $JSCompiler_temp_const$jscomp$1534$$=
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$;var $JSCompiler_inline_result$jscomp$1536_param70635$jscomp$inline_8597$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$);$JSCompiler_inline_result$jscomp$1536_param70635$jscomp$inline_8597$$=$APP.$app$main$data$workspace$edition$start_edition_mode$$($JSCompiler_inline_result$jscomp$1536_param70635$jscomp$inline_8597$$);return $JSCompiler_temp_const$jscomp$1534$$.call($APP.$app$main$store$emit_BANG_$$,
$JSCompiler_inline_result$jscomp$1536_param70635$jscomp$inline_8597$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$grid_layout$editor$clear_selection$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$960$$))]))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-cell-menu",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-cell-menu-title",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$),onCollapsed:function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$15$$,$APP.$cljs$core$update$$,$APP.$cljs$cst$3311$open$$,$APP.$cljs$core$not$$)},title:"Grid cell"})}),$APP.$cljs$core$truth_$$($map__76601_map__76601__$1_open_QMARK_$jscomp$16_props_76600$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-cell-menu-container",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__cell-mode main_ui_workspace_sidebar_options_menus_grid_cell__row",children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$APP.$app$common$data$name$$($cell_mode_cell_mode__$1_position$jscomp$186$$),"on-change":$set_cell_mode$$,name:"cell-mode",
wide:!0,children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"auto",id:$APP.$cljs$cst$1656$auto$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"manual",id:$APP.$cljs$cst$1657$manual$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"area",id:$APP.$cljs$cst$1658$area$$,disabled:$APP.$cljs$core$not$$($valid_area_cells_QMARK_$$)})]})}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1658$area$$,
$cell_mode_cell_mode__$1_position$jscomp$186$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__row",children:(0,$APP.$rumext$v2$jsx$$)("input",{autoComplete:"off",placeholder:"Area name",defaultValue:$area_name$jscomp$2_cell$jscomp$46_cell_ids$jscomp$2$$,type:"text",id:"grid-area-name",className:"main_ui_workspace_sidebar_options_menus_grid_cell__area-input","aria-label":"grid-area-name",onChange:$on_area_name_change$$},"name-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell__$1$jscomp$4$$)??
""))}):null,!$multiple_QMARK_$jscomp$5$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1656$auto$$,$cell_mode_cell_mode__$1_position$jscomp$186$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-coord-group",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__icon",
children:$APP.$app$main$ui$icons$flex_vertical$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",title:"Column",onClick:function($p1__76594_SHARP_$$){return $app$util$dom$select_target$$($p1__76594_SHARP_$$)},onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$2106$all$$,
$APP.$cljs$cst$216$column$$),integer:!0,value:$column$jscomp$42$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-coord-group",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__icon",children:$APP.$app$main$ui$icons$flex_horizontal$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{placeholder:"--",title:"Row",onClick:function($p1__76595_SHARP_$$){return $app$util$dom$select_target$$($p1__76595_SHARP_$$)},onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$2106$all$$,$APP.$cljs$cst$1640$row$$),integer:!0,value:$row$jscomp$33$$})})]})]}):null,$multiple_QMARK_$jscomp$5$$||!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1657$manual$$,$cell_mode_cell_mode__$1_position$jscomp$186$$)&&!$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1658$area$$,
$cell_mode_cell_mode__$1_position$jscomp$186$$)?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-coord-group",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__icon",children:$APP.$app$main$ui$icons$flex_vertical$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",onPointerDown:function($p1__76596_SHARP_$$){return $app$util$dom$select_target$$($p1__76596_SHARP_$$)},onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$1278$start$$,$APP.$cljs$cst$216$column$$),integer:!0,value:$column$jscomp$42$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",onPointerDown:function($p1__76597_SHARP_$$){return $app$util$dom$select_target$$($p1__76597_SHARP_$$)},onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$1279$end$$,$APP.$cljs$cst$216$column$$),integer:!0,value:$cells$jscomp$28_column_end_map__76602__$1$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__grid-coord-group",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__icon",children:$APP.$app$main$ui$icons$flex_horizontal$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input main_ui_workspace_sidebar_options_menus_grid_cell__double",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",onPointerDown:function($p1__76598_SHARP_$$){return $app$util$dom$select_target$$($p1__76598_SHARP_$$)},
onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$1278$start$$,$APP.$cljs$cst$1640$row$$),integer:!0,value:$row$jscomp$33$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__coord-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",onPointerDown:function($p1__76599_SHARP_$$){return $app$util$dom$select_target$$($p1__76599_SHARP_$$)},
onChange:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($on_grid_coordinates$$,$APP.$cljs$cst$1279$end$$,$APP.$cljs$cst$1640$row$$),integer:!0,value:$row_end$$})})]})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$set_self_alignment$$,{"is-col?":!1,alignment:$align_self$jscomp$5$$,"set-alignment":$set_alignment$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$set_self_alignment$$,
{"is-col?":!0,alignment:$justify_self$jscomp$4$$,"set-alignment":$set_justify_self$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_grid_cell__row",children:(0,$APP.$rumext$v2$jsx$$)("button",{alt:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.options.edit-grid"),onClick:$toggle_edit_mode$$,className:"main_ui_workspace_sidebar_options_menus_grid_cell__edit-grid-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.options.edit-grid")})})]}):
null]})});var $app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,14,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1599$layout$$,$APP.$cljs$cst$1663$layout_flex_dir$$,$APP.$cljs$cst$1667$layout_gap_type$$,$APP.$cljs$cst$1664$layout_gap$$,$APP.$cljs$cst$1676$layout_align_items$$,$APP.$cljs$cst$1673$layout_justify_content$$,$APP.$cljs$cst$1675$layout_align_content$$,$APP.$cljs$cst$1668$layout_wrap_type$$,$APP.$cljs$cst$1669$layout_padding_type$$,
$APP.$cljs$cst$1670$layout_padding$$,$APP.$cljs$cst$1677$layout_grid_dir$$,$APP.$cljs$cst$1674$layout_justify_items$$,$APP.$cljs$cst$1679$layout_grid_columns$$,$APP.$cljs$cst$1678$layout_grid_rows$$],null),$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$=function $app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$($var_args$jscomp$1420$$){switch(arguments.length){case 1:return $app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$1$(arguments[0]);
case 4:return $app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$(arguments[0],arguments[1],arguments[2],arguments[3]);default:throw Error(["Invalid arity: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};
$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$1$=function($p$jscomp$250$$){return $app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p$jscomp$250$$,$APP.$cljs$cst$1091$p1$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p$jscomp$250$$,$APP.$cljs$cst$1089$p2$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p$jscomp$250$$,
$APP.$cljs$cst$1671$p3$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p$jscomp$250$$,$APP.$cljs$cst$1672$p4$$))};
$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$core$IFn$_invoke$arity$4$=function($p1_QMARK_$$,$p2_QMARK_$$,$p3_QMARK_$$,$p4_QMARK_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_paddings_selected$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1091$p1$$,$p1_QMARK_$$,$APP.$cljs$cst$1089$p2$$,$p2_QMARK_$$,$APP.$cljs$cst$1671$p3$$,$p3_QMARK_$$,$APP.$cljs$cst$1672$p4$$,$p4_QMARK_$$],null)))};
$app$main$ui$workspace$sidebar$options$menus$layout_container$select_padding$$.$cljs$lang$maxFixedArity$=4;
var $app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$=function($component__44519__auto__$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($component__44519__auto__$$,function($new_props_76956$$,$old_props_76957$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76956$$.ids,$old_props_76957$$.ids)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76956$$.multiple,$old_props_76957$$.multiple)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76956$$.values,
$old_props_76957$$.values)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76956$$["applied-tokens"],$old_props_76957$$["applied-tokens"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76956$$.shapes,$old_props_76957$$.shapes)})}(function($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$){$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$=$APP.$rumext$v2$util$wrap_props$$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$);
$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$=$APP.$cljs$core$__destructure_map$$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$);var $ids$jscomp$272$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$,$APP.$cljs$cst$1707$ids$$),$values$jscomp$80$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$,$APP.$cljs$cst$299$values$$),
$multiple$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$,$APP.$cljs$cst$1600$multiple$$),$applied_tokens$jscomp$9$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$,$APP.$cljs$cst$1857$applied_tokens$$),$layout_type$$=$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$);$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$=
$layout_type$$!=null;var $show_dropdown_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$show_dropdown_QMARK_$jscomp$4$$=$APP.$cljs$core$_deref$$($show_dropdown_STAR_$$),$open_STAR_$jscomp$7$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$truth_$$($layout_type$$)?!0:!1}),$open_QMARK_$jscomp$17$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$7$$),$on_toggle_visibility$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$2$($open_STAR_$jscomp$7$$,
$APP.$cljs$core$not$$)}),$on_add_layout$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$503_type$jscomp$610$$){$event$jscomp$503_type$jscomp$610$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$503_type$jscomp$610$$),"type"));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$with_meta$$($APP.$app$main$data$workspace$shape_layout$create_layout$$($event$jscomp$503_type$jscomp$610$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:sidebar"],null)));return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$7$$,!0)}),$on_remove_layout$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$remove_layout$$($ids$jscomp$272$$));
return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$7$$,!1)}),$saved_dir$$=$APP.$cljs$cst$1663$layout_flex_dir$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$is_column$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$saved_dir$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1646$column_reverse$$,$saved_dir$$),$wrap_type$jscomp$4$$=$APP.$cljs$cst$1668$layout_wrap_type$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),
$toggle_wrap$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($wrap_type$jscomp$4$$),$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function(){var $type$jscomp$611$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($wrap_type$jscomp$4$$,$APP.$cljs$cst$894$wrap$$)?$APP.$cljs$cst$1648$nowrap$$:$APP.$cljs$cst$894$wrap$$;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1668$layout_wrap_type$$,$type$jscomp$611$$],null)))}),$align_items$jscomp$3$$=$APP.$cljs$cst$1676$layout_align_items$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$set_align_items$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$835$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1676$layout_align_items$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$835$$)],null)))}),$justify_content$jscomp$4$$=$APP.$cljs$cst$1673$layout_justify_content$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$set_justify_content$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$836$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1673$layout_justify_content$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$836$$)],null)))}),$align_content$jscomp$3$$=$APP.$cljs$cst$1675$layout_align_content$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$on_align_content_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$),$APP.$rumext$v2$adapt$$($align_content$jscomp$3$$)],function($value$jscomp$837$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($align_content$jscomp$3$$,
$value$jscomp$837$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1675$layout_align_content$$,$APP.$cljs$cst$1653$stretch$$],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1675$layout_align_content$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$837$$)],null)))}),$on_gap_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($multiple_QMARK_$jscomp$6$$,$type$jscomp$612$$,$val$jscomp$211_val__$1$jscomp$17$$){$val$jscomp$211_val__$1$jscomp$17$$=$APP.$app$common$math$finite$$($val$jscomp$211_val__$1$jscomp$17$$,0);
return $multiple_QMARK_$jscomp$6$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1664$layout_gap$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1665$row_gap$$,$val$jscomp$211_val__$1$jscomp$17$$,$APP.$cljs$cst$1666$column_gap$$,$val$jscomp$211_val__$1$jscomp$17$$],null)],null))):$type$jscomp$612$$!=
null?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1664$layout_gap$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$type$jscomp$612$$,$val$jscomp$211_val__$1$jscomp$17$$])],null))):null}),$on_padding_type_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],
function($type$jscomp$613$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1669$layout_padding_type$$,$type$jscomp$613$$],null)))}),$on_padding_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($type$jscomp$614$$,$prop$jscomp$35$$,
$val$jscomp$212_val__$1$jscomp$18$$){$val$jscomp$212_val__$1$jscomp$18$$=$APP.$app$common$math$finite$$($val$jscomp$212_val__$1$jscomp$18$$,0);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$614$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$35$$,$APP.$cljs$cst$1091$p1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1670$layout_padding$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1091$p1$$,$val$jscomp$212_val__$1$jscomp$18$$,$APP.$cljs$cst$1671$p3$$,$val$jscomp$212_val__$1$jscomp$18$$],null)],null))):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$614$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$35$$,$APP.$cljs$cst$1089$p2$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1670$layout_padding$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1089$p2$$,$val$jscomp$212_val__$1$jscomp$18$$,$APP.$cljs$cst$1672$p4$$,$val$jscomp$212_val__$1$jscomp$18$$],null)],null))):$prop$jscomp$35$$!=null?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1670$layout_padding$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$prop$jscomp$35$$,$val$jscomp$212_val__$1$jscomp$18$$])],null))):null}),$saved_grid_dir$$=$APP.$cljs$cst$1677$layout_grid_dir$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$on_direction_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout_type$$),$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($dir$jscomp$6$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1644$flex$$,
$layout_type$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1663$layout_flex_dir$$,$dir$jscomp$6$$],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1677$layout_grid_dir$$,$dir$jscomp$6$$],null)))}),$align_items_row$$=$APP.$cljs$cst$1676$layout_align_items$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$align_items_column$$=$APP.$cljs$cst$1674$layout_justify_items$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$on_column_align_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$838$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1674$layout_justify_items$$,$value$jscomp$838$$],null)))}),$on_row_align_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$839$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1676$layout_align_items$$,$value$jscomp$839$$],null)))}),$grid_justify_content_row$$=$APP.$cljs$cst$1673$layout_justify_content$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$grid_justify_content_column$$=$APP.$cljs$cst$1675$layout_align_content$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),$on_column_justify_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$840$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1675$layout_align_content$$,$value$jscomp$840$$],null)))}),$on_row_justify_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$272$$)],function($value$jscomp$841$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$272$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1673$layout_justify_content$$,$value$jscomp$841$$],null)))}),$on_toggle_dropdown_visibility$$=$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$($show_dropdown_STAR_$$,$APP.$cljs$core$not$$)}),$on_hide_dropdown$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($show_dropdown_STAR_$$,!1)});return(0,$APP.$rumext$v2$jsxs$$)("div",{"data-testid":"inspect-layout",
className:"main_ui_workspace_sidebar_options_menus_layout_container__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$17$$),onCollapsed:$on_toggle_visibility$jscomp$1$$,title:"Layout",className:$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$?
"":"main_ui_workspace_sidebar_options_menus_layout_container__title-spacing-layout",children:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$757$$=$APP.$cljs$core$not$$($multiple$jscomp$1$$);return $and__5023__auto__$jscomp$757$$?$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$):$and__5023__auto__$jscomp$757$$}())?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__title-actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-layout"),onClick:$on_toggle_dropdown_visibility$$,icon:"menu"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$show_dropdown_QMARK_$jscomp$4$$,"on-close":$on_hide_dropdown$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-options",children:[(0,$APP.$rumext$v2$jsx$$)("button",{"data-type":"flex",
onClick:$on_add_layout$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-option",children:"Flex layout"}),(0,$APP.$rumext$v2$jsx$$)("button",{"data-type":"grid",onClick:$on_add_layout$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-option",children:"Grid layout"})]})}),$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.remove-layout"),onClick:$on_remove_layout$jscomp$1$$,icon:"remove"}):null]}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__title-actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.add-layout"),
onClick:$on_toggle_dropdown_visibility$$,icon:"add"}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$dropdown$dropdown$$,{show:$show_dropdown_QMARK_$jscomp$4$$,"on-close":$on_hide_dropdown$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-options",children:[(0,$APP.$rumext$v2$jsx$$)("button",{"data-type":"flex",onClick:$on_add_layout$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-option",
children:"Flex layout"}),(0,$APP.$rumext$v2$jsx$$)("button",{"data-type":"grid",onClick:$on_add_layout$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_layout_container__layout-option",children:"Grid layout"})]})}),$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.delete"),
onClick:$on_remove_layout$jscomp$1$$,icon:"remove"}):null]})})}),$open_QMARK_$jscomp$17$$&&$has_layout_QMARK_$jscomp$4_map__76963_map__76963__$1_props_76955$$&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$layout_type$$)?function(){switch($layout_type$$ instanceof $APP.$cljs$core$Keyword$$?$layout_type$$.$fqn$:null){case "flex":return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__flex-layout-menu",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__first-row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_row$$,{"is-column":$is_column$jscomp$8$$,value:$align_items$jscomp$3$$,"on-change":$set_align_items$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_flex$$,{"on-change":$on_direction_change$$,value:$saved_dir$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$wrap_row$$,
{"wrap-type":$wrap_type$jscomp$4$$,"on-click":$toggle_wrap$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__second-row main_ui_workspace_sidebar_options_menus_layout_container__help-button-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$justify_content_row$$,{"is-column":$is_column$jscomp$8$$,"justify-content":$justify_content$jscomp$4$$,"on-change":$set_justify_content$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.help-center"),onClick:$app$main$ui$workspace$sidebar$options$menus$layout_container$open_flex_help$$,icon:"help"})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$894$wrap$$,$wrap_type$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__third-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_content_row$$,
{"is-column":$is_column$jscomp$8$$,value:$align_content$jscomp$3$$,"on-change":$on_align_content_change$$})}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__forth-row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$gap_section_STAR_$$,{isColumn:$is_column$jscomp$8$$,wrapType:$wrap_type$jscomp$4$$,onChange:$on_gap_change$$,ids:$ids$jscomp$272$$,appliedTokens:$applied_tokens$jscomp$9$$,value:$APP.$cljs$cst$1664$layout_gap$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$)}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$padding_section_STAR_$$,{value:$APP.$cljs$cst$1670$layout_padding$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),type:$APP.$cljs$cst$1669$layout_padding_type$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),onTypeChange:$on_padding_type_change$$,ids:$ids$jscomp$272$$,appliedTokens:$applied_tokens$jscomp$9$$,onChange:$on_padding_change$$})]})]});case "grid":return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-layout-menu",
children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($ids$jscomp$272$$))?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__edit-grid-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$grid_edit_mode$$,{id:$APP.$cljs$core$first$$($ids$jscomp$272$$)}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.help-center"),onClick:$app$main$ui$workspace$sidebar$options$menus$layout_container$open_grid_help$$,icon:"help"})]}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__first-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__direction-edit",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__direction",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_grid$$,{value:$saved_grid_dir$$,"on-change":$on_direction_change$$})})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$,{"is-column":!1,value:$align_items_row$$,"on-change":$on_row_align_change$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$,{"is-column":!0,value:$align_items_column$$,
"on-change":$on_column_align_change$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__row main_ui_workspace_sidebar_options_menus_layout_container__grid-layout-align",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$,{"is-column":!0,value:$grid_justify_content_column$$,"on-change":$on_column_justify_change$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$,
{"is-column":!1,value:$grid_justify_content_row$$,"on-change":$on_row_justify_change$$})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__gap-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$gap_section_STAR_$$,{onChange:$on_gap_change$$,ids:$ids$jscomp$272$$,appliedTokens:$applied_tokens$jscomp$9$$,value:$APP.$cljs$cst$1664$layout_gap$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$)})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$padding_section_STAR_$$,{value:$APP.$cljs$cst$1670$layout_padding$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),type:$APP.$cljs$cst$1669$layout_padding_type$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$80$$),appliedTokens:$applied_tokens$jscomp$9$$,onTypeChange:$on_padding_type_change$$,
onChange:$on_padding_change$$})})]});default:return null}}():null]})}),$app$main$ui$workspace$sidebar$options$menus$layout_container$grid_layout_edition$$=function($component__44519__auto__$jscomp$1$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($component__44519__auto__$jscomp$1$$,function($new_props_76969$$,$old_props_76970$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76969$$.ids,$old_props_76970$$.ids)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76969$$.values,
$old_props_76970$$.values)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_76969$$["applied-tokens"],$old_props_76970$$["applied-tokens"])})}(function($map__76971_props_76968_values$jscomp$81$$){$map__76971_props_76968_values$jscomp$81$$=$APP.$rumext$v2$util$wrap_props$$($map__76971_props_76968_values$jscomp$81$$);var $applied_tokens$jscomp$10_map__76971__$1$$=$APP.$cljs$core$__destructure_map$$($map__76971_props_76968_values$jscomp$81$$),$ids$jscomp$273$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$10_map__76971__$1$$,
$APP.$cljs$cst$1707$ids$$);$map__76971_props_76968_values$jscomp$81$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$10_map__76971__$1$$,$APP.$cljs$cst$299$values$$);$applied_tokens$jscomp$10_map__76971__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$10_map__76971__$1$$,$APP.$cljs$cst$1857$applied_tokens$$);var $saved_grid_dir$jscomp$1$$=$APP.$cljs$cst$1677$layout_grid_dir$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),
$on_direction_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($dir$jscomp$7$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1677$layout_grid_dir$$,$dir$jscomp$7$$],null)))}),$on_gap_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],
function($multiple_QMARK_$jscomp$7$$,$type$jscomp$615$$,$val$jscomp$213_val__$1$jscomp$19$$){$val$jscomp$213_val__$1$jscomp$19$$=$APP.$app$common$math$finite$$($val$jscomp$213_val__$1$jscomp$19$$,0);return $APP.$cljs$core$truth_$$($multiple_QMARK_$jscomp$7$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1664$layout_gap$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1665$row_gap$$,$val$jscomp$213_val__$1$jscomp$19$$,$APP.$cljs$cst$1666$column_gap$$,$val$jscomp$213_val__$1$jscomp$19$$],null)],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1664$layout_gap$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$type$jscomp$615$$,
$val$jscomp$213_val__$1$jscomp$19$$])],null)))}),$on_padding_type_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($type$jscomp$616$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1669$layout_padding_type$$,$type$jscomp$616$$],
null)))}),$align_items_row$jscomp$1$$=$APP.$cljs$cst$1676$layout_align_items$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),$align_items_column$jscomp$1$$=$APP.$cljs$cst$1674$layout_justify_items$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),$on_column_align_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($value$jscomp$842$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1674$layout_justify_items$$,$value$jscomp$842$$],null)))}),$on_row_align_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($value$jscomp$843$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1676$layout_align_items$$,$value$jscomp$843$$],null)))}),$grid_justify_content_row$jscomp$1$$=$APP.$cljs$cst$1673$layout_justify_content$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),$grid_justify_content_column$jscomp$1$$=$APP.$cljs$cst$1675$layout_align_content$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),$on_column_justify_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],
function($value$jscomp$844$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1675$layout_align_content$$,$value$jscomp$844$$],null)))}),$on_row_justify_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($value$jscomp$845$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1673$layout_justify_content$$,$value$jscomp$845$$],null)))}),$columns_open_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$rows_open_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$column_values$jscomp$1$$=$APP.$cljs$cst$1679$layout_grid_columns$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),$rows_values$$=$APP.$cljs$cst$1678$layout_grid_rows$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),
$toggle_columns_open$$=$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$($columns_open_QMARK_$$,$APP.$cljs$core$not$$)}),$toggle_rows_open$$=$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$($rows_open_QMARK_$$,$APP.$cljs$core$not$$)}),$add_new_element$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],
function($type$jscomp$618$$,$value$jscomp$846$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$add_layout_track$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$273$$,$type$jscomp$618$$,$value$jscomp$846$$))}),$remove_element$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($event$jscomp$504_index$jscomp$486$$){var $type$jscomp$619$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$504_index$jscomp$486$$),
"type"));$event$jscomp$504_index$jscomp$486$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$504_index$jscomp$486$$),"index"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$remove_layout_track$$($ids$jscomp$273$$,$type$jscomp$619$$,$event$jscomp$504_index$jscomp$486$$))}),$reorder_track$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],
function($type$jscomp$620$$,$from_index$jscomp$12$$,$to_index$jscomp$19$$,$move_content_QMARK_$jscomp$5$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$reorder_layout_track$$($ids$jscomp$273$$,$type$jscomp$620$$,$from_index$jscomp$12$$,$to_index$jscomp$19$$,$move_content_QMARK_$jscomp$5$$))}),$hover_track$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($type$jscomp$621$$,
$index$jscomp$487$$,$hover_QMARK_$jscomp$7$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$hover_layout_track$$($ids$jscomp$273$$,$type$jscomp$621$$,$index$jscomp$487$$,$hover_QMARK_$jscomp$7$$))}),$handle_select_track$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($type$jscomp$622$$,$index$jscomp$488$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$select_track_cells$$($APP.$cljs$core$first$$($ids$jscomp$273$$),
$type$jscomp$622$$,$index$jscomp$488$$))}),$set_column_value$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($type$jscomp$623$$,$index$jscomp$489$$,$value$jscomp$847$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$change_layout_track$$($ids$jscomp$273$$,$type$jscomp$623$$,$index$jscomp$489$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$260$value$$,
$value$jscomp$847$$],null)))}),$set_column_type$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],function($type$jscomp$624$$,$index$jscomp$490$$,$track_type$$){var $value$jscomp$848$$=function(){var $G__76972__$1$$=$track_type$$ instanceof $APP.$cljs$core$Keyword$$?$track_type$$.$fqn$:null;switch($G__76972__$1$$){case "auto":return null;case "flex":return 1;case "percent":return 20;case "fixed":return 100;default:throw Error(["No matching clause: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76972__$1$$)].join(""));}}();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$change_layout_track$$($ids$jscomp$273$$,$type$jscomp$624$$,$index$jscomp$490$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$value$jscomp$848$$,$APP.$cljs$cst$139$type$$,$track_type$$],null)))}),$handle_locate_grid$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$273$$)],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$locate_board$$($APP.$cljs$core$first$$($ids$jscomp$273$$)))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-layout-menu",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-first-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-layout-menu-title",
children:"GRID LAYOUT"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",className:"main_ui_workspace_sidebar_options_menus_layout_container__help-button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.help-center"),onClick:$app$main$ui$workspace$sidebar$options$menus$layout_container$open_grid_help$$,icon:"help"}),(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$workspace$edition$clear_edition_mode$$())},
className:"main_ui_workspace_sidebar_options_menus_layout_container__exit-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.options.exit")})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__row main_ui_workspace_sidebar_options_menus_layout_container__first-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__direction-edit",children:(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_layout_container__direction",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$direction_row_grid$$,{value:$saved_grid_dir$jscomp$1$$,"on-change":$on_direction_change$jscomp$1$$})})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$,{"is-column":!1,value:$align_items_row$jscomp$1$$,"on-change":$on_row_align_change$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$align_grid_row$$,
{"is-column":!0,value:$align_items_column$jscomp$1$$,"on-change":$on_column_align_change$jscomp$1$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__row main_ui_workspace_sidebar_options_menus_layout_container__grid-layout-align",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$,{"is-column":!0,value:$grid_justify_content_column$jscomp$1$$,"on-change":$on_column_justify_change$jscomp$1$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$justify_grid_row$$,{"is-column":!1,value:$grid_justify_content_row$jscomp$1$$,"on-change":$on_row_justify_change$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",className:"main_ui_workspace_sidebar_options_menus_layout_container__locate-button","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.layout-grid.editor.top-bar.locate.tooltip"),
onClick:$handle_locate_grid$$,icon:"locate"})]}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__gap-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$gap_section_STAR_$$,{onChange:$on_gap_change$jscomp$1$$,ids:$ids$jscomp$273$$,appliedTokens:$applied_tokens$jscomp$10_map__76971__$1$$,value:$APP.$cljs$cst$1664$layout_gap$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$)})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__padding-row main_ui_workspace_sidebar_options_menus_layout_container__padding-section",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$padding_section_STAR_$$,{value:$APP.$cljs$cst$1670$layout_padding$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),type:$APP.$cljs$cst$1669$layout_padding_type$$.$cljs$core$IFn$_invoke$arity$1$($map__76971_props_76968_values$jscomp$81$$),
onTypeChange:$on_padding_type_change$jscomp$1$$,onChange:function($type$jscomp$617$$,$prop$jscomp$36$$,$val$jscomp$214_val__$1$jscomp$20$$){$val$jscomp$214_val__$1$jscomp$20$$=$APP.$app$common$math$finite$$($val$jscomp$214_val__$1$jscomp$20$$,0);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$617$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$36$$,$APP.$cljs$cst$1091$p1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1670$layout_padding$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1091$p1$$,$val$jscomp$214_val__$1$jscomp$20$$,$APP.$cljs$cst$1671$p3$$,$val$jscomp$214_val__$1$jscomp$20$$],null)],null))):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$617$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$36$$,$APP.$cljs$cst$1089$p2$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1670$layout_padding$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1089$p2$$,$val$jscomp$214_val__$1$jscomp$20$$,$APP.$cljs$cst$1672$p4$$,$val$jscomp$214_val__$1$jscomp$20$$],null)],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$273$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1670$layout_padding$$,
$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$prop$jscomp$36$$,$val$jscomp$214_val__$1$jscomp$20$$])],null)))}})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_container__grid-tracks-row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$grid_columns_row$$,{"is-column":!0,"hover-track":$hover_track$jscomp$2$$,"expanded?":$APP.$cljs$core$_deref$$($columns_open_QMARK_$$),"set-column-value":$set_column_value$jscomp$2$$,
toggle:$toggle_columns_open$$,"add-new-element":$add_new_element$jscomp$1$$,"reorder-track":$reorder_track$jscomp$2$$,"remove-element":$remove_element$jscomp$2$$,"set-column-type":$set_column_type$jscomp$2$$,"on-select-track":$handle_select_track$jscomp$1$$,"column-values":$column_values$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$grid_columns_row$$,{"is-column":!1,"hover-track":$hover_track$jscomp$2$$,"expanded?":$APP.$cljs$core$_deref$$($rows_open_QMARK_$$),
"set-column-value":$set_column_value$jscomp$2$$,toggle:$toggle_rows_open$$,"add-new-element":$add_new_element$jscomp$1$$,"reorder-track":$reorder_track$jscomp$2$$,"remove-element":$remove_element$jscomp$2$$,"set-column-type":$set_column_type$jscomp$2$$,"on-select-track":$handle_select_track$jscomp$1$$,"column-values":$rows_values$$})]})]})});var $app$main$ui$workspace$sidebar$options$page$ref_COLON_background_color$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$key$$($APP.$cljs$cst$2043$background$$),$APP.$app$main$refs$workspace_page$$),$app$main$ui$workspace$sidebar$options$page$options_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $background$jscomp$9$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$sidebar$options$page$ref_COLON_background_color$$),$on_change$jscomp$65$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__76686_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$change_canvas_color$cljs$0core$0IFn$0_invoke$0arity$02$$(null,$p1__76686_SHARP_$$))}),$on_open$jscomp$4$$=$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$workspace$undo$start_undo_transaction$$($APP.$cljs$cst$871$options$$))}),
$on_close$jscomp$31$$=$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$workspace$undo$commit_undo_transaction$$($APP.$cljs$cst$871$options$$))}),$color$jscomp$164$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($background$jscomp$9$$)],function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($background$jscomp$9$$,
"#E8E9EA"),$APP.$cljs$cst$1718$opacity$$,1],null)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_page__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_page__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!1,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.canvas-background"),className:"main_ui_workspace_sidebar_options_page__title-spacing-page"})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_page__element-content",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{origin:$cljs$cst$5443$canvas$$,onClose:$on_close$jscomp$31$$,onChange:$on_change$jscomp$65$$,disableOpacity:!0,disableGradient:!0,disableImage:!0,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.canvas-background"),color:$color$jscomp$164$$,onOpen:$on_open$jscomp$4$$})})]})});var $app$main$ui$workspace$sidebar$options$menus$blur$blur_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1637$blur$$],null);var $app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1856$constraints_h$$,$APP.$cljs$cst$1855$constraints_v$$,$APP.$cljs$cst$1629$fixed_scroll$$,$APP.$cljs$cst$1603$parent_id$$,$APP.$cljs$cst$1591$frame_id$$],null);var $app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1854$exports$$],null),$app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($open_QMARK_$jscomp$20_props_76743$$){var $shapes$jscomp$203$$=$open_QMARK_$jscomp$20_props_76743$$.shapes,$file_id$jscomp$371$$=$open_QMARK_$jscomp$20_props_76743$$.fileId,
$ids$jscomp$276$$=$open_QMARK_$jscomp$20_props_76743$$.ids,$type$jscomp$626$$=$open_QMARK_$jscomp$20_props_76743$$.type,$page_id$jscomp$394$$=$open_QMARK_$jscomp$20_props_76743$$.pageId,$exports__$1$jscomp$13$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($open_QMARK_$jscomp$20_props_76743$$.values,$APP.$cljs$cst$1854$exports$$,$APP.$cljs$core$PersistentVector$EMPTY$$),$open_STAR_$jscomp$8$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$open_QMARK_$jscomp$20_props_76743$$=
$APP.$cljs$core$_deref$$($open_STAR_$jscomp$8$$);var $in_progress_QMARK_$jscomp$2_state$jscomp$1083$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$export$0$$);$in_progress_QMARK_$jscomp$2_state$jscomp$1083$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($in_progress_QMARK_$jscomp$2_state$jscomp$1083$$,$APP.$cljs$cst$4580$in_progress$$);var $has_exports_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$exports__$1$jscomp$13$$)||$APP.$cljs$core$seq$$($exports__$1$jscomp$13$$)!=
null,$toggle_content$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$2$($open_STAR_$jscomp$8$$,$APP.$cljs$core$not$$)}),$shapes_with_exports$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$203$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$seq$$,
$APP.$cljs$cst$1854$exports$$),$shapes$jscomp$203$$)}),$sname$jscomp$3$$=$APP.$cljs$core$seqable_QMARK_$$($exports__$1$jscomp$13$$)?function(){var $sname$jscomp$4$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes_with_exports$$)),$suffix$jscomp$29$$=$APP.$cljs$cst$1360$suffix$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($exports__$1$jscomp$13$$));return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($exports__$1$jscomp$13$$))&&
$suffix$jscomp$29$$!=null?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($sname$jscomp$4$$),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($suffix$jscomp$29$$)].join(""):$sname$jscomp$4$$}():null,$scale_enabled_QMARK_$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($G__76750_export$$jscomp$9$$){$G__76750_export$$jscomp$9$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($G__76750_export$$jscomp$9$$);var $fexpr__76749$$=new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1523$png$$,null,$APP.$cljs$cst$1525$webp$$,null,$APP.$cljs$cst$1524$jpeg$$,null],null),null);return $fexpr__76749$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__76749$$.$cljs$core$IFn$_invoke$arity$1$($G__76750_export$$jscomp$9$$):$fexpr__76749$$($G__76750_export$$jscomp$9$$)}),$on_download$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$394$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$371$$),$APP.$rumext$v2$adapt$$($exports__$1$jscomp$13$$)],function($event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$);if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$type$jscomp$626$$)){if($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($shapes_with_exports$$))&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($APP.$cljs$cst$1854$exports$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes_with_exports$$))))){var $shape$jscomp$966$$=$APP.$cljs$core$first$$($shapes_with_exports$$);$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$=$APP.$cljs$core$first$$($APP.$cljs$cst$1854$exports$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$966$$));var $suffix$jscomp$30$$=$APP.$cljs$cst$1360$suffix$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$),
$sname__$1$$=function(){var $G__76751$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$966$$);return $suffix$jscomp$30$$!=null?[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__76751$$),$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($suffix$jscomp$30$$)].join(""):$G__76751$$}(),$defaults$jscomp$5$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$394$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$371$$,$APP.$cljs$cst$723$name$$,
$sname__$1$$,$APP.$cljs$cst$2231$object_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($shapes_with_exports$$))],null);$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$,$defaults$jscomp$5$$]));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$exports$assets$request_simple_export$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2137$export$$,$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$exports$assets$export_shapes_event$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$],null),"workspace:sidebar")]))}return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$exports$assets$show_workspace_export_dialog$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1906$selected$$,$APP.$cljs$core$reverse$$($ids$jscomp$276$$),$APP.$cljs$cst$1770$origin$$,"workspace:sidebar"],null)))}$defaults$jscomp$5$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$394$$,$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$371$$,$APP.$cljs$cst$723$name$$,$sname$jscomp$3$$,$APP.$cljs$cst$2231$object_id$$,$APP.$cljs$core$first$$($ids$jscomp$276$$)],null);$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$=
$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__76742_SHARP_$$){return $APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$p1__76742_SHARP_$$,$defaults$jscomp$5$$]))},$exports__$1$jscomp$13$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$exports$assets$request_export$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1854$exports$$,$event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$],
null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$exports$assets$export_shapes_event$$($event$jscomp$506_export$$jscomp$10_exports__$2$jscomp$3_full_export$$,"workspace:sidebar")]))}),$add_export$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],function(){var $xspec$jscomp$1$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$1523$png$$,$APP.$cljs$cst$1360$suffix$$,
"",$APP.$cljs$cst$1887$scale$$,1],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,function($shape$jscomp$967$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$967$$,$APP.$cljs$cst$1854$exports$$,$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$xspec$jscomp$1$$],null),$APP.$cljs$cst$1854$exports$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$967$$)))}))}),$delete_export$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],function($event$jscomp$507$$){function $remove_fill_by_index$jscomp$2$$($values__$1$jscomp$5$$,$index$jscomp$491$$){return $APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$second$$,$APP.$cljs$core$filterv$$(function($p__76758$$){var $idx$jscomp$118$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76758$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__76758$$,1,null);return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($idx$jscomp$118$$,$index$jscomp$491$$)},$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($values__$1$jscomp$5$$)))}var $value$jscomp$852$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$507$$),
"value"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,function($shape$jscomp$968$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($shape$jscomp$968$$,$APP.$cljs$cst$1854$exports$$,$remove_fill_by_index$jscomp$2$$,$value$jscomp$852$$)}))}),$on_scale_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],
function($index$jscomp$492$$,$event$jscomp$508$$){var $scale$jscomp$28$$=$APP.$app$common$data$parse_double$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$508$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,function($shape$jscomp$969$$){return $APP.$cljs$core$assoc_in$$($shape$jscomp$969$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1854$exports$$,$index$jscomp$492$$,$APP.$cljs$cst$1887$scale$$],null),$scale$jscomp$28$$)}))}),$on_suffix_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],function($event$jscomp$509$$){var $value$jscomp$853$$=(0,$APP.$app$util$dom$get_target_val$$)($event$jscomp$509$$),$index$jscomp$493$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$509$$),
"value"));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,function($shape$jscomp$970$$){return $APP.$cljs$core$assoc_in$$($shape$jscomp$970$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1854$exports$$,$index$jscomp$493$$,$APP.$cljs$cst$1360$suffix$$],null),$value$jscomp$853$$)}))}),$on_type_change$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],function($index$jscomp$494$$,$event$jscomp$510$$){var $type__$1$jscomp$16$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$510$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,function($shape$jscomp$971$$){return $APP.$cljs$core$assoc_in$$($shape$jscomp$971$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1854$exports$$,$index$jscomp$494$$,$APP.$cljs$cst$139$type$$],null),$type__$1$jscomp$16$$)}))}),$on_remove_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$276$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$276$$,
function($shape$jscomp$972$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shape$jscomp$972$$,$APP.$cljs$cst$1854$exports$$,$APP.$cljs$core$PersistentVector$EMPTY$$)}))}),$manage_key_down$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$511$$){var $esc_QMARK_$jscomp$7$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$511$$);return $APP.$cljs$core$truth_$$($esc_QMARK_$jscomp$7$$)?$APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$511$$)):
null}),$size_options$jscomp$2$$=new $APP.$cljs$core$PersistentVector$$(null,7,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"0.5",$APP.$cljs$cst$2245$label$$,"0.5x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"0.75",$APP.$cljs$cst$2245$label$$,"0.75x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"1",$APP.$cljs$cst$2245$label$$,"1x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$260$value$$,"1.5",$APP.$cljs$cst$2245$label$$,"1.5x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"2",$APP.$cljs$cst$2245$label$$,"2x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"4",$APP.$cljs$cst$2245$label$$,"4x"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"6",$APP.$cljs$cst$2245$label$$,"6x"],null)],null),$format_options$jscomp$1$$=new $APP.$cljs$core$PersistentVector$$(null,
5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"png",$APP.$cljs$cst$2245$label$$,"PNG"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"jpeg",$APP.$cljs$cst$2245$label$$,"JPG"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"webp",$APP.$cljs$cst$2245$label$$,"WEBP"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"svg",
$APP.$cljs$cst$2245$label$$,"SVG"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"pdf",$APP.$cljs$cst$2245$label$$,"PDF"],null)],null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_exports_QMARK_$$,
collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$20_props_76743$$),onCollapsed:$toggle_content$jscomp$7$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$count$$($ids$jscomp$276$$)>1?"workspace.options.export-multiple":"workspace.options.export"),className:$has_exports_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_exports__title-spacing-export",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.export.add-export"),onClick:$add_export$jscomp$1$$,icon:"add"})})}),$APP.$cljs$core$truth_$$($open_QMARK_$jscomp$20_props_76743$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__element-set-content",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$exports__$1$jscomp$13$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__multiple-exports",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__actions",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.export.remove-export"),
onClick:$on_remove_all$$,icon:"remove"})})]}):$APP.$cljs$core$seq$$($exports__$1$jscomp$13$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$184$$,$export$$jscomp$11_p__76762$$){var $index$jscomp$495$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($export$$jscomp$11_p__76762$$,0,null);$export$$jscomp$11_p__76762$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($export$$jscomp$11_p__76762$$,
1,null);$out_arr__44057__auto__$jscomp$184$$.push((0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__element-group",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_exports__format-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$app$common$data$name$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($export$$jscomp$11_p__76762$$)),
options:$format_options$jscomp$1$$,"dropdown-class":"main_ui_workspace_sidebar_options_menus_exports__dropdown-upwards","on-change":$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_type_change$jscomp$2$$,$index$jscomp$495$$)})}),$APP.$cljs$core$truth_$$($scale_enabled_QMARK_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$scale_enabled_QMARK_$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($export$$jscomp$11_p__76762$$):$scale_enabled_QMARK_$jscomp$1$$($export$$jscomp$11_p__76762$$))?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_exports__size-select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"default-value":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1887$scale$$.$cljs$core$IFn$_invoke$arity$1$($export$$jscomp$11_p__76762$$)),options:$size_options$jscomp$2$$,"dropdown-class":"main_ui_workspace_sidebar_options_menus_exports__dropdown-upwards","on-change":$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($on_scale_change$jscomp$1$$,
$index$jscomp$495$$)})}):null,(0,$APP.$rumext$v2$jsx$$)("label",{htmlFor:"suffix-export-input",className:"main_ui_workspace_sidebar_options_menus_exports__suffix-input",children:(0,$APP.$rumext$v2$jsx$$)("input",{id:"suffix-export-input",type:"text",value:$APP.$cljs$cst$1360$suffix$$.$cljs$core$IFn$_invoke$arity$1$($export$$jscomp$11_p__76762$$),placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.export.suffix"),"data-value":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$495$$),
onChange:$on_suffix_change$jscomp$1$$,onKeyDown:$manage_key_down$jscomp$2$$,className:"main_ui_workspace_sidebar_options_menus_exports__type-input"})})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.export.remove-export"),onClick:$delete_export$jscomp$1$$,"data-value":$index$jscomp$495$$,icon:"remove"})]},$index$jscomp$495$$));return $out_arr__44057__auto__$jscomp$184$$},
[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($exports__$1$jscomp$13$$))}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$exports__$1$jscomp$13$$)||$APP.$cljs$core$seq$$($exports__$1$jscomp$13$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$APP.$cljs$core$truth_$$($in_progress_QMARK_$jscomp$2_state$jscomp$1083$$)?null:$on_download$jscomp$2$$,disabled:$in_progress_QMARK_$jscomp$2_state$jscomp$1083$$,className:"main_ui_workspace_sidebar_options_menus_exports__export-btn "+
($APP.$cljs$core$truth_$$($in_progress_QMARK_$jscomp$2_state$jscomp$1083$$)?"main_ui_workspace_sidebar_options_menus_exports__btn-disabled":""),children:$APP.$cljs$core$truth_$$($in_progress_QMARK_$jscomp$2_state$jscomp$1083$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.exporting-object"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.options.export-object",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$core$count$$($shapes_with_exports$$))]))}):
null]}):null]})},function($old_props$jscomp$2$$,$new_props$jscomp$3$$){return $old_props$jscomp$2$$.ids===$new_props$jscomp$3$$.ids&&$old_props$jscomp$2$$.type===$new_props$jscomp$3$$.type&&$old_props$jscomp$2$$.pageId===$new_props$jscomp$3$$.pageId&&$old_props$jscomp$2$$.fileId===$new_props$jscomp$3$$.fileId&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($old_props$jscomp$2$$.values,$new_props$jscomp$3$$.values)});var $app$main$ui$workspace$sidebar$options$menus$fill$fill_attrs$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1858$hide_fill_on_export$$,null,$APP.$cljs$cst$1618$fills$$,null],null),null),$app$main$ui$workspace$sidebar$options$menus$fill$xf_COLON_process_fills$$=$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$496$$,$item$jscomp$129$$){var $color$jscomp$165$$=$APP.$app$common$types$fills$fill__GT_color$$($item$jscomp$129$$);
return $APP.$cljs$core$with_meta$$($item$jscomp$129$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1779$index$$,$index$jscomp$496$$,$APP.$cljs$cst$1284$color$$,$color$jscomp$165$$],null))}),$app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$){var $ids$jscomp$277$$=$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$.ids,$type$jscomp$627$$=$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$.type,
$fills__$1$jscomp$6_values$jscomp$85$$=$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$.values;$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$=$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$.appliedTokens;var $fills$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($fills__$1$jscomp$6_values$jscomp$85$$,$APP.$cljs$cst$1618$fills$$),$hide_on_export$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($fills__$1$jscomp$6_values$jscomp$85$$,$APP.$cljs$cst$1858$hide_fill_on_export$$,
!1),$fill_token_applied$$=$APP.$cljs$cst$1392$fill$$.$cljs$core$IFn$_invoke$arity$1$($applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$),$label$jscomp$39_render_wasm_QMARK_$jscomp$2$$=$app$main$features$use_feature$$("render-wasm/v1"),$multiple_QMARK_$jscomp$8$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$fills$jscomp$30$$);$fills__$1$jscomp$6_values$jscomp$85$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fills$jscomp$30$$)],
function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$fills$jscomp$30$$)?$fills$jscomp$30$$:$APP.$cljs$core$not_empty$$($APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$app$main$ui$workspace$sidebar$options$menus$fill$xf_COLON_process_fills$$,$fills$jscomp$30$$))});$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$=$multiple_QMARK_$jscomp$8$$||$fills__$1$jscomp$6_values$jscomp$85$$!=null;var $empty_fills_QMARK_$$=
!$multiple_QMARK_$jscomp$8$$&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(0,$APP.$cljs$core$count$$($fills__$1$jscomp$6_values$jscomp$85$$)),$open_STAR_$jscomp$9$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$),$open_QMARK_$jscomp$21$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$9$$),$toggle_content$jscomp$8$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($open_STAR_$jscomp$9$$,
$APP.$cljs$core$not$$)}),$open_content$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$9$$,!0)}),$close_content$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($open_STAR_$jscomp$9$$,!1)}),$checkbox_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$can_add_fills_QMARK_$$=$label$jscomp$39_render_wasm_QMARK_$jscomp$2$$?!$multiple_QMARK_$jscomp$8$$&&$APP.$cljs$core$count$$($fills__$1$jscomp$6_values$jscomp$85$$)<
8:!$multiple_QMARK_$jscomp$8$$;$label$jscomp$39_render_wasm_QMARK_$jscomp$2$$=function(){switch($type$jscomp$627$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$627$$.$fqn$:null){case "multiple":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.selection-fill");case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.group-fill");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.fill")}}();
var $on_add$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$),$APP.$rumext$v2$adapt$$($multiple_QMARK_$jscomp$8$$),$APP.$rumext$v2$adapt$$($empty_fills_QMARK_$$)],function(){if($can_add_fills_QMARK_$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$277$$));var $JSCompiler_temp_const$jscomp$1627$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;
var $JSCompiler_inline_result$jscomp$1629$$=$app$main$data$workspace$colors$add_fill$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$277$$);$JSCompiler_temp_const$jscomp$1627$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1629$$);return $multiple_QMARK_$jscomp$8$$||$empty_fills_QMARK_$$?$open_content$$.$cljs$core$IFn$_invoke$arity$0$?$open_content$$.$cljs$core$IFn$_invoke$arity$0$():$open_content$$():null}return null}),$on_change$jscomp$66$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],
function($color$jscomp$166_color__$1$jscomp$33$$,$index$jscomp$497$$){$color$jscomp$166_color__$1$jscomp$33$$=$APP.$cljs$core$select_keys$$($color$jscomp$166_color__$1$jscomp$33$$,$APP.$app$common$types$color$color_attrs$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$change_fill$cljs$0core$0IFn$0_invoke$0arity$04$$($ids$jscomp$277$$,$color$jscomp$166_color__$1$jscomp$33$$,$index$jscomp$497$$))}),$on_reorder$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],
function($from_pos$jscomp$15$$,$to_space_between_pos$jscomp$15$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$reorder_fills$$($ids$jscomp$277$$,$from_pos$jscomp$15$$,$to_space_between_pos$jscomp$15$$))}),$on_remove$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$),$APP.$rumext$v2$adapt$$($multiple_QMARK_$jscomp$8$$),$APP.$rumext$v2$adapt$$($empty_fills_QMARK_$$)],function($index$jscomp$498$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$remove_fill$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$277$$,
$index$jscomp$498$$));return $multiple_QMARK_$jscomp$8$$||$empty_fills_QMARK_$$?$close_content$$.$cljs$core$IFn$_invoke$arity$0$?$close_content$$.$cljs$core$IFn$_invoke$arity$0$():$close_content$$():null}),$on_remove_all$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$remove_all_fills$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$277$$,
null))}),$on_detach$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],function($index$jscomp$499$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$detach_fill$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$277$$,$index$jscomp$499$$))}),$on_change_show_on_export$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],function($event$jscomp$512$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_hide_fill_on_export$$($ids$jscomp$277$$,
$APP.$cljs$core$not$$($APP.$app$util$dom$checked_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$512$$)))))}),$disable_drag_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$disable_drag_QMARK_$$=$APP.$cljs$core$_deref$$($disable_drag_STAR_$$),$on_focus$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($disable_drag_STAR_$$,!0)}),$on_blur$jscomp$20$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($disable_drag_STAR_$$,
!1)}),$on_token_change$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],function($_$jscomp$2877$$,$token$jscomp$121$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1134$token$$,$token$jscomp$121$$,$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$277$$,$APP.$cljs$cst$4489$expand_with_children$$,!0],null)))}),$on_detach_token$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$277$$)],function($token_name$jscomp$17$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$17$$,$APP.$cljs$cst$1978$attributes$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$277$$],null)))});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($hide_on_export$$)],function(){var $temp__5825__auto__$jscomp$360$$=$APP.$rumext$v2$ref_val$$($checkbox_ref$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$360$$)?
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($hide_on_export$$,$APP.$cljs$cst$1600$multiple$$)?$APP.$app$util$dom$set_attribute_BANG_$$($temp__5825__auto__$jscomp$360$$,"indeterminate",!0):$APP.$app$util$dom$remove_attribute_BANG_$$($temp__5825__auto__$jscomp$360$$,"indeterminate"):null});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_fill__fill-section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_fill__fill-title",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$21$$),onCollapsed:$toggle_content$jscomp$8$$,title:$label$jscomp$39_render_wasm_QMARK_$jscomp$2$$,className:$applied_tokens$jscomp$11_has_fills_QMARK__props_76773$$?"":"main_ui_workspace_sidebar_options_menus_fill__fill-title-bar",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$fills__$1$jscomp$6_values$jscomp$85$$)?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.fill.add-fill"),onClick:$on_add$$,"data-testid":"add-fill",disabled:!$can_add_fills_QMARK_$$,icon:"add"})})}),$APP.$cljs$core$truth_$$($open_QMARK_$jscomp$21$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_fill__fill-content",
children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$fills__$1$jscomp$6_values$jscomp$85$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$fill_token_applied$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_fill__fill-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_fill__fill-multiple-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")}),
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.fill.remove-fill"),onClick:$on_remove_all$jscomp$1$$,icon:"remove"})]}):$fills__$1$jscomp$6_values$jscomp$85$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$185$$,$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$){var $JSCompiler_temp_const$jscomp$1782$$=
$out_arr__44057__auto__$jscomp$185$$.push,$color$jscomp$inline_8629_mdata$jscomp$inline_8627$$=$APP.$cljs$core$meta$$($JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$);$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$inline_8629_mdata$jscomp$inline_8627$$,$APP.$cljs$cst$1779$index$$);$color$jscomp$inline_8629_mdata$jscomp$inline_8627$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$inline_8629_mdata$jscomp$inline_8627$$,
$APP.$cljs$cst$1284$color$$);$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{onRemove:$on_remove$jscomp$2$$,origin:$APP.$cljs$cst$1392$fill$$,index:$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$,onChange:$on_change$jscomp$66$$,selectOnFocus:$APP.$cljs$core$not$$($disable_drag_QMARK_$$),onReorder:$on_reorder$jscomp$3$$,onTokenChange:$on_token_change$jscomp$5$$,
disableDrag:$disable_drag_QMARK_$$,onDetachToken:$on_detach_token$jscomp$5$$,appliedToken:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$,0)?$fill_token_applied$$:null,onFocus:$on_focus$jscomp$13$$,onDetach:$on_detach$jscomp$4$$,onBlur:$on_blur$jscomp$20$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.fill"),color:$color$jscomp$inline_8629_mdata$jscomp$inline_8627$$},$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$);
$JSCompiler_temp_const$jscomp$1782$$.call($out_arr__44057__auto__$jscomp$185$$,$JSCompiler_inline_result$jscomp$1784_index$jscomp$inline_8628_value$jscomp$855$$);return $out_arr__44057__auto__$jscomp$185$$},[],$fills__$1$jscomp$6_values$jscomp$85$$)}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$627$$,$APP.$cljs$cst$1590$frame$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$627$$,$APP.$cljs$cst$1600$multiple$$)&&$hide_on_export$$!=null?(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_fill__fill-checkbox",children:(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:"show-fill-on-export",className:$APP.$cljs$core$not$$($hide_on_export$$)?"checked":"",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_fill__check-mark "+($APP.$cljs$core$not$$($hide_on_export$$)?"main_ui_workspace_sidebar_options_menus_fill__checked":""),children:$APP.$cljs$core$not$$($hide_on_export$$)?$APP.$app$main$ui$icons$status_tick$$:
null}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.show-fill-on-export"),(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"show-fill-on-export",ref:$checkbox_ref$$,checked:$APP.$cljs$core$not$$($hide_on_export$$),onChange:$on_change_show_on_export$$})]})}):null]}):null]})},function($n_props_o_fills$$,$n_fills_o_props$$){var $and__5023__auto__$jscomp$759_o_applied_tokens$$=$n_props_o_fills$$.ids===$n_fills_o_props$$.ids;if($and__5023__auto__$jscomp$759_o_applied_tokens$$){var $o_hide_o_vals$$=
$n_fills_o_props$$.values,$n_hide_n_vals$$=$n_props_o_fills$$.values;$n_props_o_fills$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($o_hide_o_vals$$,$APP.$cljs$cst$1618$fills$$);$n_fills_o_props$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($n_hide_n_vals$$,$APP.$cljs$cst$1618$fills$$);$and__5023__auto__$jscomp$759_o_applied_tokens$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($o_hide_o_vals$$,$APP.$cljs$cst$1857$applied_tokens$$);var $n_applied_tokens$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($n_hide_n_vals$$,
$APP.$cljs$cst$1857$applied_tokens$$);$o_hide_o_vals$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($o_hide_o_vals$$,$APP.$cljs$cst$1858$hide_fill_on_export$$);$n_hide_n_vals$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($n_hide_n_vals$$,$APP.$cljs$cst$1858$hide_fill_on_export$$);return $o_hide_o_vals$$===$n_hide_n_vals$$&&$and__5023__auto__$jscomp$759_o_applied_tokens$$===$n_applied_tokens$$&&$n_props_o_fills$$===$n_fills_o_props$$}return $and__5023__auto__$jscomp$759_o_applied_tokens$$});var $app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1851$blend_mode$$,$APP.$cljs$cst$1607$blocked$$,$APP.$cljs$cst$1604$hidden$$],null),$app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($applied_tokens$jscomp$12_props_76835$$){var $ids$jscomp$279$$=$applied_tokens$jscomp$12_props_76835$$.ids,
$values$jscomp$86$$=$applied_tokens$jscomp$12_props_76835$$.values;$applied_tokens$jscomp$12_props_76835$$=$applied_tokens$jscomp$12_props_76835$$.appliedTokens;var $token_numeric_inputs$jscomp$3$$=$app$main$features$use_feature$$("tokens/numeric-input"),$hidden_QMARK_$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$86$$,$APP.$cljs$cst$1604$hidden$$),$blocked_QMARK_$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$86$$,$APP.$cljs$cst$1607$blocked$$),
$on_detach_token$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function($token_name$jscomp$18$$,$attr$jscomp$73$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$18$$,$APP.$cljs$cst$1978$attributes$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$73$$]),
$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$279$$],null)))}),$current_blend_mode$$=function(){var $or__5025__auto__$jscomp$1110$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$86$$,$APP.$cljs$cst$1851$blend_mode$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1110$$)?$or__5025__auto__$jscomp$1110$$:$APP.$cljs$cst$2008$normal$$}(),$current_opacity$$=$app$main$ui$workspace$sidebar$options$menus$layer$opacity__GT_string$$($APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$86$$)),
$state_STAR_$jscomp$18$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5447$selected_blend_mode$$,$current_blend_mode$$,$cljs$cst$5448$option_highlighted_QMARK_$$,!1,$cljs$cst$5449$preview_complete_QMARK_$$,!0],null)}),$handle_change_blend_mode_state$jscomp$1084$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$18$$),$selected_blend_mode$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change_blend_mode_state$jscomp$1084$$,
$cljs$cst$5447$selected_blend_mode$$),$option_highlighted_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change_blend_mode_state$jscomp$1084$$,$cljs$cst$5448$option_highlighted_QMARK_$$),$preview_complete_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change_blend_mode_state$jscomp$1084$$,$cljs$cst$5449$preview_complete_QMARK_$$),$wasm_renderer_enabled_QMARK_$$=$app$main$features$use_feature$$("render-wasm/v1");$handle_change_blend_mode_state$jscomp$1084$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function($value$jscomp$857$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$18$$,$APP.$cljs$core$assoc$$,$cljs$cst$5447$selected_blend_mode$$,$value$jscomp$857$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5448$option_highlighted_QMARK_$$,!1,$cljs$cst$5449$preview_complete_QMARK_$$,!0]));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$unset_preview_blend_mode$$($ids$jscomp$279$$));
return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,$APP.$cljs$cst$1851$blend_mode$$,$value$jscomp$857$$)});var $handle_blend_mode_enter$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$),$APP.$rumext$v2$adapt$$($current_blend_mode$$)],function($value$jscomp$858$$){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($state_STAR_$jscomp$18$$,$APP.$cljs$core$assoc$$,$cljs$cst$5449$preview_complete_QMARK_$$,
!1,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$cljs$cst$5448$option_highlighted_QMARK_$$,!0]));if($wasm_renderer_enabled_QMARK_$$)for(var $c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$APP.$cljs$core$seq$$($ids$jscomp$279$$),$G__76862_chunk__76840_76850_seq__76839_76859__$1$$=null,$G__76863_count__76841_76851$$=0,$G__76861_i__76842_76852$$=0;;)if($G__76861_i__76842_76852$$<$G__76863_count__76841_76851$$){var $id_76853$$=$G__76862_chunk__76840_76850_seq__76839_76859__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,
$G__76861_i__76842_76852$$);$APP.$app$render_wasm$api$use_shape$$($id_76853$$);$APP.$app$render_wasm$api$set_shape_blend_mode$$($value$jscomp$858$$);$APP.$app$render_wasm$api$request_render$$("preview-blend-mode");$G__76861_i__76842_76852$$+=1}else if($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$APP.$cljs$core$seq$$($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$))$G__76862_chunk__76840_76850_seq__76839_76859__$1$$=$c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$,
$APP.$cljs$core$chunked_seq_QMARK_$$($G__76862_chunk__76840_76850_seq__76839_76859__$1$$)?($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$APP.$cljs$core$_chunked_first$$($G__76862_chunk__76840_76850_seq__76839_76859__$1$$),$G__76861_i__76842_76852$$=$APP.$cljs$core$_chunked_rest$$($G__76862_chunk__76840_76850_seq__76839_76859__$1$$),$G__76862_chunk__76840_76850_seq__76839_76859__$1$$=$c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$,$G__76863_count__76841_76851$$=
$APP.$cljs$core$count$$($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$),$c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$G__76861_i__76842_76852$$):($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$APP.$cljs$core$first$$($G__76862_chunk__76840_76850_seq__76839_76859__$1$$),$APP.$app$render_wasm$api$use_shape$$($c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$),$APP.$app$render_wasm$api$set_shape_blend_mode$$($value$jscomp$858$$),
$APP.$app$render_wasm$api$request_render$$("preview-blend-mode"),$c__5548__auto___76860_id_76865_seq__76839_76849_temp__5825__auto___76858$$=$APP.$cljs$core$next$$($G__76862_chunk__76840_76850_seq__76839_76859__$1$$),$G__76862_chunk__76840_76850_seq__76839_76859__$1$$=null,$G__76863_count__76841_76851$$=0),$G__76861_i__76842_76852$$=0;else break;$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$set_preview_blend_mode$$($ids$jscomp$279$$,$value$jscomp$858$$))}),$handle_blend_mode_leave$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function(){$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$18$$,$APP.$cljs$core$assoc$$,$cljs$cst$5449$preview_complete_QMARK_$$,!0);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$unset_preview_blend_mode$$($ids$jscomp$279$$))}),
$handle_opacity_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function($value$jscomp$859$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,$APP.$cljs$cst$1718$opacity$$,$value$jscomp$859$$/100)}),$on_opacity_change$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($app$main$ui$workspace$sidebar$options$menus$layer$on_change$$),
$APP.$rumext$v2$adapt$$($handle_opacity_change$$)],function($value$jscomp$860$$){return typeof $value$jscomp$860$$==="string"||typeof $value$jscomp$860$$==="number"?$handle_opacity_change$$.$cljs$core$IFn$_invoke$arity$1$?$handle_opacity_change$$.$cljs$core$IFn$_invoke$arity$1$($value$jscomp$860$$):$handle_opacity_change$$($value$jscomp$860$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$860$$),$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1718$opacity$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$279$$],null)))}),$handle_set_hidden$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));
return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,$APP.$cljs$cst$1604$hidden$$,!0)}),$handle_set_visible$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,
$APP.$cljs$cst$1604$hidden$$,!1)}),$handle_set_blocked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,$APP.$cljs$cst$1607$blocked$$,!0)}),$handle_set_unblocked$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$279$$)],
function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$279$$));return $app$main$ui$workspace$sidebar$options$menus$layer$on_change$$($ids$jscomp$279$$,$APP.$cljs$cst$1607$blocked$$,!1)}),$options$jscomp$619$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_blend_mode$$)],function(){return $APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$current_blend_mode$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$2245$label$$,"--"],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,16,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
$APP.$cljs$cst$2008$normal$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.normal")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2005$darken$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.darken")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2014$multiply$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.multiply")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2017$color_burn$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.color-burn")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2007$lighten$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.lighten")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2004$screen$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.screen")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2016$color_dodge$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.color-dodge")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2009$overlay$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.overlay")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2015$soft_light$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.soft-light")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2013$hard_light$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.hard-light")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2010$difference$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.difference")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2012$exclusion$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.exclusion")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2003$hue$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.hue")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2006$saturation$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.saturation")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1284$color$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.color")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$2011$luminosity$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.blend-mode.luminosity")],null)],null)]))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_blend_mode$$),
$APP.$rumext$v2$adapt$$($option_highlighted_QMARK_$$),$APP.$rumext$v2$adapt$$($preview_complete_QMARK_$$)],function(){var $or__5025__auto__$jscomp$inline_8631$$=$APP.$cljs$core$not$$($option_highlighted_QMARK_$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_8631$$?$or__5025__auto__$jscomp$inline_8631$$:$APP.$cljs$core$truth_$$($option_highlighted_QMARK_$$)?$preview_complete_QMARK_$$:$option_highlighted_QMARK_$$)?$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$18$$,
$APP.$cljs$core$assoc$$,$cljs$cst$5447$selected_blend_mode$$,$current_blend_mode$$):null});return(0,$APP.$rumext$v2$jsxs$$)("section",{"aria-label":"layer-menu-section",className:"main_ui_workspace_sidebar_options_menus_layer__element-set-content "+($APP.$cljs$core$truth_$$($hidden_QMARK_$jscomp$6$$)?"main_ui_workspace_sidebar_options_menus_layer__hidden":""),children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layer__select",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"default-value":$selected_blend_mode$$,options:$options$jscomp$619$$,"on-change":$handle_change_blend_mode_state$jscomp$1084$$,"is-open?":$option_highlighted_QMARK_$$,"class":$APP.$cljs$core$truth_$$($hidden_QMARK_$jscomp$6$$)?"main_ui_workspace_sidebar_options_menus_layer__hidden-select":"","on-pointer-enter-option":$handle_blend_mode_enter$$,"on-pointer-leave-option":$handle_blend_mode_leave$$})}),$token_numeric_inputs$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_opacity_change$jscomp$2$$,className:"main_ui_workspace_sidebar_options_menus_layer__numeric-input-wrapper",placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$12_props_76835$$,$APP.$cljs$cst$1718$opacity$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,function(){var $or__5025__auto____$1$jscomp$120$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$86$$,$APP.$cljs$cst$1718$opacity$$);return $APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$120$$)?$or__5025__auto____$1$jscomp$120$$:1}())?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",max:100,attr:$APP.$cljs$cst$1718$opacity$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$12_props_76835$$,$APP.$cljs$cst$1718$opacity$$),value:100*function(){var $or__5025__auto__$jscomp$1112$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$86$$,$APP.$cljs$cst$1718$opacity$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1112$$)?$or__5025__auto__$jscomp$1112$$:1}(),onDetach:$on_detach_token$jscomp$6$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.opacity"),icon:"percentage"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.opacity"),className:"main_ui_workspace_sidebar_options_menus_layer__input",
children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layer__icon",children:"%"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{value:$current_opacity$$,placeholder:"--",onChange:$handle_opacity_change$$,min:0,max:100,className:"main_ui_workspace_sidebar_options_menus_layer__numeric-input"})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layer__actions",children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$hidden_QMARK_$jscomp$6$$)||$APP.$cljs$core$not$$($hidden_QMARK_$jscomp$6$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.toggle-layer"),onClick:$handle_set_hidden$$,icon:"shown"}):(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.layer-options.toggle-layer"),
onClick:$handle_set_visible$$,icon:"hide"}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$blocked_QMARK_$jscomp$3$$)||$APP.$cljs$core$not$$($blocked_QMARK_$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.lock"),onClick:$handle_set_blocked$$,icon:"unlock"}):(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.shape.menu.unlock"),onClick:$handle_set_unblocked$$,icon:"lock"})]})]})},function($old_props$jscomp$3$$,$new_props$jscomp$4$$){var $old_values$$=$old_props$jscomp$3$$.values,$new_values$$=$new_props$jscomp$4$$.values,$old_applied_tokens$jscomp$1$$=$old_props$jscomp$3$$.appliedTokens,$new_applied_tokens$jscomp$1$$=$new_props$jscomp$4$$.appliedTokens;return $old_props$jscomp$3$$["class"]===$new_props$jscomp$4$$["class"]&&
$old_props$jscomp$3$$.ids===$new_props$jscomp$4$$.ids&&$old_applied_tokens$jscomp$1$$===$new_applied_tokens$jscomp$1$$&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$$,$APP.$cljs$cst$1718$opacity$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$$,$APP.$cljs$cst$1718$opacity$$)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$$,$APP.$cljs$cst$1851$blend_mode$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$$,$APP.$cljs$cst$1851$blend_mode$$)&&
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$$,$APP.$cljs$cst$1607$blocked$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$$,$APP.$cljs$cst$1607$blocked$$)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$$,$APP.$cljs$cst$1604$hidden$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$$,$APP.$cljs$cst$1604$hidden$$)});var $app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,11,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1683$layout_item_margin$$,$APP.$cljs$cst$1682$layout_item_margin_type$$,$APP.$cljs$cst$1692$layout_item_h_sizing$$,$APP.$cljs$cst$1693$layout_item_v_sizing$$,$APP.$cljs$cst$1688$layout_item_max_h$$,$APP.$cljs$cst$1689$layout_item_min_h$$,$APP.$cljs$cst$1690$layout_item_max_w$$,$APP.$cljs$cst$1691$layout_item_min_w$$,
$APP.$cljs$cst$1694$layout_item_align_self$$,$APP.$cljs$cst$1695$layout_item_absolute$$,$APP.$cljs$cst$1696$layout_item_z_index$$],null),$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$=function($component__44519__auto__$jscomp$2$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($component__44519__auto__$jscomp$2$$,function($new_props_77029$$,$old_props_77030$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["is-flex-parent?"],$old_props_77030$$["is-flex-parent?"])&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["is-grid-layout?"],$old_props_77030$$["is-grid-layout?"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$.ids,$old_props_77030$$.ids)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$.type,$old_props_77030$$.type)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$.values,$old_props_77030$$.values)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["applied-tokens"],
$old_props_77030$$["applied-tokens"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["is-grid-parent"],$old_props_77030$$["is-grid-parent"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["is-flex-layout?"],$old_props_77030$$["is-flex-layout?"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77029$$["is-layout-child?"],$old_props_77030$$["is-layout-child?"])})}(function($applied_tokens$jscomp$16_props_77028$$){var $is_flex_layout_QMARK__title$jscomp$39$$=
$applied_tokens$jscomp$16_props_77028$$["is-flex-layout?"],$is_layout_child_QMARK__is_layout_child_QMARK___$1$$=$applied_tokens$jscomp$16_props_77028$$["is-layout-child?"],$is_layout_container_QMARK_$$=$applied_tokens$jscomp$16_props_77028$$["is-layout-container?"],$is_flex_parent_QMARK_$$=$applied_tokens$jscomp$16_props_77028$$["is-flex-parent?"],$is_grid_layout_QMARK__on_align_self_change$$=$applied_tokens$jscomp$16_props_77028$$["is-grid-layout?"],$is_grid_parent_QMARK__on_margin_type_change$$=
$applied_tokens$jscomp$16_props_77028$$["is-grid-parent?"],$ids$jscomp$283$$=$applied_tokens$jscomp$16_props_77028$$.ids,$values$jscomp$88$$=$applied_tokens$jscomp$16_props_77028$$.values;$applied_tokens$jscomp$16_props_77028$$=$applied_tokens$jscomp$16_props_77028$$["applied-tokens"];var $is_absolute_QMARK__selection_parents_STAR_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$283$$)}),
$is_col_QMARK_$jscomp$1_selection_parents$$=$APP.$rumext$v2$deref$$($is_absolute_QMARK__selection_parents_STAR_$$);$is_absolute_QMARK__selection_parents_STAR_$$=$APP.$cljs$cst$1695$layout_item_absolute$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$);$is_col_QMARK_$jscomp$1_selection_parents$$=$APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$shape$layout$col_QMARK_$$,$is_col_QMARK_$jscomp$1_selection_parents$$);$is_layout_child_QMARK__is_layout_child_QMARK___$1$$=$is_layout_child_QMARK__is_layout_child_QMARK___$1$$&&
!$is_absolute_QMARK__selection_parents_STAR_$$;var $state_STAR_$jscomp$19$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$open_QMARK_$jscomp$22$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$19$$),$toggle_content$jscomp$9$$=$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$($state_STAR_$jscomp$19$$,$APP.$cljs$core$not$$)}),$has_content_QMARK_$jscomp$1$$=$is_layout_child_QMARK__is_layout_child_QMARK___$1$$||
$is_flex_parent_QMARK_$$||$is_grid_parent_QMARK__on_margin_type_change$$||$is_layout_container_QMARK_$$,$align_self$jscomp$6$$=$APP.$cljs$cst$1694$layout_item_align_self$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),$h_sizing$jscomp$2$$=$APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),$v_sizing$jscomp$3$$=$APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$);$is_flex_layout_QMARK__title$jscomp$39$$=$is_layout_container_QMARK_$$&&
$is_flex_layout_QMARK__title$jscomp$39$$&&!$is_layout_child_QMARK__is_layout_child_QMARK___$1$$?"Flex board":$is_layout_container_QMARK_$$&&$is_grid_layout_QMARK__on_align_self_change$$&&!$is_layout_child_QMARK__is_layout_child_QMARK___$1$$?"Grid board":$is_layout_container_QMARK_$$&&!$is_layout_child_QMARK__is_layout_child_QMARK___$1$$?"Layout board":$is_flex_parent_QMARK_$$?"Flex element":$is_grid_parent_QMARK__on_margin_type_change$$?"Grid element":"Layout element";$is_grid_layout_QMARK__on_align_self_change$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$),$APP.$rumext$v2$adapt$$($align_self$jscomp$6$$)],function($value$jscomp$867$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($align_self$jscomp$6$$,$value$jscomp$867$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1694$layout_item_align_self$$,null],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1694$layout_item_align_self$$,$value$jscomp$867$$],null)))});$is_grid_parent_QMARK__on_margin_type_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],
function($type$jscomp$629$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1682$layout_item_margin_type$$,$type$jscomp$629$$],null)))});var $on_margin_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],function($type$jscomp$630$$,
$prop$jscomp$39$$,$val$jscomp$215$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$630$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$39$$,$APP.$cljs$cst$1684$m1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1683$layout_item_margin$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1684$m1$$,$val$jscomp$215$$,$APP.$cljs$cst$1686$m3$$,$val$jscomp$215$$],null)],null))):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$630$$,$APP.$cljs$cst$1647$simple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($prop$jscomp$39$$,$APP.$cljs$cst$1685$m2$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1683$layout_item_margin$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1685$m2$$,$val$jscomp$215$$,$APP.$cljs$cst$1687$m4$$,$val$jscomp$215$$],null)],null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1683$layout_item_margin$$,
$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$prop$jscomp$39$$,$val$jscomp$215$$])],null)))}),$on_behaviour_h_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],function($value$jscomp$868$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1692$layout_item_h_sizing$$,$value$jscomp$868$$],null)))}),$on_behaviour_v_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],function($value$jscomp$869$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1693$layout_item_v_sizing$$,
$value$jscomp$869$$],null)))}),$on_change_position$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],function($value$jscomp$870$$){$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$870$$,$cljs$cst$5450$static$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$1696$layout_item_z_index$$,null],null)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1695$layout_item_absolute$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($value$jscomp$870$$,$APP.$cljs$cst$3965$absolute$$)],null)))}),$on_change_z_index$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$283$$)],
function($value$jscomp$871$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$update_layout_child$cljs$0core$0IFn$0_invoke$0arity$02$$($ids$jscomp$283$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1696$layout_item_z_index$$,$value$jscomp$871$$],null)))});return(0,$APP.$rumext$v2$jsxs$$)("section",{"aria-label":"layout item menu",className:"main_ui_workspace_sidebar_options_menus_layout_item__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_layout_item__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_content_QMARK_$jscomp$1$$,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$22$$),onCollapsed:$toggle_content$jscomp$9$$,title:$is_flex_layout_QMARK__title$jscomp$39$$,className:"main_ui_workspace_sidebar_options_menus_layout_item__title-spacing-layout-element "+($has_content_QMARK_$jscomp$1$$?"":"main_ui_workspace_sidebar_options_menus_layout_item__title-spacing-empty")})}),
$APP.$cljs$core$truth_$$($open_QMARK_$jscomp$22$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__flex-element-menu",children:[$is_layout_child_QMARK__is_layout_child_QMARK___$1$$||$is_absolute_QMARK__selection_parents_STAR_$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__position-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__position-options",
children:$APP.$rumext$v2$jsxs$$($APP.$app$main$ui$components$radio_buttons$radio_buttons$$,{selected:$is_absolute_QMARK__selection_parents_STAR_$$?"absolute":"static","decode-fn":$APP.$cljs$core$keyword$$,"on-change":$on_change_position$$,name:"layout-style",wide:!0,children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"static",id:$cljs$cst$5451$static_position$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$radio_buttons$radio_button$$,{value:"absolute",
id:$cljs$cst$5452$absolute_position$$})]})}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:"z-index",className:"main_ui_workspace_sidebar_options_menus_layout_item__z-index-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_layout_item__icon-text",children:"Z"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_layout_item__numeric-input",placeholder:"--",onFocus:function($p1__77026_SHARP_$$){return $app$util$dom$select_target$$($p1__77026_SHARP_$$)},
onChange:function($p1__77027_SHARP_$$){return $on_change_z_index$$.$cljs$core$IFn$_invoke$arity$1$?$on_change_z_index$$.$cljs$core$IFn$_invoke$arity$1$($p1__77027_SHARP_$$):$on_change_z_index$$($p1__77027_SHARP_$$)},nillable:!0,value:$APP.$cljs$cst$1696$layout_item_z_index$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$)})]})]}):null,(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__behavior-row",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__behaviour-menu "+
($is_layout_child_QMARK__is_layout_child_QMARK___$1$$&&$is_layout_container_QMARK_$$?"main_ui_workspace_sidebar_options_menus_layout_item__wrap":""),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_horizontal$$,{"is-auto":$is_layout_container_QMARK_$$,"has-fill":$is_layout_child_QMARK__is_layout_child_QMARK___$1$$,value:$APP.$cljs$cst$1692$layout_item_h_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),"on-change":$on_behaviour_h_change$$}),
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$element_behaviour_vertical$$,{"is-auto":$is_layout_container_QMARK_$$,"has-fill":$is_layout_child_QMARK__is_layout_child_QMARK___$1$$,value:$APP.$cljs$cst$1693$layout_item_v_sizing$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),"on-change":$on_behaviour_v_change$$})]})}),$is_layout_child_QMARK__is_layout_child_QMARK___$1$$&&$is_flex_parent_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_layout_item__align-row",
children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$align_self_row$$,{"is-col":$is_col_QMARK_$jscomp$1_selection_parents$$,value:$align_self$jscomp$6$$,"on-change":$is_grid_layout_QMARK__on_align_self_change$$})}):null,$is_layout_child_QMARK__is_layout_child_QMARK___$1$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$margin_section_STAR_$$,{value:$APP.$cljs$cst$1683$layout_item_margin$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),
type:$APP.$cljs$cst$1682$layout_item_margin_type$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$88$$),onTypeChange:$is_grid_parent_QMARK__on_margin_type_change$$,appliedTokens:$applied_tokens$jscomp$16_props_77028$$,ids:$ids$jscomp$283$$,onChange:$on_margin_change$$}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($h_sizing$jscomp$2$$,$APP.$cljs$cst$1392$fill$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($v_sizing$jscomp$3$$,$APP.$cljs$cst$1392$fill$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_size_constraints_STAR_$$,
{ids:$ids$jscomp$283$$,values:$values$jscomp$88$$,appliedTokens:$applied_tokens$jscomp$16_props_77028$$}):null]}):null]})});var $app$main$ui$workspace$sidebar$options$menus$border_radius$border_radius_menu_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($applied_tokens$jscomp$17_props_76995$$){function $on_radius_r4_change$$($p1__76988_SHARP_$$){return $on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__76988_SHARP_$$,$APP.$cljs$cst$1633$r4$$):$on_single_radius_change$$($p1__76988_SHARP_$$,$APP.$cljs$cst$1633$r4$$)}function $on_radius_r3_change$$($p1__76987_SHARP_$$){return $on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$?
$on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__76987_SHARP_$$,$APP.$cljs$cst$1632$r3$$):$on_single_radius_change$$($p1__76987_SHARP_$$,$APP.$cljs$cst$1632$r3$$)}function $on_radius_r2_change$$($p1__76986_SHARP_$$){return $on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$?$on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__76986_SHARP_$$,$APP.$cljs$cst$1631$r2$$):$on_single_radius_change$$($p1__76986_SHARP_$$,$APP.$cljs$cst$1631$r2$$)}function $on_radius_r1_change$$($p1__76985_SHARP_$$){return $on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$?
$on_single_radius_change$$.$cljs$core$IFn$_invoke$arity$2$($p1__76985_SHARP_$$,$APP.$cljs$cst$1630$r1$$):$on_single_radius_change$$($p1__76985_SHARP_$$,$APP.$cljs$cst$1630$r1$$)}var $ids$jscomp$284$$=$applied_tokens$jscomp$17_props_76995$$.ids,$class$$jscomp$68$$=$applied_tokens$jscomp$17_props_76995$$.className,$values$jscomp$89$$=$applied_tokens$jscomp$17_props_76995$$.values;$applied_tokens$jscomp$17_props_76995$$=$applied_tokens$jscomp$17_props_76995$$.appliedTokens;var $token_numeric_inputs$jscomp$7$$=
$app$main$features$use_feature$$("tokens/numeric-input"),$all_values_equal_QMARK_$$=$app$main$ui$workspace$sidebar$options$menus$border_radius$all_equal_QMARK_$$($values$jscomp$89$$),$all_token_equal_QMARK_$$=$APP.$cljs$core$seq$$($applied_tokens$jscomp$17_props_76995$$)&&$app$main$ui$workspace$sidebar$options$menus$border_radius$all_equal_QMARK_$$($applied_tokens$jscomp$17_props_76995$$),$radius_expanded_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$radius_expanded$$=
$APP.$cljs$core$_deref$$($radius_expanded_STAR_$$),$on_detach_token$jscomp$10$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],function($token_name$jscomp$22$$,$attr$jscomp$82$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$22$$,$APP.$cljs$cst$1978$attributes$$,
$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$82$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$284$$],null)))}),$on_detach_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$10$$)],function($token$jscomp$124$$){return $APP.$cljs$core$run_BANG_$$(function($p1__76981_SHARP_$$){return $on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$124$$,
$p1__76981_SHARP_$$):$on_detach_token$jscomp$10$$($token$jscomp$124$$,$p1__76981_SHARP_$$)},new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1633$r4$$],null))}),$on_detach_r1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$10$$)],function($token$jscomp$125$$){return $on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$?
$on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$125$$,$APP.$cljs$cst$1630$r1$$):$on_detach_token$jscomp$10$$($token$jscomp$125$$,$APP.$cljs$cst$1630$r1$$)}),$on_detach_r2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$10$$)],function($token$jscomp$126$$){return $on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$126$$,$APP.$cljs$cst$1631$r2$$):
$on_detach_token$jscomp$10$$($token$jscomp$126$$,$APP.$cljs$cst$1631$r2$$)}),$on_detach_r3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$10$$)],function($token$jscomp$127$$){return $on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$127$$,$APP.$cljs$cst$1632$r3$$):$on_detach_token$jscomp$10$$($token$jscomp$127$$,$APP.$cljs$cst$1632$r3$$)}),$on_detach_r4$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_detach_token$jscomp$10$$)],function($token$jscomp$128$$){return $on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach_token$jscomp$10$$.$cljs$core$IFn$_invoke$arity$2$($token$jscomp$128$$,$APP.$cljs$cst$1633$r4$$):$on_detach_token$jscomp$10$$($token$jscomp$128$$,$APP.$cljs$cst$1633$r4$$)}),$change_radius$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],
function($update_fn$jscomp$45$$){return $APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$284$$,function($shape$jscomp$974$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$shape$attrs$editable_attrs$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$974$$)),$APP.$cljs$cst$1630$r1$$)?$update_fn$jscomp$45$$.$cljs$core$IFn$_invoke$arity$1$?$update_fn$jscomp$45$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$974$$):
$update_fn$jscomp$45$$($shape$jscomp$974$$):$shape$jscomp$974$$},new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!0,$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1633$r4$$],null)],null))}),$change_one_radius$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],
function($update_fn$jscomp$46$$,$attr$jscomp$83$$){return $APP.$app$main$data$workspace$shapes$update_shapes$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$284$$,function($shape$jscomp$975$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$shape$attrs$editable_attrs$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$975$$)),$APP.$cljs$cst$1630$r1$$)?$update_fn$jscomp$46$$.$cljs$core$IFn$_invoke$arity$1$?
$update_fn$jscomp$46$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$975$$):$update_fn$jscomp$46$$($shape$jscomp$975$$):$shape$jscomp$975$$},new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$3521$reg_objects_QMARK_$$,!0,$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$attr$jscomp$83$$],null)],null))}),$toggle_radius_mode$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($radius_expanded$$)],
function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($radius_expanded_STAR_$$,$APP.$cljs$core$not$$)}),$on_all_radius_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_radius$$),$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],function($value$jscomp$872$$){return typeof $value$jscomp$872$$==="string"||typeof $value$jscomp$872$$==="number"?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function(){function $G__77000$$($shape$jscomp$976$$){return $APP.$app$common$types$shape$radius$set_radius_to_all_corners$$($shape$jscomp$976$$,
$value$jscomp$872$$)}return $change_radius$$.$cljs$core$IFn$_invoke$arity$1$?$change_radius$$.$cljs$core$IFn$_invoke$arity$1$($G__77000$$):$change_radius$$($G__77000$$)}()):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$872$$),$APP.$cljs$cst$2595$attrs$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1631$r2$$,null,$APP.$cljs$cst$1632$r3$$,null,$APP.$cljs$cst$1630$r1$$,null,$APP.$cljs$cst$1633$r4$$,null],null),null),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$284$$],null)))}),$on_single_radius_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($change_one_radius$$),$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],function($value$jscomp$873$$,$attr$jscomp$84$$){return typeof $value$jscomp$873$$==="string"||typeof $value$jscomp$873$$==="number"?
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$(function(){function $G__77001$$($p1__76983_SHARP_$$){return $APP.$app$common$types$shape$radius$set_radius_to_single_corner$$($p1__76983_SHARP_$$,$attr$jscomp$84$$,$value$jscomp$873$$)}return $change_one_radius$$.$cljs$core$IFn$_invoke$arity$2$?$change_one_radius$$.$cljs$core$IFn$_invoke$arity$2$($G__77001$$,$attr$jscomp$84$$):$change_one_radius$$($G__77001$$,$attr$jscomp$84$$)}()):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$toggle_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$first$$($value$jscomp$873$$),$APP.$cljs$cst$2595$attrs$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$attr$jscomp$84$$]),$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$284$$],null))))}),$expand_stream$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($cljs$cst$5453$expand_border_radius$$),$APP.$app$main$store$stream$$)});
$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($expand_stream$$,function(){return $APP.$cljs$core$reset_BANG_$$($radius_expanded_STAR_$$,!0)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$284$$)],function(){return $APP.$cljs$core$reset_BANG_$$($radius_expanded_STAR_$$,!1)});return(0,$APP.$rumext$v2$jsxs$$)("section",{"aria-label":"border-radius-section",className:""+($class$$jscomp$68$$??"")+" main_ui_workspace_sidebar_options_menus_border_radius__radius",
children:[$APP.$cljs$core$not$$($radius_expanded$$)?$token_numeric_inputs$jscomp$7$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_all_radius_change$$,placeholder:$all_values_equal_QMARK_$$&&$all_token_equal_QMARK_$$?"--":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),attr:$APP.$cljs$cst$1967$border_radius$$,appliedToken:$APP.$cljs$core$not$$($APP.$cljs$core$seq$$($applied_tokens$jscomp$17_props_76995$$))?
null:$all_values_equal_QMARK_$$&&$all_token_equal_QMARK_$$?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1630$r1$$):$APP.$cljs$cst$1600$multiple$$,value:$all_values_equal_QMARK_$$?$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)==null?0:$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$):null,onDetach:$on_detach_all$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius"),
nillable:!0,icon:"corner-radius"}):(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius"),className:"main_ui_workspace_sidebar_options_menus_border_radius__radius-1",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"corner-radius",size:"s",className:"main_ui_workspace_sidebar_options_menus_border_radius__icon"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{placeholder:$all_values_equal_QMARK_$$?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"),min:0,nillable:!0,onChange:$on_all_radius_change$$,value:$all_values_equal_QMARK_$$?$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)==
null?0:$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$):null})]}):$token_numeric_inputs$jscomp$7$$?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__radius-4",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_radius_r1_change$$,className:"main_ui_workspace_sidebar_options_menus_border_radius__dropdown-offset",
placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1630$r1$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$89$$,$APP.$cljs$cst$1630$r1$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",innerClass:"main_ui_workspace_sidebar_options_menus_border_radius__no-icon-input",
attr:$APP.$cljs$cst$1967$border_radius$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1630$r1$$),value:$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$),onDetach:$on_detach_r1$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-top-left")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_radius_r2_change$$,placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1631$r2$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$89$$,$APP.$cljs$cst$1631$r2$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):
"--",innerClass:"main_ui_workspace_sidebar_options_menus_border_radius__no-icon-input",attr:$APP.$cljs$cst$1967$border_radius$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1631$r2$$),value:$APP.$cljs$cst$1631$r2$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$),onDetach:$on_detach_r2$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-top-right"),nillable:!0}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,
{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_radius_r4_change$$,className:"main_ui_workspace_sidebar_options_menus_border_radius__dropdown-offset",placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1633$r4$$))||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$89$$,
$APP.$cljs$cst$1633$r4$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",innerClass:"main_ui_workspace_sidebar_options_menus_border_radius__no-icon-input",attr:$APP.$cljs$cst$1967$border_radius$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1633$r4$$),value:$APP.$cljs$cst$1633$r4$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$),onDetach:$on_detach_r4$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-bottom-left"),
nillable:!0}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$input_wrapper_tokens$numeric_input_wrapper_STAR_$$,{min:0,align:$APP.$cljs$cst$258$right$$,onChange:$on_radius_r3_change$$,className:"main_ui_workspace_sidebar_options_menus_border_radius__radius-wrapper",placeholder:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1632$r3$$))||
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$89$$,$APP.$cljs$cst$1632$r3$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple"):"--",innerClass:"main_ui_workspace_sidebar_options_menus_border_radius__no-icon-input",attr:$APP.$cljs$cst$1967$border_radius$$,appliedToken:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$17_props_76995$$,$APP.$cljs$cst$1632$r3$$),
value:$APP.$cljs$cst$1632$r3$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$),onDetach:$on_detach_r3$$,property:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-bottom-right"),nillable:!0})]}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__radius-4",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__small-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,
{placeholder:"--",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-top-left"),min:0,onChange:$on_radius_r1_change$$,value:$APP.$cljs$cst$1630$r1$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__small-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-top-right"),
min:0,onChange:$on_radius_r2_change$$,value:$APP.$cljs$cst$1631$r2$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__small-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-bottom-left"),min:0,onChange:$on_radius_r4_change$$,value:$APP.$cljs$cst$1633$r4$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)})}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_border_radius__small-input",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"--",title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius-bottom-right"),min:0,onChange:$on_radius_r3_change$$,value:$APP.$cljs$cst$1632$r3$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$89$$)})})]}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{className:$APP.$cljs$core$truth_$$($radius_expanded$$)?"main_ui_workspace_sidebar_options_menus_border_radius__selected":"",variant:"ghost",onClick:$toggle_radius_mode$$,"aria-label":$APP.$cljs$core$truth_$$($radius_expanded$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius.hide-all-corners"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.radius.show-single-corners"),icon:"corner-radius"})]})},function($old_props$jscomp$4$$,$new_props$jscomp$5$$){var $old_values$jscomp$1$$=
$old_props$jscomp$4$$.values,$new_values$jscomp$1$$=$new_props$jscomp$5$$.values,$old_applied_tokens$jscomp$2$$=$old_props$jscomp$4$$.appliedTokens,$new_applied_tokens$jscomp$2$$=$new_props$jscomp$5$$.appliedTokens;return $old_props$jscomp$4$$["class"]===$new_props$jscomp$5$$["class"]&&$old_props$jscomp$4$$.ids===$new_props$jscomp$5$$.ids&&$old_props$jscomp$4$$.shapes===$new_props$jscomp$5$$.shapes&&$old_applied_tokens$jscomp$2$$===$new_applied_tokens$jscomp$2$$&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$jscomp$1$$,
$APP.$cljs$cst$1630$r1$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$jscomp$1$$,$APP.$cljs$cst$1630$r1$$)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$jscomp$1$$,$APP.$cljs$cst$1631$r2$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$jscomp$1$$,$APP.$cljs$cst$1631$r2$$)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$jscomp$1$$,$APP.$cljs$cst$1632$r3$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$jscomp$1$$,
$APP.$cljs$cst$1632$r3$$)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($old_values$jscomp$1$$,$APP.$cljs$cst$1633$r4$$)===$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($new_values$jscomp$1$$,$APP.$cljs$cst$1633$r4$$)});var $app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,16,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1792$proportion_lock$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$3156$ox$$,$APP.$cljs$cst$3157$oy$$,$APP.$cljs$cst$1772$rotation$$,$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1589$selrect$$,
$APP.$cljs$cst$1588$points$$,$APP.$cljs$cst$1860$show_content$$,$APP.$cljs$cst$1859$hide_in_viewer$$],null),$app$main$ui$workspace$sidebar$options$menus$measures$generic_options$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1772$rotation$$,null,$APP.$cljs$cst$872$size$$,null,$APP.$cljs$cst$1660$position$$,null],null),null),$app$main$ui$workspace$sidebar$options$menus$measures$rect_options$$=new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1772$rotation$$,null,$APP.$cljs$cst$2779$radius$$,null,$APP.$cljs$cst$872$size$$,null,$APP.$cljs$cst$1660$position$$,null],null),null),$app$main$ui$workspace$sidebar$options$menus$measures$frame_options$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$cljs$cst$5454$show_in_viewer$$,null,$APP.$cljs$cst$1772$rotation$$,null,$cljs$cst$5455$clip_content$$,null,$APP.$cljs$cst$2779$radius$$,null,
$APP.$cljs$cst$872$size$$,null,$cljs$cst$5456$presets$$,null,$APP.$cljs$cst$1660$position$$,null],null),null),$app$main$ui$workspace$sidebar$options$menus$measures$xf_COLON_map_type$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$139$type$$),$app$main$ui$workspace$sidebar$options$menus$measures$xf_COLON_mapcat_type_to_options$$=$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$options$menus$measures$type__GT_options$$);var $app$main$ui$workspace$sidebar$options$menus$shadow$shadow_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1638$shadow$$],null),$app$main$ui$workspace$sidebar$options$menus$shadow$xf_COLON_add_index$$=$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$503$$,$shadow__$1$jscomp$18$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($shadow__$1$jscomp$18$$,$cljs$cst$5459$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_menus_DOT_shadow_SLASH_index$$,
$index$jscomp$503$$)});var $app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$=new $APP.$cljs$core$PersistentVector$$(null,11,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$,$APP.$cljs$cst$1850$stroke_style$$,$APP.$cljs$cst$1852$stroke_alignment$$,$APP.$cljs$cst$1639$stroke_width$$,$APP.$cljs$cst$1723$stroke_color$$,$APP.$cljs$cst$1726$stroke_color_ref_id$$,$APP.$cljs$cst$1625$stroke_color_ref_file$$,$APP.$cljs$cst$1724$stroke_opacity$$,$APP.$cljs$cst$1725$stroke_color_gradient$$,
$APP.$cljs$cst$1849$stroke_cap_start$$,$APP.$cljs$cst$1853$stroke_cap_end$$],null),$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$=function($p1__77086_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__77086_SHARP_$$,function($new_props_77088$$,$old_props_77089$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77088$$.ids,$old_props_77089$$.ids)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77088$$.values,$old_props_77089$$.values)&&
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77088$$.type,$old_props_77089$$.type)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77088$$["show-caps"],$old_props_77089$$["show-caps"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77088$$["applied-tokens"],$old_props_77089$$["applied-tokens"])})}(function($label$jscomp$40_map__77090_map__77090__$1_props_77087$$){function $on_blur$jscomp$25$$(){return $APP.$cljs$core$reset_BANG_$$($disable_drag$jscomp$3$$,
!1)}function $on_focus$jscomp$17$$(){return $APP.$cljs$core$reset_BANG_$$($disable_drag$jscomp$3$$,!0)}function $on_add_stroke$$(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$add_stroke$$($ids$jscomp$288$$,$APP.$app$common$types$stroke$default_stroke$$));return $APP.$cljs$core$seq$$($strokes$jscomp$10$$)==
null?$open_content$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$open_content$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$open_content$jscomp$1$$():null}function $on_stroke_cap_switch$jscomp$1$$($index$jscomp$518$$){var $stroke_cap_start$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$93$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$,$index$jscomp$518$$,$APP.$cljs$cst$1849$stroke_cap_start$$],
null)),$stroke_cap_end$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$93$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1620$strokes$$,$index$jscomp$518$$,$APP.$cljs$cst$1853$stroke_cap_end$$],null));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($stroke_cap_start$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($stroke_cap_end$$,$APP.$cljs$cst$1600$multiple$$)?
($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1849$stroke_cap_start$$,$stroke_cap_end$$,$APP.$cljs$cst$1853$stroke_cap_end$$,$stroke_cap_start$$],null),
$index$jscomp$518$$))):null}function $on_stroke_cap_end_change$jscomp$1$$($index$jscomp$517$$,$value$jscomp$890$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,
[$APP.$cljs$cst$1853$stroke_cap_end$$,$value$jscomp$890$$],null),$index$jscomp$517$$))}function $on_stroke_cap_start_change$jscomp$1$$($index$jscomp$516$$,$value$jscomp$889$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1849$stroke_cap_start$$,$value$jscomp$889$$],null),$index$jscomp$516$$))}function $close_caps_select$$($caps_state$jscomp$1$$){return function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($caps_state$jscomp$1$$,$APP.$cljs$core$assoc$$,$cljs$cst$5346$open_QMARK_$$,!1)}}function $open_caps_select$$($caps_state$$){return function($event$jscomp$518_top$jscomp$17$$){var $left$jscomp$31_window_size$jscomp$5$$=$APP.$app$util$dom$get_window_size$$(),
$rect$jscomp$46$$=$APP.$app$util$dom$get_bounding_rect$$($APP.$app$util$dom$get_current_target$$($event$jscomp$518_top$jscomp$17$$));$event$jscomp$518_top$jscomp$17$$=$APP.$cljs$cst$1547$bottom$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$46$$)+320<$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$31_window_size$jscomp$5$$)?$APP.$cljs$cst$1547$bottom$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$46$$)+5:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$31_window_size$jscomp$5$$)-
325;$left$jscomp$31_window_size$jscomp$5$$=$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$46$$)+200<$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$31_window_size$jscomp$5$$)?$APP.$cljs$cst$257$left$$.$cljs$core$IFn$_invoke$arity$1$($rect$jscomp$46$$):$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($left$jscomp$31_window_size$jscomp$5$$)-205;return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($caps_state$$,$APP.$cljs$core$assoc$$,
$cljs$cst$5346$open_QMARK_$$,!0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$257$left$$,$left$jscomp$31_window_size$jscomp$5$$,$APP.$cljs$cst$1546$top$$,$event$jscomp$518_top$jscomp$17$$]))}}function $on_stroke_width_change$jscomp$1$$($index$jscomp$515$$,$value$jscomp$888$$){if($APP.$cuerdas$core$empty_QMARK_$$($value$jscomp$888$$))return null;$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1639$stroke_width$$,$value$jscomp$888$$],null),$index$jscomp$515$$))}function $on_stroke_alignment_change$jscomp$1$$($index$jscomp$514$$,$value$jscomp$887$$){if($APP.$cuerdas$core$empty_QMARK_$$($value$jscomp$887$$))return null;$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1852$stroke_alignment$$,$value$jscomp$887$$],null),$index$jscomp$514$$))}$label$jscomp$40_map__77090_map__77090__$1_props_77087$$=$APP.$rumext$v2$util$wrap_props$$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$);$label$jscomp$40_map__77090_map__77090__$1_props_77087$$=
$APP.$cljs$core$__destructure_map$$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$);var $ids$jscomp$288$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$APP.$cljs$cst$1707$ids$$),$type$jscomp$634$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$APP.$cljs$cst$139$type$$),$values$jscomp$93$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,
$APP.$cljs$cst$299$values$$),$show_caps$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$cljs$cst$5467$show_caps$$),$disable_stroke_style$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$cljs$cst$5468$disable_stroke_style$$),$applied_tokens$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,
$APP.$cljs$cst$1857$applied_tokens$$),$shapes$jscomp$205$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$APP.$cljs$cst$1598$shapes$$),$objects$jscomp$766$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$40_map__77090_map__77090__$1_props_77087$$,$APP.$cljs$cst$1615$objects$$);$label$jscomp$40_map__77090_map__77090__$1_props_77087$$=function(){switch($type$jscomp$634$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$634$$.$fqn$:
null){case "multiple":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.selection-stroke");case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.group-stroke");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.stroke")}}();var $state_STAR_$jscomp$20$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0),$open_QMARK_$jscomp$23$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$20$$),$toggle_content$jscomp$11$$=
$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$($state_STAR_$jscomp$20$$,$APP.$cljs$core$not$$)}),$open_content$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($state_STAR_$jscomp$20$$,!0)}),$strokes$jscomp$10$$=$APP.$cljs$cst$1620$strokes$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$93$$),$has_strokes_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$strokes$jscomp$10$$)||$APP.$cljs$core$seq$$($strokes$jscomp$10$$)!=null,$on_color_change$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function($index$jscomp$510$$,$color$jscomp$171$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$change_stroke_color$cljs$0core$0IFn$0_invoke$0arity$04$$($ids$jscomp$288$$,
$color$jscomp$171$$,$index$jscomp$510$$))}),$on_remove$jscomp$6$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function($index$jscomp$511$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$remove_stroke$$($ids$jscomp$288$$,$index$jscomp$511$$))}),
$handle_remove_all$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$remove_all_strokes$$($ids$jscomp$288$$))}),$on_color_detach$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],
function($index$jscomp$512$$,$color$jscomp$172_color__$1$jscomp$34$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));$color$jscomp$172_color__$1$jscomp$34$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$172_color__$1$jscomp$34$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$]));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$change_stroke_color$cljs$0core$0IFn$0_invoke$0arity$04$$($ids$jscomp$288$$,
$color$jscomp$172_color__$1$jscomp$34$$,$index$jscomp$512$$))}),$handle_reorder$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function($from_pos$jscomp$19$$,$to_space_between_pos$jscomp$19$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$reorder_strokes$$($ids$jscomp$288$$,
$from_pos$jscomp$19$$,$to_space_between_pos$jscomp$19$$))}),$on_stroke_style_change$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function($index$jscomp$513$$,$value$jscomp$886$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$transforms$trigger_bounding_box_cloaking$$($ids$jscomp$288$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$colors$change_stroke_attrs$cljs$0core$0IFn$0_invoke$0arity$03$$($ids$jscomp$288$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1850$stroke_style$$,$value$jscomp$886$$],null),$index$jscomp$513$$))}),$disable_drag$jscomp$3$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$on_detach_token$jscomp$13$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$288$$)],function($token_name$jscomp$24$$,$attrs$jscomp$164$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$24$$,$APP.$cljs$cst$1978$attributes$$,$attrs$jscomp$164$$,$APP.$cljs$cst$4477$shape_ids$$,$ids$jscomp$288$$],null)))});return(0,$APP.$rumext$v2$jsxs$$)("section",{"aria-label":"stroke-section",className:"main_ui_workspace_sidebar_options_menus_stroke__stroke-section",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_stroke__stroke-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,
{collapsable:$has_strokes_QMARK_$$,collapsed:$APP.$cljs$core$not$$($open_QMARK_$jscomp$23$$),onCollapsed:$toggle_content$jscomp$11$$,title:$label$jscomp$40_map__77090_map__77090__$1_props_77087$$,className:$has_strokes_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_stroke__stroke-title-bar",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,$strokes$jscomp$10$$)?null:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.add-stroke"),onClick:$on_add_stroke$$,icon:"add","data-testid":"add-stroke"})})}),$APP.$cljs$core$truth_$$($open_QMARK_$jscomp$23$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_stroke__stroke-content "+($has_strokes_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_stroke__stroke-content-empty"),children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1600$multiple$$,
$strokes$jscomp$10$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_stroke__stroke-multiple",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_stroke__stroke-multiple-label",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("settings.multiple")}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke.remove-stroke"),
onClick:$handle_remove_all$$,icon:"remove"})]}):$APP.$cljs$core$seq$$($strokes$jscomp$10$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$hooks$sortable_container_STAR_$$,{children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$188$$,$p__77103_value$jscomp$891$$){var $index$jscomp$519$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77103_value$jscomp$891$$,0,null);$p__77103_value$jscomp$891$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77103_value$jscomp$891$$,
1,null);$out_arr__44057__auto__$jscomp$188$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$stroke_row$stroke_row_STAR_$$,{onStrokeStyleChange:$on_stroke_style_change$jscomp$1$$,onRemove:$on_remove$jscomp$6$$,index:$index$jscomp$519$$,appliedTokens:$applied_tokens$jscomp$20$$,closeCapsSelect:$close_caps_select$$,showCaps:$show_caps$jscomp$1$$,onStrokeWidthChange:$on_stroke_width_change$jscomp$1$$,onStrokeCapEndChange:$on_stroke_cap_end_change$jscomp$1$$,selectOnFocus:$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($disable_drag$jscomp$3$$)),
disableStrokeStyle:$disable_stroke_style$jscomp$1$$,onStrokeCapSwitch:$on_stroke_cap_switch$jscomp$1$$,objects:$objects$jscomp$766$$,onReorder:$handle_reorder$jscomp$1$$,disableDrag:$disable_drag$jscomp$3$$,ids:$ids$jscomp$288$$,onDetachToken:$on_detach_token$jscomp$13$$,stroke:$p__77103_value$jscomp$891$$,onStrokeAlignmentChange:$on_stroke_alignment_change$jscomp$1$$,onColorDetach:$on_color_detach$jscomp$1$$,onFocus:$on_focus$jscomp$17$$,shapes:$shapes$jscomp$205$$,openCapsSelect:$open_caps_select$$,
onColorChange:$on_color_change$jscomp$2$$,onBlur:$on_blur$jscomp$25$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.stroke-color"),onStrokeCapStartChange:$on_stroke_cap_start_change$jscomp$1$$},"stroke-"+($index$jscomp$519$$??"")));return $out_arr__44057__auto__$jscomp$188$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1620$strokes$$.$cljs$core$IFn$_invoke$arity$2$($values$jscomp$93$$,$APP.$cljs$core$PersistentVector$EMPTY$$)))}):
null}):null]})});var $app$main$ui$workspace$sidebar$options$menus$svg_attrs$attribute_value$$=function $app$main$ui$workspace$sidebar$options$menus$svg_attrs$attribute_value$$($map__77094_props_77093_value$jscomp$892$$){$map__77094_props_77093_value$jscomp$892$$=$APP.$rumext$v2$util$wrap_props$$($map__77094_props_77093_value$jscomp$892$$);var $handle_change$jscomp$9_map__77094__$1$$=$APP.$cljs$core$__destructure_map$$($map__77094_props_77093_value$jscomp$892$$),$attr$jscomp$89$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$9_map__77094__$1$$,
$APP.$cljs$cst$2549$attr$$);$map__77094_props_77093_value$jscomp$892$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$9_map__77094__$1$$,$APP.$cljs$cst$260$value$$);var $on_change$jscomp$72$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$9_map__77094__$1$$,$APP.$cljs$cst$4041$on_change$$),$on_delete$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_change$jscomp$9_map__77094__$1$$,$APP.$cljs$cst$5469$on_delete$$),$last_value$jscomp$1$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($map__77094_props_77093_value$jscomp$892$$),$handle_change_STAR_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$util$functions$debounce$cljs$0core$0IFn$0_invoke$0arity$02$$(function($val$jscomp$216$$){return $on_change$jscomp$72$$.$cljs$core$IFn$_invoke$arity$2$?$on_change$jscomp$72$$.$cljs$core$IFn$_invoke$arity$2$($attr$jscomp$89$$,$val$jscomp$216$$):$on_change$jscomp$72$$($attr$jscomp$89$$,$val$jscomp$216$$)},
300));$handle_change$jscomp$9_map__77094__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($attr$jscomp$89$$),$APP.$rumext$v2$adapt$$($on_change$jscomp$72$$),$APP.$rumext$v2$adapt$$($handle_change_STAR_$$)],function($G__77095_event$jscomp$519$$){$APP.$cljs$core$reset_BANG_$$($last_value$jscomp$1$$,(0,$APP.$app$util$dom$get_target_val$$)($G__77095_event$jscomp$519$$));$G__77095_event$jscomp$519$$=(0,$APP.$app$util$dom$get_target_val$$)($G__77095_event$jscomp$519$$);
return $handle_change_STAR_$$.$cljs$core$IFn$_invoke$arity$1$?$handle_change_STAR_$$.$cljs$core$IFn$_invoke$arity$1$($G__77095_event$jscomp$519$$):$handle_change_STAR_$$($G__77095_event$jscomp$519$$)});var $handle_delete$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($attr$jscomp$89$$),$APP.$rumext$v2$adapt$$($on_delete$jscomp$10$$)],function(){return $on_delete$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$?$on_delete$jscomp$10$$.$cljs$core$IFn$_invoke$arity$1$($attr$jscomp$89$$):
$on_delete$jscomp$10$$($attr$jscomp$89$$)}),$label$jscomp$41$$=$APP.$app$common$data$name$$($APP.$cljs$core$last$$($attr$jscomp$89$$));return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:typeof $map__77094_props_77093_value$jscomp$892$$==="string"?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-content",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-name",children:$label$jscomp$41$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-input",children:(0,$APP.$rumext$v2$jsx$$)("input",{value:$APP.$cljs$core$_deref$$($last_value$jscomp$1$$),onChange:$handle_change$jscomp$9_map__77094__$1$$})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-actions",children:(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_delete$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-action-btn",
children:$APP.$app$main$ui$icons$remove_icon$$})})]}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-nested-content",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-title",children:$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$data$name$$($APP.$cljs$core$last$$($attr$jscomp$89$$)))}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$189$$,
$p__77096_value__$1$jscomp$56$$){var $key$jscomp$414$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77096_value__$1$jscomp$56$$,0,null);$p__77096_value__$1$jscomp$56$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77096_value__$1$jscomp$56$$,1,null);$out_arr__44057__auto__$jscomp$189$$.push((0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_svg_attrs__attr-row",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$attribute_value$$,
{attr:$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($attr$jscomp$89$$,$key$jscomp$414$$),value:$p__77096_value__$1$jscomp$56$$,"on-change":$on_change$jscomp$72$$,"on-delete":$on_delete$jscomp$10$$},$key$jscomp$414$$)},$key$jscomp$414$$));return $out_arr__44057__auto__$jscomp$189$$},[],$map__77094_props_77093_value$jscomp$892$$)]})})};var $app$main$ui$workspace$sidebar$options$menus$color_selection$xf_COLON_map_shape_id$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2500$shape_id$$),$app$main$ui$workspace$sidebar$options$menus$color_selection$color_selection_menu_STAR_$$=function($p1__77116_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__77116_SHARP_$$,function($new_props_77132$$,$old_props_77133$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_77132$$.shapes,$old_props_77133$$.shapes)})}(function($colors$jscomp$26_map__77134_props_77131$$){var $shapes$jscomp$209$$=
$colors$jscomp$26_map__77134_props_77131$$.shapes,$file_id$jscomp$375$$=$colors$jscomp$26_map__77134_props_77131$$.fileId,$libraries$jscomp$143$$=$colors$jscomp$26_map__77134_props_77131$$.libraries;$colors$jscomp$26_map__77134_props_77131$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$375$$),$APP.$rumext$v2$adapt$$($shapes$jscomp$209$$),$APP.$rumext$v2$adapt$$($libraries$jscomp$143$$)],function(){return $app$main$ui$workspace$sidebar$options$menus$color_selection$prepare_colors$$($shapes$jscomp$209$$,
$file_id$jscomp$375$$,$libraries$jscomp$143$$)});var $map__77134__$1_open_QMARK_$jscomp$25$$=$APP.$cljs$core$__destructure_map$$($colors$jscomp$26_map__77134_props_77131$$),$groups$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77134__$1_open_QMARK_$jscomp$25$$,$APP.$cljs$cst$4342$groups$$),$library_colors$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77134__$1_open_QMARK_$jscomp$25$$,$cljs$cst$5472$library_colors$$);$colors$jscomp$26_map__77134_props_77131$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77134__$1_open_QMARK_$jscomp$25$$,$APP.$cljs$cst$2174$colors$$);var $token_colors$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77134__$1_open_QMARK_$jscomp$25$$,$cljs$cst$5471$token_colors$$),$open_STAR_$jscomp$10$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!0);$map__77134__$1_open_QMARK_$jscomp$25$$=$APP.$cljs$core$_deref$$($open_STAR_$jscomp$10$$);var $has_colors_QMARK_$$=$APP.$cljs$core$seq$$($colors$jscomp$26_map__77134_props_77131$$)!=
null||$APP.$cljs$core$seq$$($library_colors$jscomp$3$$)!=null,$toggle_content$jscomp$13$$=$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$($open_STAR_$jscomp$10$$,$APP.$cljs$core$not$$)}),$expand_lib_color$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$expand_color$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$expand_token_color$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$prev_colors_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$on_change$jscomp$73$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$15$$)],function($color_operations$jscomp$3_old_color$jscomp$4$$,$new_color$jscomp$3$$,$color_77166_from_picker_QMARK_$$){var $prev_colors$jscomp$1$$=$APP.$rumext$v2$ref_val$$($prev_colors_ref$$),$old_color__$1$jscomp$1_vec__77135$$=$app$main$ui$workspace$sidebar$options$menus$color_selection$retrieve_color_operations$$($groups$jscomp$15$$,
$color_operations$jscomp$3_old_color$jscomp$4$$,$prev_colors$jscomp$1$$);$color_operations$jscomp$3_old_color$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($old_color__$1$jscomp$1_vec__77135$$,0,null);$old_color__$1$jscomp$1_vec__77135$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($old_color__$1$jscomp$1_vec__77135$$,1,null);$APP.$cljs$core$truth_$$($color_77166_from_picker_QMARK_$$)&&($color_77166_from_picker_QMARK_$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($new_color$jscomp$3$$,
$APP.$cljs$cst$723$name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$294$path$$]))),$APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($prev_colors$jscomp$1$$,$color_77166_from_picker_QMARK_$$)));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$change_color_in_selected$$($color_operations$jscomp$3_old_color$jscomp$4$$,$new_color$jscomp$3$$,$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($old_color__$1$jscomp$1_vec__77135$$,
$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4069$has_token_applied$$]))))}),$on_open$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$PersistentVector$EMPTY$$)}),$on_close$jscomp$32$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$PersistentVector$EMPTY$$)}),
$on_detach$jscomp$5$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$15$$)],function($color$jscomp$173$$){var $color_operations$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($groups$jscomp$15$$,$color$jscomp$173$$),$color_SINGLEQUOTE_$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$173$$,$APP.$cljs$cst$1719$ref_id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1720$ref_file$$]));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$colors$change_color_in_selected$$($color_operations$jscomp$4$$,$color_SINGLEQUOTE_$$,$color$jscomp$173$$))}),$on_detach_token$jscomp$14$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($token_colors$jscomp$1$$),$APP.$rumext$v2$adapt$$($groups$jscomp$15$$)],function($token_name$jscomp$25$$){var $prev_colors$jscomp$2$$=$APP.$rumext$v2$ref_val$$($prev_colors_ref$$),
$token_color$jscomp$2$$=$APP.$cljs$core$some$$(function($p1__77117_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4070$token_name$$.$cljs$core$IFn$_invoke$arity$1$($p1__77117_SHARP_$$),$token_name$jscomp$25$$)?$p1__77117_SHARP_$$:null},$token_colors$jscomp$1$$),$G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$=$app$main$ui$workspace$sidebar$options$menus$color_selection$retrieve_color_operations$$($groups$jscomp$15$$,$token_color$jscomp$2$$,
$prev_colors$jscomp$2$$),$G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$,1,null);$G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$=$APP.$cljs$core$seq$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$);
for(var $attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$=null,$G__77182_color_77185_count__77143$$=0,$i__77144$$=0;;)if($i__77144$$<$G__77182_color_77185_count__77143$$){$G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$=$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__77144$$);var $attr_77168$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4042$prop$$.$cljs$core$IFn$_invoke$arity$1$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$),
$APP.$cljs$cst$2862$stroke$$)?new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null):new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$color_77169$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($token_color$jscomp$2$$,$APP.$cljs$cst$4070$token_name$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4069$has_token_applied$$])));$APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($prev_colors$jscomp$2$$,$color_77169$$));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,$token_name$jscomp$25$$,$APP.$cljs$cst$1978$attributes$$,
$attr_77168$$,$APP.$cljs$cst$4477$shape_ids$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2500$shape_id$$.$cljs$core$IFn$_invoke$arity$1$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$)],null)],null)));$i__77144$$+=1}else if($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$=$APP.$cljs$core$seq$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$))$G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$=
$G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$)?($attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$=$APP.$cljs$core$_chunked_first$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$),$G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$=$APP.$cljs$core$_chunked_rest$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$),$G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$=
$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$,$G__77182_color_77185_count__77143$$=$APP.$cljs$core$count$$($attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$),$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$=$G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$):($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$=$APP.$cljs$core$first$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$),$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4042$prop$$.$cljs$core$IFn$_invoke$arity$1$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$),
$APP.$cljs$cst$2862$stroke$$)?new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null):new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),$G__77182_color_77185_count__77143$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($token_color$jscomp$2$$,
$APP.$cljs$cst$4070$token_name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4069$has_token_applied$$]))),$APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($prev_colors$jscomp$2$$,$G__77182_color_77185_count__77143$$)),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$tokens$application$unapply_token$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$4070$token_name$$,
$token_name$jscomp$25$$,$APP.$cljs$cst$1978$attributes$$,$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$,$APP.$cljs$cst$4477$shape_ids$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2500$shape_id$$.$cljs$core$IFn$_invoke$arity$1$($G__77181_op$jscomp$21_temp__5825__auto__$jscomp$362_vec__77138$$)],null)],null))),$G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$=$APP.$cljs$core$next$$($G__77180_color_operations$jscomp$5_seq__77141_seq__77141__$1$$),
$attr_77184_c__5548__auto__$jscomp$44_chunk__77142$$=null,$G__77182_color_77185_count__77143$$=0),$i__77144$$=0;else return null}),$select_only$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$15$$)],function($color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$){$color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($groups$jscomp$15$$,$color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$);
$color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$data$ordered_set$$.$cljs$core$IFn$_invoke$arity$0$(),$app$main$ui$workspace$sidebar$options$menus$color_selection$xf_COLON_map_shape_id$$,$color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$selection$select_shapes$$($color$jscomp$174_color_operations$jscomp$6_ids$jscomp$292$$))}),
$on_token_change$jscomp$7$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($groups$jscomp$15$$)],function($_$jscomp$2893_prev_colors$jscomp$3$$,$token$jscomp$132$$,$old_color$jscomp$5_vec__77145$$){$_$jscomp$2893_prev_colors$jscomp$3$$=$APP.$rumext$v2$ref_val$$($prev_colors_ref$$);var $color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$132$$);$color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$=
$APP.$app$main$data$workspace$tokens$application$value__GT_color$$($color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$);$color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$,$APP.$cljs$cst$723$name$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$294$path$$])));
$old_color$jscomp$5_vec__77145$$=$app$main$ui$workspace$sidebar$options$menus$color_selection$retrieve_color_operations$$($groups$jscomp$15$$,$old_color$jscomp$5_vec__77145$$,$_$jscomp$2893_prev_colors$jscomp$3$$);var $color_operations$jscomp$7$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($old_color$jscomp$5_vec__77145$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($old_color$jscomp$5_vec__77145$$,1,null);$APP.$rumext$v2$set_ref_val_BANG_$$($prev_colors_ref$$,$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($_$jscomp$2893_prev_colors$jscomp$3$$,
$color$jscomp$175_new_color$jscomp$4_resolved_value$jscomp$2$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$application$apply_token_on_selected$$($color_operations$jscomp$7$$,$token$jscomp$132$$))});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_color_selection__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_color_selection__element-title",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:$has_colors_QMARK_$$,collapsed:$APP.$cljs$core$not$$($map__77134__$1_open_QMARK_$jscomp$25$$),onCollapsed:$toggle_content$jscomp$13$$,title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.selection-color"),className:$has_colors_QMARK_$$?"":"main_ui_workspace_sidebar_options_menus_color_selection__title-spacing-selected-colors"})}),$APP.$cljs$core$truth_$$($map__77134__$1_open_QMARK_$jscomp$25$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_color_selection__element-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_color_selection__selected-color-group",children:[function(){var $library_colors_extract$$=$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($expand_lib_color$$))?$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(3,$library_colors$jscomp$3$$):$library_colors$jscomp$3$$;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$191$$,
$p__77149$$){var $index$jscomp$520$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77149$$,0,null),$color$jscomp$176$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77149$$,1,null);$out_arr__44057__auto__$jscomp$191$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{origin:$cljs$cst$5321$color_selection$$,onClose:$on_close$jscomp$32$$,index:$index$jscomp$520$$,onChange:function($p1__77119_SHARP_$$,$p2__77120_SHARP_$$){return $on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$?
$on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$176$$,$p1__77119_SHARP_$$,$p2__77120_SHARP_$$):$on_change$jscomp$73$$($color$jscomp$176$$,$p1__77119_SHARP_$$,$p2__77120_SHARP_$$)},onTokenChange:function($p1__77121_SHARP_$$,$p2__77122_SHARP_$$){return $on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$?$on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$($p1__77121_SHARP_$$,$p2__77122_SHARP_$$,$color$jscomp$176$$):$on_token_change$jscomp$7$$($p1__77121_SHARP_$$,
$p2__77122_SHARP_$$,$color$jscomp$176$$)},onDetach:function($p1__77118_SHARP_$$){return $on_detach$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$?$on_detach$jscomp$5$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$176$$,$p1__77118_SHARP_$$):$on_detach$jscomp$5$$($color$jscomp$176$$,$p1__77118_SHARP_$$)},selectOnly:$select_only$jscomp$1$$,color:$color$jscomp$176$$,onOpen:$on_open$jscomp$5$$},$index$jscomp$520$$));return $out_arr__44057__auto__$jscomp$191$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($library_colors_extract$$))}(),
$APP.$cljs$core$_deref$$($expand_lib_color$$)===!1&&3<$APP.$cljs$core$count$$($library_colors$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$cljs$core$reset_BANG_$$($expand_lib_color$$,!0)},className:"main_ui_workspace_sidebar_options_menus_color_selection__more-colors-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.more-lib-colors")}):null]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_color_selection__selected-color-group",
children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$192$$,$p__77153$$){var $index$jscomp$521$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77153$$,0,null),$color$jscomp$177$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77153$$,1,null);$out_arr__44057__auto__$jscomp$192$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{onTokenChange:function($p1__77125_SHARP_$$,
$p2__77126_SHARP_$$){return $on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$?$on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$($p1__77125_SHARP_$$,$p2__77126_SHARP_$$,$color$jscomp$177$$):$on_token_change$jscomp$7$$($p1__77125_SHARP_$$,$p2__77126_SHARP_$$,$color$jscomp$177$$)},selectOnly:$select_only$jscomp$1$$,color:$color$jscomp$177$$,index:$index$jscomp$521$$,onClose:$on_close$jscomp$32$$,origin:$cljs$cst$5321$color_selection$$,onChange:function($p1__77123_SHARP_$$,$p2__77124_SHARP_$$){return $on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$?
$on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$($color$jscomp$177$$,$p1__77123_SHARP_$$,$p2__77124_SHARP_$$):$on_change$jscomp$73$$($color$jscomp$177$$,$p1__77123_SHARP_$$,$p2__77124_SHARP_$$)},onOpen:$on_open$jscomp$5$$},$index$jscomp$521$$));return $out_arr__44057__auto__$jscomp$192$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($expand_color$$))?$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(3,$colors$jscomp$26_map__77134_props_77131$$):
$colors$jscomp$26_map__77134_props_77131$$)),$APP.$cljs$core$_deref$$($expand_color$$)===!1&&3<$APP.$cljs$core$count$$($colors$jscomp$26_map__77134_props_77131$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$cljs$core$reset_BANG_$$($expand_color$$,!0)},className:"main_ui_workspace_sidebar_options_menus_color_selection__more-colors-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.more-colors")}):null]}),(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_color_selection__selected-color-group",children:[function(){var $token_color_extract$$=$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($expand_token_color$$))?$APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(3,$token_colors$jscomp$1$$):$token_colors$jscomp$1$$;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$193$$,$p__77159$$){var $index$jscomp$522$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77159$$,
0,null),$token_color$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__77159$$,1,null);$out_arr__44057__auto__$jscomp$193$$.push(function(){var $color$jscomp$178$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($token_color$jscomp$3$$),$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1718$opacity$$.$cljs$core$IFn$_invoke$arity$1$($token_color$jscomp$3$$)],null);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,
{origin:$cljs$cst$5321$color_selection$$,onClose:$on_close$jscomp$32$$,index:$index$jscomp$522$$,onChange:function($p1__77127_SHARP_$$,$p2__77128_SHARP_$$){return $on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$?$on_change$jscomp$73$$.$cljs$core$IFn$_invoke$arity$3$($token_color$jscomp$3$$,$p1__77127_SHARP_$$,$p2__77128_SHARP_$$):$on_change$jscomp$73$$($token_color$jscomp$3$$,$p1__77127_SHARP_$$,$p2__77128_SHARP_$$)},onTokenChange:function($p1__77129_SHARP_$$,$p2__77130_SHARP_$$){return $on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$?
$on_token_change$jscomp$7$$.$cljs$core$IFn$_invoke$arity$3$($p1__77129_SHARP_$$,$p2__77130_SHARP_$$,$token_color$jscomp$3$$):$on_token_change$jscomp$7$$($p1__77129_SHARP_$$,$p2__77130_SHARP_$$,$token_color$jscomp$3$$)},onDetachToken:$on_detach_token$jscomp$14$$,appliedToken:$APP.$cljs$cst$4070$token_name$$.$cljs$core$IFn$_invoke$arity$1$($token_color$jscomp$3$$),selectOnly:$select_only$jscomp$1$$,color:$color$jscomp$178$$,onOpen:$on_open$jscomp$5$$},$index$jscomp$522$$)}());return $out_arr__44057__auto__$jscomp$193$$},
[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($token_color_extract$$))}(),$APP.$cljs$core$_deref$$($expand_token_color$$)===!1&&3<$APP.$cljs$core$count$$($token_colors$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function(){return $APP.$cljs$core$reset_BANG_$$($expand_token_color$$,!0)},className:"main_ui_workspace_sidebar_options_menus_color_selection__more-colors-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.more-token-colors")}):
null]})]}):null]})});var $app$main$data$workspace$grid$add_frame_grid_77222$$,$app$main$data$workspace$grid$remove_frame_grid_77232$$,$app$main$data$workspace$grid$set_frame_grid_77238$$,$app$main$data$workspace$grid$set_default_grid_77241$$;var $app$main$ui$workspace$sidebar$options$menus$frame_grid$lens_COLON_default_grids$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2040$default_grids$$,$APP.$app$main$refs$workspace_page$$),$app$main$ui$workspace$sidebar$options$menus$frame_grid$grid_options$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$){$map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$=$APP.$rumext$v2$util$wrap_props$$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$);
$map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$=$APP.$cljs$core$__destructure_map$$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$);var $shape_id$jscomp$156$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,$APP.$cljs$cst$2500$shape_id$$),$index$jscomp$527$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,$APP.$cljs$cst$1779$index$$),$grid$jscomp$11$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,$APP.$cljs$cst$1643$grid$$),$frame_width$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,$cljs$cst$5477$frame_width$$),$frame_height$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,$cljs$cst$5478$frame_height$$),$default_grid_params$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,
$cljs$cst$5479$default_grid_params$$),$on_change$jscomp$74$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$156$$),$APP.$rumext$v2$adapt$$($index$jscomp$527$$)],function($p1__77248_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid$set_frame_grid$$($shape_id$jscomp$156$$,$index$jscomp$527$$,$p1__77248_SHARP_$$))});$map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$156$$),
$APP.$rumext$v2$adapt$$($index$jscomp$527$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid$remove_frame_grid$$($shape_id$jscomp$156$$,$index$jscomp$527$$))});var $on_save_default$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__77249_SHARP_$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid$set_default_grid$$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($p1__77249_SHARP_$$),
$APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($p1__77249_SHARP_$$)))}),$size_options$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$sidebar$options$menus$frame_grid$get_size_options$$),$state_STAR_$jscomp$22$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$cljs$cst$5480$show_advanced_options$$,!1,$cljs$cst$5444$show_more_options$$,!1],null)),$show_more_options_QMARK__state$jscomp$1087$$=
$APP.$cljs$core$_deref$$($state_STAR_$jscomp$22$$),$open_QMARK_$jscomp$26$$=$cljs$cst$5480$show_advanced_options$$.$cljs$core$IFn$_invoke$arity$1$($show_more_options_QMARK__state$jscomp$1087$$);$show_more_options_QMARK__state$jscomp$1087$$=$cljs$cst$5444$show_more_options$$.$cljs$core$IFn$_invoke$arity$1$($show_more_options_QMARK__state$jscomp$1087$$);var $is_hidden_QMARK_$$=$APP.$cljs$core$not$$($APP.$cljs$cst$1917$display$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$)),$map__77253__$1_toggle_advanced_options$$=
$APP.$cljs$core$__destructure_map$$($grid$jscomp$11$$),$type$jscomp$642$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77253__$1_toggle_advanced_options$$,$APP.$cljs$cst$139$type$$),$display$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77253__$1_toggle_advanced_options$$,$APP.$cljs$cst$1917$display$$),$params$jscomp$418$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77253__$1_toggle_advanced_options$$,$APP.$cljs$cst$1419$params$$);$map__77253__$1_toggle_advanced_options$$=
$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$($state_STAR_$jscomp$22$$,$APP.$cljs$core$update$$,$cljs$cst$5480$show_advanced_options$$,$APP.$cljs$core$not$$)});var $toggle_more_options$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$($state_STAR_$jscomp$22$$,$APP.$cljs$core$update$$,$cljs$cst$5444$show_more_options$$,
$APP.$cljs$core$not$$)}),$close_more_options$$=$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$($state_STAR_$jscomp$22$$,$APP.$cljs$core$assoc$$,$cljs$cst$5444$show_more_options$$,!1)}),$handle_toggle_visibility$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],function(){var $G__77254$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($grid$jscomp$11$$,
$APP.$cljs$cst$1917$display$$,function($p1__77250_SHARP_$$){return $p1__77250_SHARP_$$==null?!1:$APP.$cljs$core$not$$($p1__77250_SHARP_$$)});return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77254$$):$on_change$jscomp$74$$($G__77254$$)}),$handle_change_type$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],function($G__77255_grid_type$jscomp$2$$){var $defaults$jscomp$6$$=
$G__77255_grid_type$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$?$G__77255_grid_type$jscomp$2$$.$cljs$core$IFn$_invoke$arity$1$($default_grid_params$$):$G__77255_grid_type$jscomp$2$$($default_grid_params$$);$G__77255_grid_type$jscomp$2$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($grid$jscomp$11$$,$APP.$cljs$cst$139$type$$,$G__77255_grid_type$jscomp$2$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1419$params$$,$defaults$jscomp$6$$]));return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?
$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77255_grid_type$jscomp$2$$):$on_change$jscomp$74$$($G__77255_grid_type$jscomp$2$$)}),$handle_change$jscomp$11$$=function(){function $G__77271$$($var_args$jscomp$1421$$){var $G__77272__i_keys_path$jscomp$1$$=null;if(arguments.length>0){$G__77272__i_keys_path$jscomp$1$$=0;for(var $G__77272__a$$=Array(arguments.length-0);$G__77272__i_keys_path$jscomp$1$$<$G__77272__a$$.length;)$G__77272__a$$[$G__77272__i_keys_path$jscomp$1$$]=arguments[$G__77272__i_keys_path$jscomp$1$$+
0],++$G__77272__i_keys_path$jscomp$1$$;$G__77272__i_keys_path$jscomp$1$$=new $APP.$cljs$core$IndexedSeq$$($G__77272__a$$,0,null)}return $G__77271__delegate$$.call(this,$G__77272__i_keys_path$jscomp$1$$)}function $G__77271__delegate$$($keys_path$$){return function($G__77256_value$jscomp$895$$){$G__77256_value$jscomp$895$$=$APP.$cljs$core$assoc_in$$($grid$jscomp$11$$,$keys_path$$,$G__77256_value$jscomp$895$$);return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77256_value$jscomp$895$$):
$on_change$jscomp$74$$($G__77256_value$jscomp$895$$)}}$G__77271$$.$cljs$lang$maxFixedArity$=0;$G__77271$$.$cljs$lang$applyTo$=function($arglist__77273_keys_path$jscomp$2$$){$arglist__77273_keys_path$jscomp$2$$=$APP.$cljs$core$seq$$($arglist__77273_keys_path$jscomp$2$$);return $G__77271__delegate$$($arglist__77273_keys_path$jscomp$2$$)};$G__77271$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__77271__delegate$$;return $G__77271$$}(),$handle_change_size$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],
function($G__77258_size$jscomp$154$$){var $map__77257_margin$jscomp$5$$=$APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$),$item_length$jscomp$2_map__77257__$1$$=$APP.$cljs$core$__destructure_map$$($map__77257_margin$jscomp$5$$);$map__77257_margin$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item_length$jscomp$2_map__77257__$1$$,$APP.$cljs$cst$1914$margin$$);var $gutter$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item_length$jscomp$2_map__77257__$1$$,
$APP.$cljs$cst$1916$gutter$$);$item_length$jscomp$2_map__77257__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($item_length$jscomp$2_map__77257__$1$$,$APP.$cljs$cst$1915$item_length$$);var $frame_length$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$))?$frame_width$$:$frame_height$$;$G__77258_size$jscomp$154$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($grid$jscomp$11$$,
$APP.$cljs$cst$1419$params$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$872$size$$,$G__77258_size$jscomp$154$$,$APP.$cljs$cst$1915$item_length$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__77258_size$jscomp$154$$==null?($frame_length$jscomp$2$$-($map__77257_margin$jscomp$5$$+($map__77257_margin$jscomp$5$$-$gutter$jscomp$4$$))-$gutter$jscomp$4$$*12)/12:$item_length$jscomp$2_map__77257__$1$$]));return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77258_size$jscomp$154$$):
$on_change$jscomp$74$$($G__77258_size$jscomp$154$$)}),$handle_change_item_length$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],function($G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$){$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$=$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$===0?null:$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$;var $size$jscomp$155$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($grid$jscomp$11$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$872$size$$],null));$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$variadic$($grid$jscomp$11$$,$APP.$cljs$cst$1419$params$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$872$size$$,$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$==null&&$size$jscomp$155$$==null?12:$size$jscomp$155$$,$APP.$cljs$cst$1915$item_length$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$]));return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$):$on_change$jscomp$74$$($G__77259_item_length$jscomp$3_item_length__$1$jscomp$3$$)}),$handle_change_color$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],
function($G__77260_color$jscomp$179_color__$1$jscomp$35$$){$G__77260_color$jscomp$179_color__$1$jscomp$35$$=$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$variadic$($G__77260_color$jscomp$179_color__$1$jscomp$35$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1628$file_id$$]));$G__77260_color$jscomp$179_color__$1$jscomp$35$$=$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($grid$jscomp$11$$,$APP.$cljs$cst$1419$params$$,$APP.$cljs$core$assoc$$,
$APP.$cljs$cst$1284$color$$,$G__77260_color$jscomp$179_color__$1$jscomp$35$$);return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77260_color$jscomp$179_color__$1$jscomp$35$$):$on_change$jscomp$74$$($G__77260_color$jscomp$179_color__$1$jscomp$35$$)}),$handle_detach_color$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],function(){var $G__77261$$=$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($grid$jscomp$11$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1284$color$$],null),$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$1628$file_id$$);return $on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77261$$):$on_change$jscomp$74$$($G__77261$$)}),$handle_use_default$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],
function(){var $params__$1$jscomp$57$$=function(){var $fexpr__77262$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$);return $fexpr__77262$$.$cljs$core$IFn$_invoke$arity$1$?$fexpr__77262$$.$cljs$core$IFn$_invoke$arity$1$($default_grid_params$$):$fexpr__77262$$($default_grid_params$$)}(),$G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$=function(){var $or__5025__auto__$jscomp$1124$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($params__$1$jscomp$57$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$260$value$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1124$$)?$or__5025__auto__$jscomp$1124$$:$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($params__$1$jscomp$57$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1284$color$$],null))}();$G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$=
$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($APP.$cljs$core$assoc_in$$($params__$1$jscomp$57$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1284$color$$],null),$G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$),$APP.$cljs$cst$1284$color$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$260$value$$);$APP.$cljs$core$truth_$$($on_change$jscomp$74$$)&&($G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$=
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($grid$jscomp$11$$,$APP.$cljs$cst$1419$params$$,$G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$),$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$74$$.$cljs$core$IFn$_invoke$arity$1$($G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$):$on_change$jscomp$74$$($G__77263_77274_color$jscomp$180_params__$2$jscomp$7$$));return $close_more_options$$.$cljs$core$IFn$_invoke$arity$0$?$close_more_options$$.$cljs$core$IFn$_invoke$arity$0$():
$close_more_options$$()}),$handle_set_as_default$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($grid$jscomp$11$$)],function(){$on_save_default$$.$cljs$core$IFn$_invoke$arity$1$?$on_save_default$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$):$on_save_default$$($grid$jscomp$11$$);return $close_more_options$$.$cljs$core$IFn$_invoke$arity$0$?$close_more_options$$.$cljs$core$IFn$_invoke$arity$0$():$close_more_options$$()}),$is_default$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1419$params$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$),
function(){var $G__77264$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$);return $default_grid_params$$.$cljs$core$IFn$_invoke$arity$1$?$default_grid_params$$.$cljs$core$IFn$_invoke$arity$1$($G__77264$$):$default_grid_params$$($G__77264$$)}());return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__grid-option",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__grid-title",
children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__option-row "+($is_hidden_QMARK_$$?"main_ui_workspace_sidebar_options_menus_frame_grid__hidden":""),children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$map__77253__$1_toggle_advanced_options$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__show-options "+($APP.$cljs$core$truth_$$($open_QMARK_$jscomp$26$$)?"main_ui_workspace_sidebar_options_menus_frame_grid__selected":""),children:$APP.$app$main$ui$icons$menu$$}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__type-select-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_workspace_sidebar_options_menus_frame_grid__grid-type-select","default-value":$type$jscomp$642$$,options:new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1918$square$$,
$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.square")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$216$column$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.column")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1640$row$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.row")],
null)],null),"on-change":$handle_change_type$jscomp$1$$})}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$642$$,$APP.$cljs$cst$1918$square$$)?(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.size"),className:"main_ui_workspace_sidebar_options_menus_frame_grid__grid-size",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{min:.01,value:function(){var $or__5025__auto__$jscomp$1125$$=
$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1125$$)?$or__5025__auto__$jscomp$1125$$:""}(),noValidate:!0,className:"main_ui_workspace_sidebar_options_menus_frame_grid__numeric-input",onChange:$handle_change$jscomp$11$$($APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$872$size$$)})}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__editable-select-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$editable_select$editable_select$$,
{value:$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$),type:"number","class":"main_ui_workspace_sidebar_options_menus_frame_grid__column-select","input-class":"main_ui_workspace_sidebar_options_menus_frame_grid__numeric-input",min:1,options:$size_options$jscomp$3$$,placeholder:"Auto","on-change":$handle_change_size$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__actions",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,
{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.guides.toggle-guide"),onClick:$handle_toggle_visibility$jscomp$1$$,icon:$APP.$cljs$core$truth_$$($display$jscomp$2$$)?"shown":"hide"}),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.guides.remove-guide"),onClick:$map__77252_map__77252__$1_on_remove$jscomp$7_props_77251$$,
icon:"remove"})]})]}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1917$display$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$11$$))?(0,$APP.$rumext$v2$jsxs$$)($app$main$ui$workspace$sidebar$options$common$advanced_options_STAR_$$,{className:"main_ui_workspace_sidebar_options_menus_frame_grid__grid-advanced-options",isVisible:$open_QMARK_$jscomp$26$$,onClose:$map__77253__$1_toggle_advanced_options$$,children:[$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1918$square$$,$type$jscomp$642$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__square-row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__advanced-row",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{color:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.color"),
disableGradient:!0,disableImage:!0,origin:$APP.$cljs$cst$2042$guides$$,onChange:$handle_change_color$jscomp$2$$,onDetach:$handle_detach_color$$}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle_more_options$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__show-more-options "+($APP.$cljs$core$truth_$$($show_more_options_QMARK__state$jscomp$1087$$)?"main_ui_workspace_sidebar_options_menus_frame_grid__selected":""),children:$APP.$app$main$ui$icons$menu$$})]}),$APP.$cljs$core$truth_$$($show_more_options_QMARK__state$jscomp$1087$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__second-row",children:[(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$is_default$jscomp$1$$,onClick:$handle_use_default$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__btn-options "+($is_default$jscomp$1$$?"main_ui_workspace_sidebar_options_menus_frame_grid__disabled":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.use-default")})}),
(0,$APP.$rumext$v2$jsx$$)("button",{disabled:$is_default$jscomp$1$$,onClick:$handle_set_as_default$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__btn-options "+($is_default$jscomp$1$$?"main_ui_workspace_sidebar_options_menus_frame_grid__disabled":""),children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.set-default")})})]}):null]}):null,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,
$type$jscomp$642$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,$type$jscomp$642$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__column-row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__advanced-row",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__orientation-select-wrapper",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,
{"data-mousetrap-dont-stop":!0,"default-value":$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$),"class":"main_ui_workspace_sidebar_options_menus_frame_grid__orientation-select",options:new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1653$stretch$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.stretch")],
null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$2245$label$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$642$$,$APP.$cljs$cst$1640$row$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.top"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.left")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,
$APP.$cljs$cst$1651$center$$,$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.center")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$258$right$$,$APP.$cljs$cst$2245$label$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$642$$,$APP.$cljs$cst$1640$row$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.bottom"):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.type.right")],
null)],null),"on-change":$handle_change$jscomp$11$$($APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$139$type$$)})}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__color-wrapper",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$rows$color_row$color_row_STAR_$$,{color:$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$),title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.color"),
disableGradient:!0,disableImage:!0,origin:$APP.$cljs$cst$2042$guides$$,onChange:$handle_change_color$jscomp$2$$,onDetach:$handle_detach_color$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__advanced-row",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,$type$jscomp$642$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.height"):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.width"),className:"main_ui_workspace_sidebar_options_menus_frame_grid__height",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__icon-text",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,$type$jscomp$642$$)?"H":"W"}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"Auto",
onChange:$handle_change_item_length$$,nillable:!0,className:"main_ui_workspace_sidebar_options_menus_frame_grid__numeric-input",value:function(){var $or__5025__auto__$jscomp$1126$$=$APP.$cljs$cst$1915$item_length$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1126$$)?$or__5025__auto__$jscomp$1126$$:""}()})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.gutter"),
className:"main_ui_workspace_sidebar_options_menus_frame_grid__gutter",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__icon "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$642$$,$APP.$cljs$cst$1640$row$$)?"main_ui_workspace_sidebar_options_menus_frame_grid__rotated":""),children:$APP.$app$main$ui$icons$gap_horizontal$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"0",
onChange:$handle_change$jscomp$11$$($APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1916$gutter$$),nillable:!0,className:"main_ui_workspace_sidebar_options_menus_frame_grid__numeric-input",value:function(){var $or__5025__auto__$jscomp$1127$$=$APP.$cljs$cst$1916$gutter$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1127$$)?$or__5025__auto__$jscomp$1127$$:0}()})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.margin"),
className:"main_ui_workspace_sidebar_options_menus_frame_grid__margin",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__icon "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$642$$,$APP.$cljs$cst$216$column$$)?"main_ui_workspace_sidebar_options_menus_frame_grid__rotated":""),children:$APP.$app$main$ui$icons$grid_margin$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$components$numeric_input$numeric_input_STAR_$$,{placeholder:"0",
onChange:$handle_change$jscomp$11$$($APP.$cljs$cst$1419$params$$,$APP.$cljs$cst$1914$margin$$),nillable:!0,className:"main_ui_workspace_sidebar_options_menus_frame_grid__numeric-input",value:function(){var $or__5025__auto__$jscomp$1128$$=$APP.$cljs$cst$1914$margin$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$418$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1128$$)?$or__5025__auto__$jscomp$1128$$:0}()})]}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$toggle_more_options$jscomp$1$$,
disabled:$is_default$jscomp$1$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__show-more-options "+($APP.$cljs$core$truth_$$($show_more_options_QMARK__state$jscomp$1087$$)?"main_ui_workspace_sidebar_options_menus_frame_grid__selected":""),children:$APP.$app$main$ui$icons$menu$$}),$APP.$cljs$core$truth_$$($show_more_options_QMARK__state$jscomp$1087$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_frame_grid__more-options",children:[(0,$APP.$rumext$v2$jsx$$)("button",
{onClick:$handle_use_default$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__option-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.use-default")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_set_as_default$$,className:"main_ui_workspace_sidebar_options_menus_frame_grid__option-btn",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.grid.params.set-default")})]}):null]})]}):null]}):null]})});var $app$main$ui$workspace$sidebar$options$menus$text$text_menu$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($label$jscomp$42_map__77295_map__77295__$1_props_77294$$){function $on_convert_to_typography$$(){var $G__77298_set_values_typography__$1$jscomp$3_typography__$2$$=$APP.$cljs$core$select_keys$$($APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$100$$),$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$common$types$text$text_font_attrs$$,
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$text_spacing_attrs$$,$APP.$app$common$types$text$text_transform_attrs$$])));$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$default_typography$$,$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$]));$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$=
$app$main$data$workspace$texts$generate_typography_name$$($G__77298_set_values_typography__$1$jscomp$3_typography__$2$$);var $id$jscomp$927$$=$APP.$app$common$uuid$next$$();$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$add_typography$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__77298_set_values_typography__$1$jscomp$3_typography__$2$$,$APP.$cljs$cst$266$id$$,$id$jscomp$927$$),!1));$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1740$typography_ref_id$$,$id$jscomp$927$$,$APP.$cljs$cst$1626$typography_ref_file$$,$file_id$jscomp$377$$],null);return $emit_update_BANG_$$.$cljs$core$IFn$_invoke$arity$2$?$emit_update_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$295$$,$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$):$emit_update_BANG_$$($ids$jscomp$295$$,$G__77298_set_values_typography__$1$jscomp$3_typography__$2$$)}$label$jscomp$42_map__77295_map__77295__$1_props_77294$$=
$APP.$rumext$v2$util$wrap_props$$($label$jscomp$42_map__77295_map__77295__$1_props_77294$$);$label$jscomp$42_map__77295_map__77295__$1_props_77294$$=$APP.$cljs$core$__destructure_map$$($label$jscomp$42_map__77295_map__77295__$1_props_77294$$);var $ids$jscomp$295$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$42_map__77295_map__77295__$1_props_77294$$,$APP.$cljs$cst$1707$ids$$),$type$jscomp$643$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$42_map__77295_map__77295__$1_props_77294$$,
$APP.$cljs$cst$139$type$$),$values$jscomp$100$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($label$jscomp$42_map__77295_map__77295__$1_props_77294$$,$APP.$cljs$cst$299$values$$),$file_id$jscomp$377$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),$typographies$jscomp$11$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_file_typography$$),$libraries$jscomp$145$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$files$$);$label$jscomp$42_map__77295_map__77295__$1_props_77294$$=
function(){switch($type$jscomp$643$$ instanceof $APP.$cljs$core$Keyword$$?$type$jscomp$643$$.$fqn$:null){case "multiple":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.title-selection");case "group":return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.title-group");default:return $APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.text-options.title")}}();var $state_STAR_$jscomp$24$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$4706$main_menu$$,!0,$cljs$cst$5481$more_options$$,!1],null)),$state$jscomp$1088_toggle_main_menu$$=$APP.$cljs$core$_deref$$($state_STAR_$jscomp$24$$),$main_menu_open_QMARK_$$=$APP.$cljs$cst$4706$main_menu$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1088_toggle_main_menu$$),$more_options_open_QMARK_$$=$cljs$cst$5481$more_options$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1088_toggle_main_menu$$);
$state$jscomp$1088_toggle_main_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($main_menu_open_QMARK_$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$24$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$4706$main_menu$$],null),$APP.$cljs$core$not$$($main_menu_open_QMARK_$$))});var $toggle_more_options$jscomp$2$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($more_options_open_QMARK_$$)],function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$24$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5481$more_options$$],null),$APP.$cljs$core$not$$($more_options_open_QMARK_$$))}),$typography_id$jscomp$7$$=$APP.$cljs$cst$1740$typography_ref_id$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$100$$),
$typography_file_id$$=$APP.$cljs$cst$1626$typography_ref_file$$.$cljs$core$IFn$_invoke$arity$1$($values$jscomp$100$$),$emit_update_BANG_$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($values$jscomp$100$$)],function($ids__$1$jscomp$30$$,$attrs$jscomp$166$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$texts$save_font$$($APP.$cljs$core$select_keys$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$common$types$text$get_default_text_attrs$$(),
$values$jscomp$100$$,$attrs$jscomp$166$$])),$APP.$app$common$types$text$text_node_attrs$$)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$texts$update_all_attrs$$($ids__$1$jscomp$30$$,$attrs$jscomp$166$$)]))}),$on_change$jscomp$79$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$295$$),$APP.$rumext$v2$adapt$$($emit_update_BANG_$$)],function($attrs$jscomp$167$$){return $emit_update_BANG_$$.$cljs$core$IFn$_invoke$arity$2$?
$emit_update_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$295$$,$attrs$jscomp$167$$):$emit_update_BANG_$$($ids$jscomp$295$$,$attrs$jscomp$167$$)}),$typography$jscomp$36$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($values$jscomp$100$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$377$$),$APP.$rumext$v2$adapt$$($libraries$jscomp$145$$)],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($typography_id$jscomp$7$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_id$jscomp$7$$,
$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_file_id$$,$file_id$jscomp$377$$):$typography_id$jscomp$7$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($libraries$jscomp$145$$,new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$typography_file_id$$,$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$2177$typographies$$,$typography_id$jscomp$7$$],
null)),$APP.$cljs$cst$1628$file_id$$,$typography_file_id$$):$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($typography_id$jscomp$7$$)?$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_id$jscomp$7$$,$APP.$cljs$cst$1600$multiple$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_file_id$$,$file_id$jscomp$377$$):$typography_id$jscomp$7$$)?$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($typographies$jscomp$11$$,$typography_id$jscomp$7$$):null}),$handle_detach_typography$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_change$jscomp$79$$)],function(){var $G__77299$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1626$typography_ref_file$$,null,$APP.$cljs$cst$1740$typography_ref_id$$,null],null);return $on_change$jscomp$79$$.$cljs$core$IFn$_invoke$arity$1$?$on_change$jscomp$79$$.$cljs$core$IFn$_invoke$arity$1$($G__77299$$):$on_change$jscomp$79$$($G__77299$$)}),$handle_change_typography$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($typography$jscomp$36$$),
$APP.$rumext$v2$adapt$$($file_id$jscomp$377$$)],function($changes$jscomp$309$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$libraries$update_typography$$($APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$typography$jscomp$36$$,$changes$jscomp$309$$])),$file_id$jscomp$377$$))}),$expand_stream$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){return $APP.$beicon$v2$core$filter$$($APP.$potok$v2$core$type_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$4474$expand_text_more_options$$),$APP.$app$main$store$stream$$)}),$multiple_QMARK_$jscomp$9$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__77293_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p1__77293_SHARP_$$,$APP.$cljs$cst$1600$multiple$$)},$APP.$cljs$core$vals$$($values$jscomp$100$$)),$opts$jscomp$309$$={ids:$ids$jscomp$295$$,
values:$values$jscomp$100$$,"on-change":$on_change$jscomp$79$$,"show-recent":!0,"on-blur":function(){return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(100,function(){if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$("INPUT",$APP.$app$util$dom$get_tag_name$$($APP.$app$util$globals$document$$.activeElement))){var $node$jscomp$417$$=$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"text-editor/v2"))?
$APP.$app$util$dom$query$cljs$0core$0IFn$0_invoke$0arity$01$$('[data-itype\x3d"editor"]'):$APP.$goog$dom$getElementByClass$$("public-DraftEditor-content");return $APP.$app$util$dom$focus_BANG_$$($node$jscomp$417$$)}return null})}};$app$main$ui$hooks$use_stream$cljs$0core$0IFn$0_invoke$0arity$02$$($expand_stream$jscomp$1$$,function(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($state_STAR_$jscomp$24$$,$APP.$cljs$core$assoc_in$$,new $APP.$cljs$core$PersistentVector$$(null,1,
5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$cljs$cst$5481$more_options$$],null),!0)});return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__element-set",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__element-title",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$title_bar$title_bar_STAR_$$,{collapsable:!0,collapsed:$APP.$cljs$core$not$$($main_menu_open_QMARK_$$),onCollapsed:$state$jscomp$1088_toggle_main_menu$$,
title:$label$jscomp$42_map__77295_map__77295__$1_props_77294$$,className:"main_ui_workspace_sidebar_options_menus_text__title-spacing-text",children:$APP.$cljs$core$not$$($typography$jscomp$36$$)&&$APP.$cljs$core$not$$($multiple_QMARK_$jscomp$9$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.options"),onClick:$on_convert_to_typography$$,icon:"add"}):null})}),$APP.$cljs$core$truth_$$($main_menu_open_QMARK_$$)?
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__element-content",children:[$APP.$cljs$core$truth_$$($typography$jscomp$36$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$typography$typography_entry$$,{"file-id":$typography_file_id$$,typography:$typography$jscomp$36$$,"local?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_file_id$$,$file_id$jscomp$377$$),"on-detach":$handle_detach_typography$$,"on-change":$handle_change_typography$$}):
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($typography_id$jscomp$7$$,$APP.$cljs$cst$1600$multiple$$)?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__multiple-typography",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_sidebar_options_menus_text__multiple-text",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.text.multiple-typography")}),(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$handle_detach_typography$$,
title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.libraries.text.multiple-typography-tooltip"),className:"main_ui_workspace_sidebar_options_menus_text__multiple-typography-button",children:$APP.$app$main$ui$icons$detach$$})]}):(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$typography$text_options$$,$opts$jscomp$309$$),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_menus_text__text-align-options",children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$text$text_align_options$$,
$opts$jscomp$309$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$text$grow_options$$,$opts$jscomp$309$$),(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.options"),"data-testid":"text-align-options-button",onClick:$toggle_more_options$jscomp$2$$,icon:"menu"})]}),$APP.$cljs$core$truth_$$($more_options_open_QMARK_$$)?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_workspace_sidebar_options_menus_text__text-decoration-options",children:[(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$text$vertical_align$$,$opts$jscomp$309$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$text$text_decoration_options$$,$opts$jscomp$309$$),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$sidebar$options$menus$text$text_direction_options$$,$opts$jscomp$309$$)]}):null]}):null]})});var $app$main$ui$workspace$sidebar$options$shapes$multiple$type__GT_read_mode$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$294$path$$,$APP.$cljs$cst$1592$group$$,$APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$1406$circle$$,$APP.$cljs$cst$1597$svg_raw$$,$APP.$cljs$cst$1596$image$$,$APP.$cljs$cst$1594$bool$$,$APP.$cljs$cst$1595$rect$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,
$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,
$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$340$children$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$340$children$$,
$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$340$children$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,
$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$340$children$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,
$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,
$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,
$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,
$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,
$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,
$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,
$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$cljs$cst$5486$ignore$$]),$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,
$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1572$text$$,$cljs$cst$5486$ignore$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1795$shape$$,$APP.$cljs$cst$1572$text$$])]),$app$main$ui$workspace$sidebar$options$shapes$multiple$group__GT_attrs$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5482$constraint$$,$APP.$cljs$cst$2862$stroke$$,$cljs$cst$5483$layout_item$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$2054$layout_container$$,
$cljs$cst$5484$measure$$,$APP.$cljs$cst$1854$exports$$,$cljs$cst$5485$layer$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1572$text$$],[$app$main$ui$workspace$sidebar$options$menus$constraints$constraint_attrs$$,$app$main$ui$workspace$sidebar$options$menus$stroke$stroke_attrs$$,$app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_attrs$$,$app$main$ui$workspace$sidebar$options$menus$fill$fill_attrs$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$,
$app$main$ui$workspace$sidebar$options$menus$measures$measure_attrs$$,$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$,$app$main$ui$workspace$sidebar$options$menus$layer$layer_attrs$$,$app$main$ui$workspace$sidebar$options$menus$blur$blur_attrs$$,$app$main$ui$workspace$sidebar$options$menus$shadow$shadow_attrs$$,$APP.$app$common$types$text$text_all_attrs$$]),$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_keys$$=new $APP.$cljs$core$PersistentVector$$(null,7,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1889$style$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1634$offset_x$$,$APP.$cljs$cst$1635$offset_y$$,$APP.$cljs$cst$1637$blur$$,$APP.$cljs$cst$1636$spread$$,$APP.$cljs$cst$1604$hidden$$],null),$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_keys$$=new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$260$value$$,$APP.$cljs$cst$1604$hidden$$],null),$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$=
function $app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$($shapes$jscomp$211$$,$objects$jscomp$767$$,$attr_group$jscomp$4$$){function $merge_token_values$$($acc$jscomp$148$$,$shape_attrs$jscomp$1$$,$applied_tokens$jscomp$26$$){return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__77315_SHARP_$$,$p2__77316_SHARP_$$){return $merge_shape_attr$$($p1__77315_SHARP_$$,$applied_tokens$jscomp$26$$,$p2__77316_SHARP_$$)},$acc$jscomp$148$$,$shape_attrs$jscomp$1$$)}
function $merge_shape_attr$$($acc$jscomp$147$$,$applied_tokens$jscomp$25$$,$shape_attr$jscomp$2_token_attrs$jscomp$4$$){$shape_attr$jscomp$2_token_attrs$jscomp$4$$=$APP.$app$common$types$token$shape_attr__GT_token_attrs$$.$cljs$core$IFn$_invoke$arity$1$($shape_attr$jscomp$2_token_attrs$jscomp$4$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__77313_SHARP_$$,$p2__77314_SHARP_$$){var $new_val$jscomp$inline_8650$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_tokens$jscomp$25$$,
$p2__77314_SHARP_$$),$existing$jscomp$inline_8651$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($p1__77313_SHARP_$$,$p2__77314_SHARP_$$,$cljs$cst$5487$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_shapes_DOT_multiple_SLASH_not_found$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($existing$jscomp$inline_8651$$,$cljs$cst$5487$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_DOT_options_DOT_shapes_DOT_multiple_SLASH_not_found$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__77313_SHARP_$$,
$p2__77314_SHARP_$$,$new_val$jscomp$inline_8650$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($existing$jscomp$inline_8651$$,$new_val$jscomp$inline_8650$$)?$p1__77313_SHARP_$$:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__77313_SHARP_$$,$p2__77314_SHARP_$$,$APP.$cljs$cst$1600$multiple$$)},$acc$jscomp$147$$,$shape_attr$jscomp$2_token_attrs$jscomp$4$$)}function $merge_attrs$$($v1$jscomp$42$$,$v2$jscomp$34$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($attr_group$jscomp$4$$,
$APP.$cljs$cst$1638$shadow$$)?$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$04$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$v1$jscomp$42$$,$v2$jscomp$34$$],null),$attrs$jscomp$168$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_eq$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$shadow_sel$$):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($attr_group$jscomp$4$$,$APP.$cljs$cst$1637$blur$$)?
$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$04$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$v1$jscomp$42$$,$v2$jscomp$34$$],null),$attrs$jscomp$168$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_eq$$,$app$main$ui$workspace$sidebar$options$shapes$multiple$blur_sel$$):$APP.$app$common$attrs$get_attrs_multi$cljs$0core$0IFn$0_invoke$0arity$02$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$v1$jscomp$42$$,$v2$jscomp$34$$],null),$attrs$jscomp$168$$)}var $attrs$jscomp$168$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$group__GT_attrs$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$workspace$sidebar$options$shapes$multiple$group__GT_attrs$$.$cljs$core$IFn$_invoke$arity$1$($attr_group$jscomp$4$$):$app$main$ui$workspace$sidebar$options$shapes$multiple$group__GT_attrs$$($attr_group$jscomp$4$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,
$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$){var $ids$jscomp$296$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,0,null),$values$jscomp$101$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,1,null);$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,
2,null);var $map__77324__$1_new_values$jscomp$2_shape_values$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$);$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77324__$1_new_values$jscomp$2_shape_values$$,$APP.$cljs$cst$266$id$$);var $editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77324__$1_new_values$jscomp$2_shape_values$$,
$APP.$cljs$cst$139$type$$),$applied_tokens$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77324__$1_new_values$jscomp$2_shape_values$$,$APP.$cljs$cst$1857$applied_tokens$$),$content_attrs_read_mode$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$sidebar$options$shapes$multiple$type__GT_read_mode$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$,
$attr_group$jscomp$4$$],null));$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$shape$attrs$editable_attrs$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($map__77324__$1_new_values$jscomp$2_shape_values$$)),$attrs$jscomp$168$$);switch($content_attrs_read_mode$$ instanceof $APP.$cljs$core$Keyword$$?$content_attrs_read_mode$$.$fqn$:null){case "ignore":return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$ids$jscomp$296$$,$values$jscomp$101$$],null);case "shape":return $map__77324__$1_new_values$jscomp$2_shape_values$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$(function($p1__77317_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1__77317_SHARP_$$,null],null)}),$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($attr_group$jscomp$4$$,$cljs$cst$5484$measure$$)?$app$main$ui$workspace$sidebar$options$menus$measures$select_measure_keys$$($map__77324__$1_new_values$jscomp$2_shape_values$$):$APP.$cljs$core$select_keys$$($map__77324__$1_new_values$jscomp$2_shape_values$$,$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$)])),
$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$=$merge_token_values$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$,$applied_tokens$jscomp$27$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$296$$,$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$),$merge_attrs$$($values$jscomp$101$$,
$map__77324__$1_new_values$jscomp$2_shape_values$$),$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$],null);case "text":return $editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$=$APP.$cljs$core$select_keys$$($map__77324__$1_new_values$jscomp$2_shape_values$$,$attrs$jscomp$168$$),$content_attrs_read_mode$$=$app$common$attrs$get_text_attrs_multi$$($map__77324__$1_new_values$jscomp$2_shape_values$$,$attrs$jscomp$168$$),$map__77324__$1_new_values$jscomp$2_shape_values$$=$merge_attrs$$($merge_attrs$$($values$jscomp$101$$,
$editable_attrs_shape_attrs$jscomp$2_type$jscomp$644$$),$content_attrs_read_mode$$),$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$=$merge_token_values$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,$content_attrs_read_mode$$,$applied_tokens$jscomp$27$$),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($ids$jscomp$296$$,$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$),
$map__77324__$1_new_values$jscomp$2_shape_values$$,$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$],null);case "children":return $children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__77318_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$767$$,$p1__77318_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$2$($map__77324__$1_new_values$jscomp$2_shape_values$$,
$APP.$cljs$core$PersistentVector$EMPTY$$)),$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$.$cljs$core$IFn$_invoke$arity$3$?$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$.$cljs$core$IFn$_invoke$arity$3$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,$objects$jscomp$767$$,$attr_group$jscomp$4$$):$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$($children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$,
$objects$jscomp$767$$,$attr_group$jscomp$4$$),$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$,0,null),$map__77324__$1_new_values$jscomp$2_shape_values$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$,1,null),$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$,
2,null),new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$($ids$jscomp$296$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$children$jscomp$303_new_ids$jscomp$1_new_token_acc_p__77319_token_acc$$])),$merge_attrs$$($values$jscomp$101$$,$map__77324__$1_new_values$jscomp$2_shape_values$$),$id$jscomp$928_p__77320_tokens$jscomp$47_vec__77326$$],null);default:return $APP.$cljs$core$PersistentVector$EMPTY$$}},
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$],null),$shapes$jscomp$211$$)},$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$=function($f$jscomp$752$$){var $mem$jscomp$1$$=new $APP.$module$app$common$weak$impl_weak_map$$.$WeakEqMap$({hash:$APP.$cljs$core$hash$$,equals:$APP.$cljs$core$_EQ_$$});return function(){function $G__45239$$($var_args$jscomp$918$$){var $G__45240__i_args$jscomp$235$$=
null;if(arguments.length>0){$G__45240__i_args$jscomp$235$$=0;for(var $G__45240__a$$=Array(arguments.length-0);$G__45240__i_args$jscomp$235$$<$G__45240__a$$.length;)$G__45240__a$$[$G__45240__i_args$jscomp$235$$]=arguments[$G__45240__i_args$jscomp$235$$+0],++$G__45240__i_args$jscomp$235$$;$G__45240__i_args$jscomp$235$$=new $APP.$cljs$core$IndexedSeq$$($G__45240__a$$,0,null)}return $G__45239__delegate$$.call(this,$G__45240__i_args$jscomp$235$$)}function $G__45239__delegate$$($args$jscomp$234$$){var $ret$jscomp$144_v$jscomp$509$$=
$mem$jscomp$1$$.get($args$jscomp$234$$);return void 0===$ret$jscomp$144_v$jscomp$509$$?($ret$jscomp$144_v$jscomp$509$$=$APP.$cljs$core$apply$$.$cljs$core$IFn$_invoke$arity$2$($f$jscomp$752$$,$args$jscomp$234$$),$mem$jscomp$1$$.set($args$jscomp$234$$,$ret$jscomp$144_v$jscomp$509$$),$ret$jscomp$144_v$jscomp$509$$):$ret$jscomp$144_v$jscomp$509$$}$G__45239$$.$cljs$lang$maxFixedArity$=0;$G__45239$$.$cljs$lang$applyTo$=function($arglist__45241_args$jscomp$236$$){$arglist__45241_args$jscomp$236$$=$APP.$cljs$core$seq$$($arglist__45241_args$jscomp$236$$);
return $G__45239__delegate$$($arglist__45241_args$jscomp$236$$)};$G__45239$$.$cljs$core$IFn$_invoke$arity$variadic$=$G__45239__delegate$$;return $G__45239$$}()}($app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$),$app$main$ui$workspace$sidebar$options$shapes$multiple$options_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($page_id$jscomp$398_props_77331$$){var $shapes_with_children$jscomp$2$$=$page_id$jscomp$398_props_77331$$.shapesWithChildren,$shapes$jscomp$212$$=
$page_id$jscomp$398_props_77331$$.shapes,$file_id$jscomp$378$$=$page_id$jscomp$398_props_77331$$.fileId,$libraries$jscomp$146$$=$page_id$jscomp$398_props_77331$$.libraries;$page_id$jscomp$398_props_77331$$=$page_id$jscomp$398_props_77331$$.pageId;var $shape_ids$jscomp$106$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$app$common$data$xf_COLON_map_id$$,
$shapes$jscomp$212$$)}),$is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_ids$jscomp$106$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($shape_ids$jscomp$106$$)});$is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$=$APP.$rumext$v2$deref$$($is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$);var $is_flex_parent_QMARK_$jscomp$4_is_flex_parent_ref$jscomp$3$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_ids$jscomp$106$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($shape_ids$jscomp$106$$)});$is_flex_parent_QMARK_$jscomp$4_is_flex_parent_ref$jscomp$3$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$4_is_flex_parent_ref$jscomp$3$$);var $is_grid_parent_QMARK_$jscomp$4_is_grid_parent_ref$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_ids$jscomp$106$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($shape_ids$jscomp$106$$)});$is_grid_parent_QMARK_$jscomp$4_is_grid_parent_ref$jscomp$3$$=$APP.$rumext$v2$deref$$($is_grid_parent_QMARK_$jscomp$4_is_grid_parent_ref$jscomp$3$$);var $has_flex_layout_container_QMARK_$$=$APP.$cljs$core$some$$($APP.$app$common$types$shape$layout$flex_layout_QMARK_$$,$shapes$jscomp$212$$),$all_layout_child_QMARK__all_layout_child_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_ids$jscomp$106$$)],
function(){return $app$main$refs$all_layout_child_QMARK_$$($shape_ids$jscomp$106$$)});$all_layout_child_QMARK__all_layout_child_ref$$=$APP.$rumext$v2$deref$$($all_layout_child_QMARK__all_layout_child_ref$$);var $all_flex_layout_container_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],function(){return $APP.$cljs$core$every_QMARK_$$($APP.$app$common$types$shape$layout$flex_layout_QMARK_$$,$shapes$jscomp$212$$)}),$show_caps_QMARK_$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],function(){return $APP.$cljs$core$some$$(function($p1__77330_SHARP_$$){return $APP.$app$common$files$helpers$path_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($p1__77330_SHARP_$$)&&$APP.$app$common$types$path$shape_with_open_path_QMARK_$$($p1__77330_SHARP_$$)},$shapes$jscomp$212$$)}),$has_text_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],
function(){return $APP.$cljs$core$some$$($APP.$app$common$files$helpers$text_shape_QMARK_$$,$shapes$jscomp$212$$)}),$objects$jscomp$769$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes_with_children$jscomp$2$$)],function(){var $objects$jscomp$770$$=$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$shapes_with_children$jscomp$2$$);return $APP.$cljs$core$reduce_kv$$(function($objects__$1$jscomp$37$$,$id$jscomp$929$$,
$JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$){a:{for(;;){var $parent$jscomp$inline_8657_parent_id$jscomp$inline_8656$$=$APP.$cljs$cst$1603$parent_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$);$parent$jscomp$inline_8657_parent_id$jscomp$inline_8656$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$37$$,$parent$jscomp$inline_8657_parent_id$jscomp$inline_8656$$);if($JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$==
null||$APP.$cljs$core$contains_QMARK_$$($shape_ids$jscomp$106$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$))){$JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$=!1;break a}if($APP.$app$common$files$helpers$bool_shape_QMARK_$$($parent$jscomp$inline_8657_parent_id$jscomp$inline_8656$$)){$JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$=!0;break a}$JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$=
$parent$jscomp$inline_8657_parent_id$jscomp$inline_8656$$}$JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$=void 0}return $JSCompiler_inline_result$jscomp$1790_object$jscomp$38_shape$jscomp$inline_8655$$?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($objects__$1$jscomp$37$$,$id$jscomp$929$$):$objects__$1$jscomp$37$$},$objects$jscomp$770$$,$objects$jscomp$770$$)}),$layer_tokens_vec__77332$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,
$objects$jscomp$769$$,$cljs$cst$5485$layer$$),$layer_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layer_tokens_vec__77332$$,0,null),$layer_values$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layer_tokens_vec__77332$$,1,null);$layer_tokens_vec__77332$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layer_tokens_vec__77332$$,2,null);var $text_values$jscomp$3_vec__77335$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,
$objects$jscomp$769$$,$APP.$cljs$cst$1572$text$$),$text_ids$jscomp$6$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_values$jscomp$3_vec__77335$$,0,null);$text_values$jscomp$3_vec__77335$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_values$jscomp$3_vec__77335$$,1,null);var $constraint_values$jscomp$3_vec__77338$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$cljs$cst$5482$constraint$$),$constraint_ids$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($constraint_values$jscomp$3_vec__77338$$,0,null);$constraint_values$jscomp$3_vec__77338$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($constraint_values$jscomp$3_vec__77338$$,1,null);var $fill_tokens_vec__77341$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$APP.$cljs$cst$1392$fill$$),$fill_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens_vec__77341$$,
0,null),$fill_values$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens_vec__77341$$,1,null);$fill_tokens_vec__77341$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens_vec__77341$$,2,null);var $shadow_values_vec__77344$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$APP.$cljs$cst$1638$shadow$$),$shadow_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($shadow_values_vec__77344$$,
0,null);$shadow_values_vec__77344$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($shadow_values_vec__77344$$,1,null);var $blur_values_vec__77347$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$APP.$cljs$cst$1637$blur$$),$blur_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($blur_values_vec__77347$$,0,null);$blur_values_vec__77347$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($blur_values_vec__77347$$,
1,null);var $stroke_tokens_vec__77350$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$APP.$cljs$cst$2862$stroke$$),$stroke_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens_vec__77350$$,0,null),$stroke_values$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens_vec__77350$$,1,null);$stroke_tokens_vec__77350$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens_vec__77350$$,
2,null);var $exports_values_vec__77353$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$APP.$cljs$cst$1854$exports$$),$exports_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($exports_values_vec__77353$$,0,null);$exports_values_vec__77353$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($exports_values_vec__77353$$,1,null);var $layout_container_tokens_vec__77356$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,
$objects$jscomp$769$$,$APP.$cljs$cst$2054$layout_container$$),$layout_container_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_container_tokens_vec__77356$$,0,null),$layout_container_values$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_container_tokens_vec__77356$$,1,null);$layout_container_tokens_vec__77356$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_container_tokens_vec__77356$$,2,null);var $layout_item_tokens_vec__77359$$=
$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$212$$,$objects$jscomp$769$$,$cljs$cst$5483$layout_item$$),$layout_item_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_item_tokens_vec__77359$$,0,null),$layout_item_values$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_item_tokens_vec__77359$$,1,null);$layout_item_tokens_vec__77359$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_item_tokens_vec__77359$$,
2,null);var $components$jscomp$24$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],function(){return $APP.$cljs$core$not_empty$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$types$component$instance_head_QMARK_$$,$shapes$jscomp$212$$))}),$workspace_modifiers$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_modifiers$$),$shapes__$1$jscomp$31$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($workspace_modifiers$$),
$APP.$rumext$v2$adapt$$($shapes$jscomp$212$$)],function(){return $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$(function($shape$jscomp$989$$){var $modifiers$jscomp$111_shape_id$jscomp$158$$=$shape$jscomp$989$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$989$$,$APP.$cljs$cst$266$id$$);$modifiers$jscomp$111_shape_id$jscomp$158$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($workspace_modifiers$$,
$modifiers$jscomp$111_shape_id$jscomp$158$$),$APP.$cljs$cst$1794$modifiers$$);return $APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$989$$,$modifiers$jscomp$111_shape_id$jscomp$158$$)}),$shapes$jscomp$212$$)}),$measure_tokens_vec__77362$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs_STAR_$$($shapes__$1$jscomp$31$$,$objects$jscomp$769$$,$cljs$cst$5484$measure$$),$measure_ids$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($measure_tokens_vec__77362$$,
0,null),$measure_values$jscomp$3$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($measure_tokens_vec__77362$$,1,null);$measure_tokens_vec__77362$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($measure_tokens_vec__77362$$,2,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_shapes_multiple__options",children:[$APP.$cljs$core$empty_QMARK_$$($layer_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,
{type:$APP.$cljs$cst$1600$multiple$$,ids:$layer_ids$$,appliedTokens:$layer_tokens_vec__77332$$,values:$layer_values$jscomp$3$$}),$APP.$cljs$core$empty_QMARK_$$($measure_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$measure_ids$$,values:$measure_values$jscomp$3$$,appliedTokens:$measure_tokens_vec__77362$$,shapes:$shapes__$1$jscomp$31$$}),$components$jscomp$24$$!=null?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$component$component_menu_STAR_$$,
{shapes:$components$jscomp$24$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$layout_container_ids$$,values:$layout_container_values$jscomp$3$$,"applied-tokens":$layout_container_tokens_vec__77356$$,multiple:!0}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$)?$is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$:
$has_flex_layout_container_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$layout_item_ids$$,"is-layout-child?":$all_layout_child_QMARK__all_layout_child_ref$$,"is-layout-container?":$all_flex_layout_container_QMARK_$$,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$4_is_flex_parent_ref$jscomp$3$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$4_is_grid_parent_ref$jscomp$3$$,"applied-tokens":$layout_item_tokens_vec__77359$$,
values:$layout_item_values$jscomp$3$$}):null,$APP.$cljs$core$empty_QMARK_$$($constraint_ids$$)||$is_layout_child_QMARK_$jscomp$4_is_layout_child_ref$jscomp$3$$?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,{ids:$constraint_ids$$,values:$constraint_values$jscomp$3_vec__77338$$}),$APP.$cljs$core$empty_QMARK_$$($text_ids$jscomp$6$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$text$text_menu$$,{type:$APP.$cljs$cst$1600$multiple$$,
ids:$text_ids$jscomp$6$$,values:$text_values$jscomp$3_vec__77335$$}),$APP.$cljs$core$empty_QMARK_$$($fill_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$fill_ids$$,values:$fill_values$$,appliedTokens:$fill_tokens_vec__77341$$}),$APP.$cljs$core$empty_QMARK_$$($stroke_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,{type:$APP.$cljs$cst$1600$multiple$$,
ids:$stroke_ids$$,"show-caps":$show_caps_QMARK_$$,values:$stroke_values$jscomp$3$$,"disable-stroke-style":$has_text_QMARK_$$,"applied-tokens":$stroke_tokens_vec__77350$$}),$APP.$cljs$core$empty_QMARK_$$($shapes__$1$jscomp$31$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$color_selection$color_selection_menu_STAR_$$,{fileId:$file_id$jscomp$378$$,type:$APP.$cljs$cst$1600$multiple$$,shapes:$APP.$cljs$core$vals$$($objects$jscomp$769$$),libraries:$libraries$jscomp$146$$}),
$APP.$cljs$core$empty_QMARK_$$($shadow_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$shadow_ids$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shadow_values_vec__77344$$,$APP.$cljs$cst$1638$shadow$$)}),$APP.$cljs$core$empty_QMARK_$$($blur_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$blur_ids$$,
values:$blur_values_vec__77347$$}),$APP.$cljs$core$empty_QMARK_$$($exports_ids$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$APP.$cljs$cst$1600$multiple$$,ids:$exports_ids$$,shapes:$shapes__$1$jscomp$31$$,values:$exports_values_vec__77353$$,pageId:$page_id$jscomp$398_props_77331$$,fileId:$file_id$jscomp$378$$})]})},function($new_props$jscomp$6$$,$old_props$jscomp$5$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props$jscomp$6$$.shapes,
$old_props$jscomp$5$$.shapes)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props$jscomp$6$$.shapesWithChildren,$old_props$jscomp$5$$.shapesWithChildren)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props$jscomp$6$$.pageId,$old_props$jscomp$5$$.pageId)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props$jscomp$6$$.fileId,$old_props$jscomp$5$$.fileId)});var $app$main$ui$workspace$sidebar$options$shapes$group$options_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_77367_type$jscomp$646$$){var $shapes_with_children$jscomp$3$$=$props_77367_type$jscomp$646$$.shapesWithChildren,$file_id$jscomp$379$$=$props_77367_type$jscomp$646$$.fileId,$libraries$jscomp$147$$=$props_77367_type$jscomp$646$$.libraries,$page_id$jscomp$399$$=$props_77367_type$jscomp$646$$.pageId,$shape$jscomp$990$$=$props_77367_type$jscomp$646$$.shape,$id$jscomp$930$$=
$shape$jscomp$990$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$990$$,$APP.$cljs$cst$266$id$$);$props_77367_type$jscomp$646$$=$shape$jscomp$990$$?.type??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$990$$,$APP.$cljs$cst$139$type$$);var $ids$jscomp$297$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$930$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$id$jscomp$930$$],null)}),$shapes$jscomp$213$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$990$$)],function(){return new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$shape$jscomp$990$$],null)}),$applied_tokens$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$990$$,$APP.$cljs$cst$1857$applied_tokens$$),$objects$jscomp$771$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shapes_with_children$jscomp$3$$)],
function(){return $APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$shapes_with_children$jscomp$3$$)}),$layout_container_values$jscomp$4$$=$APP.$cljs$core$select_keys$$($shape$jscomp$990$$,$app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_flex_attrs$$),$svg_values$$=$APP.$cljs$core$select_keys$$($shape$jscomp$990$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1874$svg_attrs$$],
null)),$is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$297$$)],function(){return $app$main$refs$is_layout_child_QMARK_$$($ids$jscomp$297$$)}),$is_layout_child_QMARK_$jscomp$5$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$);$is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$297$$)],function(){return $app$main$refs$flex_layout_child_QMARK_$$($ids$jscomp$297$$)});$is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$=$APP.$rumext$v2$deref$$($is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$);var $is_grid_parent_ref$jscomp$4_is_layout_child_absolute_QMARK_$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$297$$)],
function(){return $app$main$refs$grid_layout_child_QMARK_$$($ids$jscomp$297$$)}),$is_grid_parent_QMARK_$jscomp$5$$=$APP.$rumext$v2$deref$$($is_grid_parent_ref$jscomp$4_is_layout_child_absolute_QMARK_$jscomp$3$$);$is_grid_parent_ref$jscomp$4_is_layout_child_absolute_QMARK_$jscomp$3$$=$APP.$app$common$types$shape$layout$item_absolute_QMARK_$cljs$0core$0IFn$0_invoke$0arity$01$$($shape$jscomp$990$$);var $parents$jscomp$16_parents_by_ids_ref$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($ids$jscomp$297$$)],
function(){return $app$main$refs$parents_by_ids$$($ids$jscomp$297$$)});$parents$jscomp$16_parents_by_ids_ref$jscomp$3$$=$APP.$rumext$v2$deref$$($parents$jscomp$16_parents_by_ids_ref$jscomp$3$$);var $measure_values$jscomp$4_vec__77371$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$cljs$cst$5484$measure$$),$measure_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($measure_values$jscomp$4_vec__77371$$,0,null);$measure_values$jscomp$4_vec__77371$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($measure_values$jscomp$4_vec__77371$$,1,null);var $layer_values$jscomp$4_vec__77374$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$cljs$cst$5485$layer$$),$layer_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layer_values$jscomp$4_vec__77374$$,0,null);$layer_values$jscomp$4_vec__77374$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layer_values$jscomp$4_vec__77374$$,
1,null);var $constraint_values$jscomp$4_vec__77377$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$cljs$cst$5482$constraint$$),$constraint_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($constraint_values$jscomp$4_vec__77377$$,0,null);$constraint_values$jscomp$4_vec__77377$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($constraint_values$jscomp$4_vec__77377$$,1,null);var $fill_tokens$jscomp$1_vec__77380$$=
$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$APP.$cljs$cst$1392$fill$$),$fill_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens$jscomp$1_vec__77380$$,0,null),$fill_values$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens$jscomp$1_vec__77380$$,1,null);$fill_tokens$jscomp$1_vec__77380$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($fill_tokens$jscomp$1_vec__77380$$,
2,null);var $shadow_ids$jscomp$1_vec__77383$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$APP.$cljs$cst$1638$shadow$$);$shadow_ids$jscomp$1_vec__77383$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($shadow_ids$jscomp$1_vec__77383$$,0,null);var $blur_values$jscomp$1_vec__77386$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$APP.$cljs$cst$1637$blur$$),$blur_ids$jscomp$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($blur_values$jscomp$1_vec__77386$$,0,null);$blur_values$jscomp$1_vec__77386$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($blur_values$jscomp$1_vec__77386$$,1,null);var $stroke_tokens$jscomp$1_vec__77389$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$APP.$cljs$cst$2862$stroke$$),$stroke_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens$jscomp$1_vec__77389$$,
0,null),$stroke_values$jscomp$4$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens$jscomp$1_vec__77389$$,1,null);$stroke_tokens$jscomp$1_vec__77389$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($stroke_tokens$jscomp$1_vec__77389$$,2,null);var $text_values$jscomp$4_vec__77392$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$APP.$cljs$cst$1572$text$$),$text_ids$jscomp$7$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_values$jscomp$4_vec__77392$$,
0,null);$text_values$jscomp$4_vec__77392$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_values$jscomp$4_vec__77392$$,1,null);var $layout_item_values$jscomp$4_vec__77395$$=$app$main$ui$workspace$sidebar$options$shapes$multiple$get_attrs$$($shapes$jscomp$213$$,$objects$jscomp$771$$,$cljs$cst$5483$layout_item$$),$layout_item_ids$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_item_values$jscomp$4_vec__77395$$,0,null);$layout_item_values$jscomp$4_vec__77395$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($layout_item_values$jscomp$4_vec__77395$$,1,null);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_workspace_sidebar_options_shapes_group__options",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layer$layer_menu_STAR_$$,{type:$props_77367_type$jscomp$646$$,ids:$layer_ids$jscomp$1$$,appliedTokens:$applied_tokens$jscomp$28$$,values:$layer_values$jscomp$4_vec__77374$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$measures$measures_menu_STAR_$$,
{type:$props_77367_type$jscomp$646$$,ids:$measure_ids$jscomp$1$$,appliedTokens:$applied_tokens$jscomp$28$$,values:$measure_values$jscomp$4_vec__77371$$,shapes:$shapes$jscomp$213$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_container$layout_container_menu$$,{type:$props_77367_type$jscomp$646$$,ids:new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$990$$)],
null),values:$layout_container_values$jscomp$4$$,"applied-tokens":$applied_tokens$jscomp$28$$,multiple:!1}),$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$772$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($ids$jscomp$297$$),1);return $and__5023__auto__$jscomp$772$$?$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$5$$)?$is_grid_parent_QMARK_$jscomp$5$$:$is_layout_child_QMARK_$jscomp$5$$:$and__5023__auto__$jscomp$772$$}())?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$grid_cell$options$$,
{shape:$APP.$cljs$core$first$$($parents$jscomp$16_parents_by_ids_ref$jscomp$3$$),cell:$APP.$app$common$types$shape$layout$get_cell_by_shape_id$$($APP.$cljs$core$first$$($parents$jscomp$16_parents_by_ids_ref$jscomp$3$$),$APP.$cljs$core$first$$($ids$jscomp$297$$))}):null,$APP.$cljs$core$truth_$$($is_layout_child_QMARK_$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$layout_item$layout_item_menu$$,{type:$props_77367_type$jscomp$646$$,ids:$layout_item_ids$jscomp$1$$,
"is-layout-child?":!0,"is-layout-container?":!1,"is-flex-parent?":$is_flex_parent_QMARK_$jscomp$5_is_flex_parent_ref$jscomp$4_is_layout_child_ref$jscomp$4$$,"is-grid-parent?":$is_grid_parent_QMARK_$jscomp$5$$,"applied-tokens":$applied_tokens$jscomp$28$$,values:$layout_item_values$jscomp$4_vec__77395$$}):null,!$is_layout_child_QMARK_$jscomp$5$$||$is_grid_parent_ref$jscomp$4_is_layout_child_absolute_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$constraints$constraints_menu$$,
{ids:$constraint_ids$jscomp$1$$,values:$constraint_values$jscomp$4_vec__77377$$}):null,$APP.$cljs$core$empty_QMARK_$$($fill_ids$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$fill$fill_menu_STAR_$$,{type:$props_77367_type$jscomp$646$$,ids:$fill_ids$jscomp$1$$,values:$fill_values$jscomp$1$$,appliedTokens:$fill_tokens$jscomp$1_vec__77380$$}),$APP.$cljs$core$empty_QMARK_$$($stroke_ids$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$stroke$stroke_menu$$,
{type:$props_77367_type$jscomp$646$$,ids:$stroke_ids$jscomp$1$$,values:$stroke_values$jscomp$4$$,"applied-tokens":$stroke_tokens$jscomp$1_vec__77389$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$color_selection$color_selection_menu_STAR_$$,{type:$props_77367_type$jscomp$646$$,shapes:$APP.$cljs$core$vals$$($objects$jscomp$771$$),fileId:$file_id$jscomp$379$$,libraries:$libraries$jscomp$147$$}),$APP.$cljs$core$empty_QMARK_$$($shadow_ids$jscomp$1_vec__77383$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$shadow$shadow_menu_STAR_$$,
{ids:$ids$jscomp$297$$,values:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$990$$,$APP.$cljs$cst$1638$shadow$$),type:$props_77367_type$jscomp$646$$}),$APP.$cljs$core$empty_QMARK_$$($blur_ids$jscomp$1$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$blur$blur_menu$$,{type:$props_77367_type$jscomp$646$$,ids:$blur_ids$jscomp$1$$,values:$blur_values$jscomp$1_vec__77386$$}),$APP.$cljs$core$empty_QMARK_$$($text_ids$jscomp$7$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$text$text_menu$$,
{type:$props_77367_type$jscomp$646$$,ids:$text_ids$jscomp$7$$,values:$text_values$jscomp$4_vec__77392$$}),$APP.$cljs$core$empty_QMARK_$$($svg_values$$)?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$svg_attrs$svg_attrs_menu$$,{ids:$ids$jscomp$297$$,values:$svg_values$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$menus$exports$exports_menu_STAR_$$,{type:$props_77367_type$jscomp$646$$,ids:$ids$jscomp$297$$,shapes:$shapes$jscomp$213$$,values:$APP.$cljs$core$select_keys$$($shape$jscomp$990$$,
$app$main$ui$workspace$sidebar$options$menus$exports$exports_attrs$$),pageId:$page_id$jscomp$399$$,fileId:$file_id$jscomp$379$$})]})});var $app$main$ui$workspace$sidebar$options$shapes$svg_raw$svg_elements$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,13,[$APP.$cljs$cst$294$path$$,null,$APP.$cljs$cst$2654$textPath$$,null,$APP.$cljs$cst$219$symbol$$,null,$APP.$cljs$cst$1406$circle$$,null,$APP.$cljs$cst$1728$g$$,null,$APP.$cljs$cst$209$line$$,null,$APP.$cljs$cst$1527$svg$$,null,$APP.$cljs$cst$2689$ellipse$$,null,$APP.$cljs$cst$1596$image$$,null,$APP.$cljs$cst$2702$polyline$$,null,$APP.$cljs$cst$1595$rect$$,
null,$APP.$cljs$cst$2709$polygon$$,null,$APP.$cljs$cst$1572$text$$,null],null),null);var $app$main$ui$workspace$sidebar$options$shape_options_STAR_$$=$rumext$v2$throttle$$(function($props_77406$$){var $shapes_with_children$jscomp$4$$=$props_77406$$.shapesWithChildren,$shapes$jscomp$218$$=$props_77406$$.shapes,$file_id$jscomp$385$$=$props_77406$$.fileId,$libraries$jscomp$150$$=$props_77406$$.libraries,$page_id$jscomp$405$$=$props_77406$$.pageId;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($props_77406$$.selected))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$single_shape_options_STAR_$$,
{pageId:$page_id$jscomp$405$$,fileId:$file_id$jscomp$385$$,libraries:$libraries$jscomp$150$$,shape:$APP.$cljs$core$first$$($shapes$jscomp$218$$),shapesWithChildren:$shapes_with_children$jscomp$4$$}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$shapes$multiple$options_STAR_$$,{shapesWithChildren:$shapes_with_children$jscomp$4$$,shapes:$shapes$jscomp$218$$,pageId:$page_id$jscomp$405$$,fileId:$file_id$jscomp$385$$,libraries:$libraries$jscomp$150$$})},100),$app$main$ui$workspace$sidebar$options$options_tabs$$=
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.design"),$APP.$cljs$cst$266$id$$,"design"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.prototype"),$APP.$cljs$cst$266$id$$,"prototype"],null),
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.options.inspect"),$APP.$cljs$cst$266$id$$,"inspect"],null)],null),$app$main$ui$workspace$sidebar$options$options_toolbox_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($objects$jscomp$775_objects_ref_props_77442$$){var $on_expand$jscomp$3$$=$objects$jscomp$775_objects_ref_props_77442$$.onExpand,$on_change_section$jscomp$2$$=$objects$jscomp$775_objects_ref_props_77442$$.onChangeSection,
$selected$jscomp$169$$=$objects$jscomp$775_objects_ref_props_77442$$.selected,$file_id$jscomp$389$$=$objects$jscomp$775_objects_ref_props_77442$$.fileId,$section$jscomp$30$$=$objects$jscomp$775_objects_ref_props_77442$$.section,$page_id$jscomp$409$$=$objects$jscomp$775_objects_ref_props_77442$$.pageId;$objects$jscomp$775_objects_ref_props_77442$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$409$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$389$$)],
function(){return $app$main$ui$workspace$sidebar$options$make_page_objects_ref$$($file_id$jscomp$389$$,$page_id$jscomp$409$$)});$objects$jscomp$775_objects_ref_props_77442$$=$APP.$rumext$v2$deref$$($objects$jscomp$775_objects_ref_props_77442$$);return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$options$options_content_STAR_$$,{objects:$objects$jscomp$775_objects_ref_props_77442$$,selected:$selected$jscomp$169$$,fileId:$file_id$jscomp$389$$,pageId:$page_id$jscomp$409$$,section:$section$jscomp$30$$,
onChangeSection:$on_change_section$jscomp$2$$,onExpand:$on_expand$jscomp$3$$})});var $app$main$ui$workspace$sidebar$sitemap$ref_COLON_file_with_pages$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($map__77427__$1_p__77426$$){$map__77427__$1_p__77426$$=$APP.$cljs$core$__destructure_map$$($map__77427__$1_p__77426$$);var $data$jscomp$477$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77427__$1_p__77426$$,$APP.$cljs$cst$142$data$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($map__77427__$1_p__77426$$,
$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2190$pages$$,$APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$477$$))},$APP.$app$main$refs$file$$,$APP.$cljs$core$_EQ_$$);var $app$main$ui$workspace$sidebar$versions$versions$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4826$workspace_versions$$,$APP.$app$main$store$state$$);var $app$main$ui$workspace$tokens$management$context_menu$shape_attribute_actions_map$$=function(){function $line_height$jscomp$21$$($p1__77568_SHARP_$$){return $app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1749$line_height$$,null],null),null),"Line Height",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p1__77568_SHARP_$$,$APP.$cljs$cst$4482$on_update_shape$$,
$APP.$app$main$data$workspace$tokens$application$update_line_height$$))}var $stroke_width$jscomp$10$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1639$stroke_width$$,null],null),null),"Stroke Width"),$font_size$jscomp$13$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,
new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1744$font_size$$,null],null),null),"Font Size"),$letter_spacing$jscomp$8$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1750$letter_spacing$$,null],null),null),"Letter Spacing"),$font_family$jscomp$9$$=
$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1742$font_family$$,null],null),null),"Font Family"),$text_case$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1964$text_case$$,null],null),null),"Text Case"),$text_decoration$jscomp$5$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1752$text_decoration$$,null],null),null),"Text Decoration"),$font_weight$jscomp$10$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,
new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1745$font_weight$$,null],null),null),"Font Weight"),$typography$jscomp$38$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1966$typography$$,null],null),null),"Typography"),$border_radius$$=
$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$tokens$management$context_menu$all_or_separate_actions$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$cljs$cst$5511$attribute_labels$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1630$r1$$,"Top Left",$APP.$cljs$cst$1631$r2$$,"Top Right",$APP.$cljs$cst$1633$r4$$,"Bottom Left",$APP.$cljs$cst$1632$r3$$,"Bottom Right"],null),$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.radius"),
$cljs$cst$5512$on_update_shape_all$$,$APP.$app$main$data$workspace$tokens$application$update_shape_radius_all$$,$APP.$cljs$cst$4482$on_update_shape$$,$app$main$ui$workspace$tokens$management$context_menu$update_shape_radius_for_corners$$],null));return $APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1749$line_height$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1772$rotation$$,$APP.$cljs$cst$1284$color$$,$APP.$cljs$cst$1963$number$$,$APP.$cljs$cst$1744$font_size$$,$APP.$cljs$cst$1745$font_weight$$,
$APP.$cljs$cst$1964$text_case$$,$APP.$cljs$cst$1965$dimensions$$,$APP.$cljs$cst$1639$stroke_width$$,$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1966$typography$$,$APP.$cljs$cst$1752$text_decoration$$,$APP.$cljs$cst$1750$letter_spacing$$,$APP.$cljs$cst$1638$shadow$$,$APP.$cljs$cst$1967$border_radius$$,$APP.$cljs$cst$1742$font_family$$,$APP.$cljs$cst$1968$spacing$$],[$line_height$jscomp$21$$,$app$main$ui$workspace$tokens$management$context_menu$sizing_attribute_actions$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,
new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1772$rotation$$,null],null),null),"Rotation"),function($context_data$jscomp$2$$){return $APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1392$fill$$,null],null),null),"Fill",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($context_data$jscomp$2$$,
$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_fill$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.color")]))),$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1723$stroke_color$$,null],null),null),
"Stroke",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($context_data$jscomp$2$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_stroke_color$$)))},function($JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$){var $JSCompiler_temp_const$jscomp$1792$$=$APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$,$JSCompiler_temp_const$jscomp$1791$$=$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1772$rotation$$,null],null),null),"Rotation",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_rotation$$));$JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$=$line_height$jscomp$21$$($JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$);
$JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$=$APP.$cljs$core$seq$$($JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$)?$JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$:null;return $JSCompiler_temp_const$jscomp$1792$$.call($APP.$cljs$core$concat$$,$JSCompiler_temp_const$jscomp$1791$$,$JSCompiler_inline_result$jscomp$1794_context_data$jscomp$3_line_height__$1$jscomp$inline_8673$$)},
$font_size$jscomp$13$$,$font_weight$jscomp$10$$,$text_case$$,function($context_data$jscomp$4$$){return $app$main$ui$workspace$tokens$management$context_menu$clean_separators$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$seq$$($app$main$ui$workspace$tokens$management$context_menu$sizing_attribute_actions$$($context_data$jscomp$4$$))?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$937$title$$,"Sizing",$cljs$cst$5517$submenu$$,$APP.$cljs$cst$1962$sizing$$],null)],null):null,$APP.$cljs$core$seq$$($app$main$ui$workspace$tokens$management$context_menu$spacing_attribute_actions$$($context_data$jscomp$4$$))?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,"Spacing",$cljs$cst$5517$submenu$$,$APP.$cljs$cst$1968$spacing$$],null)],null):null,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$APP.$cljs$core$seq$$($border_radius$$($context_data$jscomp$4$$))?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$937$title$$,"Border Radius",$cljs$cst$5517$submenu$$,$APP.$cljs$cst$1967$border_radius$$],null)],null):null,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$1461$separator$$],null),$stroke_width$jscomp$10$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($context_data$jscomp$4$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_stroke_width$$)),new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1461$separator$$],null),$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1499$x$$,null],null),null),"X",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($context_data$jscomp$4$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_shape_position$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$273$hint$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.axis")]))),$app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$(new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1500$y$$,null],null),null),"Y",$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($context_data$jscomp$4$$,$APP.$cljs$cst$4482$on_update_shape$$,$APP.$app$main$data$workspace$tokens$application$update_shape_position$$))])))},$stroke_width$jscomp$10$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1718$opacity$$,null],null),null),"Opacity"),$typography$jscomp$38$$,$text_decoration$jscomp$5$$,$letter_spacing$jscomp$8$$,$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$tokens$management$context_menu$generic_attribute_actions$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1638$shadow$$,null],null),null),"Shadow"),$border_radius$$,$font_family$jscomp$9$$,
$app$main$ui$workspace$tokens$management$context_menu$spacing_attribute_actions$$])}(),$app$main$ui$workspace$tokens$management$context_menu$tokens_menu_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2168$token_context_menu$$,$APP.$app$main$refs$workspace_tokens$$),$app$main$ui$workspace$tokens$management$context_menu$menu_tree$$=function $app$main$ui$workspace$tokens$management$context_menu$menu_tree$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$){$entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$=
$APP.$rumext$v2$util$wrap_props$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$);var $map__77591__$1$$=$APP.$cljs$core$__destructure_map$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$);$entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77591__$1$$,$APP.$cljs$cst$5084$selected_shapes$$);var $submenu_offset$jscomp$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77591__$1$$,$cljs$cst$5520$submenu_offset$$),$type$jscomp$654$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77591__$1$$,$APP.$cljs$cst$139$type$$),$errors$jscomp$29$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77591__$1$$,$APP.$cljs$cst$568$errors$$),$shape_types$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$,
$entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$)),$editing_ref_not_editing_QMARK_$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$);$editing_ref_not_editing_QMARK_$$=$APP.$cljs$core$empty_QMARK_$$($editing_ref_not_editing_QMARK_$$);$entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$=$errors$jscomp$29$$==null&&$APP.$cljs$core$seq$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$)&&
$editing_ref_not_editing_QMARK_$$&&$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($shape_types$$,new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1592$group$$,null],null),null))?$type$jscomp$654$$!=null?$app$main$ui$workspace$tokens$management$context_menu$menu_actions$$($map__77591__$1$$):$app$main$ui$workspace$tokens$management$context_menu$selection_actions$$($map__77591__$1$$):$app$main$ui$workspace$tokens$management$context_menu$default_actions$$($map__77591__$1$$);
$entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$=$app$main$ui$workspace$tokens$management$context_menu$clean_separators$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$);return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$203$$,$map__77597_map__77597__$1_p__77593$$){var $index$jscomp$538$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__77597_map__77597__$1_p__77593$$,
0,null);$map__77597_map__77597__$1_p__77593$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($map__77597_map__77597__$1_p__77593$$,1,null);$map__77597_map__77597__$1_p__77593$$=$APP.$cljs$core$__destructure_map$$($map__77597_map__77597__$1_p__77593$$);var $title$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,$APP.$cljs$cst$937$title$$),$action$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,
$APP.$cljs$cst$2627$action$$),$selected_QMARK_$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,$APP.$cljs$cst$5510$selected_QMARK_$$),$hint$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,$APP.$cljs$cst$273$hint$$),$submenu$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,$cljs$cst$5517$submenu$$),$no_selectable$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77597_map__77597__$1_p__77593$$,
$cljs$cst$5519$no_selectable$$);$out_arr__44057__auto__$jscomp$203$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$Fragment$$,{children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1461$separator$$,$map__77597_map__77597__$1_p__77593$$)?(0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_workspace_tokens_management_context_menu__separator"}):$APP.$cljs$core$truth_$$($submenu$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$context_menu$menu_entry$$,{title:$title$jscomp$45$$,
hint:$hint$jscomp$20$$,"no-selectable":!0,"submenu-offset":$submenu_offset$jscomp$1$$,children:(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$tokens$management$context_menu$menu_tree$$,$APP.$rumext$v2$util$map__GT_obj$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__77591__$1$$,$APP.$cljs$cst$139$type$$,$submenu$$)))}):(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$context_menu$menu_entry$$,{title:$title$jscomp$45$$,"on-click":$action$jscomp$6$$,hint:$hint$jscomp$20$$,
"no-selectable":$no_selectable$jscomp$1$$,"selected?":$selected_QMARK_$jscomp$11$$})},""+($title$jscomp$45$$??"")+" "+($index$jscomp$538$$??"")));return $out_arr__44057__auto__$jscomp$203$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($entries$jscomp$44_entries__$1$jscomp$6_map__77591_props_77590_selected_shapes$jscomp$18$$))};$APP.$cljs$core$set$$($APP.$cljs$core$list$$("token-status-partial","token-status-full","token-status-non-applied"));var $app$main$ui$workspace$tokens$management$token_pill$attribute_dictionary$$=$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1089$p2$$,$APP.$cljs$cst$1672$p4$$,$APP.$cljs$cst$1671$p3$$,$APP.$cljs$cst$1772$rotation$$,$APP.$cljs$cst$1723$stroke_color$$,$APP.$cljs$cst$1392$fill$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1091$p1$$,$APP.$cljs$cst$1690$layout_item_max_w$$,$APP.$cljs$cst$1666$column_gap$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1639$stroke_width$$,
$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1718$opacity$$,$APP.$cljs$cst$1691$layout_item_min_w$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1689$layout_item_min_h$$,$APP.$cljs$cst$1688$layout_item_max_h$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1665$row_gap$$],"Y;Right;Left;Bottom;Rotation;Stroke Color;Fill;Width;Top Right;Top;Max Width;Column Gap;Bottom Right;Stroke Width;Top Left;Opacity;Min Width;X;Bottom Left;Min Height;Max Height;Height;Row Gap".split(";")),$app$main$ui$workspace$tokens$management$token_pill$dimensions_dictionary$$=
$APP.$cljs$core$PersistentHashMap$fromArrays$$([$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1089$p2$$,$APP.$cljs$cst$1672$p4$$,$APP.$cljs$cst$1671$p3$$,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$1631$r2$$,$APP.$cljs$cst$1091$p1$$,$APP.$cljs$cst$1690$layout_item_max_w$$,$APP.$cljs$cst$1666$column_gap$$,$APP.$cljs$cst$1632$r3$$,$APP.$cljs$cst$1639$stroke_width$$,$APP.$cljs$cst$1630$r1$$,$APP.$cljs$cst$1691$layout_item_min_w$$,$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1633$r4$$,$APP.$cljs$cst$1689$layout_item_min_h$$,
$APP.$cljs$cst$1688$layout_item_max_h$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1665$row_gap$$],[$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1968$spacing$$,$APP.$cljs$cst$1968$spacing$$,$APP.$cljs$cst$1968$spacing$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1967$border_radius$$,$APP.$cljs$cst$1968$spacing$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1968$spacing$$,$APP.$cljs$cst$1967$border_radius$$,$APP.$cljs$cst$1639$stroke_width$$,$APP.$cljs$cst$1967$border_radius$$,$APP.$cljs$cst$1962$sizing$$,
$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1967$border_radius$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1962$sizing$$,$APP.$cljs$cst$1968$spacing$$]),$app$main$ui$workspace$tokens$management$token_pill$xf_COLON_map_id$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$),$app$main$ui$workspace$tokens$management$token_pill$token_types_with_status_icon$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,
8,[$APP.$cljs$cst$1962$sizing$$,null,$APP.$cljs$cst$1772$rotation$$,null,$APP.$cljs$cst$1284$color$$,null,$APP.$cljs$cst$1965$dimensions$$,null,$APP.$cljs$cst$1639$stroke_width$$,null,$APP.$cljs$cst$1718$opacity$$,null,$APP.$cljs$cst$1967$border_radius$$,null,$APP.$cljs$cst$1968$spacing$$,null],null),null),$app$main$ui$workspace$tokens$management$token_pill$token_pill_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($has_selected_QMARK__map__77609__$1_props_77606$$){var $active_theme_tokens$$=
$has_selected_QMARK__map__77609__$1_props_77606$$.activeThemeTokens,$selected_shapes$jscomp$22$$=$has_selected_QMARK__map__77609__$1_props_77606$$.selectedShapes,$disabled_QMARK_$jscomp$7_is_selected_inside_layout$jscomp$2$$=$has_selected_QMARK__map__77609__$1_props_77606$$.isSelectedInsideLayout,$on_context_menu$jscomp$13$$=$has_selected_QMARK__map__77609__$1_props_77606$$.onContextMenu,$on_click$jscomp$49$$=$has_selected_QMARK__map__77609__$1_props_77606$$.onClick,$token$jscomp$144$$=$has_selected_QMARK__map__77609__$1_props_77606$$.token;
$has_selected_QMARK__map__77609__$1_props_77606$$=$APP.$cljs$core$__destructure_map$$($token$jscomp$144$$);var $name$jscomp$436$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_selected_QMARK__map__77609__$1_props_77606$$,$APP.$cljs$cst$723$name$$),$errors_QMARK_$jscomp$1_value$jscomp$907$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_selected_QMARK__map__77609__$1_props_77606$$,$APP.$cljs$cst$260$value$$),$type$jscomp$656$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($has_selected_QMARK__map__77609__$1_props_77606$$,
$APP.$cljs$cst$139$type$$),$resolved_token$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_tokens$$,$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$144$$)),$errors$jscomp$31$$=$APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($resolved_token$jscomp$17$$);$has_selected_QMARK__map__77609__$1_props_77606$$=$APP.$cljs$core$count$$($selected_shapes$jscomp$22$$)>0;var $color$jscomp$184_is_reference_QMARK_$$=$APP.$cuerdas$core$includes_QMARK_$$($APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$144$$),
"{"),$contains_path_QMARK_$$=$APP.$cuerdas$core$includes_QMARK_$$($name$jscomp$436$$,"."),$attributes$jscomp$83_status_icon_QMARK_$$=function(){var $$$jscomp$35$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$workspace$tokens$application$token_properties$$,$type$jscomp$656$$);return $APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4491$all_attributes$$.$cljs$core$IFn$_invoke$arity$1$($$$jscomp$35$$),$APP.$cljs$cst$1978$attributes$$.$cljs$core$IFn$_invoke$arity$1$($$$jscomp$35$$))}(),
$full_applied_QMARK_$$=$has_selected_QMARK__map__77609__$1_props_77606$$?$app$main$ui$workspace$tokens$management$token_pill$applied_all_attributes_QMARK_$$($token$jscomp$144$$,$selected_shapes$jscomp$22$$,$attributes$jscomp$83_status_icon_QMARK_$$):!0,$applied_QMARK__token_status_id$$=$has_selected_QMARK__map__77609__$1_props_77606$$?$APP.$app$common$files$tokens$shapes_token_applied_QMARK_$$($token$jscomp$144$$,$selected_shapes$jscomp$22$$,$attributes$jscomp$83_status_icon_QMARK_$$):!1,$half_applied_QMARK_$$=
$APP.$cljs$core$truth_$$($applied_QMARK__token_status_id$$)?!$full_applied_QMARK_$$:$applied_QMARK__token_status_id$$;$disabled_QMARK_$jscomp$7_is_selected_inside_layout$jscomp$2$$=$has_selected_QMARK__map__77609__$1_props_77606$$&&$APP.$cljs$core$not$$($applied_QMARK__token_status_id$$)&&$APP.$cljs$core$not$$($half_applied_QMARK_$$)&&$APP.$cljs$core$not$$($app$main$ui$workspace$tokens$management$token_pill$attributes_match_selection_QMARK_$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($selected_shapes$jscomp$22$$,
$attributes$jscomp$83_status_icon_QMARK_$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$cljs$cst$5525$selected_inside_layout_QMARK_$$,$disabled_QMARK_$jscomp$7_is_selected_inside_layout$jscomp$2$$],null)])));var $can_edit_QMARK_$jscomp$3$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($APP.$app$main$refs$permissions$$)),$is_viewer_QMARK_$$=$APP.$cljs$core$not$$($can_edit_QMARK_$jscomp$3$$),
$ref_not_in_active_set$jscomp$1$$=$APP.$cljs$core$contains_QMARK_$$($APP.$app$config$flags$$,$APP.$cljs$cst$4463$tokenscript$$)?$APP.$cljs$core$seq$$($APP.$cljs$cst$568$errors$$.$cljs$core$IFn$_invoke$arity$1$($resolved_token$jscomp$17$$)):$APP.$cljs$core$truth_$$($color$jscomp$184_is_reference_QMARK_$$)?!$app$main$ui$workspace$tokens$management$token_pill$contains_reference_value_QMARK_$$($errors_QMARK_$jscomp$1_value$jscomp$907$$,$active_theme_tokens$$):$color$jscomp$184_is_reference_QMARK_$$,$no_valid_value$jscomp$1$$=
$APP.$cljs$core$seq$$($errors$jscomp$31$$);$errors_QMARK_$jscomp$1_value$jscomp$907$$=$APP.$cljs$core$truth_$$($ref_not_in_active_set$jscomp$1$$)?$ref_not_in_active_set$jscomp$1$$:$no_valid_value$jscomp$1$$;$color$jscomp$184_is_reference_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$144$$),$APP.$cljs$cst$1284$color$$)?function(){var $or__5025__auto__$jscomp$1151$$=$app$main$data$workspace$tokens$color$resolved_token_bullet_color$$($resolved_token$jscomp$17$$);
return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1151$$)?$or__5025__auto__$jscomp$1151$$:$app$main$data$workspace$tokens$color$resolved_token_bullet_color$$($token$jscomp$144$$)}():null;$attributes$jscomp$83_status_icon_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($app$main$ui$workspace$tokens$management$token_pill$token_types_with_status_icon$$,$type$jscomp$656$$);var $on_click__$1$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($errors_QMARK_$jscomp$1_value$jscomp$907$$),
$APP.$rumext$v2$adapt$$($on_click$jscomp$49$$),$APP.$rumext$v2$adapt$$($token$jscomp$144$$)],function($event$jscomp$541$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$541$$);var $and__5023__auto__$jscomp$inline_8681$$=$APP.$cljs$core$not$$($APP.$cljs$core$seq$$($errors$jscomp$31$$));return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_8681$$?$on_click$jscomp$49$$:$and__5023__auto__$jscomp$inline_8681$$)?$on_click$jscomp$49$$.$cljs$core$IFn$_invoke$arity$2$?$on_click$jscomp$49$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$541$$,
$token$jscomp$144$$):$on_click$jscomp$49$$($event$jscomp$541$$,$token$jscomp$144$$):null});$applied_QMARK__token_status_id$$=$APP.$cljs$core$truth_$$($half_applied_QMARK_$$)?"token-status-partial":$full_applied_QMARK_$$?"token-status-full":"token-status-non-applied";var $on_context_menu__$1$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($can_edit_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($on_context_menu$jscomp$13$$),$APP.$rumext$v2$adapt$$($token$jscomp$144$$)],
function($e$jscomp$349$$){$APP.$app$util$dom$stop_propagation$$($e$jscomp$349$$);return $APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$3$$)?$on_context_menu$jscomp$13$$.$cljs$core$IFn$_invoke$arity$2$?$on_context_menu$jscomp$13$$.$cljs$core$IFn$_invoke$arity$2$($e$jscomp$349$$,$token$jscomp$144$$):$on_context_menu$jscomp$13$$($e$jscomp$349$$,$token$jscomp$144$$):null}),$on_click__$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($errors_QMARK_$jscomp$1_value$jscomp$907$$),
$APP.$rumext$v2$adapt$$($on_click__$1$jscomp$3$$)],function($event$jscomp$542$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$542$$);var $JSCompiler_inline_result$jscomp$1799_and__5023__auto____$1$jscomp$inline_8683$$=$APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$3$$)?($JSCompiler_inline_result$jscomp$1799_and__5023__auto____$1$jscomp$inline_8683$$=$APP.$cljs$core$not$$($APP.$cljs$core$seq$$($errors$jscomp$31$$)))?$on_click__$1$jscomp$3$$:$JSCompiler_inline_result$jscomp$1799_and__5023__auto____$1$jscomp$inline_8683$$:
$can_edit_QMARK_$jscomp$3$$;return $APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1799_and__5023__auto____$1$jscomp$inline_8683$$)?$on_click__$1$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$?$on_click__$1$jscomp$3$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$542$$):$on_click__$1$jscomp$3$$($event$jscomp$542$$):null}),$on_hover$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_shapes$jscomp$22$$),$APP.$rumext$v2$adapt$$($is_viewer_QMARK_$$),
$APP.$rumext$v2$adapt$$($active_theme_tokens$$),$APP.$rumext$v2$adapt$$($token$jscomp$144$$),$APP.$rumext$v2$adapt$$($half_applied_QMARK_$$),$APP.$rumext$v2$adapt$$($no_valid_value$jscomp$1$$),$APP.$rumext$v2$adapt$$($ref_not_in_active_set$jscomp$1$$)],function($event$jscomp$543_node$jscomp$424$$){$event$jscomp$543_node$jscomp$424$$=$APP.$app$util$dom$get_current_target$$($event$jscomp$543_node$jscomp$424$$);var $map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($active_theme_tokens$$,
$name$jscomp$436$$),$app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$=$APP.$cljs$core$first$$($selected_shapes$jscomp$22$$),$map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$=$APP.$cljs$core$__destructure_map$$($token$jscomp$144$$),$base_title$jscomp$inline_12972_name$jscomp$inline_12957$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$,$APP.$cljs$cst$723$name$$);
var $title$jscomp$47_type$jscomp$inline_12958$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$,$APP.$cljs$cst$139$type$$);var $resolved_value$jscomp$inline_12959_resolved_value__$1$jscomp$inline_12962$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$,$APP.$cljs$cst$4441$resolved_value$$);$map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$,
$APP.$cljs$cst$260$value$$);var $applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$=$APP.$cljs$cst$4441$resolved_value$$.$cljs$core$IFn$_invoke$arity$1$($map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$);$resolved_value$jscomp$inline_12959_resolved_value__$1$jscomp$inline_12962$$=$APP.$cljs$core$truth_$$($applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$)?
$applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$:$resolved_value$jscomp$inline_12959_resolved_value__$1$jscomp$inline_12962$$;$map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$=$app$main$data$workspace$tokens$application$get_token_properties$$($map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$);$applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$=
$APP.$cljs$core$__destructure_map$$($map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$);$map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$,$APP.$cljs$cst$937$title$$);var $app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$=
$APP.$cljs$cst$1857$applied_tokens$$.$cljs$core$IFn$_invoke$arity$1$($app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$);$app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$=$APP.$cljs$core$set$$($APP.$cljs$core$vals$$($app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$));$app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$=
$APP.$cljs$core$keys$$($app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$);$app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$=$APP.$cljs$core$contains_QMARK_$$($app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$,$base_title$jscomp$inline_12972_name$jscomp$inline_12957$$);$applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$=
$APP.$cljs$core$truth_$$($half_applied_QMARK_$$)?$app$main$ui$workspace$tokens$management$token_pill$partially_applied_attr$$($app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$,$app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$,$applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$):$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.all");
$app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$=$APP.$cljs$core$group_by$$($app$main$ui$workspace$tokens$management$token_pill$dimensions_dictionary$$,$app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$);$base_title$jscomp$inline_12972_name$jscomp$inline_12957$$="Token: "+($base_title$jscomp$inline_12972_name$jscomp$inline_12957$$??"")+"\n"+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.original-value",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$format$format_token_value$$($map__77588__$1$jscomp$inline_12956_value$jscomp$inline_12960$$)]))??"")+"\n"+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.tokens.resolved-value",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$tokens$format$format_token_value$$($resolved_value$jscomp$inline_12959_resolved_value__$1$jscomp$inline_12962$$)]))??
"")+(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$144$$),$APP.$cljs$cst$1963$number$$)?"\n"+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.more-options")??""):null)??"");$title$jscomp$47_type$jscomp$inline_12958$$=$APP.$cljs$core$truth_$$($ref_not_in_active_set$jscomp$1$$)?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.ref-not-valid"):$APP.$cljs$core$truth_$$($no_valid_value$jscomp$1$$)?
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.value-not-valid"):$APP.$cljs$core$truth_$$($app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$?$is_viewer_QMARK_$$:$app_token_vals$jscomp$inline_12967_is_applied_QMARK_$jscomp$inline_12969_shape$jscomp$inline_12950$$)?$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$("\n",new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$base_title$jscomp$inline_12972_name$jscomp$inline_12957$$,
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.applied-to"),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1965$dimensions$$,$title$jscomp$47_type$jscomp$inline_12958$$)?$app$main$ui$workspace$tokens$management$token_pill$translate_and_format$$($app_token_keys$jscomp$inline_12968_applied_tokens$jscomp$inline_12966_grouped_values$jscomp$inline_12971$$):["- ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__77589$jscomp$inline_12963_theme_token$jscomp$1_title$jscomp$inline_12965$$),
": ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($applied_to$jscomp$inline_12970_map__77589__$1$jscomp$inline_12964_resolved_value_theme$jscomp$inline_12961$$)].join("")],null)):$base_title$jscomp$inline_12972_name$jscomp$inline_12957$$;return $APP.$app$util$dom$set_attribute_BANG_$$($event$jscomp$543_node$jscomp$424$$,"title",$title$jscomp$47_type$jscomp$inline_12958$$)});return(0,$APP.$rumext$v2$jsxs$$)("button",{type:"button",onFocus:$on_hover$$,onClick:$on_click__$2$$,onMouseEnter:$on_hover$$,
onContextMenu:$on_context_menu__$1$jscomp$2$$,className:"main_ui_workspace_tokens_management_token_pill__token-pill "+(!$attributes$jscomp$83_status_icon_QMARK_$$&&$APP.$cljs$core$not$$($errors_QMARK_$jscomp$1_value$jscomp$907$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-no-icon":"")+" "+($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$3$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-default":"")+" "+($disabled_QMARK_$jscomp$7_is_selected_inside_layout$jscomp$2$$?
"main_ui_workspace_tokens_management_token_pill__token-pill-disabled":"")+" "+($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$3$$)?$has_selected_QMARK__map__77609__$1_props_77606$$?$APP.$cljs$core$truth_$$($half_applied_QMARK_$$)?$half_applied_QMARK_$$:$full_applied_QMARK_$$:$has_selected_QMARK__map__77609__$1_props_77606$$:$can_edit_QMARK_$jscomp$3$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-applied":"")+" "+($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($can_edit_QMARK_$jscomp$3$$)?
$errors_QMARK_$jscomp$1_value$jscomp$907$$:$can_edit_QMARK_$jscomp$3$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-invalid":"")+" "+($APP.$cljs$core$truth_$$($full_applied_QMARK_$$?$APP.$cljs$core$truth_$$($errors_QMARK_$jscomp$1_value$jscomp$907$$)?$can_edit_QMARK_$jscomp$3$$:$errors_QMARK_$jscomp$1_value$jscomp$907$$:$full_applied_QMARK_$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-invalid-applied":"")+" "+($is_viewer_QMARK_$$?"main_ui_workspace_tokens_management_token_pill__token-pill-viewer":
"")+" "+($APP.$cljs$core$truth_$$($is_viewer_QMARK_$$?$has_selected_QMARK__map__77609__$1_props_77606$$?$APP.$cljs$core$truth_$$($half_applied_QMARK_$$)?$half_applied_QMARK_$$:$full_applied_QMARK_$$:$has_selected_QMARK__map__77609__$1_props_77606$$:$is_viewer_QMARK_$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-applied-viewer":"")+" "+($APP.$cljs$core$truth_$$($is_viewer_QMARK_$$?$errors_QMARK_$jscomp$1_value$jscomp$907$$:$is_viewer_QMARK_$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-invalid-viewer":
"")+" "+($APP.$cljs$core$truth_$$($is_viewer_QMARK_$$?$full_applied_QMARK_$$?$errors_QMARK_$jscomp$1_value$jscomp$907$$:$full_applied_QMARK_$$:$is_viewer_QMARK_$$)?"main_ui_workspace_tokens_management_token_pill__token-pill-invalid-applied-viewer":""),children:[$APP.$cljs$core$truth_$$($errors_QMARK_$jscomp$1_value$jscomp$907$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"broken-link",className:"main_ui_workspace_tokens_management_token_pill__token-pill-icon",
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.tokens.missing-reference")}):$APP.$cljs$core$truth_$$($color$jscomp$184_is_reference_QMARK_$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$utilities$swatch$swatch_STAR_$$,{background:$color$jscomp$184_is_reference_QMARK_$$,size:"small"}):$attributes$jscomp$83_status_icon_QMARK_$$?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$foundations$utilities$token$token_status$token_status_icon_STAR_$$,{iconId:$applied_QMARK__token_status_id$$,
className:"main_ui_workspace_tokens_management_token_pill__token-pill-icon"}):null,$APP.$cljs$core$truth_$$($contains_path_QMARK_$$)?function(){var $last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$=$APP.$cuerdas$core$last_index_of$cljs$0core$0IFn$0_invoke$0arity$02$$($name$jscomp$436$$,".");$last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$=$APP.$cljs$core$truth_$$($last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,
$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$3$($name$jscomp$436$$,0,$last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$+1),$APP.$cljs$core$subs$$.$cljs$core$IFn$_invoke$arity$2$($name$jscomp$436$$,$last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$+1)],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$name$jscomp$436$$,""],null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$,
0,null);$last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$,1,null);return(0,$APP.$rumext$v2$jsx$$)("span",{"aria-label":$name$jscomp$436$$,className:"main_ui_workspace_tokens_management_token_pill__divided-name-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_workspace_tokens_management_token_pill__last-name-wrapper",children:$last_part_temp__5823__auto__$jscomp$inline_8686_vec__77610$$})})}():
(0,$APP.$rumext$v2$jsx$$)("span",{"aria-label":$name$jscomp$436$$,className:"main_ui_workspace_tokens_management_token_pill__name-wrapper",children:$name$jscomp$436$$})]})});var $app$main$ui$workspace$tokens$management$token_tree$folder_node_STAR_$$=function $app$main$ui$workspace$tokens$management$token_tree$folder_node_STAR_$$($full_path$jscomp$2_is_folder_expanded_props_77616$$){var $active_theme_tokens$jscomp$1$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.activeThemeTokens,$selected_shapes$jscomp$23$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.selectedShapes,$is_selected_inside_layout$jscomp$3$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.isSelectedInsideLayout,
$unfolded_token_paths$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.unfoldedTokenPaths,$on_token_pill_click$jscomp$3$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.onTokenPillClick,$selected_token_set_id$jscomp$2$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.selectedTokenSetId,$type$jscomp$657$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.type,$node$jscomp$425$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.node,$on_pill_context_menu$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.onPillContextMenu,
$on_node_context_menu$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.onNodeContextMenu,$tokens_lib$jscomp$36$$=$full_path$jscomp$2_is_folder_expanded_props_77616$$.tokensLib;$full_path$jscomp$2_is_folder_expanded_props_77616$$=[$APP.$cljs$core$name$$($type$jscomp$657$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$))].join("");$full_path$jscomp$2_is_folder_expanded_props_77616$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$set$$($APP.$cljs$core$truth_$$($unfolded_token_paths$$)?
$unfolded_token_paths$$:$APP.$cljs$core$PersistentVector$EMPTY$$),$full_path$jscomp$2_is_folder_expanded_props_77616$$);var $swap_folder_expanded$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$)),$APP.$rumext$v2$adapt$$($type$jscomp$657$$)],function(){var $path$jscomp$276$$=[$APP.$cljs$core$name$$($type$jscomp$657$$),".",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$))].join("");
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$tokens$library_edit$toggle_token_path$$($path$jscomp$276$$))}),$node_context_menu_prep$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_node_context_menu$$),$APP.$rumext$v2$adapt$$($node$jscomp$425$$)],function($event$jscomp$544$$){return $APP.$cljs$core$truth_$$($on_node_context_menu$$)?$on_node_context_menu$$.$cljs$core$IFn$_invoke$arity$2$?$on_node_context_menu$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$544$$,
$node$jscomp$425$$):$on_node_context_menu$$($event$jscomp$544$$,$node$jscomp$425$$):null});return(0,$APP.$rumext$v2$jsxs$$)("li",{className:"main_ui_workspace_tokens_management_token_tree__folder-node",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$ds$layers$layer_button$layer_button_STAR_$$,{label:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$),expanded:$full_path$jscomp$2_is_folder_expanded_props_77616$$,"aria-expanded":$full_path$jscomp$2_is_folder_expanded_props_77616$$,
"aria-controls":["folder-children-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$))].join(""),isExpandable:$APP.$cljs$core$not$$($APP.$cljs$cst$1983$leaf$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$)),onToggleExpand:$swap_folder_expanded$$,onContextMenu:$node_context_menu_prep$$}),$full_path$jscomp$2_is_folder_expanded_props_77616$$?function(){var $children_fn$$=$APP.$cljs$cst$1984$children_fn$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$);
return(0,$APP.$rumext$v2$jsx$$)("div",{id:["folder-children-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($node$jscomp$425$$))].join(""),className:"main_ui_workspace_tokens_management_token_tree__folder-children-wrapper",children:$APP.$cljs$core$truth_$$($children_fn$$)?function(){var $children$jscomp$307$$=$children_fn$$.$cljs$core$IFn$_invoke$arity$0$?$children_fn$$.$cljs$core$IFn$_invoke$arity$0$():$children_fn$$();return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$204$$,
$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$){var $JSCompiler_temp_const$jscomp$1800$$=$out_arr__44057__auto__$jscomp$204$$.push;if($APP.$cljs$core$not$$($APP.$cljs$cst$1983$leaf$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$)))$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$=(0,$APP.$rumext$v2$jsx$$)("ul",{className:"main_ui_workspace_tokens_management_token_tree__node-parent",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$token_tree$folder_node_STAR_$$,
{tokensLib:$tokens_lib$jscomp$36$$,onPillContextMenu:$on_pill_context_menu$$,onTokenPillClick:$on_token_pill_click$jscomp$3$$,onNodeContextMenu:$on_node_context_menu$$,isSelectedInsideLayout:$is_selected_inside_layout$jscomp$3$$,unfoldedTokenPaths:$unfolded_token_paths$$,type:$type$jscomp$657$$,activeThemeTokens:$active_theme_tokens$jscomp$1$$,selectedShapes:$selected_shapes$jscomp$23$$,selectedTokenSetId:$selected_token_set_id$jscomp$2$$,node:$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$})},
$APP.$cljs$cst$294$path$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$));else{$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1983$leaf$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$));var $token$jscomp$inline_8689$$=$APP.$app$common$types$tokens_lib$get_token$$($tokens_lib$jscomp$36$$,$selected_token_set_id$jscomp$2$$,
$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$);$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$management$token_pill$token_pill_STAR_$$,{token:$token$jscomp$inline_8689$$,selectedShapes:$selected_shapes$jscomp$23$$,isSelectedInsideLayout:$is_selected_inside_layout$jscomp$3$$,activeThemeTokens:$active_theme_tokens$jscomp$1$$,onClick:$on_token_pill_click$jscomp$3$$,onContextMenu:$on_pill_context_menu$$},
$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$)}$JSCompiler_temp_const$jscomp$1800$$.call($out_arr__44057__auto__$jscomp$204$$,$JSCompiler_temp$jscomp$1802_child$jscomp$122_id$jscomp$inline_8688$$);return $out_arr__44057__auto__$jscomp$204$$},[],$children$jscomp$307$$)}():null})}():null]})};var $app$main$ui$workspace$tokens$management$group$ref_COLON_unfolded_token_paths$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$key$$($APP.$cljs$cst$4521$unfolded_token_paths$$),$APP.$app$main$refs$workspace_tokens$$);var $app$main$ui$workspace$tokens$management$node_context_menu$tokens_node_menu_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4549$token_node_context_menu$$,$APP.$app$main$refs$workspace_tokens$$);var $app$main$ui$workspace$tokens$sets$context_menu$ref_COLON_token_sets_context_menu$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4551$token_set_context_menu$$,$APP.$app$main$refs$workspace_tokens$$);var $app$main$ui$workspace$sidebar$toggle_collapse_left_sidebar$$=$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$main$store$emit_BANG_$$,(0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($cljs$cst$5374$collapse_left_sidebar$$)),$app$main$ui$workspace$sidebar$collapsed_button_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function(){return(0,$APP.$rumext$v2$jsx$$)("div",{id:"left-sidebar-aside","data-width":"0",className:"main_ui_workspace_sidebar__collapsed-sidebar",
children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar__collapsed-title",children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.expand"),onClick:$app$main$ui$workspace$sidebar$toggle_collapse_left_sidebar$$,className:"main_ui_workspace_sidebar__collapsed-button",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$foundations$assets$icon$icon_STAR_$$,{iconId:"arrow",size:"s","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.expand")})})})})}),
$app$main$ui$workspace$sidebar$layers_content_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($props_77724_width$jscomp$202$$){var $layout$jscomp$22$$=$props_77724_width$jscomp$202$$.layout;$props_77724_width$jscomp$202$$=$props_77724_width$jscomp$202$$.width;var $map__77725_on_pointer_down$jscomp$4$$=$APP.$app$main$ui$hooks$resize$use_resize_hook$cljs$0core$0IFn$0_invoke$0arity$08$$($APP.$cljs$cst$3584$sitemap$$,200,38,"0.6",$APP.$cljs$cst$1500$y$$,!1,null,null),$height$jscomp$172_map__77725__$1$$=
$APP.$cljs$core$__destructure_map$$($map__77725_on_pointer_down$jscomp$4$$);$map__77725_on_pointer_down$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$172_map__77725__$1$$,$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$172_map__77725__$1$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$172_map__77725__$1$$,
$APP.$cljs$cst$4380$on_pointer_move$$);$height$jscomp$172_map__77725__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$172_map__77725__$1$$,$APP.$cljs$cst$872$size$$);var $sitemap_collapsed_STAR_$$=$app$main$ui$hooks$use_persisted_state$$($cljs$cst$5537$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_SLASH_sitemap_collapsed$$,!1),$sitemap_collapsed_QMARK_$$=$APP.$cljs$core$_deref$$($sitemap_collapsed_STAR_$$),$on_toggle_sitemap_collapsed$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($sitemap_collapsed_STAR_$$,
$APP.$cljs$core$not$$)});return(0,$APP.$rumext$v2$jsxs$$)("article",{style:{"--height":""+($height$jscomp$172_map__77725__$1$$??"")+"px"},className:"main_ui_workspace_sidebar__layers-tab",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$sitemap$sitemap_STAR_$$,{layout:$layout$jscomp$22$$,height:$APP.$cljs$core$truth_$$($sitemap_collapsed_QMARK_$$)?32:$height$jscomp$172_map__77725__$1$$,collapsed:$sitemap_collapsed_QMARK_$$,onToggleCollapsed:$on_toggle_sitemap_collapsed$$}),$sitemap_collapsed_QMARK_$$?
null:(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$map__77725_on_pointer_down$jscomp$4$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$2$$,onPointerMove:$on_pointer_move$jscomp$3$$,className:"main_ui_workspace_sidebar__resize-area-horiz",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar__resize-handle-horiz"})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers$layers_toolbox_STAR_$$,{sizeParent:$props_77724_width$jscomp$202$$})]})}),$app$main$ui$workspace$sidebar$left_sidebar_STAR_$$=
(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($project$jscomp$22_props_77726$$){var $layout$jscomp$23$$=$project$jscomp$22_props_77726$$.layout,$resolved_active_tokens$jscomp$2$$=$project$jscomp$22_props_77726$$.resolvedActiveTokens,$file$jscomp$170$$=$project$jscomp$22_props_77726$$.file,$page_id$jscomp$413$$=$project$jscomp$22_props_77726$$.pageId,$active_tokens$jscomp$5$$=$project$jscomp$22_props_77726$$.activeTokens,$tokens_lib$jscomp$48$$=$project$jscomp$22_props_77726$$.tokensLib,$options_mode$jscomp$2_shortcuts_QMARK_$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$options_mode_global$$);$project$jscomp$22_props_77726$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$project$$);var $file_id$jscomp$391$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$170$$,$APP.$cljs$cst$266$id$$),$design_tokens_QMARK_$$=$app$main$features$use_feature$$("design-tokens/v1"),$mode_inspect_QMARK_$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($options_mode$jscomp$2_shortcuts_QMARK_$$,$APP.$cljs$cst$3600$inspect$$);
$options_mode$jscomp$2_shortcuts_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$23$$,$APP.$cljs$cst$2634$shortcuts$$);var $show_debug_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$23$$,$cljs$cst$5407$debug_panel$$),$section$jscomp$34$$=$mode_inspect_QMARK_$$||$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$23$$,$APP.$cljs$cst$3596$layers$$)?$APP.$cljs$cst$3596$layers$$:$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$23$$,$APP.$cljs$cst$3588$assets$$)?$APP.$cljs$cst$3588$assets$$:
$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$23$$,$APP.$cljs$cst$2082$tokens$$)?$APP.$cljs$cst$2082$tokens$$:null,$map__77729_on_pointer_down$jscomp$5$$=$APP.$app$main$ui$hooks$resize$use_resize_hook$cljs$0core$0IFn$0_invoke$0arity$08$$($cljs$cst$5538$left_sidebar$$,318,318,500,$APP.$cljs$cst$1499$x$$,!1,$APP.$cljs$cst$257$left$$,null),$map__77729__$1_on_tab_change$$=$APP.$cljs$core$__destructure_map$$($map__77729_on_pointer_down$jscomp$5$$);$map__77729_on_pointer_down$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77729__$1_on_tab_change$$,
$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77729__$1_on_tab_change$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77729__$1_on_tab_change$$,$APP.$cljs$cst$4380$on_pointer_move$$),$parent_ref$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77729__$1_on_tab_change$$,$APP.$cljs$cst$4381$parent_ref$$),
$width$jscomp$203$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__77729__$1_on_tab_change$$,$APP.$cljs$cst$872$size$$);$map__77729__$1_on_tab_change$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($id$jscomp$963$$){$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$1599$layout$$,$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($id$jscomp$963$$)])));
return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$963$$,"tokens")?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"open-tokens-tab"],null))):null});var $tabs$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($mode_inspect_QMARK_$$),
$APP.$rumext$v2$adapt$$($design_tokens_QMARK_$$)],function(){return $mode_inspect_QMARK_$$?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers"),$APP.$cljs$cst$266$id$$,"layers"],null)],null):$design_tokens_QMARK_$$?new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers"),$APP.$cljs$cst$266$id$$,"layers"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.toolbar.assets"),$APP.$cljs$cst$266$id$$,"assets"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,"Tokens",$APP.$cljs$cst$266$id$$,
"tokens"],null)],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.sidebar.layers"),$APP.$cljs$cst$266$id$$,"layers"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.toolbar.assets"),$APP.$cljs$cst$266$id$$,
"assets"],null)],null)}),$aside_class$$="main_ui_workspace_sidebar__left-settings-bar "+($width$jscomp$203$$<=300?"two-row":"")+" "+($width$jscomp$203$$>300&&$width$jscomp$203$$<=400?"three-row":"")+" "+($width$jscomp$203$$>400?"four-row":""),$tabs_action_button$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$collapse_button_STAR_$$,{})});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$sidebar$$),
{value:$APP.$cljs$cst$257$left$$,children:(0,$APP.$rumext$v2$jsxs$$)("aside",{ref:$parent_ref$jscomp$3$$,id:"left-sidebar-aside","data-testid":"left-sidebar","data-width":$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($width$jscomp$203$$),style:{"--left-sidebar-width":""+($width$jscomp$203$$??"")+"px"},className:$aside_class$$,children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$left_header$left_header_STAR_$$,{file:$file$jscomp$170$$,layout:$layout$jscomp$23$$,project:$project$jscomp$22_props_77726$$,
pageId:$page_id$jscomp$413$$,className:"main_ui_workspace_sidebar__left-header"}),(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$map__77729_on_pointer_down$jscomp$5$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$3$$,onPointerMove:$on_pointer_move$jscomp$4$$,className:"main_ui_workspace_sidebar__resize-area"}),$options_mode$jscomp$2_shortcuts_QMARK_$$===!0?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$shortcuts$shortcuts_container_STAR_$$,{className:"main_ui_workspace_sidebar__settings-bar-content"}):
$show_debug_QMARK_$$===!0?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$debug$debug_panel_STAR_$$,{className:"main_ui_workspace_sidebar__settings-bar-content"}):(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_sidebar__settings-bar-content",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,{tabs:$tabs$jscomp$5$$,"default":"layers",selected:$APP.$cljs$core$name$$($section$jscomp$34$$),onChange:$map__77729__$1_on_tab_change$$,className:"main_ui_workspace_sidebar__left-sidebar-tabs",
actionButtonPosition:"start",actionButton:$tabs_action_button$$,children:function(){var $G__77736__$1$$=$section$jscomp$34$$ instanceof $APP.$cljs$core$Keyword$$?$section$jscomp$34$$.$fqn$:null;switch($G__77736__$1$$){case "assets":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$assets$assets_toolbox_STAR_$$,{size:$width$jscomp$203$$-58,fileId:$file_id$jscomp$391$$});case "tokens":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$tokens$sidebar$tokens_sidebar_tab_STAR_$$,{tokensLib:$tokens_lib$jscomp$48$$,
activeTokens:$active_tokens$jscomp$5$$,resolvedActiveTokens:$resolved_active_tokens$jscomp$2$$});case "layers":return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$layers_content_STAR_$$,{layout:$layout$jscomp$23$$,width:$width$jscomp$203$$});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__77736__$1$$)].join(""));}}()})})]})})}),$app$main$ui$workspace$sidebar$history_content_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function(){var $selected_STAR_$jscomp$2$$=
$app$main$ui$hooks$use_persisted_state$$($cljs$cst$5539$app_DOT_main_DOT_ui_DOT_workspace_DOT_sidebar_SLASH_history_sidebar$$,"history"),$selected$jscomp$177$$=$APP.$cljs$core$_deref$$($selected_STAR_$jscomp$2$$),$on_change_tab$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__77738_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($selected_STAR_$jscomp$2$$,$p1__77738_SHARP_$$)}),$tabs$jscomp$6$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.tab.history"),$APP.$cljs$cst$266$id$$,"history"],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.versions.tab.actions"),$APP.$cljs$cst$266$id$$,"actions"],null)],null)}),$button$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([],
function(){return(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$ds$buttons$icon_button$icon_button_STAR_$$,{variant:"ghost","aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),onClick:$app$main$ui$workspace$sidebar$on_close_document_history$$,icon:"close"})});a:switch($selected$jscomp$177$$){case "history":var $JSCompiler_inline_result$jscomp$1819$$=(0,$APP.$rumext$v2$jsx$$)("article",{className:"main_ui_workspace_sidebar__history-tab",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$versions$versions_toolbox_STAR_$$,
{})});break a;case "actions":$JSCompiler_inline_result$jscomp$1819$$=(0,$APP.$rumext$v2$jsx$$)("article",{className:"main_ui_workspace_sidebar__versions-tab",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$sidebar$history$history_toolbox_STAR_$$,{})});break a;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($selected$jscomp$177$$)].join(""));}return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$ds$layout$tab_switcher$tab_switcher_STAR_$$,{tabs:$tabs$jscomp$6$$,
selected:$selected$jscomp$177$$,onChange:$on_change_tab$jscomp$2$$,className:"main_ui_workspace_sidebar__left-sidebar-tabs",actionButtonPosition:"end",actionButton:$button$jscomp$3$$,children:$JSCompiler_inline_result$jscomp$1819$$})});var $shadow$js$shim$module$0$0zip_js$0zip$$=shadow$bridge("@zip.js/zip.js");var $app$util$zip$reader$$=function $app$util$zip$reader$$($G__77727_blob$jscomp$29_breader$$){if($G__77727_blob$jscomp$29_breader$$ instanceof Blob)return $G__77727_blob$jscomp$29_breader$$=new $shadow$js$shim$module$0$0zip_js$0zip$$.BlobReader($G__77727_blob$jscomp$29_breader$$),new $shadow$js$shim$module$0$0zip_js$0zip$$.ZipReader($G__77727_blob$jscomp$29_breader$$);if($G__77727_blob$jscomp$29_breader$$ instanceof Uint8Array)return $G__77727_blob$jscomp$29_breader$$=new $shadow$js$shim$module$0$0zip_js$0zip$$.Uint8ArrayReader($G__77727_blob$jscomp$29_breader$$),
new $shadow$js$shim$module$0$0zip_js$0zip$$.ZipReader($G__77727_blob$jscomp$29_breader$$,{useWebWorkers:!1});if($G__77727_blob$jscomp$29_breader$$ instanceof ArrayBuffer)return $G__77727_blob$jscomp$29_breader$$=new Uint8Array($G__77727_blob$jscomp$29_breader$$),$app$util$zip$reader$$.$cljs$core$IFn$_invoke$arity$1$?$app$util$zip$reader$$.$cljs$core$IFn$_invoke$arity$1$($G__77727_blob$jscomp$29_breader$$):$app$util$zip$reader$$($G__77727_blob$jscomp$29_breader$$);throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$("invalid data received for zip/reader",
$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$270$assertion$$,$cljs$cst$5540$coce$$,$APP.$cljs$cst$1738$invalid_type$$,$APP.$cljs$cst$273$hint$$,"invalid data received for zip/reader"],null),null])),null);};$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$19$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$19$$,$cljs$cst$5534$tokens_SLASH_export$$,$app$main$ui$workspace$tokens$export$0$export_modal_STAR_$$)});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$20$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$20$$,$cljs$cst$5535$tokens_SLASH_import$$,$app$main$ui$workspace$tokens$import$0$import_modal_STAR_$$)});var $app$main$ui$forms$context$$=(0,$APP.$rumext$v2$create_context$$)(null);var $app$main$data$workspace$tokens$remapping$remap_tokens_77949$$;$APP.$app$common$logging$loggers$$.set("app.main.data.workspace.tokens.remapping",$APP.$app$common$logging$level__GT_int$$($APP.$cljs$cst$1160$warn$$));var $app$main$ui$workspace$tokens$management$forms$validators$default_validators$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[function($token$jscomp$167_token_value$jscomp$10$$){$token$jscomp$167_token_value$jscomp$10$$=$APP.$cljs$cst$260$value$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$167_token_value$jscomp$10$$);return $APP.$cljs$core$empty_QMARK_$$($APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($token$jscomp$167_token_value$jscomp$10$$))?
$APP.$app$main$data$workspace$tokens$errors$get_error_code$$($APP.$cljs$cst$4416$error_DOT_token_SLASH_empty_input$$):null},$app$main$ui$workspace$tokens$management$forms$validators$check_self_reference$$],null);var $app$main$ui$workspace$tokens$management$forms$shadow$default_token_shadow$$=new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1634$offset_x$$,"4",$APP.$cljs$cst$1635$offset_y$$,"4",$APP.$cljs$cst$1637$blur$$,"4",$APP.$cljs$cst$1636$spread$$,"0"],null);$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$21$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$21$$,$cljs$cst$5579$tokens_SLASH_boolean$$,$app$main$ui$workspace$tokens$management$forms$modals$boolean_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$22$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$22$$,$APP.$cljs$cst$4493$tokens_SLASH_border_radius$$,$app$main$ui$workspace$tokens$management$forms$modals$border_radius_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$23$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$23$$,$APP.$cljs$cst$4496$tokens_SLASH_color$$,$app$main$ui$workspace$tokens$management$forms$modals$color_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$24$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$24$$,$APP.$cljs$cst$4504$tokens_SLASH_stroke_width$$,$app$main$ui$workspace$tokens$management$forms$modals$stroke_width_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$25$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$25$$,$APP.$cljs$cst$4495$tokens_SLASH_shadow$$,$app$main$ui$workspace$tokens$management$forms$modals$box_shadow_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$26$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$26$$,$APP.$cljs$cst$4505$tokens_SLASH_sizing$$,$app$main$ui$workspace$tokens$management$forms$modals$sizing_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$27$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$27$$,$APP.$cljs$cst$4506$tokens_SLASH_dimensions$$,$app$main$ui$workspace$tokens$management$forms$modals$dimensions_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$28$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$28$$,$APP.$cljs$cst$4508$tokens_SLASH_number$$,$app$main$ui$workspace$tokens$management$forms$modals$number_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$29$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$29$$,$APP.$cljs$cst$4507$tokens_SLASH_opacity$$,$app$main$ui$workspace$tokens$management$forms$modals$opacity_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$30$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$30$$,$cljs$cst$5580$tokens_SLASH_other$$,$app$main$ui$workspace$tokens$management$forms$modals$other_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$31$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$31$$,$APP.$cljs$cst$4509$tokens_SLASH_rotation$$,$app$main$ui$workspace$tokens$management$forms$modals$rotation_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$32$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$32$$,$APP.$cljs$cst$4510$tokens_SLASH_spacing$$,$app$main$ui$workspace$tokens$management$forms$modals$spacing_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$33$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$33$$,$cljs$cst$5581$tokens_SLASH_string$$,$app$main$ui$workspace$tokens$management$forms$modals$string_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$34$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$34$$,$APP.$cljs$cst$4502$tokens_SLASH_typography$$,$app$main$ui$workspace$tokens$management$forms$modals$typography_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$35$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$35$$,$APP.$cljs$cst$4497$tokens_SLASH_font_size$$,$app$main$ui$workspace$tokens$management$forms$modals$font_size_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$36$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$36$$,$APP.$cljs$cst$4498$tokens_SLASH_letter_spacing$$,$app$main$ui$workspace$tokens$management$forms$modals$letter_spacing_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$37$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$37$$,$APP.$cljs$cst$4499$tokens_SLASH_font_family$$,$app$main$ui$workspace$tokens$management$forms$modals$font_familiy_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$38$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$38$$,$APP.$cljs$cst$4500$tokens_SLASH_text_case$$,$app$main$ui$workspace$tokens$management$forms$modals$text_case_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$39$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$39$$,$APP.$cljs$cst$4503$tokens_SLASH_text_decoration$$,$app$main$ui$workspace$tokens$management$forms$modals$text_decoration_modal$$)});
$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$40$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$40$$,$APP.$cljs$cst$4501$tokens_SLASH_font_weight$$,$app$main$ui$workspace$tokens$management$forms$modals$font_weight_modal$$)});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$41$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$41$$,$cljs$cst$5572$tokens_SLASH_remapping_confirmation$$,$app$main$ui$workspace$tokens$remapping_modal$token_remapping_modal$$)});var $app$main$data$workspace$tokens$typography$set_base_font_size_78040$$;$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$42$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$42$$,$cljs$cst$5536$tokens_SLASH_settings$$,$app$main$ui$workspace$tokens$settings$token_settings_modal_STAR_$$)});$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$43$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$43$$,$cljs$cst$5533$tokens_SLASH_themes$$,$app$main$ui$workspace$tokens$themes$create_modal$token_themes_modal$$)});var $app$main$ui$workspace$viewport$viewport_ref$viewport_ref$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$app$main$ui$workspace$viewport$viewport_ref$current_observer$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$app$main$ui$workspace$viewport$viewport_ref$viewport_brect$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$(null);var $app$main$ui$workspace$shapes$text$editor$default_decorator$$;$app$main$ui$workspace$shapes$text$editor$default_decorator$$=$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.createDecorator("PENPOT_SELECTION",function($props_78201$$){return(0,$APP.$rumext$v2$jsx$$)("span",{style:{background:"#ccc",display:"inline-block"},children:$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78201$$,"children")})});
var $app$main$ui$workspace$shapes$text$editor$empty_editor_state$$=$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.createEditorState(null,$app$main$ui$workspace$shapes$text$editor$default_decorator$$),$app$main$ui$workspace$shapes$text$editor$text_shape_edit_html$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$((0,$APP.$rumext$v2$forward_ref$$)(function($content$jscomp$246_props_78227$$){function $on_key_up$jscomp$1$$($event$jscomp$595$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$595$$);
return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$595$$))?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()])):null}var $map__78236__$1$$=$APP.$cljs$core$__destructure_map$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($content$jscomp$246_props_78227$$,"shape")),$id$jscomp$973_self_ref$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78236__$1$$,$APP.$cljs$cst$266$id$$);$content$jscomp$246_props_78227$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78236__$1$$,$APP.$cljs$cst$1621$content$$);var $on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$),$state$jscomp$1102$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$3$($on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$,
$id$jscomp$973_self_ref$$,$app$main$ui$workspace$shapes$text$editor$empty_editor_state$$);$id$jscomp$973_self_ref$$=(0,$APP.$rumext$v2$use_ref$$)();$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__78236__$1$$))],function(){return $APP.$app$main$refs$workspace_text_modifier_by_id$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($map__78236__$1$$))});
$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$=$APP.$rumext$v2$deref$$($on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$);var $shape__$1$jscomp$110$$=$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$!=null?$APP.$app$main$data$workspace$texts$apply_text_modifier$$($map__78236__$1$$,$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$):$map__78236__$1$$,
$blurred$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape__$1$jscomp$110$$),$APP.$rumext$v2$adapt$$($state$jscomp$1102$$)],function($event$jscomp$596$$){var $is_empty_QMARK_$$=$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.isCurrentEmpty($state$jscomp$1102$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$596$$);
$APP.$app$util$dom$prevent_default$$($event$jscomp$596$$);$APP.$cljs$core$not$$($is_empty_QMARK_$$)&&($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3843$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_finalize_editor_state$$),$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$initialize_editor_state$$($shape__$1$jscomp$110$$)));return $APP.$cljs$core$reset_BANG_$$($blurred$$,!0)});var $on_focus$jscomp$18$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape__$1$jscomp$110$$),
$APP.$rumext$v2$adapt$$($state$jscomp$1102$$)],function(){return $APP.$cljs$core$reset_BANG_$$($blurred$$,!1)}),$prev_value$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)($state$jscomp$1102$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($state$jscomp$1102$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($prev_value$jscomp$1$$,$state$jscomp$1102$$)});var $handle_change$jscomp$16$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($state__$1$jscomp$57$$){var $old_state$jscomp$1_prev_data$jscomp$1$$=
$APP.$rumext$v2$ref_val$$($prev_value$jscomp$1$$);if($state__$1$jscomp$57$$!=null&&$old_state$jscomp$1_prev_data$jscomp$1$$!=null){var $block_changes$jscomp$2_block_to_add_styles$$=$app$util$text_editor$get_content_changes$$($old_state$jscomp$1_prev_data$jscomp$1$$,$state__$1$jscomp$57$$);$old_state$jscomp$1_prev_data$jscomp$1$$=$APP.$app$util$text_editor$get_editor_current_inline_styles$$($old_state$jscomp$1_prev_data$jscomp$1$$);var $block_to_setup$$=$app$main$ui$workspace$shapes$text$editor$get_blocks_to_setup$$($block_changes$jscomp$2_block_to_add_styles$$);
$block_changes$jscomp$2_block_to_add_styles$$=$app$main$ui$workspace$shapes$text$editor$get_blocks_to_add_styles$$($block_changes$jscomp$2_block_to_add_styles$$);return $app$util$text_editor$apply_block_styles_to_content$$($app$util$text_editor$setup_block_styles$$($state__$1$jscomp$57$$,$block_to_setup$$,$old_state$jscomp$1_prev_data$jscomp$1$$),$block_changes$jscomp$2_block_to_add_styles$$)}return $state__$1$jscomp$57$$}),$on_change$jscomp$96$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($val$jscomp$227$$){var $prev_val$jscomp$1$$=
$APP.$rumext$v2$ref_val$$($prev_value$jscomp$1$$),$styleOverride$$=$prev_val$jscomp$1$$.getInlineStyleOverride(),$keep_style_QMARK_$$=function(){var $and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$=$styleOverride$$!=null;return $and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$?($and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$=$prev_val$jscomp$1$$.getCurrentContent().equals($val$jscomp$227$$.getCurrentContent()),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$)?
$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.selectionEquals($prev_val$jscomp$1$$.getSelection(),$val$jscomp$227$$.getSelection()):$and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$):$and__5023__auto__$jscomp$855_and__5023__auto____$1$jscomp$146$$}(),$val__$1$jscomp$21$$=function(){var $G__78259_G__78259__$1_G__78259__$2$$=$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($val$jscomp$227$$):$handle_change$jscomp$16$$($val$jscomp$227$$);
$G__78259_G__78259__$1_G__78259__$2$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($blurred$$))?$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.addBlurSelectionEntity($G__78259_G__78259__$1_G__78259__$2$$):$G__78259_G__78259__$1_G__78259__$2$$;$G__78259_G__78259__$1_G__78259__$2$$=$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($blurred$$))?$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.removeBlurSelectionEntity($G__78259_G__78259__$1_G__78259__$2$$):$G__78259_G__78259__$1_G__78259__$2$$;
return $APP.$cljs$core$truth_$$($keep_style_QMARK_$$)?$APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.setInlineStyleOverride($G__78259_G__78259__$1_G__78259__$2$$,$styleOverride$$):$G__78259_G__78259__$1_G__78259__$2$$}();return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$update_editor_state$$($shape__$1$jscomp$110$$,$val__$1$jscomp$21$$))}),$on_editor$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($editor$jscomp$8$$){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$update_editor$$($editor$jscomp$8$$));
return $APP.$cljs$core$truth_$$($editor$jscomp$8$$)?($APP.$app$util$dom$add_class_BANG_$$($APP.$goog$dom$getElementByClass$$("public-DraftEditor-content"),"mousetrap"),$editor$jscomp$8$$.focus()):null}),$handle_return$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($___$2$jscomp$673_style_78316$$,$G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$){$___$2$jscomp$673_style_78316$$=$APP.$app$util$text_editor$get_editor_current_block_data$$($G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$);
$G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$=$app$util$text_editor$insert_text$$($G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$,"\n",$___$2$jscomp$673_style_78316$$);$G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$=$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$):$handle_change$jscomp$16$$($G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$update_editor_state$$($shape__$1$jscomp$110$$,$G__78260$jscomp$inline_8796_state_78317__$2_state__$1$jscomp$58$$));return"handled"}),$on_pointer_down$jscomp$12$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$597$$){$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$597$$),"DraftEditor-root")&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$cursor_to_end$$($shape__$1$jscomp$110$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$focus_editor$$())});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $keys$jscomp$57$$=new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$goog$events$listen$$(document,"keyup",$on_key_up$jscomp$1$$)],null);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$texts$initialize_editor_state$$($shape__$1$jscomp$110$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$texts$select_all$$($shape__$1$jscomp$110$$)]));return function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$3843$app_DOT_main_DOT_data_DOT_workspace_DOT_texts_SLASH_finalize_editor_state$$);for(var $c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$=$APP.$cljs$core$seq$$($keys$jscomp$57$$),$G__78303_chunk__78248_seq__78247__$1$$=null,$G__78302_count__78249$$=
0,$i__78250$$=0;;)if($i__78250$$<$G__78302_count__78249$$){var $G__78304_key$jscomp$417$$=$G__78303_chunk__78248_seq__78247__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__78250$$);$APP.$goog$events$unlistenByKey$$($G__78304_key$jscomp$417$$);$i__78250$$+=1}else if($c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$))$G__78303_chunk__78248_seq__78247__$1$$=$c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$,
$APP.$cljs$core$chunked_seq_QMARK_$$($G__78303_chunk__78248_seq__78247__$1$$)?($c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$=$APP.$cljs$core$_chunked_first$$($G__78303_chunk__78248_seq__78247__$1$$),$G__78302_count__78249$$=$APP.$cljs$core$_chunked_rest$$($G__78303_chunk__78248_seq__78247__$1$$),$G__78303_chunk__78248_seq__78247__$1$$=$c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$,$G__78304_key$jscomp$417$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$),
$c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$=$G__78302_count__78249$$,$G__78302_count__78249$$=$G__78304_key$jscomp$417$$):($G__78304_key$jscomp$417$$=$APP.$cljs$core$first$$($G__78303_chunk__78248_seq__78247__$1$$),$APP.$goog$events$unlistenByKey$$($G__78304_key$jscomp$417$$),$c__5548__auto__$jscomp$45_seq__78247_temp__5825__auto__$jscomp$391$$=$APP.$cljs$core$next$$($G__78303_chunk__78248_seq__78247__$1$$),$G__78303_chunk__78248_seq__78247__$1$$=null,$G__78302_count__78249$$=
0),$i__78250$$=0;else return null}});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"text-editor "+($APP.$app$util$dom$classnames$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$ui$css_cursors$get_dynamic$$("text",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$110$$)),!0,$APP.$cljs$cst$4689$align_top$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$246_props_78227$$,
"top"),"top"),$cljs$cst$5608$align_center$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$246_props_78227$$),"center"),$APP.$cljs$cst$4692$align_bottom$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$246_props_78227$$),"bottom")]))??""),ref:$id$jscomp$973_self_ref$$,style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$110$$),
height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$110$$),opacity:$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($blurred$$))?0:null},onPointerDown:$on_pointer_down$jscomp$12$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$shadow$js$shim$module$0$0penpot$0draft_js$$.Editor,{stripPastedStyles:!0,onChange:$on_change$jscomp$96$$,blockRendererFn:function($JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$){a:switch($JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$.getType()){case "unstyled":$JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$=
{editable:!0,component:$app$main$ui$workspace$shapes$text$editor$block_component$$,props:{data:$APP.$app$util$text_editor$immutable_map__GT_map$$($JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$.getData()),shape:$shape__$1$jscomp$110$$}};break a;default:$JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$=null}return $JSCompiler_inline_result$jscomp$1837_p1__78226_SHARP_$$},handleReturn:$handle_return$$,style:{border:"1px solid red"},onFocus:$on_focus$jscomp$18$$,onBlur:$on_blur$jscomp$32_state_map$jscomp$2_text_modifier$jscomp$3_text_modifier_ref$jscomp$1$$,
ref:$on_editor$$,handlePastedText:function($G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$){if($APP.$cljs$core$seq$$($G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$)){var $current_block_styles_78320_style_78323$$=$APP.$app$util$text_editor$get_editor_current_block_data$$($state$jscomp$1102$$),$inline_styles_78322$$=$APP.$app$util$text_editor$get_editor_current_inline_styles$$($state$jscomp$1102$$);$current_block_styles_78320_style_78323$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$current_block_styles_78320_style_78323$$,
$inline_styles_78322$$]));$G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$=$app$util$text_editor$insert_text$$($state$jscomp$1102$$,$G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$,$current_block_styles_78320_style_78323$$);$G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$=$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$?$handle_change$jscomp$16$$.$cljs$core$IFn$_invoke$arity$1$($G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$):$handle_change$jscomp$16$$($G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$texts$update_editor_state$$($shape__$1$jscomp$110$$,$G__78263$jscomp$inline_8801_state_78324__$1_text$jscomp$137$$))}return"handled"},customStyleFn:$APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$workspace$shapes$text$editor$styles_fn$$,$shape__$1$jscomp$110$$),editorState:$state$jscomp$1102$$})})}));var $app$main$ui$workspace$shapes$text$v2_editor$text_editor_html$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($page$jscomp$157_props_78278$$){var $shape$jscomp$1015$$=$page$jscomp$157_props_78278$$.shape,$canvas_ref$jscomp$2$$=$page$jscomp$157_props_78278$$["canvas-ref"],$content$jscomp$250$$=$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1015$$),$shape_id$jscomp$164$$=$shape$jscomp$1015$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1015$$,
$APP.$cljs$cst$266$id$$),$fill_color$jscomp$4$$=$app$main$ui$workspace$shapes$text$v2_editor$get_color_from_content$$($content$jscomp$250$$),$editor_ref$jscomp$2$$=(0,$APP.$rumext$v2$use_ref$$)(null),$container_ref$jscomp$3$$=(0,$APP.$rumext$v2$use_ref$$)(null);$page$jscomp$157_props_78278$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_page$$);var $objects$jscomp$780$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($page$jscomp$157_props_78278$$,$APP.$cljs$cst$1615$objects$$),$frame$jscomp$78$$=
$APP.$app$common$files$helpers$get_frame$cljs$0core$0IFn$0_invoke$0arity$02$$($objects$jscomp$780$$,$shape_id$jscomp$164$$),$background_color$jscomp$3$$=$APP.$cljs$cst$2043$background$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$157_props_78278$$),$text_color$jscomp$3$$=function(){if($APP.$cljs$core$truth_$$($fill_color$jscomp$4$$))return $fill_color$jscomp$4$$;var $or__5025__auto____$1$jscomp$129$$=$app$main$ui$workspace$shapes$text$v2_editor$get_default_text_color$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1590$frame$$,$frame$jscomp$78$$,$APP.$cljs$cst$2961$background_color$$,$background_color$jscomp$3$$],null));return $APP.$cljs$core$truth_$$($or__5025__auto____$1$jscomp$129$$)?$or__5025__auto____$1$jscomp$129$$:"#000000"}(),$fonts$jscomp$34$$=$APP.$app$main$ui$hooks$use_equal_memo$$($APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($content$jscomp$250$$)],function(){var $extract_fn$jscomp$inline_8818$$=$APP.$cljs$core$juxt$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1741$font_id$$,
$APP.$cljs$cst$1743$font_variant_id$$),$default$$jscomp$inline_8819$$=$extract_fn$jscomp$inline_8818$$($APP.$app$common$types$text$default_typography$$);return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$default$$jscomp$inline_8819$$]),$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($extract_fn$jscomp$inline_8818$$),$APP.$cljs$core$tree_seq$$($APP.$cljs$core$map_QMARK_$$,$APP.$cljs$cst$340$children$$,$content$jscomp$250$$))}));
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fonts$jscomp$34$$)],function(){return $app$main$ui$workspace$shapes$text$v2_editor$load_fonts_BANG_$$($fonts$jscomp$34$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$164$$)],function(){return $app$main$ui$workspace$shapes$text$v2_editor$initialize_event_handlers$$($shape_id$jscomp$164$$,$content$jscomp$250$$,$editor_ref$jscomp$2$$,$canvas_ref$jscomp$2$$,
$container_ref$jscomp$3$$,$text_color$jscomp$3$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_color$jscomp$3$$)],function(){return $app$util$dom$set_style_BANG_$$($APP.$rumext$v2$ref_val$$($container_ref$jscomp$3$$),"--text-editor-caret-color",$text_color$jscomp$3$$)});return(0,$APP.$rumext$v2$jsx$$)("div",{ref:$container_ref$jscomp$3$$,"data-testid":"text-editor-container",style:{width:"var(--editor-container-width)",height:"var(--editor-container-height)"},
className:""+($app$main$ui$css_cursors$get_dynamic$$("text",$APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1015$$))??"")+" main_ui_workspace_shapes_text_v2_editor__text-editor-container",children:(0,$APP.$rumext$v2$jsx$$)("div",{role:"textbox","aria-multiline":!0,"data-x":$shape$jscomp$1015$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1015$$,$APP.$cljs$cst$1499$x$$),className:"mousetrap main_ui_workspace_shapes_text_v2_editor__text-editor-content "+
(($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1015$$),$APP.$cljs$cst$1655$fixed$$)?"main_ui_workspace_shapes_text_v2_editor__grow-type-fixed":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1015$$),$APP.$cljs$cst$2021$auto_width$$)?"main_ui_workspace_shapes_text_v2_editor__grow-type-auto-width":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1015$$),
$APP.$cljs$cst$2020$auto_height$$)?"main_ui_workspace_shapes_text_v2_editor__grow-type-auto-height":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$2$($content$jscomp$250$$,"top"),"top")?"main_ui_workspace_shapes_text_v2_editor__align-top":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$250$$),"center")?"main_ui_workspace_shapes_text_v2_editor__align-center":
"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($content$jscomp$250$$),"bottom")?"main_ui_workspace_shapes_text_v2_editor__align-bottom":"")),"aria-autocomplete":"none","data-testid":"text-editor-content","data-y":$shape$jscomp$1015$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1015$$,$APP.$cljs$cst$1500$y$$),ref:$editor_ref$jscomp$2$$,contentEditable:!0})})}),$app$main$ui$workspace$shapes$text$v2_editor$text_editor$$=
$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$((0,$APP.$rumext$v2$forward_ref$$)(function($canvas_ref$jscomp$3_props_78289$$){var $clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$=$canvas_ref$jscomp$3_props_78289$$.modifiers,$shape$jscomp$1016$$=$canvas_ref$jscomp$3_props_78289$$.shape;$canvas_ref$jscomp$3_props_78289$$=$canvas_ref$jscomp$3_props_78289$$["canvas-ref"];var $shape_id$jscomp$165$$=$shape$jscomp$1016$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1016$$,
$APP.$cljs$cst$266$id$$),$modifiers__$1$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$,$shape_id$jscomp$165$$),$APP.$cljs$cst$1794$modifiers$$);$clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$=$APP.$app$render_wasm$api$fonts_from_text_content$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1016$$),!1);var $fallback_families$$=
$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$){$JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$=$APP.$cljs$cst$1741$font_id$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$);$APP.$cljs$core$truth_$$($APP.$cuerdas$core$includes_QMARK_$$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$,
"gfont-noto-sans"))?($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$=$APP.$cuerdas$core$replace$$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$,/gfont\-noto\-sans\-/,""),$JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$=$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$)>=
3?$APP.$cuerdas$core$capital$$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$):$APP.$cuerdas$core$upper$$($JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$)):$JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$="Noto Color Emoji";return $JSCompiler_inline_result$jscomp$1839_font$jscomp$51_font_id$jscomp$inline_8821_lang$jscomp$inline_8822$$},
$clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$);$clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$="text-edition-clip"+($shape_id$jscomp$165$$??"");var $text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1016$$))],function(){return $APP.$app$main$refs$workspace_text_modifier_by_id$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1016$$))}),
$text_modifier$jscomp$6$$=$APP.$rumext$v2$deref$$($text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$),$maybe_zoom$jscomp$1$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1338$safari_16$$)?$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_zoom$$):null,$shape__$1$jscomp$113$$=function(){var $G__78299__$1$$=$text_modifier$jscomp$6$$!=null?$APP.$app$main$data$workspace$texts$apply_text_modifier$$($shape$jscomp$1016$$,$text_modifier$jscomp$6$$):$shape$jscomp$1016$$;return $modifiers__$1$jscomp$20$$!=
null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($G__78299__$1$$,$modifiers__$1$jscomp$20$$):$G__78299__$1$$}(),$render_wasm_QMARK_$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"render-wasm/v1")});$text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$=$APP.$cljs$core$truth_$$($render_wasm_QMARK_$jscomp$3$$)?function(){var $map__78310_max_width$jscomp$8_width$jscomp$213$$=
$APP.$app$render_wasm$api$get_text_dimensions$cljs$0core$0IFn$0_invoke$0arity$01$$($shape_id$jscomp$165$$),$map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$=$APP.$cljs$core$__destructure_map$$($map__78310_max_width$jscomp$8_width$jscomp$213$$);$map__78310_max_width$jscomp$8_width$jscomp$213$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$,$APP.$cljs$cst$288$width$$);var $height$jscomp$181$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$,
$APP.$cljs$cst$1511$height$$);$map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_selrect$$);var $transform$jscomp$109_vec__78311$$=$app$main$data$helpers$get_selrect$$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$,$shape__$1$jscomp$113$$);$map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($transform$jscomp$109_vec__78311$$,0,null);$transform$jscomp$109_vec__78311$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($transform$jscomp$109_vec__78311$$,1,null);var $selrect_height$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$),$max_height$jscomp$4_selrect_width$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$);$map__78310_max_width$jscomp$8_width$jscomp$213$$=$map__78310_max_width$jscomp$8_width$jscomp$213$$>
$max_height$jscomp$4_selrect_width$$?$map__78310_max_width$jscomp$8_width$jscomp$213$$:$max_height$jscomp$4_selrect_width$$;$max_height$jscomp$4_selrect_width$$=$height$jscomp$181$$>$selrect_height$$?$height$jscomp$181$$:$selrect_height$$;var $valign$jscomp$1$$=$APP.$cljs$cst$1751$vertical_align$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$113$$)),$y$jscomp$488$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$);
return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__78310__$1_selrect$jscomp$80_selrect_transform$jscomp$2$$,$APP.$cljs$cst$1500$y$$,function(){switch($valign$jscomp$1$$){case "bottom":return $y$jscomp$488$$+($selrect_height$$-$height$jscomp$181$$);case "center":return $y$jscomp$488$$+($selrect_height$$-$height$jscomp$181$$)/2;default:return $y$jscomp$488$$}}(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$288$width$$,
$map__78310_max_width$jscomp$8_width$jscomp$213$$,$APP.$cljs$cst$1511$height$$,$max_height$jscomp$4_selrect_width$$])),$transform$jscomp$109_vec__78311$$],null)}():function(){var $bounds$jscomp$82_height$jscomp$182$$=$APP.$app$common$geom$shapes$text$shape__GT_rect$$($shape__$1$jscomp$113$$),$x$jscomp$1265$$=Math.min($bounds$jscomp$82_height$jscomp$182$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$82_height$jscomp$182$$,$APP.$cljs$cst$1499$x$$),$shape__$1$jscomp$113$$?.x??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$1499$x$$)),$y$jscomp$489$$=Math.min($bounds$jscomp$82_height$jscomp$182$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$82_height$jscomp$182$$,$APP.$cljs$cst$1500$y$$),$shape__$1$jscomp$113$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$1500$y$$)),$width$jscomp$214$$=Math.max($bounds$jscomp$82_height$jscomp$182$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$82_height$jscomp$182$$,
$APP.$cljs$cst$288$width$$),$shape__$1$jscomp$113$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$288$width$$));$bounds$jscomp$82_height$jscomp$182$$=Math.max($bounds$jscomp$82_height$jscomp$182$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bounds$jscomp$82_height$jscomp$182$$,$APP.$cljs$cst$1511$height$$),$shape__$1$jscomp$113$$?.height??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$1511$height$$));
return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$rect$make_rect$$.$cljs$core$IFn$_invoke$arity$4$($x$jscomp$1265$$,$y$jscomp$489$$,$width$jscomp$214$$,$bounds$jscomp$82_height$jscomp$182$$),$APP.$app$common$geom$shapes$transform_matrix$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$113$$)],null)}();var $map__78294_map__78294__$1_style$jscomp$78$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$,
0,null);$map__78294_map__78294__$1_style$jscomp$78$$=$APP.$cljs$core$__destructure_map$$($map__78294_map__78294__$1_style$jscomp$78$$);var $x$jscomp$1264$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78294_map__78294__$1_style$jscomp$78$$,$APP.$cljs$cst$1499$x$$),$y$jscomp$487$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78294_map__78294__$1_style$jscomp$78$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$212$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78294_map__78294__$1_style$jscomp$78$$,
$APP.$cljs$cst$288$width$$),$height$jscomp$180$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78294_map__78294__$1_style$jscomp$78$$,$APP.$cljs$cst$1511$height$$);$text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$,1,null);$map__78294_map__78294__$1_style$jscomp$78$$=function(){var $G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$={pointerEvents:"all"};
$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$=$APP.$cljs$core$truth_$$($render_wasm_QMARK_$jscomp$3$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$,{"--editor-container-width":""+($width$jscomp$212$$??"")+"px","--editor-container-height":""+($height$jscomp$180$$??"")+"px","--fallback-families":$APP.$cljs$core$seq$$($fallback_families$$)?""+($APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(", ",
$fallback_families$$)??""):"sourcesanspro"}):$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$;$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$=$APP.$cljs$core$not$$($render_wasm_QMARK_$jscomp$3$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$,{"--editor-container-width":""+($width$jscomp$212$$??"")+"px","--editor-container-height":""+($height$jscomp$180$$??"")+"px"}):$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$;
$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$=$APP.$cljs$core$not$$($render_wasm_QMARK_$jscomp$3$$)&&!$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1337$safari$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$,{transform:"translate("+(($shape__$1$jscomp$113$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$1499$x$$))-$x$jscomp$1264$$)+"px, "+
(($shape__$1$jscomp$113$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,$APP.$cljs$cst$1500$y$$))-$y$jscomp$487$$)+"px)"}):$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$;$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$=$APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1342$safari_17$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$,{height:"100%",
display:"flex",flexDirection:"column",justifyContent:$app$main$ui$workspace$shapes$text$v2_editor$shape__GT_justify$$($shape__$1$jscomp$113$$)}):$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$;return $APP.$app$config$check_browser_QMARK_$$($APP.$cljs$cst$1338$safari_16$$)?$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$,{position:"fixed",left:0,top:($shape__$1$jscomp$113$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($shape__$1$jscomp$113$$,
$APP.$cljs$cst$1500$y$$))-$y$jscomp$487$$,"transform-origin":"top left",transform:$maybe_zoom$jscomp$1$$!=null?"scale("+($maybe_zoom$jscomp$1$$??"")+")":null}):$G__78321_G__78321__$1_G__78321__$2_G__78321__$3_G__78321__$4$$}();return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"text-editor",clipPath:"url(#"+($clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$??"")+")",transform:""+($text_modifier_ref$jscomp$4_transform$jscomp$108_vec__78291$$??""),"data-testid":"text-editor",children:[(0,$APP.$rumext$v2$jsx$$)("defs",
{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:$clip_id$jscomp$3_fallback_fonts$jscomp$2_modifiers$jscomp$122$$,children:(0,$APP.$rumext$v2$jsx$$)("rect",{x:$x$jscomp$1264$$,y:$y$jscomp$487$$,width:$width$jscomp$212$$,height:$height$jscomp$180$$})})}),(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:$x$jscomp$1264$$,y:$y$jscomp$487$$,width:$width$jscomp$212$$,height:$height$jscomp$180$$,children:(0,$APP.$rumext$v2$jsx$$)("div",{style:$map__78294_map__78294__$1_style$jscomp$78$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$v2_editor$text_editor_html$$,
{shape:$shape__$1$jscomp$113$$,"canvas-ref":$canvas_ref$jscomp$3_props_78289$$},""+($shape_id$jscomp$165$$??""))})})]})}));var $app$util$text_svg_position$load_promises$$=$APP.$cljs$core$atom$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$);var $app$main$ui$workspace$shapes$text$viewport_texts_html$text_container$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($handle_update_props_78328$$){var $shape$jscomp$1023$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_update_props_78328$$,"shape"),$on_update$jscomp$2$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_update_props_78328$$,"on-update");$handle_update_props_78328$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1023$$),
$APP.$rumext$v2$adapt$$($on_update$jscomp$2$$)],function($node$jscomp$441$$){return $node$jscomp$441$$!=null?$on_update$jscomp$2$$.$cljs$core$IFn$_invoke$arity$2$?$on_update$jscomp$2$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1023$$,$node$jscomp$441$$):$on_update$jscomp$2$$($shape$jscomp$1023$$,$node$jscomp$441$$):null});return(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$shapes$text$html_text$text_shape$$,{ref:$handle_update_props_78328$$,shape:$shape$jscomp$1023$$,"grow-type":$APP.$cljs$cst$1754$grow_type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1023$$)},
["shape-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1023$$))].join(""))}),$app$main$ui$workspace$shapes$text$viewport_texts_html$viewport_text_editing$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$){var $shape$jscomp$1028$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$,
"shape"),$shape_id$jscomp$168$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1028$$);$handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor_state$$);var $workspace_v2_editor_state$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_v2_editor_state$$),$workspace_editor$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_editor$$),$editor_state$jscomp$11$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$,$shape_id$jscomp$168$$),$v2_editor_state$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($workspace_v2_editor_state$$,$shape_id$jscomp$168$$);$handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape_id$jscomp$168$$)],
function(){return $APP.$app$main$refs$workspace_text_modifier_by_id$$($shape_id$jscomp$168$$)});var $text_modifier$jscomp$7$$=$APP.$rumext$v2$deref$$($handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$),$shape__$1$jscomp$114$$=function(){if($editor_state$jscomp$11$$!=null){var $G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$=$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1028$$);
var $content$jscomp$inline_8838_editor_content$jscomp$inline_8834$$=$APP.$cljs$core$truth_$$($editor_state$jscomp$11$$)?$app$util$text_editor$export_content$$($editor_state$jscomp$11$$.getCurrentContent()):null;$G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$=$app$main$ui$workspace$shapes$text$viewport_texts_html$update_shape_with_content$$($shape$jscomp$1028$$,$G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$,
$content$jscomp$inline_8838_editor_content$jscomp$inline_8834$$)}else $G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$=$shape$jscomp$1028$$;if($v2_editor_state$$!=null&&$workspace_editor$$!=null){$content$jscomp$inline_8838_editor_content$jscomp$inline_8834$$=$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$);var $editor_content$jscomp$inline_8839$$=
$APP.$app$util$text$content$from_dom$create_root$$($workspace_editor$$.root);$G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$=$app$main$ui$workspace$shapes$text$viewport_texts_html$update_shape_with_content$$($G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$,$content$jscomp$inline_8838_editor_content$jscomp$inline_8834$$,$editor_content$jscomp$inline_8839$$)}return $G__78346__$1_JSCompiler_temp$jscomp$1841_JSCompiler_temp$jscomp$1842_content$jscomp$inline_8833$$}();
$handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$=$text_modifier$jscomp$7$$!=null?function(){var $map__78347_width$jscomp$216$$=$APP.$app$main$data$workspace$texts$apply_text_modifier$$($shape__$1$jscomp$114$$,$text_modifier$jscomp$7$$),$height$jscomp$184_map__78347__$1$$=$APP.$cljs$core$__destructure_map$$($map__78347_width$jscomp$216$$);$map__78347_width$jscomp$216$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$184_map__78347__$1$$,
$APP.$cljs$cst$288$width$$);$height$jscomp$184_map__78347__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$184_map__78347__$1$$,$APP.$cljs$cst$1511$height$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($shape__$1$jscomp$114$$,$APP.$cljs$cst$288$width$$,$map__78347_width$jscomp$216$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1511$height$$,$height$jscomp$184_map__78347__$1$$]))}():$shape__$1$jscomp$114$$;var $shape__$3$$=
$APP.$app$main$ui$hooks$use_equal_memo$$($handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$);$handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$($app$main$ui$workspace$shapes$text$viewport_texts_html$update_text_modifier$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$3$$))],
function(){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$texts$remove_text_modifier$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape__$3$$)))}});return(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$text_container$$,{shape:$shape__$3$$,"on-update":$handle_update_shape$jscomp$2_props_78345_shape__$2$jscomp$13_text_modifier_ref$jscomp$5_workspace_editor_state$$})}),$app$main$ui$workspace$shapes$text$viewport_texts_html$viewport_texts$$=
(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$){var $objects$jscomp$781$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$,"objects"),$edition$jscomp$8$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$,"edition"),$modifiers$jscomp$124$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$,
"modifiers");$editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$781$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$files$helpers$text_shape_QMARK_$$,$APP.$cljs$core$second$$)),$objects$jscomp$781$$)});
var $text_shapes__$1$$=$APP.$app$main$ui$hooks$use_equal_memo$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$);$editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_shapes__$1$$),$APP.$rumext$v2$adapt$$($edition$jscomp$8$$)],function(){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($text_shapes__$1$$,$edition$jscomp$8$$)});$editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$=
$APP.$app$main$ui$hooks$use_equal_memo$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$);var $text_shapes_changes$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_shapes__$1$$),$APP.$rumext$v2$adapt$$($edition$jscomp$8$$)],function(){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($text_shapes__$1$$,$edition$jscomp$8$$)}),$text_shapes_modifiers$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($modifiers$jscomp$124$$),
$APP.$rumext$v2$adapt$$($text_shapes__$1$$)],function(){return $APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$(function($modifiers__$1$jscomp$21_p__78351$$){var $id$jscomp$981$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers__$1$jscomp$21_p__78351$$,0,null);$modifiers__$1$jscomp$21_p__78351$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($modifiers__$1$jscomp$21_p__78351$$,
1,null);var $temp__5825__auto__$jscomp$394$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($text_shapes__$1$$,$id$jscomp$981$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$394$$)?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$id$jscomp$981$$,$APP.$app$common$data$patch_object$$.$cljs$core$IFn$_invoke$arity$2$($temp__5825__auto__$jscomp$394$$,$modifiers__$1$jscomp$21_p__78351$$)],null):null}),$modifiers$jscomp$124$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $fonts$jscomp$35_text_nodes$jscomp$1$$=
$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__78349_SHARP_$$){return $APP.$app$common$types$text$node_seq$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$types$text$is_text_node_QMARK_$$,$APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$($p1__78349_SHARP_$$))},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vals$$($text_shapes__$1$$)]));$fonts$jscomp$35_text_nodes$jscomp$1$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentHashSet$EMPTY$$,
$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1741$font_id$$),$fonts$jscomp$35_text_nodes$jscomp$1$$);return $APP.$cljs$core$run_BANG_$$($APP.$app$main$fonts$ensure_loaded_BANG_$$,$fonts$jscomp$35_text_nodes$jscomp$1$$)});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$viewport_text_editing$$,
{shape:$editing_shape_editing_shape__$1_props_78350_text_shapes$jscomp$4$$}):null,(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$text_modifiers_renderer$$,{"text-shapes":$text_shapes_modifiers$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$shapes$text$viewport_texts_html$text_changes_renderer$$,{"text-shapes":$text_shapes_changes$$})]})},function($new_props$jscomp$7$$,$old_props$jscomp$6$$){return $new_props$jscomp$7$$.objects===$old_props$jscomp$6$$.objects&&
$new_props$jscomp$7$$.modifiers===$old_props$jscomp$6$$.modifiers&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props$jscomp$7$$.edition,$old_props$jscomp$6$$.edition)});var $app$main$ui$workspace$top_toolbar$image_upload$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $ref$jscomp$57$$=(0,$APP.$rumext$v2$use_ref$$)(null),$file_id$jscomp$394$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$current_file_id$$),$on_click$jscomp$54$$=$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.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()]));
return $APP.$app$util$dom$click$$($APP.$rumext$v2$ref_val$$($ref$jscomp$57$$))}),$on_selected$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$394$$)],function($blobs$jscomp$3_params$jscomp$421$$){var $vbox$jscomp$35_y$jscomp$490$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$vbox$$),$x$jscomp$1266$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$35_y$jscomp$490$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$35_y$jscomp$490$$)/
2;$vbox$jscomp$35_y$jscomp$490$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$35_y$jscomp$490$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$35_y$jscomp$490$$)/2;$blobs$jscomp$3_params$jscomp$421$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$394$$,$APP.$cljs$cst$3568$blobs$$,$APP.$cljs$core$seq$$($blobs$jscomp$3_params$jscomp$421$$),$APP.$cljs$cst$1660$position$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($x$jscomp$1266$$,
$vbox$jscomp$35_y$jscomp$490$$)],null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$media$upload_media_workspace$$($blobs$jscomp$3_params$jscomp$421$$))});return(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsxs$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.image",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4652$insert_image$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.image",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4652$insert_image$$)])),onClick:$on_click$jscomp$54$$,className:"main_ui_workspace_top_toolbar__main-toolbar-options-button",children:[$APP.$app$main$ui$icons$img$$,(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$components$file_uploader$file_uploader$$,{"input-id":"image-upload",
accept:$APP.$app$main$data$workspace$media$accept_image_types$$,multi:!0,ref:$ref$jscomp$57$$,"on-selected":$on_selected$jscomp$1$$})]})})}),$app$main$ui$workspace$top_toolbar$toolbar_hidden_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$(function($edition$jscomp$9_state$jscomp$1103$$){var $visibility$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$9_state$jscomp$1103$$,$APP.$cljs$cst$3622$hide_toolbar$$),$path_edit_state$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$9_state$jscomp$1103$$,
$APP.$cljs$cst$1908$edit_path$$),$selected$jscomp$180$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$9_state$jscomp$1103$$,$APP.$cljs$cst$1906$selected$$);$edition$jscomp$9_state$jscomp$1103$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($edition$jscomp$9_state$jscomp$1103$$,$APP.$cljs$cst$2161$edition$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected$jscomp$180$$),1)&&$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($path_edit_state$$,
$edition$jscomp$9_state$jscomp$1103$$)!=null?!0:$visibility$$},$APP.$app$main$refs$workspace_local$$),$app$main$ui$workspace$top_toolbar$top_toolbar_STAR_$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($drawtool_props_78362$$){var $layout$jscomp$26$$=$drawtool_props_78362$$.layout;$drawtool_props_78362$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_drawing_tool$$);var $edition$jscomp$10$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_edition$$),$profile$jscomp$65_read_only_QMARK_$jscomp$25$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$props$jscomp$388_test_tooltip_board_text$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($profile$jscomp$65_read_only_QMARK_$jscomp$25$$,$APP.$cljs$cst$573$props$$);$profile$jscomp$65_read_only_QMARK_$jscomp$25$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$);var $rulers_QMARK_$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$rulers_QMARK_$$),$hide_toolbar_QMARK_$$=$APP.$rumext$v2$deref$$($app$main$ui$workspace$top_toolbar$toolbar_hidden_ref$$),
$interrupt$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()]))}),$select_drawtool$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$601$$){var $tool$jscomp$3$$=$APP.$cljs$core$keyword$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$601$$),
"tool"));$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$3430$interrupt$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$workspace$edition$clear_edition_mode$$()]));return $APP.$app$util$timers$schedule$cljs$0core$0IFn$0_invoke$0arity$02$$(100,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$drawing$select_for_drawing$$($tool$jscomp$3$$))})}),$toggle_debug_panel$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout$jscomp$26$$)],function(){$APP.$cljs$core$contains_QMARK_$$($layout$jscomp$26$$,$cljs$cst$5374$collapse_left_sidebar$$)&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($cljs$cst$5374$collapse_left_sidebar$$));return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$workspace$layout$remove_layout_flag$$($APP.$cljs$cst$2634$shortcuts$$),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$core$vary_meta$cljs$0core$0IFn$0_invoke$0arity$04$$((0,$APP.$app$main$data$workspace$toggle_layout_flag$$)($cljs$cst$5407$debug_panel$$),$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace-left-toolbar")]))}),$toggle_toolbar$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$602$$){$APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$602$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$common$toggle_toolbar_visibility$$())});$props$jscomp$388_test_tooltip_board_text$$=$APP.$cljs$core$not$$($APP.$cljs$cst$3620$workspace_visited$$.$cljs$core$IFn$_invoke$arity$1$($props$jscomp$388_test_tooltip_board_text$$))?$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.frame-first-time",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4609$draw_frame$$)])):
$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.frame",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4609$draw_frame$$)]));return $profile$jscomp$65_read_only_QMARK_$jscomp$25$$?null:(0,$APP.$rumext$v2$jsxs$$)("aside",{className:"main_ui_workspace_top_toolbar__main-toolbar "+($APP.$cljs$core$not$$($rulers_QMARK_$jscomp$4$$)?"main_ui_workspace_top_toolbar__main-toolbar-no-rulers":"")+
" "+($APP.$cljs$core$truth_$$($hide_toolbar_QMARK_$$)?"main_ui_workspace_top_toolbar__main-toolbar-hidden":""),children:[(0,$APP.$rumext$v2$jsxs$$)("ul",{"data-testid":"toolbar-options",className:"main_ui_workspace_top_toolbar__main-toolbar-options",children:[(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.move",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$1782$move$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.move",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$1782$move$$)])),onClick:$interrupt$$,className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($drawtool_props_78362$$==null&&$APP.$cljs$core$not$$($edition$jscomp$10$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$move$$})}),
(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$props$jscomp$388_test_tooltip_board_text$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.frame",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4609$draw_frame$$)])),onClick:$select_drawtool$$,"data-tool":"frame","data-testid":"artboard-btn",
className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$1590$frame$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$board$$})}),(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.rect",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4630$draw_rect$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.rect",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4630$draw_rect$$)])),onClick:$select_drawtool$$,"data-tool":"rect","data-testid":"rect-btn",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$1595$rect$$)?
"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$rectangle$$})}),(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.ellipse",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4612$draw_ellipse$$)])),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.ellipse",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4612$draw_ellipse$$)])),onClick:$select_drawtool$$,"data-tool":"circle","data-testid":"ellipse-btn",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$1406$circle$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$elipse$$})}),
(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.text",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4628$draw_text$$)])),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.text",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4628$draw_text$$)])),
onClick:$select_drawtool$$,"data-tool":"text",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$1572$text$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$text$$})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$top_toolbar$image_upload$$,{}),(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.curve",
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4697$draw_curve$$)])),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.curve",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4697$draw_curve$$)])),onClick:$select_drawtool$$,"data-tool":"curve","data-testid":"curve-btn",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+
($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$2037$curve$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$curve$$})}),(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.path",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4631$draw_path$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.path",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$4631$draw_path$$)])),onClick:$select_drawtool$$,"data-tool":"path","data-testid":"path-btn",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($drawtool_props_78362$$,$APP.$cljs$cst$294$path$$)?"main_ui_workspace_top_toolbar__selected":
""),children:$APP.$app$main$ui$icons$path$$})}),$APP.$cljs$core$truth_$$($APP.$app$main$features$active_feature_QMARK_$$($APP.$cljs$core$_deref$$($APP.$app$main$store$state$$),"plugins/runtime"))?(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.plugins",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$3135$plugins$$)])),
"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("workspace.toolbar.plugins",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$shortcuts$get_tooltip$$($APP.$cljs$cst$3135$plugins$$)])),onClick:function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($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$$,"open-plugins-manager",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"workspace:toolbar"],null)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$modal$show$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$4708$plugin_management$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)]))},"data-tool":"plugins","data-testid":"plugins-btn",className:"main_ui_workspace_top_toolbar__main-toolbar-options-button",
children:$APP.$app$main$ui$icons$puzzle$$})}):null,$APP.$cljs$core$truth_$$($APP.$cljs$core$_STAR_assert_STAR_$$)?(0,$APP.$rumext$v2$jsx$$)("li",{children:(0,$APP.$rumext$v2$jsx$$)("button",{title:"Debugging tool",onClick:$toggle_debug_panel$$,className:"main_ui_workspace_top_toolbar__main-toolbar-options-button "+($APP.$cljs$core$contains_QMARK_$$($layout$jscomp$26$$,$cljs$cst$5407$debug_panel$$)?"main_ui_workspace_top_toolbar__selected":""),children:$APP.$app$main$ui$icons$bug$$})}):null]})]}),
(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.toolbar.toggle-toolbar"),"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("workspace.toolbar.toggle-toolbar"),onClick:$toggle_toolbar$$,className:"main_ui_workspace_top_toolbar__toolbar-handler",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_top_toolbar__toolbar-handler-btn"})})]})});var $app$main$ui$workspace$viewport$actions$invalid_paste_targets$$=new $APP.$cljs$core$PersistentHashSet$$(null,new $APP.$cljs$core$PersistentArrayMap$$(null,2,["INPUT",null,"TEXTAREA",null],null),null);var $app$main$ui$workspace$viewport$comments$comments_layer_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_78372_vport$jscomp$11$$){var $zoom$jscomp$83$$=$props_78372_vport$jscomp$11$$.zoom,$file_id$jscomp$395$$=$props_78372_vport$jscomp$11$$.fileId,$vbox$jscomp$36_vport_w$$=$props_78372_vport$jscomp$11$$.vbox,$page_id$jscomp$416$$=$props_78372_vport$jscomp$11$$.pageId;$props_78372_vport$jscomp$11$$=$props_78372_vport$jscomp$11$$.vport;var $pos_x$jscomp$6_vbox_x$jscomp$1$$=
$vbox$jscomp$36_vport_w$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$36_vport_w$$,$APP.$cljs$cst$1499$x$$),$pos_y$jscomp$6_vbox_y$jscomp$1$$=$vbox$jscomp$36_vport_w$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($vbox$jscomp$36_vport_w$$,$APP.$cljs$cst$1500$y$$);$vbox$jscomp$36_vport_w$$=$props_78372_vport$jscomp$11$$?.width??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78372_vport$jscomp$11$$,$APP.$cljs$cst$288$width$$);var $vport_h$$=$props_78372_vport$jscomp$11$$?.height??
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($props_78372_vport$jscomp$11$$,$APP.$cljs$cst$1511$height$$);$pos_x$jscomp$6_vbox_x$jscomp$1$$=-$pos_x$jscomp$6_vbox_x$jscomp$1$$*$zoom$jscomp$83$$;$pos_y$jscomp$6_vbox_y$jscomp$1$$=-$pos_y$jscomp$6_vbox_y$jscomp$1$$*$zoom$jscomp$83$$;var $profile$jscomp$66$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$local$jscomp$29$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comments_local$$),$threads_map$jscomp$7$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$threads$$),
$threads$jscomp$12$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($threads_map$jscomp$7$$),$APP.$rumext$v2$adapt$$($local$jscomp$29$$),$APP.$rumext$v2$adapt$$($profile$jscomp$66$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$416$$)],function(){return $APP.$app$main$data$comments$apply_filters$$($local$jscomp$29$$,$profile$jscomp$66$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78371_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__78371_SHARP_$$),
$page_id$jscomp$416$$)},$APP.$cljs$core$vals$$($threads_map$jscomp$7$$)))}),$viewport$jscomp$6$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($props_78372_vport$jscomp$11$$,$APP.$cljs$cst$1634$offset_x$$,$pos_x$jscomp$6_vbox_x$jscomp$1$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1635$offset_y$$,$pos_y$jscomp$6_vbox_y$jscomp$1$$])),$on_draft_cancel$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.$cljs$cst$3430$interrupt$$)}),
$on_draft_submit$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($draft$jscomp$3$$){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$comments$create_thread_on_workspace$cljs$0core$0IFn$0_invoke$0arity$03$$($draft$jscomp$3$$,$APP.$cljs$core$identity$$,!0))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$395$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$comments$initialize_comments$$($file_id$jscomp$395$$));
return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$4157$app_DOT_main_DOT_data_DOT_workspace_DOT_comments_SLASH_finalize$$)}});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_workspace_viewport_comments__comments-section",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"comments",style:{width:""+($vbox$jscomp$36_vport_w$$??"")+"px",height:""+($vport_h$$??"")+"px"},className:"main_ui_workspace_viewport_comments__workspace-comments-container",
children:(0,$APP.$rumext$v2$jsxs$$)("div",{style:{transform:"translate("+($pos_x$jscomp$6_vbox_x$jscomp$1$$??"")+"px, "+($pos_y$jscomp$6_vbox_y$jscomp$1$$??"")+"px)"},className:"main_ui_workspace_viewport_comments__threads",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$220$$,$JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$){var $JSCompiler_temp_const$jscomp$1844$$=$out_arr__44057__auto__$jscomp$220$$.push,$group_QMARK_$jscomp$inline_8843$$=
$APP.$cljs$core$count$$($JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$)>1,$thread$jscomp$inline_8844$$=$APP.$cljs$core$first$$($JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$);$JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$=$group_QMARK_$jscomp$inline_8843$$?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$comments$comment_floating_group_STAR_$$,{threadGroup:$JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$,zoom:$zoom$jscomp$83$$},$APP.$cljs$cst$3303$seqn$$.$cljs$core$IFn$_invoke$arity$1$($thread$jscomp$inline_8844$$)):
(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$comments$comment_floating_bubble_STAR_$$,{thread:$thread$jscomp$inline_8844$$,zoom:$zoom$jscomp$83$$,isOpen:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($thread$jscomp$inline_8844$$),$APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$29$$))},$APP.$cljs$cst$3303$seqn$$.$cljs$core$IFn$_invoke$arity$1$($thread$jscomp$inline_8844$$));$JSCompiler_temp_const$jscomp$1844$$.call($out_arr__44057__auto__$jscomp$220$$,
$JSCompiler_inline_result$jscomp$1846_thread_group$jscomp$2$$);return $out_arr__44057__auto__$jscomp$220$$},[],$APP.$app$main$ui$comments$group_bubbles$cljs$0core$0IFn$0_invoke$0arity$04$$($zoom$jscomp$83$$,$threads$jscomp$12$$,$APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$PersistentVector$EMPTY$$)),function(){var $temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$=$APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$29$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$)?
($temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($threads_map$jscomp$7$$,$temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$),$APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$)?$APP.$cljs$core$seq$$($APP.$app$main$data$comments$apply_filters$$($local$jscomp$29$$,$profile$jscomp$66$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$],null)))?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$comments$comment_floating_thread_STAR_$$,{thread:$temp__5825__auto__$jscomp$395_temp__5825__auto____$1$jscomp$26$$,viewport:$viewport$jscomp$6$$,zoom:$zoom$jscomp$83$$}):null:null):null}(),function(){var $temp__5825__auto__$jscomp$396$$=$APP.$cljs$cst$3312$draft$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$29$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$396$$)?
$APP.$rumext$v2$jsx$$($APP.$app$main$ui$comments$comment_floating_thread_draft_STAR_$$,{draft:$temp__5825__auto__$jscomp$396$$,onCancel:$on_draft_cancel$jscomp$1$$,onSubmit:$on_draft_submit$jscomp$1$$,viewport:$viewport$jscomp$6$$,zoom:$zoom$jscomp$83$$}):null}()]})})})});var $app$main$ui$workspace$viewport$debug$debug_drop_zones$$=function($p1__78418_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__78418_SHARP_$$,function($new_props_78421$$,$old_props_78422$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78421$$.objects,$old_props_78422$$.objects)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78421$$["selected-shapes"],$old_props_78422$$["selected-shapes"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78421$$["hover-top-frame-id"],
$old_props_78422$$["hover-top-frame-id"])})}(function($bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$){var $objects$jscomp$785$$=$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$.objects,$zoom$jscomp$86$$=$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$.objects,$selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$=$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$["selected-shapes"];
$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$=$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$["hover-top-frame-id"];$selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$),1)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1590$frame$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$)))?
$APP.$cljs$core$first$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$):null;$selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$=$APP.$cljs$core$truth_$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$)?$selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$785$$,$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$);$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$=
$APP.$app$common$data$lazy_map$$($APP.$cljs$core$keys$$($objects$jscomp$785$$),function($p1__78419_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$785$$,$p1__78419_SHARP_$$),$APP.$cljs$cst$1588$points$$)});return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$)?$APP.$cljs$cst$1599$layout$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$):
$selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$)?($bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$=$APP.$app$common$geom$shapes$flex_layout$drop_area$get_drop_areas$$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$,$objects$jscomp$785$$,$bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$),(0,$APP.$rumext$v2$jsx$$)("g",{className:"debug-layout",pointerEvents:"none",transform:$APP.$app$common$geom$shapes$transform_str$$.$cljs$core$IFn$_invoke$arity$1$($selected_frame$jscomp$2_selected_shapes$jscomp$29_shape$jscomp$1034$$),
children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$223$$,$drop_area_p__78424$$){var $idx$jscomp$122$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($drop_area_p__78424$$,0,null);$drop_area_p__78424$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($drop_area_p__78424$$,1,null);$out_arr__44057__auto__$jscomp$223$$.push((0,$APP.$rumext$v2$jsxs$$)("g",{className:"drop-area",children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),
y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),style:{fill:"blue",fillOpacity:.3,stroke:"red",strokeWidth:$zoom$jscomp$86$$/1,strokeDasharray:""+3/$zoom$jscomp$86$$+" "+6/$zoom$jscomp$86$$}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),
y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$),alignmentBaseline:"hanging",fill:"black",children:$APP.$cljs$cst$1779$index$$.$cljs$core$IFn$_invoke$arity$1$($drop_area_p__78424$$)})]},"drop-area-"+($idx$jscomp$122$$??"")));return $out_arr__44057__auto__$jscomp$223$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($bounds$jscomp$85_drop_areas$jscomp$2_hover_top_frame_id$jscomp$3_props_78420$$))})):
null}),$app$main$ui$workspace$viewport$debug$shape_parent_bound$$=function($p1__78430_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__78430_SHARP_$$,function($new_props_78435$$,$old_props_78436$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78435$$.shape,$old_props_78436$$.shape)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78435$$.parent,$old_props_78436$$.parent)})}(function($i1$jscomp$4_props_78434$$){var $i2$jscomp$4_parent$jscomp$305$$=
$i1$jscomp$4_props_78434$$.parent,$zoom$jscomp$87$$=$i1$jscomp$4_props_78434$$.zoom,$i4$jscomp$1_vec__78437$$=$APP.$app$common$geom$shapes$points$parent_coords_bounds$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($i1$jscomp$4_props_78434$$.shape),$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($i2$jscomp$4_parent$jscomp$305$$));$i1$jscomp$4_props_78434$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i4$jscomp$1_vec__78437$$,0,null);$i2$jscomp$4_parent$jscomp$305$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i4$jscomp$1_vec__78437$$,1,null);var $i3$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i4$jscomp$1_vec__78437$$,2,null);$i4$jscomp$1_vec__78437$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($i4$jscomp$1_vec__78437$$,3,null);return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)("polygon",{points:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(",",$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78431_SHARP_$$){return""+
($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($p1__78431_SHARP_$$)??"")+","+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($p1__78431_SHARP_$$)??"")},new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$i1$jscomp$4_props_78434$$,$i2$jscomp$4_parent$jscomp$305$$,$i3$jscomp$1$$,$i4$jscomp$1_vec__78437$$],null))),style:{fill:"none",stroke:"red",strokeWidth:1/$zoom$jscomp$87$$}}),(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($i1$jscomp$4_props_78434$$),
y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($i1$jscomp$4_props_78434$$),x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($i2$jscomp$4_parent$jscomp$305$$),y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($i2$jscomp$4_parent$jscomp$305$$),style:{stroke:"green",strokeWidth:1/$zoom$jscomp$87$$}}),(0,$APP.$rumext$v2$jsx$$)("line",{x1:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($i1$jscomp$4_props_78434$$),y1:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($i1$jscomp$4_props_78434$$),
x2:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($i4$jscomp$1_vec__78437$$),y2:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($i4$jscomp$1_vec__78437$$),style:{stroke:"blue",strokeWidth:1/$zoom$jscomp$87$$}})]})});var $app$main$ui$workspace$viewport$frame_grid$grid_display_frame$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$){$clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$=$APP.$rumext$v2$util$wrap_props$$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$);$clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$=$APP.$cljs$core$__destructure_map$$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$);
var $frame$jscomp$81$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$,$APP.$cljs$cst$1590$frame$$),$zoom$jscomp$95$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$,$APP.$cljs$cst$2158$zoom$$),$transforming$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$,$cljs$cst$5610$transforming$$),$frame_id$jscomp$142$$=
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$81$$);$clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$142$$)],function(){return $app$main$refs$shape_parents$$($frame_id$jscomp$142$$)});var $parents$jscomp$22$$=$APP.$rumext$v2$deref$$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$);$clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$=
$app$main$ui$workspace$viewport$frame_grid$frame_clip_area$$($frame$jscomp$81$$,$parents$jscomp$22$$);var $clip_id$jscomp$4$$=""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$81$$)??"")+"-grid-clip",$transform_QMARK_$$=function(){var $or__5025__auto__$jscomp$1221$$=$APP.$cljs$core$contains_QMARK_$$($transforming$$,$frame_id$jscomp$142$$);return $or__5025__auto__$jscomp$1221$$?$or__5025__auto__$jscomp$1221$$:$APP.$cljs$core$some$$(function($p1__78464_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($transforming$$,
$p1__78464_SHARP_$$)},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$,$parents$jscomp$22$$))}();return $APP.$cljs$core$truth_$$($transform_QMARK_$$)?null:(0,$APP.$rumext$v2$jsxs$$)("g",{clipPath:"url(#"+($clip_id$jscomp$4$$??"")+")",children:[(0,$APP.$rumext$v2$jsx$$)("defs",{children:(0,$APP.$rumext$v2$jsx$$)("clipPath",{id:$clip_id$jscomp$4$$,children:(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$),
y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$),width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($clip_area_map__78475_map__78475__$1_parents_ref_props_78466$$)})})}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$229$$,$p__78478$$){var $index$jscomp$557$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78478$$,0,null),$grid$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78478$$,1,null);$out_arr__44057__auto__$jscomp$229$$.push(function(){var $props$jscomp$399$$={key:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$81$$)),"-grid-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($index$jscomp$557$$)].join(""),frame:$frame$jscomp$81$$,
zoom:$zoom$jscomp$95$$,grid:$grid$jscomp$15$$},$G__78482_G__78482__$1$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($grid$jscomp$15$$);$G__78482_G__78482__$1$$=$G__78482_G__78482__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__78482_G__78482__$1$$.$fqn$:null;switch($G__78482_G__78482__$1$$){case "square":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$frame_grid$square_grid$$,$props$jscomp$399$$);case "column":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$frame_grid$layout_grid$$,
$props$jscomp$399$$);case "row":return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$workspace$viewport$frame_grid$layout_grid$$,$props$jscomp$399$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__78482_G__78482__$1$$)].join(""));}}());return $out_arr__44057__auto__$jscomp$229$$},[],$APP.$cljs$core$map_indexed$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$vector$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1917$display$$,
$APP.$cljs$cst$2035$grids$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$81$$))))]})}),$app$main$ui$workspace$viewport$frame_grid$frame_grid$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__78489_props_78488_transform$jscomp$110$$){$map__78489_props_78488_transform$jscomp$110$$=$APP.$rumext$v2$util$wrap_props$$($map__78489_props_78488_transform$jscomp$110$$);var $frames$jscomp$32_map__78489__$1$$=$APP.$cljs$core$__destructure_map$$($map__78489_props_78488_transform$jscomp$110$$),
$zoom$jscomp$96$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frames$jscomp$32_map__78489__$1$$,$APP.$cljs$cst$2158$zoom$$);$map__78489_props_78488_transform$jscomp$110$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frames$jscomp$32_map__78489__$1$$,$APP.$cljs$cst$1275$transform$$);var $selected$jscomp$186$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frames$jscomp$32_map__78489__$1$$,$APP.$cljs$cst$1906$selected$$),$focus$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frames$jscomp$32_map__78489__$1$$,
$APP.$cljs$cst$4873$focus$$);$frames$jscomp$32_map__78489__$1$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($app$main$ui$workspace$viewport$frame_grid$has_grid_QMARK_$$,$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_frames$$));var $transforming$jscomp$1$$=$map__78489_props_78488_transform$jscomp$110$$!=null?$selected$jscomp$186$$:null;return(0,$APP.$rumext$v2$jsx$$)("g",{className:"grid-display",style:{pointerEvents:"none"},children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$230$$,
$frame$jscomp$82$$){$out_arr__44057__auto__$jscomp$230$$.push($APP.$app$common$math$almost_zero_QMARK_$$($APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$82$$,0))&&($APP.$cljs$core$empty_QMARK_$$($focus$jscomp$17$$)||$APP.$cljs$core$contains_QMARK_$$($focus$jscomp$17$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$82$$)))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$frame_grid$grid_display_frame$$,{zoom:$zoom$jscomp$96$$,frame:$frame$jscomp$82$$,
transforming:$transforming$jscomp$1$$},["grid-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$82$$))].join("")):null);return $out_arr__44057__auto__$jscomp$230$$},[],$frames$jscomp$32_map__78489__$1$$)})});var $app$main$ui$workspace$viewport$gradients$gradient_handlers_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$){var $zoom$jscomp$100$$=$props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$.zoom,$id$jscomp$989$$=$props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$.id;$props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$989$$)],
function(){return $app$main$refs$object_by_id$$($id$jscomp$989$$)});$props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$=$APP.$rumext$v2$deref$$($props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$);var $editing_stop$jscomp$4_state$jscomp$1106$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$colorpicker$$),$gradient$jscomp$29$$=$APP.$cljs$cst$1708$gradient$$.$cljs$core$IFn$_invoke$arity$1$($editing_stop$jscomp$4_state$jscomp$1106$$),$stops$jscomp$22$$=$app$main$features$use_feature$$("render-wasm/v1")?
$APP.$cljs$core$vec$$($APP.$cljs$core$take$$.$cljs$core$IFn$_invoke$arity$2$(16,$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($editing_stop$jscomp$4_state$jscomp$1106$$))):$APP.$cljs$cst$1717$stops$$.$cljs$core$IFn$_invoke$arity$1$($editing_stop$jscomp$4_state$jscomp$1106$$);$editing_stop$jscomp$4_state$jscomp$1106$$=$APP.$cljs$cst$4046$editing_stop$$.$cljs$core$IFn$_invoke$arity$1$($editing_stop$jscomp$4_state$jscomp$1106$$);return $gradient$jscomp$29$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$989$$,
$APP.$cljs$cst$2500$shape_id$$.$cljs$core$IFn$_invoke$arity$1$($gradient$jscomp$29$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$gradients$gradient_handlers_impl_STAR_$$,{zoom:$zoom$jscomp$100$$,gradient:$gradient$jscomp$29$$,stops:$stops$jscomp$22$$,editing:$editing_stop$jscomp$4_state$jscomp$1106$$,shape:$props_78515_shape$jscomp$1040_shape_ref$jscomp$3$$}):null});var $app$main$ui$workspace$viewport$grid_layout_editor$grid_cell$$=function($component__44519__auto__$jscomp$3$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($component__44519__auto__$jscomp$3$$,function($new_props_78539$$,$old_props_78540$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$.zoom,$old_props_78540$$.zoom)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$["on-clear-modifiers"],$old_props_78540$$["on-clear-modifiers"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$["on-set-modifiers"],
$old_props_78540$$["on-set-modifiers"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$.shape,$old_props_78540$$.shape)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$["layout-data"],$old_props_78540$$["layout-data"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$.cell,$old_props_78540$$.cell)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$["selected?"],$old_props_78540$$["selected?"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78539$$["hover?"],
$old_props_78540$$["hover?"])})}(function($cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$){var $layout_data$jscomp$20$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$["layout-data"],$selected_QMARK_$jscomp$28$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$["selected?"],$cell$jscomp$47$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$.cell,$hover_QMARK_$jscomp$13$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$["hover?"],$zoom$jscomp$104$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$.zoom,
$on_clear_modifiers$jscomp$1$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$["on-clear-modifiers"],$on_set_modifiers$jscomp$1$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$["on-set-modifiers"],$shape$jscomp$1043$$=$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$.shape;$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$=$APP.$app$common$geom$shapes$grid_layout$positions$cell_bounds$$($layout_data$jscomp$20$$,$cell$jscomp$47$$);var $cell_origin$jscomp$3_handle_pointer_leave$$=
$APP.$app$common$geom$shapes$points$origin$$($cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$),$cell_width$jscomp$3$$=$APP.$app$common$geom$shapes$points$width_points$$($cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$),$cell_height$jscomp$1$$=$APP.$app$common$geom$shapes$points$height_points$$($cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$),$cell_center$jscomp$1$$=$APP.$app$common$geom$shapes$common$points__GT_center$$($cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$),
$cell_origin__$1$jscomp$1$$=$APP.$app$common$geom$point$transform$$($cell_origin$jscomp$3_handle_pointer_leave$$,$APP.$app$common$geom$matrix$transform_in$$($cell_center$jscomp$1$$,$APP.$cljs$cst$1771$transform_inverse$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)));$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$))],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$hover_grid_cell$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),!0))});$cell_origin$jscomp$3_handle_pointer_leave$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)),
$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$))],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$hover_grid_cell$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),!1))});var $handle_pointer_down$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)),
$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)),$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$28$$)],function($JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$){if($app$util$dom$left_mouse_QMARK_$$($JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$))if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$28$$)?
$APP.$app$util$keyboard$mod_QMARK_$$($JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$)||$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$.shiftKey:$selected_QMARK_$jscomp$28$$))$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$=
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$remove_selection$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)));else if($APP.$cljs$core$not$$($selected_QMARK_$jscomp$28$$)&&$APP.$app$util$keyboard$mod_QMARK_$$($JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$)){$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$=
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$10557_grid_id$jscomp$inline_13055$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$);var $cell_id$jscomp$inline_13056$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$);$JSCompiler_inline_result$jscomp$10557_grid_id$jscomp$inline_13055$$=$app$main$data$workspace$grid_layout$editor$add_to_selection$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_inline_result$jscomp$10557_grid_id$jscomp$inline_13055$$,
$cell_id$jscomp$inline_13056$$,!1);$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$=$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$10557_grid_id$jscomp$inline_13055$$)}else $JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$=
$APP.$cljs$core$not$$($selected_QMARK_$jscomp$28$$)&&$JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$.shiftKey?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$add_to_selection$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),
!0)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$set_selection$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)));else $JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$=null;return $JSCompiler_temp$jscomp$10552_JSCompiler_temp$jscomp$10553_JSCompiler_temp$jscomp$10554_JSCompiler_temp_const$jscomp$10555_event$jscomp$626$$}),
$handle_context_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)),$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)),$APP.$rumext$v2$adapt$$($selected_QMARK_$jscomp$28$$)],function($event$jscomp$627_position$jscomp$213$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$627_position$jscomp$213$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$627_position$jscomp$213$$);
$event$jscomp$627_position$jscomp$213$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$627_position$jscomp$213$$);return $APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$28$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$show_grid_cell_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1660$position$$,$event$jscomp$627_position$jscomp$213$$,$APP.$cljs$cst$4353$grid_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)],
null))):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$workspace$grid_layout$editor$set_selection$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$show_grid_cell_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1660$position$$,$event$jscomp$627_position$jscomp$213$$,
$APP.$cljs$cst$4353$grid_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$)],null))]))});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"cell-editor",children:[$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2915$grid_cells$$)?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"debug-cell",pointerEvents:"none",transform:""+($APP.$app$common$geom$matrix$transform_in$$($cell_center$jscomp$1$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$))??
""),children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),width:$cell_width$jscomp$3$$,height:$cell_height$jscomp$1$$,fill:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),$APP.$cljs$cst$1656$auto$$)?"green":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),
$APP.$cljs$cst$1657$manual$$)?"red":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$),$APP.$cljs$cst$1658$area$$)?"yellow":"black",fillOpacity:.2}),$APP.$cljs$core$seq$$($APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$))?(0,$APP.$rumext$v2$jsx$$)("circle",{cx:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+$cell_width$jscomp$3$$+-(7/$zoom$jscomp$104$$),
cy:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+7/$zoom$jscomp$104$$,r:5/$zoom$jscomp$104$$,fill:"red"}):null]}):null,(0,$APP.$rumext$v2$jsx$$)("rect",{width:$cell_width$jscomp$3$$,height:$cell_height$jscomp$1$$,className:$APP.$app$util$dom$classnames$cljs$0core$0IFn$0_invoke$0arity$0variadic$$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$(["main_ui_workspace_viewport_grid_layout_editor__grid-cell-outline",!0,"main_ui_workspace_viewport_grid_layout_editor__hover",
$hover_QMARK_$jscomp$13$$,"main_ui_workspace_viewport_grid_layout_editor__selected",$selected_QMARK_$jscomp$28$$])),x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),transform:""+($APP.$app$common$geom$matrix$transform_in$$($cell_center$jscomp$1$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$))??""),onContextMenu:$handle_context_menu$$,y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),
onPointerDown:$handle_pointer_down$jscomp$3$$,onPointerLeave:$cell_origin$jscomp$3_handle_pointer_leave$$,onPointerEnter:$cell_bounds$jscomp$5_handle_pointer_enter_props_78538$$}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1659$area_name$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$grid_cell_area_label$$,{origin:$cell_origin__$1$jscomp$1$$,width:$cell_width$jscomp$3$$,zoom:$zoom$jscomp$104$$,text:$APP.$cljs$cst$1659$area_name$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)}):
null,$APP.$cljs$core$truth_$$($selected_QMARK_$jscomp$28$$)?function(){var $handlers$jscomp$8$$=new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1546$top$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+-10/$zoom$jscomp$104$$,
$cell_width$jscomp$3$$,20/$zoom$jscomp$104$$,$APP.$cljs$cst$1640$row$$],null),new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$258$right$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+$cell_width$jscomp$3$$+-10/$zoom$jscomp$104$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),20/$zoom$jscomp$104$$,$cell_height$jscomp$1$$,$APP.$cljs$cst$216$column$$],null),new $APP.$cljs$core$PersistentVector$$(null,
6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1547$bottom$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+$cell_height$jscomp$1$$+-10/$zoom$jscomp$104$$,$cell_width$jscomp$3$$,20/$zoom$jscomp$104$$,$APP.$cljs$cst$1640$row$$],null),new $APP.$cljs$core$PersistentVector$$(null,6,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$257$left$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$)+
-10/$zoom$jscomp$104$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($cell_origin__$1$jscomp$1$$),20/$zoom$jscomp$104$$,$cell_height$jscomp$1$$,$APP.$cljs$cst$216$column$$],null)],null);return(0,$APP.$rumext$v2$jsx$$)("g",{transform:""+($APP.$app$common$geom$matrix$transform_in$$($cell_center$jscomp$1$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1043$$))??""),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$232$$,
$dir$jscomp$10_p__78541$$){var $handler$jscomp$45$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,0,null),$x$jscomp$1272$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,1,null),$y$jscomp$496$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,2,null),$width$jscomp$225$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,3,null),$height$jscomp$192$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,
4,null);$dir$jscomp$10_p__78541$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($dir$jscomp$10_p__78541$$,5,null);$out_arr__44057__auto__$jscomp$232$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$resize_cell_handler$$,{y:$y$jscomp$496$$,width:$width$jscomp$225$$,"on-clear-modifiers":$on_clear_modifiers$jscomp$1$$,"on-set-modifiers":$on_set_modifiers$jscomp$1$$,shape:$shape$jscomp$1043$$,x:$x$jscomp$1272$$,"layout-data":$layout_data$jscomp$20$$,cell:$cell$jscomp$47$$,
handler:$handler$jscomp$45$$,direction:$dir$jscomp$10_p__78541$$,height:$height$jscomp$192$$},"resize-"+($APP.$app$common$data$name$$($handler$jscomp$45$$)??"")+"-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$47$$)??"")));return $out_arr__44057__auto__$jscomp$232$$},[],$handlers$jscomp$8$$)})}():null]})}),$app$main$ui$workspace$viewport$grid_layout_editor$track$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($on_clear_modifiers$jscomp$5_props_78586$$){var $shape$jscomp$1047$$=
$on_clear_modifiers$jscomp$5_props_78586$$.shape,$zoom$jscomp$109$$=$on_clear_modifiers$jscomp$5_props_78586$$.zoom,$type$jscomp$681$$=$on_clear_modifiers$jscomp$5_props_78586$$.type,$index$jscomp$565$$=$on_clear_modifiers$jscomp$5_props_78586$$.index,$snap_pixel_QMARK_$jscomp$11$$=$on_clear_modifiers$jscomp$5_props_78586$$["snap-pixel?"],$track_data$$=$on_clear_modifiers$jscomp$5_props_78586$$["track-data"],$layout_data$jscomp$22$$=$on_clear_modifiers$jscomp$5_props_78586$$["layout-data"],$hovering_QMARK_$jscomp$4$$=
$on_clear_modifiers$jscomp$5_props_78586$$["hovering?"],$drop_QMARK_$jscomp$2$$=$on_clear_modifiers$jscomp$5_props_78586$$["drop?"],$on_start_reorder_track$$=$on_clear_modifiers$jscomp$5_props_78586$$["on-start-reorder-track"],$on_move_reorder_track$$=$on_clear_modifiers$jscomp$5_props_78586$$["on-move-reorder-track"],$on_end_reorder_track$$=$on_clear_modifiers$jscomp$5_props_78586$$["on-end-reorder-track"],$on_set_modifiers$jscomp$5$$=$on_clear_modifiers$jscomp$5_props_78586$$["on-set-modifiers"];
$on_clear_modifiers$jscomp$5_props_78586$$=$on_clear_modifiers$jscomp$5_props_78586$$["on-clear-modifiers"];var $track_input_ref$$=(0,$APP.$rumext$v2$use_ref$$)(),$start_p$jscomp$18_vec__78587$$=$APP.$app$common$types$shape$layout$gaps$$($shape$jscomp$1047$$),$layout_gap_row$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_p$jscomp$18_vec__78587$$,0,null),$layout_gap_col$jscomp$15$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($start_p$jscomp$18_vec__78587$$,
1,null),$bounds$jscomp$90$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$);$start_p$jscomp$18_vec__78587$$=$APP.$cljs$cst$2938$start_p$$.$cljs$core$IFn$_invoke$arity$1$($track_data$$);var $hpt$$=$APP.$app$common$geom$shapes$points$project_point$$($bounds$jscomp$90$$,$APP.$cljs$cst$1884$h$$,$start_p$jscomp$18_vec__78587$$),$vpt$$=$APP.$app$common$geom$shapes$points$project_point$$($bounds$jscomp$90$$,$APP.$cljs$cst$2947$v$$,$start_p$jscomp$18_vec__78587$$),$marker_p$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$APP.$cljs$cst$216$column$$)?function(){var $G__78594$$=$APP.$app$common$geom$point$subtract$$($hpt$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$90$$,20/$zoom$jscomp$109$$));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$565$$,0)?$APP.$app$common$geom$point$subtract$$($G__78594$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$90$$,$layout_gap_col$jscomp$15$$/
2)):$G__78594$$}():function(){var $G__78595$$=$APP.$app$common$geom$point$subtract$$($vpt$$,$APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$90$$,20/$zoom$jscomp$109$$));return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($index$jscomp$565$$,0)?$APP.$app$common$geom$point$subtract$$($G__78595$$,$APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$90$$,$layout_gap_row$jscomp$15$$/2)):$G__78595$$}(),$text_p$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,
$APP.$cljs$cst$216$column$$)?$hpt$$:$vpt$$,$handle_blur_track_input$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$))],function($event$jscomp$628_target$jscomp$160$$){$event$jscomp$628_target$jscomp$160$$=$APP.$app$util$dom$get_target$$($event$jscomp$628_target$jscomp$160$$);var $track_type$jscomp$1_value$jscomp$964$$=$APP.$cuerdas$core$upper$$($APP.$app$util$dom$get_input_value$$($event$jscomp$628_target$jscomp$160$$)),
$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$=$APP.$app$common$data$parse_integer$cljs$0core$0IFn$0_invoke$0arity$01$$($track_type$jscomp$1_value$jscomp$964$$);$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$=$APP.$cljs$core$truth_$$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$)?0>$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$?0:$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$:
null;$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$=$APP.$cuerdas$core$ends_with_QMARK_$$($track_type$jscomp$1_value$jscomp$964$$,"%")?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1654$percent$$,$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$,50)],null):$APP.$cuerdas$core$ends_with_QMARK_$$($track_type$jscomp$1_value$jscomp$964$$,
"FR")?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1644$flex$$,$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$,1)],null):$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$!=null?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1655$fixed$$,$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$,
100)],null):new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1656$auto$$,null],null);$track_type$jscomp$1_value$jscomp$964$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$,0,null);$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$,
1,null);$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$=$track_type$jscomp$1_value$jscomp$964$$!=null?new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$139$type$$,$track_type$jscomp$1_value$jscomp$964$$,$APP.$cljs$cst$260$value$$,$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$],null):null;$app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($track_input_ref$$),$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$));
return $track_type$jscomp$1_value$jscomp$964$$!=null?($APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$change_layout_track$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$)],null),$type$jscomp$681$$,$index$jscomp$565$$,$track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$)),$APP.$app$util$dom$set_data_BANG_$$($event$jscomp$628_target$jscomp$160$$,
"default-value",$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$($track_data__$1_value__$1$jscomp$76_value_int_value_int__$1_vec__78596$$))):$APP.$app$util$object$set_BANG_$$($event$jscomp$628_target$jscomp$160$$,"value",$APP.$app$util$dom$get_attribute$$($event$jscomp$628_target$jscomp$160$$,"data-default-value"))}),$handle_keydown_track_input$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$629$$){var $enter_QMARK_$jscomp$6$$=(0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$629$$),
$esc_QMARK_$jscomp$8$$=(0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$629$$);$APP.$cljs$core$truth_$$($enter_QMARK_$jscomp$6$$)&&$APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$629$$));return $APP.$cljs$core$truth_$$($esc_QMARK_$jscomp$8$$)?$APP.$app$util$dom$blur_BANG_$$($APP.$app$util$dom$get_target$$($event$jscomp$629$$)):null}),$handle_pointer_enter$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$)),
$APP.$rumext$v2$adapt$$($type$jscomp$681$$),$APP.$rumext$v2$adapt$$($index$jscomp$565$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$hover_layout_track$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$)],null),$type$jscomp$681$$,$index$jscomp$565$$,!0))}),$handle_pointer_leave$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$)),
$APP.$rumext$v2$adapt$$($type$jscomp$681$$),$APP.$rumext$v2$adapt$$($index$jscomp$565$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$hover_layout_track$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$)],null),$type$jscomp$681$$,$index$jscomp$565$$,!1))}),$track_before$jscomp$3_track_list_prop$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,
$APP.$cljs$cst$216$column$$)?$APP.$cljs$cst$2937$column_tracks$$:$APP.$cljs$cst$2936$row_tracks$$,$text_height_vec__78590$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$APP.$cljs$cst$216$column$$)?new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($text_p$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($text_p$$)-36/$zoom$jscomp$109$$,function(){var $y__5111__auto__$jscomp$164$$=
$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_data$$);return 0>$y__5111__auto__$jscomp$164$$?0:$y__5111__auto__$jscomp$164$$}(),36/$zoom$jscomp$109$$],null):new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($text_p$$)-function(){var $y__5111__auto__$jscomp$165$$=$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_data$$);return 0>$y__5111__auto__$jscomp$165$$?0:$y__5111__auto__$jscomp$165$$}(),
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($text_p$$)-36/$zoom$jscomp$109$$,function(){var $y__5111__auto__$jscomp$166$$=$APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($track_data$$);return 0>$y__5111__auto__$jscomp$166$$?0:$y__5111__auto__$jscomp$166$$}(),36/$zoom$jscomp$109$$],null),$text_x$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_height_vec__78590$$,0,null),$text_y$jscomp$2$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_height_vec__78590$$,
1,null),$text_width$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_height_vec__78590$$,2,null);$text_height_vec__78590$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($text_height_vec__78590$$,3,null);var $handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_start_reorder_track$$),$APP.$rumext$v2$adapt$$($type$jscomp$681$$),$APP.$rumext$v2$adapt$$($index$jscomp$565$$)],
function(){return $on_start_reorder_track$$.$cljs$core$IFn$_invoke$arity$2$?$on_start_reorder_track$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$index$jscomp$565$$):$on_start_reorder_track$$($type$jscomp$681$$,$index$jscomp$565$$)}),$handle_drag_end$jscomp$2_handle_lost_pointer_capture$jscomp$4$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_end_reorder_track$$),$APP.$rumext$v2$adapt$$($type$jscomp$681$$),$APP.$rumext$v2$adapt$$($index$jscomp$565$$)],
function($G__78602_event$jscomp$630$$,$position$jscomp$217$$){$G__78602_event$jscomp$630$$=!$APP.$app$util$keyboard$mod_QMARK_$$($G__78602_event$jscomp$630$$);return $on_end_reorder_track$$.$cljs$core$IFn$_invoke$arity$4$?$on_end_reorder_track$$.$cljs$core$IFn$_invoke$arity$4$($type$jscomp$681$$,$index$jscomp$565$$,$position$jscomp$217$$,$G__78602_event$jscomp$630$$):$on_end_reorder_track$$($type$jscomp$681$$,$index$jscomp$565$$,$position$jscomp$217$$,$G__78602_event$jscomp$630$$)}),$handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_move_reorder_track$$),$APP.$rumext$v2$adapt$$($type$jscomp$681$$),$APP.$rumext$v2$adapt$$($index$jscomp$565$$)],function($_$jscomp$2947$$,$position$jscomp$218$$){return $on_move_reorder_track$$.$cljs$core$IFn$_invoke$arity$3$?$on_move_reorder_track$$.$cljs$core$IFn$_invoke$arity$3$($type$jscomp$681$$,$index$jscomp$565$$,$position$jscomp$218$$):$on_move_reorder_track$$($type$jscomp$681$$,$index$jscomp$565$$,$position$jscomp$218$$)}),
$handle_show_track_menu$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$){$APP.$app$util$dom$stop_propagation$$($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$);$APP.$app$util$dom$prevent_default$$($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$);$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$=
$APP.$app$util$dom$get_client_position$$($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$);$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$APP.$cljs$cst$216$column$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$,
$APP.$cljs$cst$1500$y$$,$APP.$cljs$core$_PLUS_$$,40):$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$;$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$APP.$cljs$cst$1640$row$$)?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$,
$APP.$cljs$cst$1499$x$$,$APP.$cljs$core$_PLUS_$$,30):$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$;return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$show_track_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1660$position$$,$G__78603$jscomp$inline_8874_G__78603__$1$jscomp$inline_8875_event$jscomp$631_position$jscomp$219$$,$APP.$cljs$cst$4353$grid_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$),
$APP.$cljs$cst$139$type$$,$type$jscomp$681$$,$APP.$cljs$cst$1779$index$$,$index$jscomp$565$$],null)))}),$small_QMARK__trackwidth$$=$text_width$$*$zoom$jscomp$109$$,$medium_QMARK_$$=$small_QMARK__trackwidth$$>=60&&$small_QMARK__trackwidth$$<110;$small_QMARK__trackwidth$$=$small_QMARK__trackwidth$$<60;$track_before$jscomp$3_track_list_prop$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($layout_data$jscomp$22$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$track_before$jscomp$3_track_list_prop$$,$index$jscomp$565$$-1],null));$handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$=$app$main$ui$workspace$viewport$grid_layout_editor$use_drag$$(new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$cljs$cst$5619$on_drag_start$$,$handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$,$cljs$cst$5620$on_drag_end$$,$handle_drag_end$jscomp$2_handle_lost_pointer_capture$jscomp$4$$,$cljs$cst$5622$on_drag_position$$,$handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$],
null));$handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$=$APP.$cljs$core$__destructure_map$$($handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$);$handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$,$cljs$cst$5623$handle_pointer_down$$);$handle_drag_end$jscomp$2_handle_lost_pointer_capture$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$,
$cljs$cst$5624$handle_lost_pointer_capture$$);$handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$,$cljs$cst$5625$handle_pointer_move$$);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($track_data$$)],function(){return $app$util$dom$set_value_BANG_$$($APP.$rumext$v2$ref_val$$($track_input_ref$$),$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$($track_data$$))});
return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"track",children:[(0,$APP.$rumext$v2$jsxs$$)("g",{onPointerEnter:$handle_pointer_enter$jscomp$1$$,onPointerLeave:$handle_pointer_leave$jscomp$1$$,transform:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,$APP.$cljs$cst$216$column$$)?""+($APP.$app$common$geom$matrix$transform_in$$($text_p$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$))??""):""+($APP.$app$common$geom$matrix$transform_in$$($text_p$$,
$APP.$app$common$geom$matrix$rotate$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1047$$),-90))??""),children:[(0,$APP.$rumext$v2$jsx$$)("rect",{x:$text_x$jscomp$2$$+18/$zoom$jscomp$109$$,y:$text_y$jscomp$2$$,width:$text_width$$-36/$zoom$jscomp$109$$,height:$text_height_vec__78590$$-5/$zoom$jscomp$109$$,rx:3/$zoom$jscomp$109$$,style:{cursor:"pointer"},opacity:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hovering_QMARK_$jscomp$4$$)?
!$small_QMARK__trackwidth$$:$hovering_QMARK_$jscomp$4$$)?.2:0,className:"main_ui_workspace_viewport_grid_layout_editor__grid-editor-header-hover"}),$small_QMARK__trackwidth$$?null:(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:$text_x$jscomp$2$$,y:$text_y$jscomp$2$$,width:$text_width$$,height:$text_height_vec__78590$$,children:(0,$APP.$rumext$v2$jsxs$$)("div",{onContextMenu:$handle_show_track_menu$$,onPointerDown:$handle_drag_start$jscomp$1_handle_pointer_down$jscomp$6_map__78593$$,onLostPointerCapture:$handle_drag_end$jscomp$2_handle_lost_pointer_capture$jscomp$4$$,
onPointerMove:$handle_drag_position$jscomp$2_handle_pointer_move$jscomp$4_map__78593__$1$$,className:"main_ui_workspace_viewport_grid_layout_editor__grid-editor-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("input",{ref:$track_input_ref$$,style:{},type:"text",defaultValue:$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$($track_data$$),"data-default-value":$app$main$ui$workspace$viewport$grid_layout_editor$format_size$$($track_data$$),onKeyDown:$handle_keydown_track_input$$,onBlur:$handle_blur_track_input$$,
className:"main_ui_workspace_viewport_grid_layout_editor__grid-editor-label"}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($hovering_QMARK_$jscomp$4$$)?!$medium_QMARK_$$&&!$small_QMARK__trackwidth$$:$hovering_QMARK_$jscomp$4$$)?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$handle_show_track_menu$$,className:"main_ui_workspace_viewport_grid_layout_editor__grid-editor-button",children:$APP.$app$main$ui$icons$menu$$}):null]})})]}),(0,$APP.$rumext$v2$jsx$$)("g",{transform:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$681$$,
$APP.$cljs$cst$1640$row$$)?"rotate(-90 "+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($marker_p$$)??"")+" "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($marker_p$$)??"")+")":null,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$track_marker$$,{zoom:$zoom$jscomp$109$$,index:$index$jscomp$565$$,value:""+($index$jscomp$565$$+1??""),"track-before":$track_before$jscomp$3_track_list_prop$$,"snap-pixel?":$snap_pixel_QMARK_$jscomp$11$$,type:$type$jscomp$681$$,
"on-clear-modifiers":$on_clear_modifiers$jscomp$5_props_78586$$,"track-after":$track_data$$,center:$marker_p$$,"on-set-modifiers":$on_set_modifiers$jscomp$5$$,shape:$shape$jscomp$1047$$})}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$resize_track_handler$$,{zoom:$zoom$jscomp$109$$,index:$index$jscomp$565$$,"track-before":$track_before$jscomp$3_track_list_prop$$,"snap-pixel?":$snap_pixel_QMARK_$jscomp$11$$,type:$type$jscomp$681$$,"on-clear-modifiers":$on_clear_modifiers$jscomp$5_props_78586$$,
"track-after":$track_data$$,"on-set-modifiers":$on_set_modifiers$jscomp$5$$,"start-p":$start_p$jscomp$18_vec__78587$$,shape:$shape$jscomp$1047$$,"layout-data":$layout_data$jscomp$22$$,"drop?":$drop_QMARK_$jscomp$2$$})]})}),$app$main$ui$workspace$viewport$grid_layout_editor$editor$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($props_78610_view_only$$){function $vv$jscomp$16$$($p1__78605_SHARP_$$){return $APP.$app$common$geom$shapes$points$start_vv$$($bounds$jscomp$91$$,$p1__78605_SHARP_$$)}function $hv$jscomp$16$$($p1__78604_SHARP_$$){return $APP.$app$common$geom$shapes$points$start_hv$$($bounds$jscomp$91$$,
$p1__78604_SHARP_$$)}var $base_shape$jscomp$1$$=$props_78610_view_only$$.shape,$objects$jscomp$789$$=$props_78610_view_only$$.objects,$modifiers$jscomp$129$$=$props_78610_view_only$$.modifiers,$zoom$jscomp$110$$=$props_78610_view_only$$.zoom;$props_78610_view_only$$=$props_78610_view_only$$["view-only"];var $st_modif$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$shape$jscomp$1048$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_shape$jscomp$1$$),
$APP.$rumext$v2$adapt$$($modifiers$jscomp$129$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($st_modif$$))],function(){var $G__78612__$1$$=$modifiers$jscomp$129$$!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($base_shape$jscomp$1$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$129$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($base_shape$jscomp$1$$)),$APP.$cljs$cst$1794$modifiers$$)):
$base_shape$jscomp$1$$;return $APP.$cljs$core$_deref$$($st_modif$$)!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($G__78612__$1$$,$APP.$cljs$core$_deref$$($st_modif$$)):$G__78612__$1$$}),$snap_pixel_QMARK_$jscomp$12$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$snap_pixel_QMARK_$$),$grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))],
function(){return $app$main$refs$workspace_grid_edition_id$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))});$grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$=$APP.$rumext$v2$deref$$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$);var $hover_cells$$=$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$),
$selected_cells$jscomp$1$$=$APP.$cljs$cst$1906$selected$$.$cljs$core$IFn$_invoke$arity$1$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$),$hover_columns$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78613$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78613$$,0,null);return $APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78613$$,
1,null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78617$$){var $t$jscomp$99$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78617$$,0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78617$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($t$jscomp$99$$,$APP.$cljs$cst$216$column$$)},$APP.$cljs$cst$4259$hover_track$$.$cljs$core$IFn$_invoke$arity$1$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$)))),
$hover_rows$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78621$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78621$$,0,null);return $APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78621$$,1,null)},$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p__78625$$){var $t$jscomp$100$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78625$$,
0,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__78625$$,1,null);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($t$jscomp$100$$,$APP.$cljs$cst$1640$row$$)},$APP.$cljs$cst$4259$hover_track$$.$cljs$core$IFn$_invoke$arity$1$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$)))),$bounds$jscomp$91$$=$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$),$origin$jscomp$68$$=$APP.$app$common$geom$shapes$points$origin$$($bounds$jscomp$91$$),
$layout_data$jscomp$23$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($shape$jscomp$1048$$),$APP.$rumext$v2$adapt$$($modifiers$jscomp$129$$)],function(){var $children$jscomp$316_objects__$1$jscomp$38$$=$APP.$app$common$geom$shapes$apply_objects_modifiers$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$789$$,$modifiers$jscomp$129$$),$children_bounds$jscomp$2_ids$jscomp$303$$=$APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($children$jscomp$316_objects__$1$jscomp$38$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$)),$objects__$2$jscomp$1$$=$app$common$geom$shapes$update_shapes_geometry$$($children$jscomp$316_objects__$1$jscomp$38$$,$APP.$cljs$core$reverse$$($children_bounds$jscomp$2_ids$jscomp$303$$));$children$jscomp$316_objects__$1$jscomp$38$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78606_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$common$geom$shapes$points$parent_coords_bounds$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($p1__78606_SHARP_$$),
$APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$)),$p1__78606_SHARP_$$],null)},$APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$03$$($objects__$2$jscomp$1$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$),new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1605$remove_hidden$$,!0],null)));$children_bounds$jscomp$2_ids$jscomp$303$$=$APP.$app$common$data$lazy_map$$($children_bounds$jscomp$2_ids$jscomp$303$$,
function($p1__78607_SHARP_$$){return $APP.$app$common$geom$shapes$shape__GT_points$$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects__$2$jscomp$1$$,$p1__78607_SHARP_$$))});return $APP.$app$common$geom$shapes$grid_layout$calc_layout_data$$.$cljs$core$IFn$_invoke$arity$5$($shape$jscomp$1048$$,$bounds$jscomp$91$$,$children$jscomp$316_objects__$1$jscomp$38$$,$children_bounds$jscomp$2_ids$jscomp$303$$,$objects__$2$jscomp$1$$)});$grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$=
$APP.$cljs$core$__destructure_map$$($layout_data$jscomp$23$$);var $row_tracks$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,$APP.$cljs$cst$2936$row_tracks$$),$column_tracks$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,$APP.$cljs$cst$2937$column_tracks$$),$column_total_size$jscomp$2$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,$APP.$cljs$cst$2941$column_total_size$$),$column_total_gap$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,$APP.$cljs$cst$2942$column_total_gap$$),$row_total_size$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,
$APP.$cljs$cst$2946$row_total_size$$),$row_total_gap$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,$APP.$cljs$cst$2944$row_total_gap$$),$width$jscomp$227$$=function(){var $x__5110__auto__$jscomp$167$$=$APP.$app$common$geom$shapes$points$width_points$$($bounds$jscomp$91$$),$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$=$APP.$cljs$core$__destructure_map$$($shape$jscomp$1048$$);
var $JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$,$APP.$cljs$cst$1669$layout_padding_type$$);$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$,
$APP.$cljs$cst$1670$layout_padding$$);var $map__47777__$1$jscomp$inline_8881_pad_left$jscomp$inline_8883$$=$APP.$cljs$core$__destructure_map$$($map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$);$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47777__$1$jscomp$inline_8881_pad_left$jscomp$inline_8883$$,$APP.$cljs$cst$1089$p2$$);$map__47777__$1$jscomp$inline_8881_pad_left$jscomp$inline_8883$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47777__$1$jscomp$inline_8881_pad_left$jscomp$inline_8883$$,$APP.$cljs$cst$1672$p4$$);$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1647$simple$$,$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$)?$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$+
$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$:$map__47776__$1$jscomp$inline_8878_map__47777$jscomp$inline_8880_pad_right$jscomp$inline_8882$$+$map__47777__$1$jscomp$inline_8881_pad_left$jscomp$inline_8883$$;$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$=$column_total_size$jscomp$2$$+$column_total_gap$jscomp$2$$+$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$;
return $x__5110__auto__$jscomp$167$$>$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$?$x__5110__auto__$jscomp$167$$:$JSCompiler_inline_result$jscomp$1496_layout_padding_type$jscomp$inline_8879_y__5111__auto__$jscomp$167$$}(),$height$jscomp$194$$=function(){var $x__5110__auto__$jscomp$168$$=$APP.$app$common$geom$shapes$points$height_points$$($bounds$jscomp$91$$),$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$=
$APP.$cljs$core$__destructure_map$$($shape$jscomp$1048$$);var $JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$,$APP.$cljs$cst$1669$layout_padding_type$$);$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$,
$APP.$cljs$cst$1670$layout_padding$$);var $map__47780__$1$jscomp$inline_8889_pad_bottom$jscomp$inline_8891$$=$APP.$cljs$core$__destructure_map$$($map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$);$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47780__$1$jscomp$inline_8889_pad_bottom$jscomp$inline_8891$$,$APP.$cljs$cst$1091$p1$$);$map__47780__$1$jscomp$inline_8889_pad_bottom$jscomp$inline_8891$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__47780__$1$jscomp$inline_8889_pad_bottom$jscomp$inline_8891$$,$APP.$cljs$cst$1671$p3$$);$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1647$simple$$,$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$)?$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$+
$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$:$map__47779__$1$jscomp$inline_8886_map__47780$jscomp$inline_8888_pad_top$jscomp$inline_8890$$+$map__47780__$1$jscomp$inline_8889_pad_bottom$jscomp$inline_8891$$;$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$=$row_total_size$jscomp$2$$+$row_total_gap$jscomp$2$$+$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$;
return $x__5110__auto__$jscomp$168$$>$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$?$x__5110__auto__$jscomp$168$$:$JSCompiler_inline_result$jscomp$1495_layout_padding_type$jscomp$inline_8887_y__5111__auto__$jscomp$168$$}();$grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$632$$){return $app$util$dom$left_mouse_QMARK_$$($event$jscomp$632$$)?
$APP.$app$util$dom$stop_propagation$$($event$jscomp$632$$):null});var $handle_add_column$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$add_layout_track$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$)],null),$APP.$cljs$cst$216$column$$,$APP.$app$common$types$shape$layout$default_track_value$$))}),$handle_add_row$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$shape_layout$add_layout_track$cljs$0core$0IFn$0_invoke$0arity$03$$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$)],null),$APP.$cljs$cst$1640$row$$,$APP.$app$common$types$shape$layout$default_track_value$$))}),$target_tracks_STAR_$$=(0,$APP.$rumext$v2$use_ref$$)(null),$drop_track_type_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$drop_track_target_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(null),$handle_start_reorder_track$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout_data$jscomp$23$$)],function($type$jscomp$682$$){var $line_vec$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$682$$,$APP.$cljs$cst$216$column$$)?$vv$jscomp$16$$(1):$hv$jscomp$16$$(1),$last_point$jscomp$5_tracks$jscomp$6$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$682$$,$APP.$cljs$cst$216$column$$)?$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($bounds$jscomp$91$$,
1):$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$02$$($bounds$jscomp$91$$,3),$mid_points$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$682$$,$APP.$cljs$cst$216$column$$)?$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78608_SHARP_$$){return $APP.$app$common$geom$point$add$$($APP.$cljs$cst$2938$start_p$$.$cljs$core$IFn$_invoke$arity$1$($p1__78608_SHARP_$$),$hv$jscomp$16$$($APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($p1__78608_SHARP_$$)/
2))},$APP.$cljs$cst$2937$column_tracks$$.$cljs$core$IFn$_invoke$arity$1$($layout_data$jscomp$23$$)):$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__78609_SHARP_$$){return $APP.$app$common$geom$point$add$$($APP.$cljs$cst$2938$start_p$$.$cljs$core$IFn$_invoke$arity$1$($p1__78609_SHARP_$$),$vv$jscomp$16$$($APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($p1__78609_SHARP_$$)/2))},$APP.$cljs$cst$2936$row_tracks$$.$cljs$core$IFn$_invoke$arity$1$($layout_data$jscomp$23$$));
$last_point$jscomp$5_tracks$jscomp$6$$=$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$(function($current$jscomp$59_p__78629$$){var $index$jscomp$566$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($current$jscomp$59_p__78629$$,0,null),$prev$jscomp$18_vec__78633$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($current$jscomp$59_p__78629$$,1,null);$current$jscomp$59_p__78629$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($prev$jscomp$18_vec__78633$$,0,null);
$prev$jscomp$18_vec__78633$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($prev$jscomp$18_vec__78633$$,1,null);return $prev$jscomp$18_vec__78633$$!=null?new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$prev$jscomp$18_vec__78633$$,$current$jscomp$59_p__78629$$,$line_vec$jscomp$1$$],null),$index$jscomp$566$$-1],null):null},$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$with_prev$$($APP.$app$common$data$concat_vec$$.$cljs$core$IFn$_invoke$arity$variadic$(new $APP.$cljs$core$PersistentVector$$(null,
1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$origin$jscomp$68$$],null),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$mid_points$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$last_point$jscomp$5_tracks$jscomp$6$$],null)])))));$APP.$rumext$v2$set_ref_val_BANG_$$($target_tracks_STAR_$$,$last_point$jscomp$5_tracks$jscomp$6$$);return $APP.$cljs$core$reset_BANG_$$($drop_track_type_STAR_$$,$type$jscomp$682$$)}),$handle_move_reorder_track$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($_type$jscomp$3_index$jscomp$567$$,$_from_idx$jscomp$1$$,$position$jscomp$220$$){$_type$jscomp$3_index$jscomp$567$$=$APP.$cljs$core$second$$($APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($line_2$jscomp$inline_8894_p__78636$$){var $v$jscomp$679_vec__78640$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($line_2$jscomp$inline_8894_p__78636$$,0,null),$p1$jscomp$85$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$679_vec__78640$$,
0,null),$p2$jscomp$66$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$679_vec__78640$$,1,null);$v$jscomp$679_vec__78640$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($v$jscomp$679_vec__78640$$,2,null);$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($line_2$jscomp$inline_8894_p__78636$$,1,null);$line_2$jscomp$inline_8894_p__78636$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p2$jscomp$66$$,$v$jscomp$679_vec__78640$$],
null);return $APP.$app$common$geom$line$line_value$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$p1$jscomp$85$$,$v$jscomp$679_vec__78640$$],null),$position$jscomp$220$$)*$APP.$app$common$geom$line$line_value$$($line_2$jscomp$inline_8894_p__78636$$,$position$jscomp$220$$)<0},$APP.$rumext$v2$ref_val$$($target_tracks_STAR_$$)));return $_type$jscomp$3_index$jscomp$567$$!=null?$APP.$cljs$core$reset_BANG_$$($drop_track_target_STAR_$$,$_type$jscomp$3_index$jscomp$567$$):
null}),$handle_end_reorder_track$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($base_shape$jscomp$1$$),$APP.$rumext$v2$adapt$$($APP.$cljs$core$_deref$$($drop_track_target_STAR_$$))],function($type$jscomp$683$$,$from_index$jscomp$13$$,$_position$jscomp$1_temp__5825__auto___78691$$,$move_content_QMARK_$jscomp$6$$){$_position$jscomp$1_temp__5825__auto___78691$$=$APP.$cljs$core$_deref$$($drop_track_target_STAR_$$);if($APP.$cljs$core$truth_$$($_position$jscomp$1_temp__5825__auto___78691$$)){var $ids_78693$$=
new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($base_shape$jscomp$1$$)],null);$from_index$jscomp$13$$<$_position$jscomp$1_temp__5825__auto___78691$$?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$reorder_layout_track$$($ids_78693$$,$type$jscomp$683$$,$from_index$jscomp$13$$,$_position$jscomp$1_temp__5825__auto___78691$$-1,$move_content_QMARK_$jscomp$6$$)):
$from_index$jscomp$13$$>$_position$jscomp$1_temp__5825__auto___78691$$&&$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$shape_layout$reorder_layout_track$$($ids_78693$$,$type$jscomp$683$$,$from_index$jscomp$13$$,$_position$jscomp$1_temp__5825__auto___78691$$-1,$move_content_QMARK_$jscomp$6$$))}$APP.$rumext$v2$set_ref_val_BANG_$$($target_tracks_STAR_$$,null);$APP.$cljs$core$reset_BANG_$$($drop_track_type_STAR_$$,null);return $APP.$cljs$core$reset_BANG_$$($drop_track_target_STAR_$$,
null)}),$handle_set_modifiers$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($modifier$jscomp$7$$){return $APP.$cljs$core$reset_BANG_$$($st_modif$$,$modifier$jscomp$7$$)}),$handle_clear_modifiers$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($st_modif$$,null)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$editor$stop_grid_layout_editing$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$)))}});
return $APP.$cljs$core$not$$($APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))&&$APP.$cljs$core$not$$($APP.$cljs$cst$1607$blocked$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"grid-editor",pointerEvents:$APP.$cljs$core$truth_$$($props_78610_view_only$$)?"none":null,onPointerDown:$grid_edition$jscomp$1_grid_edition_id_ref_handle_pointer_down$jscomp$7_map__78611__$1$$,children:[(0,$APP.$rumext$v2$jsx$$)("g",{className:"cells",
children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$233$$,$cell$jscomp$48$$){$out_arr__44057__auto__$jscomp$233$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$grid_cell$$,{zoom:$zoom$jscomp$110$$,"on-clear-modifiers":$handle_clear_modifiers$$,"on-set-modifiers":$handle_set_modifiers$$,shape:$base_shape$jscomp$1$$,"layout-data":$layout_data$jscomp$23$$,cell:$cell$jscomp$48$$,"selected?":$APP.$cljs$core$contains_QMARK_$$($selected_cells$jscomp$1$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$48$$)),"hover?":$APP.$cljs$core$contains_QMARK_$$($hover_cells$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$48$$))},"cell-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($cell$jscomp$48$$)??"")));return $out_arr__44057__auto__$jscomp$233$$},[],$APP.$app$common$types$shape$layout$get_cells$cljs$0core$0IFn$0_invoke$0arity$02$$($shape$jscomp$1048$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,
[$APP.$cljs$cst$1697$sort_QMARK_$$,!0],null)))}),$props_78610_view_only$$?null:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$grid_editor_frame$$,{zoom:$zoom$jscomp$110$$,bounds:$bounds$jscomp$91$$,width:$width$jscomp$227$$,height:$height$jscomp$194$$}),function(){var $start_p$jscomp$19$$=$APP.$app$common$geom$point$add$$($origin$jscomp$68$$,$hv$jscomp$16$$($width$jscomp$227$$+30/$zoom$jscomp$110$$));return(0,$APP.$rumext$v2$jsx$$)("g",
{transform:""+($APP.$app$common$geom$matrix$transform_in$$($start_p$jscomp$19$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))??""),children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$plus_btn$$,{"start-p":$start_p$jscomp$19$$,zoom:$zoom$jscomp$110$$,type:$APP.$cljs$cst$216$column$$,"on-click":$handle_add_column$$})})}(),function(){var $start_p$jscomp$20$$=$APP.$app$common$geom$point$add$$($origin$jscomp$68$$,$vv$jscomp$16$$($height$jscomp$194$$+
30/$zoom$jscomp$110$$));return(0,$APP.$rumext$v2$jsx$$)("g",{transform:""+($APP.$app$common$geom$matrix$transform_in$$($start_p$jscomp$20$$,$APP.$cljs$cst$1275$transform$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1048$$))??""),children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$plus_btn$$,{"start-p":$start_p$jscomp$20$$,zoom:$zoom$jscomp$110$$,type:$APP.$cljs$cst$1640$row$$,"on-click":$handle_add_row$$})})}(),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$234$$,
$JSCompiler_temp_const$jscomp$1859_p__78645$$){var $JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1859_p__78645$$,0,null),$column_data$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1859_p__78645$$,1,null);$JSCompiler_temp_const$jscomp$1859_p__78645$$=$out_arr__44057__auto__$jscomp$234$$.push;var $drop_QMARK_$jscomp$inline_8897$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,
$APP.$cljs$core$_deref$$($drop_track_type_STAR_$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$,$APP.$cljs$core$_deref$$($drop_track_target_STAR_$$));$JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$track$$,{zoom:$zoom$jscomp$110$$,"hovering?":$APP.$cljs$core$contains_QMARK_$$($hover_columns$$,$JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$),
index:$JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$,"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$216$column$$,"track-data":$column_data$jscomp$1$$,"on-clear-modifiers":$handle_clear_modifiers$$,"on-start-reorder-track":$handle_start_reorder_track$$,"on-set-modifiers":$handle_set_modifiers$$,"on-end-reorder-track":$handle_end_reorder_track$$,shape:$shape$jscomp$1048$$,"layout-data":$layout_data$jscomp$23$$,"drop?":$drop_QMARK_$jscomp$inline_8897$$,"on-move-reorder-track":$handle_move_reorder_track$$},
"column-track-"+($JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$??""));$JSCompiler_temp_const$jscomp$1859_p__78645$$.call($out_arr__44057__auto__$jscomp$234$$,$JSCompiler_inline_result$jscomp$1861_idx$jscomp$127$$);return $out_arr__44057__auto__$jscomp$234$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($column_tracks$jscomp$6$$)),$APP.$cljs$core$empty_QMARK_$$($column_tracks$jscomp$6$$)?null:function(){var $JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$=
$APP.$cljs$core$last$$($column_tracks$jscomp$6$$),$JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$=$APP.$cljs$cst$2938$start_p$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$);$JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$=$APP.$app$common$geom$point$add$$($JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$,$hv$jscomp$16$$($APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$)));
$JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$=$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$shapes$points$project_point$$($bounds$jscomp$91$$,$APP.$cljs$cst$1884$h$$,$JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$),$vv$jscomp$16$$(20/$zoom$jscomp$110$$));$JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$track_marker$$,{zoom:$zoom$jscomp$110$$,
index:$APP.$cljs$core$count$$($column_tracks$jscomp$6$$),value:""+($APP.$cljs$core$count$$($column_tracks$jscomp$6$$)+1??""),"track-before":$APP.$cljs$core$last$$($column_tracks$jscomp$6$$),"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$216$column$$,"on-clear-modifiers":$handle_clear_modifiers$$,center:$JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$,"on-set-modifiers":$handle_set_modifiers$$,shape:$shape$jscomp$1048$$});var $drop_QMARK_$jscomp$inline_8899$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$216$column$$,$APP.$cljs$core$_deref$$($drop_track_type_STAR_$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($column_tracks$jscomp$6$$),$APP.$cljs$core$_deref$$($drop_track_target_STAR_$$));$JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$resize_track_handler$$,{zoom:$zoom$jscomp$110$$,index:$APP.$cljs$core$count$$($column_tracks$jscomp$6$$),
"last?":!0,"track-before":$APP.$cljs$core$last$$($column_tracks$jscomp$6$$),"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$216$column$$,"on-clear-modifiers":$handle_clear_modifiers$$,"on-set-modifiers":$handle_set_modifiers$$,"start-p":$JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$,shape:$shape$jscomp$1048$$,"layout-data":$layout_data$jscomp$23$$,"drop?":$drop_QMARK_$jscomp$inline_8899$$});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"track",children:[$JSCompiler_temp_const$jscomp$1862_marker_p$jscomp$1_start_p$jscomp$21$$,
$JSCompiler_inline_result$jscomp$1863_end_p$jscomp$7_last_track$$]})}(),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$235$$,$JSCompiler_temp_const$jscomp$1864_p__78653$$){var $JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1864_p__78653$$,0,null),$row_data$jscomp$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1864_p__78653$$,
1,null);$JSCompiler_temp_const$jscomp$1864_p__78653$$=$out_arr__44057__auto__$jscomp$235$$.push;var $drop_QMARK_$jscomp$inline_8901$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,$APP.$cljs$core$_deref$$($drop_track_type_STAR_$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$,$APP.$cljs$core$_deref$$($drop_track_target_STAR_$$));$JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$track$$,
{zoom:$zoom$jscomp$110$$,"hovering?":$APP.$cljs$core$contains_QMARK_$$($hover_rows$$,$JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$),index:$JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$,"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$1640$row$$,"track-data":$row_data$jscomp$1$$,"on-clear-modifiers":$handle_clear_modifiers$$,"on-start-reorder-track":$handle_start_reorder_track$$,"on-set-modifiers":$handle_set_modifiers$$,"on-end-reorder-track":$handle_end_reorder_track$$,
shape:$shape$jscomp$1048$$,"layout-data":$layout_data$jscomp$23$$,"drop?":$drop_QMARK_$jscomp$inline_8901$$,"on-move-reorder-track":$handle_move_reorder_track$$},"row-track-"+($JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$??""));$JSCompiler_temp_const$jscomp$1864_p__78653$$.call($out_arr__44057__auto__$jscomp$235$$,$JSCompiler_inline_result$jscomp$1866_idx$jscomp$128$$);return $out_arr__44057__auto__$jscomp$235$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($row_tracks$jscomp$6$$)),
$APP.$cljs$core$empty_QMARK_$$($row_tracks$jscomp$6$$)?null:function(){var $JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$=$APP.$cljs$core$last$$($row_tracks$jscomp$6$$),$JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$=$APP.$cljs$cst$2938$start_p$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$);$JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$=$APP.$app$common$geom$point$add$$($JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$,
$vv$jscomp$16$$($APP.$cljs$cst$872$size$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$)));$JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$=$APP.$app$common$geom$point$subtract$$($APP.$app$common$geom$shapes$points$project_point$$($bounds$jscomp$91$$,$APP.$cljs$cst$2947$v$$,$JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$),$hv$jscomp$16$$(20/$zoom$jscomp$110$$));$JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$=
(0,$APP.$rumext$v2$jsx$$)("g",{transform:"rotate(-90 "+($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$)??"")+" "+($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$)??"")+")",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$track_marker$$,{zoom:$zoom$jscomp$110$$,index:$APP.$cljs$core$count$$($row_tracks$jscomp$6$$),
value:""+($APP.$cljs$core$count$$($row_tracks$jscomp$6$$)+1??""),"track-before":$APP.$cljs$core$last$$($row_tracks$jscomp$6$$),"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$1640$row$$,"on-clear-modifiers":$handle_clear_modifiers$$,center:$JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$,"on-set-modifiers":$handle_set_modifiers$$,shape:$shape$jscomp$1048$$})});var $drop_QMARK_$jscomp$inline_8903$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1640$row$$,
$APP.$cljs$core$_deref$$($drop_track_type_STAR_$$))&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($row_tracks$jscomp$6$$),$APP.$cljs$core$_deref$$($drop_track_target_STAR_$$));$JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$grid_layout_editor$resize_track_handler$$,{zoom:$zoom$jscomp$110$$,index:$APP.$cljs$core$count$$($row_tracks$jscomp$6$$),"last?":!0,"track-before":$APP.$cljs$core$last$$($row_tracks$jscomp$6$$),
"snap-pixel?":$snap_pixel_QMARK_$jscomp$12$$,type:$APP.$cljs$cst$1640$row$$,"on-clear-modifiers":$handle_clear_modifiers$$,"on-set-modifiers":$handle_set_modifiers$$,"start-p":$JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$,shape:$shape$jscomp$1048$$,"layout-data":$layout_data$jscomp$23$$,"drop?":$drop_QMARK_$jscomp$inline_8903$$});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"track",children:[$JSCompiler_temp_const$jscomp$1867_marker_p$jscomp$2_start_p$jscomp$22$$,$JSCompiler_inline_result$jscomp$1868_end_p$jscomp$8_last_track$jscomp$1$$]})}()]})]}):
null});var $app$main$ui$workspace$viewport$rulers$rulers$$=function($p1__78649_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__78649_SHARP_$$,function($new_props_78651$$,$old_props_78652$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78651$$.zoom,$old_props_78652$$.zoom)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78651$$.vbox,$old_props_78652$$.vbox)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78651$$["selected-shapes"],
$old_props_78652$$["selected-shapes"])&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78651$$["show-rulers?"],$old_props_78652$$["show-rulers?"])})}(function($props_78650_show_rulers_QMARK_$jscomp$1$$){var $zoom$jscomp$113$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"zoom"),$zoom_inverse$jscomp$8$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"zoom-inverse"),
$vbox$jscomp$44$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"vbox"),$offset_x$jscomp$15$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"offset-x"),$offset_y$jscomp$15$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"offset-y"),$selected_shapes$jscomp$33$$=$APP.$app$main$ui$hooks$use_equal_memo$$($APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,
"selected-shapes"));$props_78650_show_rulers_QMARK_$jscomp$1$$=$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($props_78650_show_rulers_QMARK_$jscomp$1$$,"show-rulers?");var $selection_rect$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected_shapes$jscomp$33$$)],function(){return $APP.$app$common$data$not_empty_QMARK_$$($selected_shapes$jscomp$33$$)?$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($selected_shapes$jscomp$33$$):
null});return $vbox$jscomp$44$$!=null?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"viewport-frame",pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$viewport_frame$$,{"show-rulers?":$props_78650_show_rulers_QMARK_$jscomp$1$$,zoom:$zoom$jscomp$113$$,"zoom-inverse":$zoom_inverse$jscomp$8$$,vbox:$vbox$jscomp$44$$,"offset-x":$offset_x$jscomp$15$$,"offset-y":$offset_y$jscomp$15$$}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($props_78650_show_rulers_QMARK_$jscomp$1$$)?
$selection_rect$jscomp$1$$!=null:$props_78650_show_rulers_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$rulers$selection_area$$,{zoom:$zoom$jscomp$113$$,"zoom-inverse":$zoom_inverse$jscomp$8$$,vbox:$vbox$jscomp$44$$,"selection-rect":$selection_rect$jscomp$1$$,"offset-x":$offset_x$jscomp$15$$,"offset-y":$offset_y$jscomp$15$$}):null]}):null});var $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$=function $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$($var_args$jscomp$1430$$){switch(arguments.length){case 2:return $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$(arguments[0],arguments[1]);case 3:return $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$3$(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",
$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(arguments.length)].join(""));}};$app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$=function($zoom$jscomp$117$$,$vbox$jscomp$49$$){return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$,$zoom$jscomp$117$$,$vbox$jscomp$49$$)};
$app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$3$=function($rule_area_size_zoom$jscomp$118$$,$p__78673_x$jscomp$1276$$,$axis$jscomp$53_p__78674$$){var $height$jscomp$199_map__78675__$1_y2$jscomp$45$$=$APP.$cljs$core$__destructure_map$$($p__78673_x$jscomp$1276$$);$p__78673_x$jscomp$1276$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$199_map__78675__$1_y2$jscomp$45$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$500$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$199_map__78675__$1_y2$jscomp$45$$,
$APP.$cljs$cst$1500$y$$),$width$jscomp$232_x2$jscomp$43$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$199_map__78675__$1_y2$jscomp$45$$,$APP.$cljs$cst$288$width$$);$height$jscomp$199_map__78675__$1_y2$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$199_map__78675__$1_y2$jscomp$45$$,$APP.$cljs$cst$1511$height$$);var $map__78676__$1_position$jscomp$222$$=$APP.$cljs$core$__destructure_map$$($axis$jscomp$53_p__78674$$);$axis$jscomp$53_p__78674$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78676__$1_position$jscomp$222$$,$APP.$cljs$cst$2039$axis$$);$map__78676__$1_position$jscomp$222$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78676__$1_position$jscomp$222$$,$APP.$cljs$cst$1660$position$$);$rule_area_size_zoom$jscomp$118$$=22/$rule_area_size_zoom$jscomp$118$$;$width$jscomp$232_x2$jscomp$43$$=$p__78673_x$jscomp$1276$$+$width$jscomp$232_x2$jscomp$43$$;$height$jscomp$199_map__78675__$1_y2$jscomp$45$$=$y$jscomp$500$$+
$height$jscomp$199_map__78675__$1_y2$jscomp$45$$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$53_p__78674$$,$APP.$cljs$cst$1499$x$$)?$map__78676__$1_position$jscomp$222$$>=$p__78673_x$jscomp$1276$$+$rule_area_size_zoom$jscomp$118$$&&$map__78676__$1_position$jscomp$222$$<=$width$jscomp$232_x2$jscomp$43$$:$map__78676__$1_position$jscomp$222$$>=$y$jscomp$500$$+$rule_area_size_zoom$jscomp$118$$&&$map__78676__$1_position$jscomp$222$$<=$height$jscomp$199_map__78675__$1_y2$jscomp$45$$};
$app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$lang$maxFixedArity$=3;
var $app$main$ui$workspace$viewport$guides$guide_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($handle_change_position_props_78677$$){var $zoom$jscomp$120$$=$handle_change_position_props_78677$$.zoom,$vbox$jscomp$51$$=$handle_change_position_props_78677$$.vbox,$guide$jscomp$9$$=$handle_change_position_props_78677$$.guide,$frame_modifier$$=$handle_change_position_props_78677$$.frameModifier,$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$=$handle_change_position_props_78677$$.getHoverFrame,
$on_guide_change$jscomp$1$$=$handle_change_position_props_78677$$.onGuideChange,$disabled_guides$$=$handle_change_position_props_78677$$.disabledGuides,$hover_frame_move_vec$jscomp$5$$=$handle_change_position_props_78677$$.hoverFrame,$is_hover$jscomp$2$$=$handle_change_position_props_78677$$.isHover,$frame_transform$$=$handle_change_position_props_78677$$.frameTransform,$axis$jscomp$55$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($guide$jscomp$9$$,$APP.$cljs$cst$2039$axis$$);$handle_change_position_props_78677$$=
$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($on_guide_change$jscomp$1$$)],function($G__78679_changes$jscomp$314$$){return $APP.$cljs$core$truth_$$($on_guide_change$jscomp$1$$)?($G__78679_changes$jscomp$314$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$guide$jscomp$9$$,$G__78679_changes$jscomp$314$$])),$on_guide_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$?$on_guide_change$jscomp$1$$.$cljs$core$IFn$_invoke$arity$1$($G__78679_changes$jscomp$314$$):
$on_guide_change$jscomp$1$$($G__78679_changes$jscomp$314$$)):null});$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$=$app$main$ui$workspace$viewport$guides$use_guide$$($handle_change_position_props_78677$$,$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$zoom$jscomp$120$$,$guide$jscomp$9$$);$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$);
var $on_pointer_enter$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$cljs$cst$5594$on_pointer_enter$$),$on_pointer_leave$jscomp$14$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$cljs$cst$5592$on_pointer_leave$$),$on_pointer_down$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,
$APP.$cljs$cst$4378$on_pointer_down$$),$on_pointer_up$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$cljs$cst$5612$on_pointer_up$$),$on_lost_pointer_capture$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$),$on_pointer_move$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,
$APP.$cljs$cst$4380$on_pointer_move$$),$state$jscomp$1108$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$APP.$cljs$cst$767$state$$);$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$,$APP.$cljs$cst$1590$frame$$);var $base_frame$jscomp$10$$=$APP.$cljs$core$truth_$$($frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$)?
$frame$jscomp$87_get_hover_frame$jscomp$1_map__78678_map__78678__$1$$:$hover_frame_move_vec$jscomp$5$$,$frame__$1$jscomp$8$$=function(){var $G__78680__$1$$=$frame_modifier$$!=null?$APP.$app$common$geom$shapes$transform_shape$$.$cljs$core$IFn$_invoke$arity$2$($base_frame$jscomp$10$$,$frame_modifier$$):$base_frame$jscomp$10$$;return $frame_transform$$!=null?$APP.$app$common$geom$shapes$transforms$apply_transform$$($G__78680__$1$$,$frame_transform$$):$G__78680__$1$$}();$hover_frame_move_vec$jscomp$5$$=
$APP.$app$common$geom$point$to_vec$$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($base_frame$jscomp$10$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($base_frame$jscomp$10$$)),$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)));var $pos$jscomp$161$$=
function(){var $or__5025__auto__$jscomp$1223$$=$cljs$cst$5634$new_position$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$));return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1223$$)?$or__5025__auto__$jscomp$1223$$:$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($guide$jscomp$9$$)}()+$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hover_frame_move_vec$jscomp$5$$,$axis$jscomp$55$$),$guide_width$$=1/$zoom$jscomp$120$$,$guide_pill_corner_radius$$=
4/$zoom$jscomp$120$$,$frame_guide_outside_QMARK_$$=$frame__$1$jscomp$8$$!=null&&!$app$main$ui$workspace$viewport$guides$is_guide_inside_frame_QMARK_$$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($guide$jscomp$9$$,$APP.$cljs$cst$1660$position$$,$pos$jscomp$161$$),$frame__$1$jscomp$8$$);return $frame__$1$jscomp$8$$==null||$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)&&$APP.$app$common$math$almost_zero_QMARK_$$($APP.$cljs$cst$1772$rotation$$.$cljs$core$IFn$_invoke$arity$2$($frame__$1$jscomp$8$$,
0))?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"guide-area",opacity:$frame_guide_outside_QMARK_$$?0:null,children:[$APP.$cljs$core$truth_$$($disabled_guides$$)?null:function(){var $map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$=15/$zoom$jscomp$120$$;var $guide_active_area$jscomp$inline_8933_y$jscomp$501$$=16/$zoom$jscomp$120$$;$map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$=$frame__$1$jscomp$8$$!=null&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?
new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1499$x$$,$pos$jscomp$161$$-$guide_active_area$jscomp$inline_8933_y$jscomp$501$$/2,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$288$width$$,$guide_active_area$jscomp$inline_8933_y$jscomp$501$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)],null):$frame__$1$jscomp$8$$!=null?new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$1500$y$$,$pos$jscomp$161$$-$guide_active_area$jscomp$inline_8933_y$jscomp$501$$/2,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$1511$height$$,$guide_active_area$jscomp$inline_8933_y$jscomp$501$$],null):$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$1499$x$$,$pos$jscomp$161$$-$guide_active_area$jscomp$inline_8933_y$jscomp$501$$/2,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$,$APP.$cljs$cst$288$width$$,$guide_active_area$jscomp$inline_8933_y$jscomp$501$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,4,
[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$,$APP.$cljs$cst$1500$y$$,$pos$jscomp$161$$-$guide_active_area$jscomp$inline_8933_y$jscomp$501$$/2,$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1511$height$$,$guide_active_area$jscomp$inline_8933_y$jscomp$501$$],null);var $height$jscomp$200_map__78681__$1$$=$APP.$cljs$core$__destructure_map$$($map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$);
$map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$200_map__78681__$1$$,$APP.$cljs$cst$1499$x$$);$guide_active_area$jscomp$inline_8933_y$jscomp$501$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$200_map__78681__$1$$,$APP.$cljs$cst$1500$y$$);var $width$jscomp$233$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$200_map__78681__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$200_map__78681__$1$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$200_map__78681__$1$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("rect",{width:$width$jscomp$233$$,height:$height$jscomp$200_map__78681__$1$$,className:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?$app$main$ui$css_cursors$get_dynamic$$("resize-ew",0):$app$main$ui$css_cursors$get_dynamic$$("resize-ns",0),x:$map__78681_rulers_pos$jscomp$inline_8932_x$jscomp$1277$$,
onPointerUp:$on_pointer_up$jscomp$4$$,style:{fill:"none",pointerEvents:$frame_guide_outside_QMARK_$$?"none":"fill"},onLostPointerCapture:$on_lost_pointer_capture$jscomp$10$$,y:$guide_active_area$jscomp$inline_8933_y$jscomp$501$$,onPointerMove:$on_pointer_move$jscomp$12$$,onPointerDown:$on_pointer_down$jscomp$15$$,onPointerLeave:$on_pointer_leave$jscomp$14$$,onPointerEnter:$on_pointer_enter$jscomp$14$$})}(),$frame__$1$jscomp$8$$!=null?function(){var $l2_x1_map__78682$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,
$APP.$cljs$cst$1499$x$$)?$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5635$l2_x2$$,$cljs$cst$5636$l1_x2$$,$cljs$cst$5637$l3_x2$$,$cljs$cst$5638$l3_x1$$,$cljs$cst$5639$l1_y1$$,$cljs$cst$5640$l3_y1$$,$cljs$cst$5641$l3_y2$$,$cljs$cst$5642$l1_y2$$,$cljs$cst$5643$l2_x1$$,$cljs$cst$5644$l1_x1$$,$cljs$cst$5645$l2_y2$$,$cljs$cst$5646$l2_y1$$],[$pos$jscomp$161$$,$pos$jscomp$161$$,$pos$jscomp$161$$,$pos$jscomp$161$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)+
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$pos$jscomp$161$$,$pos$jscomp$161$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)]):$APP.$cljs$core$PersistentHashMap$fromArrays$$([$cljs$cst$5635$l2_x2$$,$cljs$cst$5636$l1_x2$$,$cljs$cst$5637$l3_x2$$,$cljs$cst$5638$l3_x1$$,$cljs$cst$5639$l1_y1$$,$cljs$cst$5640$l3_y1$$,$cljs$cst$5641$l3_y2$$,$cljs$cst$5642$l1_y2$$,$cljs$cst$5643$l2_x1$$,$cljs$cst$5644$l1_x1$$,$cljs$cst$5645$l2_y2$$,$cljs$cst$5646$l2_y1$$],[$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),$pos$jscomp$161$$,$pos$jscomp$161$$,$pos$jscomp$161$$,$pos$jscomp$161$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$),
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$pos$jscomp$161$$,$pos$jscomp$161$$]);var $l3_y2_map__78682__$1$$=$APP.$cljs$core$__destructure_map$$($l2_x1_map__78682$$);$l2_x1_map__78682$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5643$l2_x1$$);var $l1_x1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5644$l1_x1$$),$l2_y2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,
$cljs$cst$5645$l2_y2$$),$l2_y1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5646$l2_y1$$),$l2_x2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5635$l2_x2$$),$l1_x2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5636$l1_x2$$),$l3_x2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5637$l3_x2$$),$l3_x1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,
$cljs$cst$5638$l3_x1$$),$l1_y1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5639$l1_y1$$),$l1_y2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5642$l1_y2$$),$l3_y1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5640$l3_y1$$);$l3_y2_map__78682__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($l3_y2_map__78682__$1$$,$cljs$cst$5641$l3_y2$$);return(0,$APP.$rumext$v2$jsxs$$)("g",
{children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_hover$jscomp$2$$)?$is_hover$jscomp$2$$:$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$)))?(0,$APP.$rumext$v2$jsx$$)("line",{x1:$l1_x1$$,y1:$l1_y1$$,x2:$l1_x2$$,y2:$l1_y2$$,style:{stroke:"#ff3277",strokeOpacity:1,strokeDasharray:["0, ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(6/$zoom$jscomp$120$$)].join(""),strokeLinecap:"round",strokeWidth:$guide_width$$}}):null,
(0,$APP.$rumext$v2$jsx$$)("line",{x1:$l2_x1_map__78682$$,y1:$l2_y1$$,x2:$l2_x2$$,y2:$l2_y2$$,style:{stroke:"#ff3277",strokeWidth:$guide_width$$,strokeOpacity:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_hover$jscomp$2$$)?$is_hover$jscomp$2$$:$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$)))?1:.7}}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_hover$jscomp$2$$)?$is_hover$jscomp$2$$:$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$)))?
(0,$APP.$rumext$v2$jsx$$)("line",{x1:$l3_x1$$,y1:$l3_y1$$,x2:$l3_x2$$,y2:$l3_y2_map__78682__$1$$,style:{stroke:"#ff3277",strokeOpacity:1,strokeWidth:$guide_width$$,strokeDasharray:["0, ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(6/$zoom$jscomp$120$$)].join(""),strokeLinecap:"round"}}):null]})}():function(){var $map__78683_x1$jscomp$47$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1512$x1$$,
$pos$jscomp$161$$,$APP.$cljs$cst$1513$y1$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1514$x2$$,$pos$jscomp$161$$,$APP.$cljs$cst$1515$y2$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1512$x1$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1513$y1$$,
$pos$jscomp$161$$,$APP.$cljs$cst$1514$x2$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$),$APP.$cljs$cst$1515$y2$$,$pos$jscomp$161$$],null);var $map__78683__$1_y2$jscomp$46$$=$APP.$cljs$core$__destructure_map$$($map__78683_x1$jscomp$47$$);$map__78683_x1$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78683__$1_y2$jscomp$46$$,$APP.$cljs$cst$1512$x1$$);var $y1$jscomp$49$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78683__$1_y2$jscomp$46$$,$APP.$cljs$cst$1513$y1$$),$x2$jscomp$44$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78683__$1_y2$jscomp$46$$,$APP.$cljs$cst$1514$x2$$);$map__78683__$1_y2$jscomp$46$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78683__$1_y2$jscomp$46$$,$APP.$cljs$cst$1515$y2$$);return(0,$APP.$rumext$v2$jsx$$)("line",{x1:$map__78683_x1$jscomp$47$$,y1:$y1$jscomp$49$$,x2:$x2$jscomp$44$$,y2:$map__78683__$1_y2$jscomp$46$$,
style:{stroke:"#ff3277",strokeWidth:$guide_width$$,strokeOpacity:$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_hover$jscomp$2$$)?$is_hover$jscomp$2$$:$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$)))?1:.7}})}(),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($is_hover$jscomp$2$$)?$is_hover$jscomp$2$$:$APP.$cljs$cst$2166$hover$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($state$jscomp$1108$$)))?function(){var $map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$=
15/$zoom$jscomp$120$$;var $guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$=34/$zoom$jscomp$120$$,$guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$=20/$zoom$jscomp$120$$;$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$cljs$cst$5647$rect_x$$,$pos$jscomp$161$$-$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$/2,$cljs$cst$5648$rect_y$$,
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$+-($guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$/2)+3/$zoom$jscomp$120$$,$cljs$cst$5649$rect_width$$,$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$,$cljs$cst$5650$rect_height$$,$guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$,$cljs$cst$5626$text_x$$,$pos$jscomp$161$$,$cljs$cst$5627$text_y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+
$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$+-(3/$zoom$jscomp$120$$)],null):new $APP.$cljs$core$PersistentArrayMap$$(null,6,[$cljs$cst$5647$rect_x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$+-($guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$/2)+-(4/$zoom$jscomp$120$$),$cljs$cst$5648$rect_y$$,$pos$jscomp$161$$-$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$/2,$cljs$cst$5649$rect_width$$,
$guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$,$cljs$cst$5650$rect_height$$,$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$,$cljs$cst$5626$text_x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($vbox$jscomp$51$$)+$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$+-(3/$zoom$jscomp$120$$),$cljs$cst$5627$text_y$$,$pos$jscomp$161$$],null);var $map__78684__$1_text_y$jscomp$4$$=$APP.$cljs$core$__destructure_map$$($map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$);
$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5647$rect_x$$);$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5648$rect_y$$);$guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5649$rect_width$$);
var $rect_height$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5650$rect_height$$),$text_x$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5626$text_x$$);$map__78684__$1_text_y$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78684__$1_text_y$jscomp$4$$,$cljs$cst$5627$text_y$$);return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"guide-pill",children:[(0,$APP.$rumext$v2$jsx$$)("rect",
{x:$map__78684_rect_x$jscomp$2_rulers_pos$jscomp$inline_8939$$,y:$guide_pill_width$jscomp$inline_8940_rect_y$jscomp$2$$,width:$guide_pill_height$jscomp$inline_8941_rect_width$jscomp$2$$,height:$rect_height$jscomp$2$$,rx:$guide_pill_corner_radius$$,ry:$guide_pill_corner_radius$$,style:{fill:"#ff3277"}}),(0,$APP.$rumext$v2$jsx$$)("text",{x:$text_x$jscomp$4$$,y:$map__78684__$1_text_y$jscomp$4$$,textAnchor:"middle",dominantBaseline:"middle",transform:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,
$APP.$cljs$cst$1500$y$$)?["rotate(-90 ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($text_x$jscomp$4$$),",",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($map__78684__$1_text_y$jscomp$4$$),")"].join(""):null,style:{fontSize:12/$zoom$jscomp$120$$,fontFamily:"worksans",fill:"#FFFFFF"},children:$APP.$app$main$ui$formats$format_number$cljs$0core$0IFn$0_invoke$0arity$01$$($pos$jscomp$161$$-($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$55$$,$APP.$cljs$cst$1499$x$$)?
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$):$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($frame__$1$jscomp$8$$)))})]})}():null]}):null}),$app$main$ui$workspace$viewport$guides$viewport_guides_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($guides__$1$jscomp$2_props_78688$$){var $zoom$jscomp$122$$=$guides__$1$jscomp$2_props_78688$$.zoom,$vbox$jscomp$53$$=$guides__$1$jscomp$2_props_78688$$.vbox,$modifiers$jscomp$130$$=$guides__$1$jscomp$2_props_78688$$.modifiers,
$guides$jscomp$6$$=$guides__$1$jscomp$2_props_78688$$.guides,$disabled_guides$jscomp$2$$=$guides__$1$jscomp$2_props_78688$$.disabledGuides,$hover_frame$jscomp$1$$=$guides__$1$jscomp$2_props_78688$$.hoverFrame;$guides__$1$jscomp$2_props_78688$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($guides$jscomp$6$$),$APP.$rumext$v2$adapt$$($vbox$jscomp$53$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$03$$($app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$,
$zoom$jscomp$122$$,$vbox$jscomp$53$$),$APP.$cljs$core$vals$$($guides$jscomp$6$$))});var $focus$jscomp$18$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_focus_selected$$),$hover_frame_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$get_hover_frame$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$rumext$v2$ref_val$$($hover_frame_ref$$)}),$on_guide_change$jscomp$3$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($vbox$jscomp$53$$)],
function($guide$jscomp$11$$){return $app$main$ui$workspace$viewport$guides$guide_inside_vbox_QMARK_$$.$cljs$core$IFn$_invoke$arity$3$($zoom$jscomp$122$$,$vbox$jscomp$53$$,$guide$jscomp$11$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$guides$update_guides$$($guide$jscomp$11$$)):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$guides$remove_guide$$($guide$jscomp$11$$))}),$frame_modifiers$$=$APP.$cljs$core$update_vals$$($APP.$cljs$core$group_by$$($APP.$cljs$cst$266$id$$,
$modifiers$jscomp$130$$),$APP.$cljs$core$comp$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1275$transform$$,$APP.$cljs$core$first$$));$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($hover_frame$jscomp$1$$)],function(){return $APP.$rumext$v2$set_ref_val_BANG_$$($hover_frame_ref$$,$hover_frame$jscomp$1$$)});return(0,$APP.$rumext$v2$jsxs$$)("g",{className:"guides",pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$new_guide_area_STAR_$$,
{vbox:$vbox$jscomp$53$$,zoom:$zoom$jscomp$122$$,axis:$APP.$cljs$cst$1499$x$$,getHoverFrame:$get_hover_frame$jscomp$3$$,disabledGuides:$disabled_guides$jscomp$2$$}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$new_guide_area_STAR_$$,{vbox:$vbox$jscomp$53$$,zoom:$zoom$jscomp$122$$,axis:$APP.$cljs$cst$1500$y$$,getHoverFrame:$get_hover_frame$jscomp$3$$,disabledGuides:$disabled_guides$jscomp$2$$}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$237$$,
$map__78690__$1_p__78689$$){$map__78690__$1_p__78689$$=$APP.$cljs$core$__destructure_map$$($map__78690__$1_p__78689$$);var $id$jscomp$991$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78690__$1_p__78689$$,$APP.$cljs$cst$266$id$$),$frame_id$jscomp$144$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78690__$1_p__78689$$,$APP.$cljs$cst$1591$frame_id$$);$out_arr__44057__auto__$jscomp$237$$.push($frame_id$jscomp$144$$==null||$APP.$cljs$core$empty_QMARK_$$($focus$jscomp$18$$)||
$APP.$cljs$core$contains_QMARK_$$($focus$jscomp$18$$,$frame_id$jscomp$144$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$guides$guide_STAR_$$,{guide:$map__78690__$1_p__78689$$,vbox:$vbox$jscomp$53$$,zoom:$zoom$jscomp$122$$,frameTransform:$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_modifiers$$,$frame_id$jscomp$144$$),getHoverFrame:$get_hover_frame$jscomp$3$$,onGuideChange:$on_guide_change$jscomp$3$$,disabledGuides:$disabled_guides$jscomp$2$$},"guide-"+($id$jscomp$991$$??
"")):null);return $out_arr__44057__auto__$jscomp$237$$},[],$guides__$1$jscomp$2_props_78688$$)]})});var $app$main$data$workspace$grid_layout$shortcuts$esc_pressed_78665$$,$app$main$data$workspace$grid_layout$shortcuts$shortcuts$$=new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$4608$escape$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$esc$$(),$APP.$cljs$cst$1796$command$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,["escape","enter","v"],null),$APP.$cljs$cst$514$fn$$,
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$grid_layout$shortcuts$esc_pressed$$())}],null),$APP.$cljs$cst$4664$undo$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$meta$$("Z"),$APP.$cljs$cst$1796$command$$,$APP.$app$main$data$shortcuts$c_mod$$("z"),$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$undo$$)}],
null),$APP.$cljs$cst$4636$redo$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$meta$$("Y"),$APP.$cljs$cst$1796$command$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$app$main$data$shortcuts$c_mod$$("shift+z"),$APP.$app$main$data$shortcuts$c_mod$$("y")],null),$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$undo$redo$$)}],
null),$APP.$cljs$cst$4660$increase_zoom$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,"+",$APP.$cljs$cst$1796$command$$,"+",$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$increase_zoom$$.$cljs$core$IFn$_invoke$arity$1$(null))}],null),$APP.$cljs$cst$4655$decrease_zoom$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,"-",$APP.$cljs$cst$1796$command$$,
"-",$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$decrease_zoom$$.$cljs$core$IFn$_invoke$arity$1$(null))}],null),$APP.$cljs$cst$4663$reset_zoom$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$shift$$("0"),$APP.$cljs$cst$1796$command$$,"shift+0",$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$zoom$reset_zoom$$)}],
null),$APP.$cljs$cst$4621$fit_all$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$shift$$("1"),$APP.$cljs$cst$1796$command$$,"shift+1",$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$zoom$zoom_to_fit_all$$)}],null),$APP.$cljs$cst$4670$zoom_selected$$,new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2630$tooltip$$,$APP.$app$main$data$shortcuts$shift$$("2"),
$APP.$cljs$cst$1796$command$$,"shift+2",$APP.$cljs$cst$514$fn$$,function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$zoom$zoom_to_selected_shape$$)}],null)],null);var $app$main$ui$workspace$viewport$outline$shape_outlines_render$$=function($p1__78703_SHARP_$$){return(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)($p1__78703_SHARP_$$,function($new_props_78705$$,$old_props_78706$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78705$$.shapes,$old_props_78706$$.shapes)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78705$$.zoom,$old_props_78706$$.zoom)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($new_props_78705$$.modifiers,
$old_props_78706$$.modifiers)})}(function($props_78704$$){var $zoom$jscomp$127$$=$props_78704$$.zoom,$modifiers$jscomp$132$$=$props_78704$$.modifiers;return $APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$238$$,$JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$){var $JSCompiler_temp_const$jscomp$1877$$=$out_arr__44057__auto__$jscomp$238$$.push,$shape_id$jscomp$inline_8953$$=$JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$?.id??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$,
$APP.$cljs$cst$266$id$$),$modifier$jscomp$inline_8954$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($modifiers$jscomp$132$$,$shape_id$jscomp$inline_8953$$);$JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$outline$outline$$,{shape:$JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$,modifier:$modifier$jscomp$inline_8954$$,zoom:$zoom$jscomp$127$$},"outline-"+($shape_id$jscomp$inline_8953$$??""));$JSCompiler_temp_const$jscomp$1877$$.call($out_arr__44057__auto__$jscomp$238$$,
$JSCompiler_inline_result$jscomp$1879_shape$jscomp$1051$$);return $out_arr__44057__auto__$jscomp$238$$},[],$props_78704$$.shapes)});var $app$main$ui$workspace$viewport$interactions$interactions_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$03$$(function($p1__78710_SHARP_$$){return new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$APP.$cljs$cst$4192$draw_interaction_to_frame$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78710_SHARP_$$,$APP.$cljs$cst$4192$draw_interaction_to_frame$$),$APP.$cljs$cst$4189$editing_interaction_index$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78710_SHARP_$$,
$APP.$cljs$cst$4189$editing_interaction_index$$),$APP.$cljs$cst$4196$move_overlay_index$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78710_SHARP_$$,$APP.$cljs$cst$4196$move_overlay_index$$),$APP.$cljs$cst$4195$move_overlay_to$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78710_SHARP_$$,$APP.$cljs$cst$4195$move_overlay_to$$),$APP.$cljs$cst$4191$draw_interaction_to$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($p1__78710_SHARP_$$,$APP.$cljs$cst$4191$draw_interaction_to$$)],
null)},$APP.$app$main$refs$workspace_local$$,$APP.$cljs$core$_EQ_$$);var $app$main$ui$workspace$viewport$pixel_overlay$get_offscreen_canvas$$=function(){var $internal_state$jscomp$4$$={canvas:null};return function($new_canvas_width$jscomp$239$$,$height$jscomp$206$$){var $canvas$jscomp$10$$=$internal_state$jscomp$4$$.canvas;if($APP.$cljs$core$truth_$$($canvas$jscomp$10$$)){var $resized$jscomp$inline_8968$$=$APP.$cljs$core$volatile_BANG_$$(!1);$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($canvas$jscomp$10$$.width,$new_canvas_width$jscomp$239$$)||($APP.$app$util$object$set_BANG_$$($canvas$jscomp$10$$,
"width",$new_canvas_width$jscomp$239$$),$APP.$cljs$core$_vreset_BANG_$$($resized$jscomp$inline_8968$$,!0));$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($canvas$jscomp$10$$.height,$height$jscomp$206$$)||($APP.$app$util$object$set_BANG_$$($canvas$jscomp$10$$,"height",$height$jscomp$206$$),$APP.$cljs$core$_vreset_BANG_$$($resized$jscomp$inline_8968$$,!0));return $canvas$jscomp$10$$}$new_canvas_width$jscomp$239$$=new OffscreenCanvas($new_canvas_width$jscomp$239$$,$height$jscomp$206$$);$APP.$app$util$object$set_BANG_$$($internal_state$jscomp$4$$,
"canvas",$new_canvas_width$jscomp$239$$);return $new_canvas_width$jscomp$239$$}}();var $app$main$ui$workspace$viewport$presence$session_cursor$$=(0,$APP.$rumext$v2$memo_SINGLEQUOTE_$$)(function($props_78733_transform$jscomp$115_zoom$jscomp$133$$){var $fullname$jscomp$6_fullname__$1_profile$jscomp$67$$=$props_78733_transform$jscomp$115_zoom$jscomp$133$$.profile,$bg_color_session$jscomp$5$$=$props_78733_transform$jscomp$115_zoom$jscomp$133$$.session;$props_78733_transform$jscomp$115_zoom$jscomp$133$$=$props_78733_transform$jscomp$115_zoom$jscomp$133$$.zoom;var $point$jscomp$89$$=
$APP.$cljs$cst$3460$point$$.$cljs$core$IFn$_invoke$arity$1$($bg_color_session$jscomp$5$$);$bg_color_session$jscomp$5$$=$APP.$cljs$cst$1284$color$$.$cljs$core$IFn$_invoke$arity$1$($bg_color_session$jscomp$5$$);$props_78733_transform$jscomp$115_zoom$jscomp$133$$="translate("+($point$jscomp$89$$?.x??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point$jscomp$89$$,$APP.$cljs$cst$1499$x$$)??"")+", "+($point$jscomp$89$$?.y??$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($point$jscomp$89$$,
$APP.$cljs$cst$1500$y$$)??"")+") scale("+1/$props_78733_transform$jscomp$115_zoom$jscomp$133$$+")";$fullname$jscomp$6_fullname__$1_profile$jscomp$67$$=$APP.$cljs$cst$1349$fullname$$.$cljs$core$IFn$_invoke$arity$1$($fullname$jscomp$6_fullname__$1_profile$jscomp$67$$);$fullname$jscomp$6_fullname__$1_profile$jscomp$67$$=$APP.$cljs$core$count$$($fullname$jscomp$6_fullname__$1_profile$jscomp$67$$)>16?""+($APP.$cuerdas$core$slice$cljs$0core$0IFn$0_invoke$0arity$03$$($fullname$jscomp$6_fullname__$1_profile$jscomp$67$$,
0,12)??"")+"...":$fullname$jscomp$6_fullname__$1_profile$jscomp$67$$;return(0,$APP.$rumext$v2$jsxs$$)("g",{transform:$props_78733_transform$jscomp$115_zoom$jscomp$133$$,className:"main_ui_workspace_viewport_presence__multiuser-cursor",children:[(0,$APP.$rumext$v2$jsx$$)("path",{fill:$bg_color_session$jscomp$5$$,d:"M11.58,-0.47L11.47,-0.35L0.34,10.77L0.30,10.96L-0.46,15.52L4.29,14.72L15.53,3.47L11.58,-0.47ZL11.58,-0.47ZL11.58,-0.47ZM11.58,1.3C12.31,2.05,13.02,2.742,13.76,3.47L4.0053,13.23C3.27,12.50,2.55,11.78,1.82,11.05L11.58,1.30ZL11.58,1.30ZM1.37,12.15L2.90,13.68L1.67,13.89L1.165,13.39L1.37,12.15ZL1.37,12.15Z"}),
(0,$APP.$rumext$v2$jsx$$)("g",{transform:"translate(17 -10)",children:(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:-.3,y:-12.5,width:300,height:120,children:(0,$APP.$rumext$v2$jsx$$)("div",{style:{backgroundColor:$bg_color_session$jscomp$5$$,color:"var(--app-white)"},className:"main_ui_workspace_viewport_presence__profile-name",children:$fullname$jscomp$6_fullname__$1_profile$jscomp$67$$})})})]})});var $app$main$ui$workspace$viewport$scroll_bars$viewport_scrollbars$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$){function $on_pointer_up$jscomp$6$$(){$APP.$cljs$core$reset_BANG_$$($v_scrolling_QMARK_$$,!1);return $APP.$cljs$core$reset_BANG_$$($h_scrolling_QMARK_$$,!1)}function $on_pointer_down$jscomp$18$$($event$jscomp$648_start_pt$jscomp$4$$,$axis$jscomp$58$$){$event$jscomp$648_start_pt$jscomp$4$$=$APP.$app$util$dom$get_client_position$$($event$jscomp$648_start_pt$jscomp$4$$);
var $new_v_scrollbar_y$jscomp$1_viewport_point$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($event$jscomp$648_start_pt$jscomp$4$$),$new_h_scrollbar_x$jscomp$1$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($new_v_scrollbar_y$jscomp$1_viewport_point$$);$new_v_scrollbar_y$jscomp$1_viewport_point$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($new_v_scrollbar_y$jscomp$1_viewport_point$$);var $v_scrollbar_y_padding$$=$v_scrollbar_y__$2$$-$new_v_scrollbar_y$jscomp$1_viewport_point$$,
$h_scrollbar_x_padding$$=$h_scrollbar_x__$2$$-$new_h_scrollbar_x$jscomp$1$$,$height_factor_vbox_rect$$=new $APP.$cljs$core$PersistentArrayMap$$(null,8,[$APP.$cljs$cst$1499$x$$,$vbox_x$jscomp$2$$,$APP.$cljs$cst$1500$y$$,$vbox_y$jscomp$2$$,$APP.$cljs$cst$1512$x1$$,$vbox_x$jscomp$2$$,$APP.$cljs$cst$1513$y1$$,$vbox_y$jscomp$2$$,$APP.$cljs$cst$1514$x2$$,$vbox_x$jscomp$2$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$),$APP.$cljs$cst$1515$y2$$,$vbox_y$jscomp$2$$+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$),
$APP.$cljs$cst$288$width$$,$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$),$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$)],null),$containing_rect_width_factor$$=$APP.$app$common$geom$rect$join_rects$$(new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$base_objects_rect$$,$height_factor_vbox_rect$$],null));$height_factor_vbox_rect$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($containing_rect_width_factor$$)/
$vbox_height$jscomp$2$$;$containing_rect_width_factor$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($containing_rect_width_factor$$)/$vbox_width$jscomp$2$$;$APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$4$$,$event$jscomp$648_start_pt$jscomp$4$$);$APP.$rumext$v2$set_ref_val_BANG_$$($v_scrollbar_y_padding_ref$$,$v_scrollbar_y_padding$$);$APP.$rumext$v2$set_ref_val_BANG_$$($h_scrollbar_x_padding_ref$$,$h_scrollbar_x_padding$$);$APP.$rumext$v2$set_ref_val_BANG_$$($v_scrollbar_y_ref$$,
$new_v_scrollbar_y$jscomp$1_viewport_point$$+$v_scrollbar_y_padding$$);$APP.$rumext$v2$set_ref_val_BANG_$$($h_scrollbar_x_ref$$,$new_h_scrollbar_x$jscomp$1$$+$h_scrollbar_x_padding$$);$APP.$rumext$v2$set_ref_val_BANG_$$($vbox_y_ref$$,$vbox_y$jscomp$2$$);$APP.$rumext$v2$set_ref_val_BANG_$$($vbox_x_ref$$,$vbox_x$jscomp$2$$);$APP.$rumext$v2$set_ref_val_BANG_$$($scrollbar_height_ref$$,$scrollbar_height__$1$$);$APP.$rumext$v2$set_ref_val_BANG_$$($scrollbar_width_ref$$,$scrollbar_width__$1$$);$APP.$rumext$v2$set_ref_val_BANG_$$($height_factor_ref$$,
$height_factor_vbox_rect$$);$APP.$rumext$v2$set_ref_val_BANG_$$($width_factor_ref$$,$containing_rect_width_factor$$);$APP.$cljs$core$reset_BANG_$$($v_scrolling_QMARK_$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$58$$,$APP.$cljs$cst$1500$y$$));return $APP.$cljs$core$reset_BANG_$$($h_scrolling_QMARK_$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$58$$,$APP.$cljs$cst$1499$x$$))}function $on_pointer_move$jscomp$14$$($current_pt$jscomp$3_event$jscomp$647$$,
$axis$jscomp$57$$){var $new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$=function(){var $or__5025__auto__$jscomp$1243$$=$APP.$cljs$core$_deref$$($v_scrolling_QMARK_$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1243$$)?$or__5025__auto__$jscomp$1243$$:$APP.$cljs$core$_deref$$($h_scrolling_QMARK_$$)}();if($APP.$cljs$core$truth_$$($new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$)){$new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$=
$APP.$rumext$v2$ref_val$$($start_ref$jscomp$4$$);$current_pt$jscomp$3_event$jscomp$647$$=$APP.$app$util$dom$get_client_position$$($current_pt$jscomp$3_event$jscomp$647$$);var $current_pt_viewport_new_h_scrollbar_x$$=$app$main$ui$workspace$viewport$viewport_ref$point__GT_viewport$$($current_pt$jscomp$3_event$jscomp$647$$),$y_delta$$=$APP.$rumext$v2$ref_val$$($height_factor_ref$$)*($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($current_pt$jscomp$3_event$jscomp$647$$)-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$))/
$zoom$jscomp$135$$,$x_delta$$=$APP.$rumext$v2$ref_val$$($width_factor_ref$$)*($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($current_pt$jscomp$3_event$jscomp$647$$)-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$))/$zoom$jscomp$135$$;$new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($current_pt_viewport_new_h_scrollbar_x$$)+$APP.$rumext$v2$ref_val$$($v_scrollbar_y_padding_ref$$);
$current_pt_viewport_new_h_scrollbar_x$$=$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($current_pt_viewport_new_h_scrollbar_x$$)+$APP.$rumext$v2$ref_val$$($h_scrollbar_x_padding_ref$$);var $viewport_update$$=function(){var $G__78795$$=function(){var $G__78796$$=$APP.$cljs$core$PersistentArrayMap$EMPTY$$;return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$57$$,$APP.$cljs$cst$1500$y$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78796$$,$APP.$cljs$cst$1500$y$$,
function($p1__78774_SHARP_$$){return $p1__78774_SHARP_$$+$y_delta$$}):$G__78796$$}();return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($axis$jscomp$57$$,$APP.$cljs$cst$1499$x$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__78795$$,$APP.$cljs$cst$1499$x$$,function($p1__78775_SHARP_$$){return $p1__78775_SHARP_$$+$x_delta$$}):$G__78795$$}();$APP.$rumext$v2$set_ref_val_BANG_$$($vbox_y_ref$$,$vbox_y$jscomp$2$$);$APP.$rumext$v2$set_ref_val_BANG_$$($vbox_x_ref$$,$vbox_x$jscomp$2$$);
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$viewport$update_viewport_position$$($viewport_update$$));$APP.$rumext$v2$set_ref_val_BANG_$$($v_scrollbar_y_ref$$,$new_v_scrollbar_y_start_pt$jscomp$3_temp__5825__auto__$jscomp$402$$);$APP.$rumext$v2$set_ref_val_BANG_$$($h_scrollbar_x_ref$$,$current_pt_viewport_new_h_scrollbar_x$$);return $APP.$rumext$v2$set_ref_val_BANG_$$($start_ref$jscomp$4$$,$current_pt$jscomp$3_event$jscomp$647$$)}return null}$map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$=
$APP.$rumext$v2$util$wrap_props$$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$);var $bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$=$APP.$cljs$core$__destructure_map$$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$),$objects$jscomp$798$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$,$APP.$cljs$cst$1615$objects$$),$zoom$jscomp$135$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$,
$APP.$cljs$cst$2158$zoom$$);$map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$,$APP.$cljs$cst$1910$vbox$$);$bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$,$cljs$cst$5675$bottom_padding$$);var $v_scrolling_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),
$h_scrolling_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$start_ref$jscomp$4$$=(0,$APP.$rumext$v2$use_ref$$)(null),$v_scrollbar_y_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$h_scrollbar_x_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$v_scrollbar_y_stored$$=$APP.$rumext$v2$ref_val$$($v_scrollbar_y_ref$$),$h_scrollbar_x_stored$$=$APP.$rumext$v2$ref_val$$($h_scrollbar_x_ref$$),$v_scrollbar_y_padding_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$h_scrollbar_x_padding_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),
$scrollbar_height_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$scrollbar_width_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$scrollbar_height_stored$$=$APP.$rumext$v2$ref_val$$($scrollbar_height_ref$$),$scrollbar_width_stored$$=$APP.$rumext$v2$ref_val$$($scrollbar_width_ref$$),$height_factor_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$width_factor_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$vbox_y_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$vbox_x_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$vbox_x$jscomp$2$$=
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$),$vbox_y$jscomp$2$$=$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$),$base_objects_rect$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$798$$)],function(){return $APP.$app$common$geom$shapes$shapes__GT_rect$$($APP.$app$common$files$helpers$get_immediate_children$cljs$0core$0IFn$0_invoke$0arity$03$$($objects$jscomp$798$$,
$APP.$app$common$uuid$zero$$,null))}),$vbox__$1$$=$bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$!=null?$APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$,$APP.$cljs$cst$1511$height$$,$APP.$cljs$core$_$$,$bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$/$zoom$jscomp$135$$):$map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$,$inv_zoom$jscomp$2$$=1/$zoom$jscomp$135$$,$vbox_height$jscomp$2$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$)-
$inv_zoom$jscomp$2$$*14,$vbox_width$jscomp$2$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$)-$inv_zoom$jscomp$2$$*14,$top_offset$jscomp$2$$=function(){var $x__5110__auto__$jscomp$170$$=$vbox_y$jscomp$2$$-$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$);return $x__5110__auto__$jscomp$170$$>0?$x__5110__auto__$jscomp$170$$:0}()*$vbox_height$jscomp$2$$/$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$),$left_offset$jscomp$2$$=
function(){var $x__5110__auto__$jscomp$171$$=$vbox_x$jscomp$2$$-$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$);return $x__5110__auto__$jscomp$171$$>0?$x__5110__auto__$jscomp$171$$:0}()*$vbox_width$jscomp$2$$/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$),$bottom_offset$jscomp$2$$=function(){var $x__5110__auto__$jscomp$172$$=$APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$)-($vbox_y$jscomp$2$$+$vbox_height$jscomp$2$$);
return $x__5110__auto__$jscomp$172$$>0?$x__5110__auto__$jscomp$172$$:0}()*$vbox_height$jscomp$2$$/$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$),$right_offset$jscomp$1$$=function(){var $x__5110__auto__$jscomp$173$$=$APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$)-($vbox_x$jscomp$2$$+$vbox_width$jscomp$2$$);return $x__5110__auto__$jscomp$173$$>0?$x__5110__auto__$jscomp$173$$:0}()*$vbox_width$jscomp$2$$/$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($base_objects_rect$$);
$map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$=function(){var $or__5025__auto__$jscomp$1241$$=$APP.$cljs$core$_deref$$($v_scrolling_QMARK_$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1241$$)?$or__5025__auto__$jscomp$1241$$:$top_offset$jscomp$2$$>0||$bottom_offset$jscomp$2$$>0}();$bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$=function(){var $or__5025__auto__$jscomp$1242$$=$APP.$cljs$core$_deref$$($h_scrolling_QMARK_$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1242$$)?
$or__5025__auto__$jscomp$1242$$:$left_offset$jscomp$2$$>0||$right_offset$jscomp$1$$>0}();var $v_scrollbar_x$$=$vbox_x$jscomp$2$$+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$)+$inv_zoom$jscomp$2$$*-10,$v_scrollbar_y$$=$vbox_y$jscomp$2$$+$top_offset$jscomp$2$$,$h_scrollbar_x$$=$vbox_x$jscomp$2$$+$left_offset$jscomp$2$$,$h_scrollbar_y$$=$vbox_y$jscomp$2$$+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vbox__$1$$)+$inv_zoom$jscomp$2$$*-10,$scrollbar_height$$=$vbox_y$jscomp$2$$+
$vbox_height$jscomp$2$$-$bottom_offset$jscomp$2$$-$v_scrollbar_y$$,$scrollbar_height__$1$$=function(){var $x__5110__auto__$jscomp$174$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($v_scrolling_QMARK_$$))?$scrollbar_height_stored$$:$scrollbar_height$$,$y__5111__auto__$jscomp$174$$=$inv_zoom$jscomp$2$$*100;return $x__5110__auto__$jscomp$174$$>$y__5111__auto__$jscomp$174$$?$x__5110__auto__$jscomp$174$$:$y__5111__auto__$jscomp$174$$}(),$scrollbar_width$$=$vbox_x$jscomp$2$$+$vbox_width$jscomp$2$$-
$right_offset$jscomp$1$$-$h_scrollbar_x$$,$scrollbar_width__$1$$=function(){var $x__5110__auto__$jscomp$175$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($h_scrolling_QMARK_$$))?$scrollbar_width_stored$$:$scrollbar_width$$,$y__5111__auto__$jscomp$175$$=$inv_zoom$jscomp$2$$*100;return $x__5110__auto__$jscomp$175$$>$y__5111__auto__$jscomp$175$$?$x__5110__auto__$jscomp$175$$:$y__5111__auto__$jscomp$175$$}(),$h_scrollbar_x__$1_v_scrollbar_y__$1$$=function(){var $x__5110__auto__$jscomp$176$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($v_scrolling_QMARK_$$))?
$v_scrollbar_y_stored$$- -($vbox_y$jscomp$2$$-$APP.$rumext$v2$ref_val$$($vbox_y_ref$$)):$v_scrollbar_y$$,$y__5111__auto__$jscomp$176$$=$vbox_y$jscomp$2$$+$inv_zoom$jscomp$2$$*26;return $x__5110__auto__$jscomp$176$$>$y__5111__auto__$jscomp$176$$?$x__5110__auto__$jscomp$176$$:$y__5111__auto__$jscomp$176$$}(),$v_scrollbar_y__$2$$=$h_scrollbar_x__$1_v_scrollbar_y__$1$$+$scrollbar_height__$1$$>$vbox_y$jscomp$2$$+$vbox_height$jscomp$2$$?$vbox_y$jscomp$2$$+$vbox_height$jscomp$2$$-$scrollbar_height__$1$$:
$h_scrollbar_x__$1_v_scrollbar_y__$1$$;$h_scrollbar_x__$1_v_scrollbar_y__$1$$=function(){var $x__5110__auto__$jscomp$177$$=$APP.$cljs$core$truth_$$($APP.$cljs$core$_deref$$($h_scrolling_QMARK_$$))?$h_scrollbar_x_stored$$- -($vbox_x$jscomp$2$$-$APP.$rumext$v2$ref_val$$($vbox_x_ref$$)):$h_scrollbar_x$$,$y__5111__auto__$jscomp$177$$=$vbox_x$jscomp$2$$+$inv_zoom$jscomp$2$$*26;return $x__5110__auto__$jscomp$177$$>$y__5111__auto__$jscomp$177$$?$x__5110__auto__$jscomp$177$$:$y__5111__auto__$jscomp$177$$}();
var $h_scrollbar_x__$2$$=$h_scrollbar_x__$1_v_scrollbar_y__$1$$+$scrollbar_width__$1$$>$vbox_x$jscomp$2$$+$vbox_width$jscomp$2$$?$vbox_x$jscomp$2$$+$vbox_width$jscomp$2$$-$scrollbar_width__$1$$:$h_scrollbar_x__$1_v_scrollbar_y__$1$$;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($map__78781_props_78780_show_v_scroll_QMARK__vbox$jscomp$56$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"v-scroll",fill:"#000000","data-testid":"vertical-scrollbar",children:(0,$APP.$rumext$v2$jsx$$)("rect",
{width:$inv_zoom$jscomp$2$$*7,height:$scrollbar_height__$1$$,x:$v_scrollbar_x$$,onPointerUp:$on_pointer_up$jscomp$6$$,style:{stroke:"white",strokeWidth:.15/$zoom$jscomp$135$$},ry:$inv_zoom$jscomp$2$$*3,rx:$inv_zoom$jscomp$2$$*3,y:$v_scrollbar_y__$2$$,onPointerMove:function($p1__78776_SHARP_$$){return $on_pointer_move$jscomp$14$$($p1__78776_SHARP_$$,$APP.$cljs$cst$1500$y$$)},fillOpacity:.4,onPointerDown:function($p1__78777_SHARP_$$){return $on_pointer_down$jscomp$18$$($p1__78777_SHARP_$$,$APP.$cljs$cst$1500$y$$)}})}):
null,$APP.$cljs$core$truth_$$($bottom_padding_map__78781__$1_show_h_scroll_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("g",{className:"h-scroll",fill:"#000000","data-testid":"horizontal-scrollbar",children:(0,$APP.$rumext$v2$jsx$$)("rect",{width:$scrollbar_width__$1$$,height:$inv_zoom$jscomp$2$$*7,x:$h_scrollbar_x__$2$$,onPointerUp:$on_pointer_up$jscomp$6$$,style:{stroke:"white",strokeWidth:.15/$zoom$jscomp$135$$},ry:$inv_zoom$jscomp$2$$*3,rx:$inv_zoom$jscomp$2$$*3,y:$h_scrollbar_y$$,onPointerMove:function($p1__78778_SHARP_$$){return $on_pointer_move$jscomp$14$$($p1__78778_SHARP_$$,
$APP.$cljs$cst$1499$x$$)},fillOpacity:.4,onPointerDown:function($p1__78779_SHARP_$$){return $on_pointer_down$jscomp$18$$($p1__78779_SHARP_$$,$APP.$cljs$cst$1499$x$$)}})}):null]})});var $app$main$ui$workspace$viewport$snap_points$snap_points$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__78925_props_78924_zoom$jscomp$157$$){$map__78925_props_78924_zoom$jscomp$157$$=$APP.$rumext$v2$util$wrap_props$$($map__78925_props_78924_zoom$jscomp$157$$);var $frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$=$APP.$cljs$core$__destructure_map$$($map__78925_props_78924_zoom$jscomp$157$$),$layout$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,
$APP.$cljs$cst$1599$layout$$);$map__78925_props_78924_zoom$jscomp$157$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,$APP.$cljs$cst$2158$zoom$$);var $objects$jscomp$801$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,$APP.$cljs$cst$1615$objects$$),$remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,
$APP.$cljs$cst$1906$selected$$),$page_id$jscomp$425$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,$APP.$cljs$cst$2028$page_id$$),$drawing$jscomp$4_shapes__$1$jscomp$33$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,$cljs$cst$5686$drawing$$),$focus$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$,
$APP.$cljs$cst$4873$focus$$);$frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$PersistentVector$EMPTY$$,$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$app$common$data$getf$$($objects$jscomp$801$$)),$remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$);var $filter_shapes$jscomp$3$$=$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$,$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__78923_SHARP_$$){return $APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$801$$,
$p1__78923_SHARP_$$)}),$remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$),$remove_snap_base_QMARK_$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout$jscomp$28$$),$APP.$rumext$v2$adapt$$($filter_shapes$jscomp$3$$),$APP.$rumext$v2$adapt$$($objects$jscomp$801$$),$APP.$rumext$v2$adapt$$($focus$jscomp$20$$)],function(){return $APP.$app$main$snap$make_remove_snap$$($layout$jscomp$28$$,$filter_shapes$jscomp$3$$,$objects$jscomp$801$$,$focus$jscomp$20$$)});$remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$=
$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($remove_snap_base_QMARK_$$)],function($p__78928_type$jscomp$686$$){var $map__78929__$1_or__5025__auto__$jscomp$1247$$=$APP.$cljs$core$__destructure_map$$($p__78928_type$jscomp$686$$);$p__78928_type$jscomp$686$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78929__$1_or__5025__auto__$jscomp$1247$$,$APP.$cljs$cst$139$type$$);var $grid$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__78929__$1_or__5025__auto__$jscomp$1247$$,
$APP.$cljs$cst$1643$grid$$);$map__78929__$1_or__5025__auto__$jscomp$1247$$=$remove_snap_base_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$?$remove_snap_base_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($map__78929__$1_or__5025__auto__$jscomp$1247$$):$remove_snap_base_QMARK_$$($map__78929__$1_or__5025__auto__$jscomp$1247$$);return $APP.$cljs$core$truth_$$($map__78929__$1_or__5025__auto__$jscomp$1247$$)?$map__78929__$1_or__5025__auto__$jscomp$1247$$:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__78928_type$jscomp$686$$,
$APP.$cljs$cst$1599$layout$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($grid$jscomp$16$$,$APP.$cljs$cst$1918$square$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($p__78928_type$jscomp$686$$,$APP.$cljs$cst$3694$guide$$)});$drawing$jscomp$4_shapes__$1$jscomp$33$$=$APP.$cljs$core$truth_$$($drawing$jscomp$4_shapes__$1$jscomp$33$$)?new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$drawing$jscomp$4_shapes__$1$jscomp$33$$],null):$frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$;
$frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$=$APP.$app$main$snap$snap_frame_id$$($drawing$jscomp$4_shapes__$1$jscomp$33$$);return $APP.$cljs$core$truth_$$($APP.$app$common$types$shape$layout$any_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$801$$,$frame_id$jscomp$148_map__78925__$1_shapes$jscomp$233$$))?null:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$snap_points$snap_feedback$$,{shapes:$drawing$jscomp$4_shapes__$1$jscomp$33$$,"page-id":$page_id$jscomp$425$$,
"remove-snap?":$remove_snap_QMARK_$jscomp$8_selected$jscomp$197$$,zoom:$map__78925_props_78924_zoom$jscomp$157$$})});var $app$main$ui$workspace$viewport$path_actions$pentool_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__pentool-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-pentool"})}),$app$main$ui$workspace$viewport$path_actions$move_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__move-icon main_ui_workspace_viewport_path_actions__pathbar-icon",
height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-move"})}),$app$main$ui$workspace$viewport$path_actions$add_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__add-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-add"})}),$app$main$ui$workspace$viewport$path_actions$remove_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__remove main_ui_workspace_viewport_path_actions__pathbar-icon",
height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-remove"})}),$app$main$ui$workspace$viewport$path_actions$merge_nodes_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__merge-nodes-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-merge-nodes"})}),$app$main$ui$workspace$viewport$path_actions$join_nodes_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__join-nodes-icon main_ui_workspace_viewport_path_actions__pathbar-icon",
height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-join-nodes"})}),$app$main$ui$workspace$viewport$path_actions$separate_nodes_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__separate-nodes-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-separate-nodes"})}),$app$main$ui$workspace$viewport$path_actions$to_corner_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,
className:"main_ui_workspace_viewport_path_actions__to-corner-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-to-corner"})}),$app$main$ui$workspace$viewport$path_actions$to_curve_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__to-curve-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-to-curve"})}),
$app$main$ui$workspace$viewport$path_actions$snap_nodes_icon$$=(0,$APP.$rumext$v2$jsx$$)("svg",{width:500,className:"main_ui_workspace_viewport_path_actions__snap-nodes-icon main_ui_workspace_viewport_path_actions__pathbar-icon",height:500,children:(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-snap-nodes"})});var $app$main$ui$workspace$viewport$widgets$selection_rect_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_78938_zoom$jscomp$160$$){var $data$jscomp$488$$=$props_78938_zoom$jscomp$160$$.data;$props_78938_zoom$jscomp$160$$=$props_78938_zoom$jscomp$160$$.zoom;return $APP.$cljs$core$truth_$$($data$jscomp$488$$)?(0,$APP.$rumext$v2$jsx$$)("rect",{className:"selection-rect",x:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$488$$),y:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$488$$),
"data-testid":"workspace-selection-rect",width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$488$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$488$$),style:{fill:"var(--color-accent-tertiary-muted)",stroke:"var(--color-accent-tertiary)",strokeWidth:1/$props_78938_zoom$jscomp$160$$}}):null}),$app$main$ui$workspace$viewport$widgets$frame_title$$,$p1__78939_SHARP_$jscomp$inline_9022$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$((0,$APP.$rumext$v2$forward_ref$$)(function($is_show_artboard_names_map__78941_props_78940$$,
$external_ref$jscomp$5_start_edit$jscomp$1$$){$is_show_artboard_names_map__78941_props_78940$$=$APP.$rumext$v2$util$wrap_props$$($is_show_artboard_names_map__78941_props_78940$$);var $color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$=$APP.$cljs$core$__destructure_map$$($is_show_artboard_names_map__78941_props_78940$$),$is_grid_edition$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5688$is_grid_edition$$);$is_show_artboard_names_map__78941_props_78940$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5689$is_show_artboard_names$$);var $zoom$jscomp$161$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$APP.$cljs$cst$2158$zoom$$),$is_show_id$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5690$is_show_id$$),$on_frame_select$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,
$cljs$cst$5691$on_frame_select$$),$frame$jscomp$94$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$APP.$cljs$cst$1590$frame$$),$on_frame_enter$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5692$on_frame_enter$$),$on_frame_leave$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5693$on_frame_leave$$);
$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,$cljs$cst$5694$is_selected$$);var $workspace_read_only_QMARK_$jscomp$2$$=(0,$APP.$rumext$v2$use_ctx$$)($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),$objects$jscomp$802$$=$APP.$cljs$core$_deref$$($APP.$app$main$refs$workspace_page_objects$$);$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$=$APP.$cljs$core$truth_$$($color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$)?
$APP.$cljs$core$truth_$$(function(){var $or__5025__auto__$jscomp$1248$$=$APP.$app$common$types$container$in_any_component_QMARK_$$($objects$jscomp$802$$,$frame$jscomp$94$$);return $APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$1248$$)?$or__5025__auto__$jscomp$1248$$:$APP.$app$common$types$component$is_variant_container_QMARK_$$($frame$jscomp$94$$)}())?"var(--assets-component-hightlight)":"var(--color-accent-tertiary)":"#8f9da3";var $blocked_QMARK_$jscomp$4$$=$APP.$cljs$cst$1607$blocked$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$),
$on_pointer_down$jscomp$19$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)),$APP.$rumext$v2$adapt$$($on_frame_select$$),$APP.$rumext$v2$adapt$$($workspace_read_only_QMARK_$jscomp$2$$),$APP.$rumext$v2$adapt$$($blocked_QMARK_$jscomp$4$$)],function($event$jscomp$653$$){if($app$util$dom$left_mouse_QMARK_$$($event$jscomp$653$$)&&$APP.$cljs$core$not$$($blocked_QMARK_$jscomp$4$$)){$APP.$app$util$dom$prevent_default$$($event$jscomp$653$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$653$$);var $G__78943$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$);return $on_frame_select$$.$cljs$core$IFn$_invoke$arity$2$?$on_frame_select$$.$cljs$core$IFn$_invoke$arity$2$($event$jscomp$653$$,$G__78943$$):$on_frame_select$$($event$jscomp$653$$,$G__78943$$)}return null}),$on_context_menu$jscomp$27$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame$jscomp$94$$),$APP.$rumext$v2$adapt$$($workspace_read_only_QMARK_$jscomp$2$$)],
function($bevent$jscomp$5_event$jscomp$654$$){$bevent$jscomp$5_event$jscomp$654$$=$bevent$jscomp$5_event$jscomp$654$$.nativeEvent;var $position$jscomp$230$$=$APP.$app$util$dom$get_client_position$$($bevent$jscomp$5_event$jscomp$654$$);$APP.$app$util$dom$prevent_default$$($bevent$jscomp$5_event$jscomp$654$$);$APP.$app$util$dom$stop_propagation$$($bevent$jscomp$5_event$jscomp$654$$);return $APP.$cljs$core$truth_$$($workspace_read_only_QMARK_$jscomp$2$$)?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$show_shape_context_menu$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
2,[$APP.$cljs$cst$1660$position$$,$position$jscomp$230$$,$APP.$cljs$cst$1795$shape$$,$frame$jscomp$94$$],null)))}),$on_pointer_enter$jscomp$16$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)),$APP.$rumext$v2$adapt$$($on_frame_enter$$)],function(){var $G__78944$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$);return $on_frame_enter$$.$cljs$core$IFn$_invoke$arity$1$?
$on_frame_enter$$.$cljs$core$IFn$_invoke$arity$1$($G__78944$$):$on_frame_enter$$($G__78944$$)}),$on_pointer_leave$jscomp$16$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)),$APP.$rumext$v2$adapt$$($on_frame_leave$$)],function(){var $G__78945$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$);return $on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$?$on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$($G__78945$$):
$on_frame_leave$$($G__78945$$)}),$main_instance_QMARK_$jscomp$6$$=$APP.$app$common$types$component$main_instance_QMARK_$$($frame$jscomp$94$$),$is_variant_QMARK_$jscomp$5$$=$APP.$cljs$cst$1989$is_variant_container$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$),$text_width$jscomp$1$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)*$zoom$jscomp$161$$,$show_icon_QMARK_$$=function(){var $and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$=$APP.$cljs$cst$2903$use_for_thumbnail$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$);
$and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$)?$and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$:$APP.$cljs$core$truth_$$($is_grid_edition$$)?$is_grid_edition$$:$main_instance_QMARK_$jscomp$6$$?$main_instance_QMARK_$jscomp$6$$:$is_variant_QMARK_$jscomp$5$$;return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$)?!($text_width$jscomp$1$$<=
15):$and__5023__auto__$jscomp$901_or__5025__auto__$jscomp$inline_9020$$}(),$text_pos_x$$=$APP.$cljs$core$truth_$$($show_icon_QMARK_$$)?15:0,$edition_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$edition_QMARK_$jscomp$3$$=$APP.$cljs$core$_deref$$($edition_STAR_$jscomp$2$$),$local_ref$jscomp$5_on_key_down$jscomp$20$$=(0,$APP.$rumext$v2$use_ref$$)(),$ref$jscomp$58$$=$APP.$app$common$data$nilv$$.$cljs$core$IFn$_invoke$arity$2$($external_ref$jscomp$5_start_edit$jscomp$1$$,
$local_ref$jscomp$5_on_key_down$jscomp$20$$),$frame_id$jscomp$149$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$);$external_ref$jscomp$5_start_edit$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$149$$),$APP.$rumext$v2$adapt$$($edition_QMARK_$jscomp$3$$),$APP.$rumext$v2$adapt$$($blocked_QMARK_$jscomp$4$$),$APP.$rumext$v2$adapt$$($workspace_read_only_QMARK_$jscomp$2$$)],function(){return $APP.$cljs$core$not$$($blocked_QMARK_$jscomp$4$$)&&
$APP.$cljs$core$not$$($workspace_read_only_QMARK_$jscomp$2$$)?$APP.$cljs$core$not$$($edition_QMARK_$jscomp$3$$)?$APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$2$$,!0):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$start_rename_shape$$($frame_id$jscomp$149$$)):null});var $accept_edit$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$149$$)],function(){var $name$jscomp$471$$=$APP.$cuerdas$core$trim$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$dom$get_value$$($APP.$rumext$v2$ref_val$$($ref$jscomp$58$$)));
$APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$2$$,!1);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$end_rename_shape$cljs$0core$0IFn$0_invoke$0arity$02$$($frame_id$jscomp$149$$,$name$jscomp$471$$));return $on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$?$on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$149$$):$on_frame_leave$$($frame_id$jscomp$149$$)}),$cancel_edit$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$149$$)],
function(){$APP.$cljs$core$reset_BANG_$$($edition_STAR_$jscomp$2$$,!1);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$end_rename_shape$cljs$0core$0IFn$0_invoke$0arity$02$$($frame_id$jscomp$149$$,null));return $on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$?$on_frame_leave$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$149$$):$on_frame_leave$$($frame_id$jscomp$149$$)});$local_ref$jscomp$5_on_key_down$jscomp$20$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($accept_edit$jscomp$1$$),
$APP.$rumext$v2$adapt$$($cancel_edit$jscomp$1$$)],function($event$jscomp$655$$){$APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$enter_QMARK_$$)($event$jscomp$655$$))&&($accept_edit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$accept_edit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():$accept_edit$jscomp$1$$());return $APP.$cljs$core$truth_$$((0,$APP.$app$util$keyboard$esc_QMARK_$$)($event$jscomp$655$$))?$cancel_edit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$?$cancel_edit$jscomp$1$$.$cljs$core$IFn$_invoke$arity$0$():
$cancel_edit$jscomp$1$$():null});return $APP.$cljs$core$not$$($APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$))?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"frame-title",id:"frame-title-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)??""),"data-edit-grid":$is_grid_edition$$,transform:$APP.$app$main$ui$workspace$viewport$utils$title_transform$$($frame$jscomp$94$$,$zoom$jscomp$161$$,$is_grid_edition$$),pointerEvents:$APP.$cljs$core$truth_$$($APP.$cljs$cst$1607$blocked$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$))?
"none":null,children:[$APP.$cljs$core$truth_$$($show_icon_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)("svg",{x:0,y:-9,width:12,height:12,style:{stroke:$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$,fill:"none"},visibility:$APP.$cljs$core$truth_$$($is_show_artboard_names_map__78941_props_78940$$)?"visible":"hidden",className:"workspace-frame-icon",children:$APP.$cljs$core$truth_$$($APP.$cljs$cst$2903$use_for_thumbnail$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$))?(0,$APP.$rumext$v2$jsx$$)("use",
{href:"#icon-boards-thumbnail"}):$APP.$cljs$core$truth_$$($is_grid_edition$$)?(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-grid"}):$main_instance_QMARK_$jscomp$6$$?(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-component"}):$APP.$cljs$core$truth_$$($is_variant_QMARK_$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)("use",{href:"#icon-component"}):null}):null,$edition_QMARK_$jscomp$3$$?(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:$text_pos_x$$,y:-15,width:function(){var $y__5111__auto__$jscomp$180$$=$text_width$jscomp$1$$-
$text_pos_x$$;return 0>$y__5111__auto__$jscomp$180$$?0:$y__5111__auto__$jscomp$180$$}(),height:22,style:{fill:$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$},visibility:$APP.$cljs$core$truth_$$($is_show_artboard_names_map__78941_props_78940$$)?"visible":"hidden",className:"main_ui_workspace_viewport_widgets__frame-title-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("input",{type:"text",style:{color:$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$},autoFocus:!0,onKeyDown:$local_ref$jscomp$5_on_key_down$jscomp$20$$,
ref:$ref$jscomp$58$$,defaultValue:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$),onBlur:$accept_edit$jscomp$1$$,className:"main_ui_workspace_viewport_widgets__frame-title-label main_ui_workspace_viewport_widgets__frame-title-input"})}):(0,$APP.$rumext$v2$jsx$$)("foreignObject",{x:$text_pos_x$$,y:-11,width:function(){var $y__5111__auto__$jscomp$181$$=$text_width$jscomp$1$$-$text_pos_x$$;return 0>$y__5111__auto__$jscomp$181$$?0:$y__5111__auto__$jscomp$181$$}(),height:20,
style:{fill:$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$},visibility:$APP.$cljs$core$truth_$$($is_show_artboard_names_map__78941_props_78940$$)?"visible":"hidden",className:"main_ui_workspace_viewport_widgets__frame-title-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("div",{onDoubleClick:$external_ref$jscomp$5_start_edit$jscomp$1$$,className:"main_ui_workspace_viewport_widgets__frame-title-label",children:$APP.$cljs$core$truth_$$($is_show_id$$)?""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)??
"")+" - "+($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$)??""):$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$94$$),onContextMenu:$on_context_menu$jscomp$27$$,style:{color:$color$jscomp$202_is_selected$jscomp$8_map__78941__$1$$},ref:$ref$jscomp$58$$,onPointerDown:$on_pointer_down$jscomp$19$$,onPointerLeave:$on_pointer_leave$jscomp$16$$,onPointerEnter:$on_pointer_enter$jscomp$16$$})})]}):null}));
$app$main$ui$workspace$viewport$widgets$frame_title$$=$APP.$rumext$v2$deferred$cljs$0core$0IFn$0_invoke$0arity$02$$($p1__78939_SHARP_$jscomp$inline_9022$$,function($f$jscomp$695$$){return(0,$APP.$app$util$timers$request_animation_frame$$)($f$jscomp$695$$)});
var $app$main$ui$workspace$viewport$widgets$frame_titles_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$){var $is_show_artboard_names$jscomp$1$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.isShowArtboardNames,$zoom$jscomp$162$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.zoom,$selected$jscomp$198$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.selected,$on_frame_select$jscomp$1$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.onFrameSelect,
$on_frame_enter$jscomp$1$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.onFrameEnter,$objects$jscomp$803$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.objects,$on_frame_leave$jscomp$1$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.onFrameLeave,$focus$jscomp$21$$=$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$.focus,$selected__$1$jscomp$21$$=$APP.$cljs$core$truth_$$($selected$jscomp$198$$)?$selected$jscomp$198$$:$APP.$cljs$core$PersistentHashSet$EMPTY$$;$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$=
$APP.$app$common$types$shape_tree$get_frames$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$803$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2067$skip_copies_QMARK_$$,!0],null));$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2932$shape_titles$$)?$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$set$$($props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$),$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$data$getf$$($objects$jscomp$803$$)),
$selected__$1$jscomp$21$$):$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$;var $edition$jscomp$16$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$selected_edition$$),$grid_edition_QMARK_$jscomp$1$$=$APP.$app$common$types$shape$layout$grid_layout_QMARK_$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$803$$,$edition$jscomp$16$$);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"frame-titles blurrable",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$246$$,
$JSCompiler_temp_const$jscomp$1896_p__78947$$){var $JSCompiler_temp$jscomp$1898_map__78948__$1$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp_const$jscomp$1896_p__78947$$),$id$jscomp$996$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1898_map__78948__$1$$,$APP.$cljs$cst$266$id$$),$JSCompiler_temp_const$jscomp$1900_parent_id$jscomp$112$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp$jscomp$1898_map__78948__$1$$,$APP.$cljs$cst$1603$parent_id$$);
$JSCompiler_temp_const$jscomp$1896_p__78947$$=$out_arr__44057__auto__$jscomp$246$$.push;if($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$996$$,$APP.$app$common$uuid$zero$$)&&($APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2932$shape_titles$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_temp_const$jscomp$1900_parent_id$jscomp$112$$,$APP.$app$common$uuid$zero$$))&&($APP.$cljs$core$empty_QMARK_$$($focus$jscomp$21$$)||$APP.$cljs$core$contains_QMARK_$$($focus$jscomp$21$$,
$id$jscomp$996$$))){$JSCompiler_temp_const$jscomp$1900_parent_id$jscomp$112$$=$APP.$app$util$debug$enabled_QMARK_$$($APP.$cljs$cst$2932$shape_titles$$);var $JSCompiler_temp_const$jscomp$1899$$=$APP.$cljs$core$contains_QMARK_$$($selected__$1$jscomp$21$$,$id$jscomp$996$$),$and__5023__auto__$jscomp$inline_9024$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($id$jscomp$996$$,$edition$jscomp$16$$);$JSCompiler_temp$jscomp$1898_map__78948__$1$$=(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$viewport$widgets$frame_title$$,
{zoom:$zoom$jscomp$162$$,"is-show-id":$JSCompiler_temp_const$jscomp$1900_parent_id$jscomp$112$$,"on-frame-select":$on_frame_select$jscomp$1$$,frame:$JSCompiler_temp$jscomp$1898_map__78948__$1$$,"on-frame-enter":$on_frame_enter$jscomp$1$$,"on-frame-leave":$on_frame_leave$jscomp$1$$,"is-selected":$JSCompiler_temp_const$jscomp$1899$$,"is-show-artboard-names":$is_show_artboard_names$jscomp$1$$,"is-grid-edition":$and__5023__auto__$jscomp$inline_9024$$?$grid_edition_QMARK_$jscomp$1$$:$and__5023__auto__$jscomp$inline_9024$$},
"frame-title-"+($id$jscomp$996$$??""))}else $JSCompiler_temp$jscomp$1898_map__78948__$1$$=null;$JSCompiler_temp_const$jscomp$1896_p__78947$$.call($out_arr__44057__auto__$jscomp$246$$,$JSCompiler_temp$jscomp$1898_map__78948__$1$$);return $out_arr__44057__auto__$jscomp$246$$},[],$props_78946_shapes$jscomp$234_shapes__$1$jscomp$34$$)})});var $app$main$ui$workspace$workspace_STAR_$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($layout$jscomp$34_props_79072$$){var $project_id$jscomp$37$$=$layout$jscomp$34_props_79072$$.projectId,$team_id$jscomp$139$$=$layout$jscomp$34_props_79072$$.teamId,$layout_name$$=$layout$jscomp$34_props_79072$$.layoutName,$page_id$jscomp$431_wglobal$jscomp$5$$=$layout$jscomp$34_props_79072$$.pageId,$file_id__$1$jscomp$10$$=$APP.$app$main$ui$hooks$use_equal_memo$$($layout$jscomp$34_props_79072$$.fileId),
$page_id__$1$jscomp$22$$=$APP.$app$main$ui$hooks$use_equal_memo$$($page_id$jscomp$431_wglobal$jscomp$5$$);$layout$jscomp$34_props_79072$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_layout$$);$page_id$jscomp$431_wglobal$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_global$$);var $permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$139$$)],function(){return $app$main$ui$workspace$make_team_ref$$($team_id$jscomp$139$$)}),
$file$jscomp$182_file_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id__$1$jscomp$10$$)],function(){return $app$main$ui$workspace$make_file_ref$$($file_id__$1$jscomp$10$$)});$permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$=$APP.$rumext$v2$deref$$($permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$);$file$jscomp$182_file_ref$$=$APP.$rumext$v2$deref$$($file$jscomp$182_file_ref$$);var $file_loaded_QMARK_$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$182_file_ref$$,
$cljs$cst$5700$app_DOT_main_DOT_ui_DOT_workspace_SLASH_has_data$$),$file_name$jscomp$13$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$182_file_ref$$);$permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$=$APP.$cljs$cst$1706$permissions$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$);var $design_tokens_QMARK_$jscomp$1_read_only_QMARK_$jscomp$38$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$workspace_read_only_QMARK_$$);
$permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$=$APP.$cljs$core$truth_$$($design_tokens_QMARK_$jscomp$1_read_only_QMARK_$jscomp$38$$)?$design_tokens_QMARK_$jscomp$1_read_only_QMARK_$jscomp$38$$:$APP.$cljs$core$not$$($APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$));$design_tokens_QMARK_$jscomp$1_read_only_QMARK_$jscomp$38$$=$app$main$features$use_feature$$("design-tokens/v1");var $wasm_renderer_enabled_QMARK_$jscomp$2$$=
$app$main$features$use_feature$$("render-wasm/v1"),$first_frame_rendered_QMARK_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$background_color$jscomp$4$$=$APP.$cljs$cst$2961$background_color$$.$cljs$core$IFn$_invoke$arity$1$($page_id$jscomp$431_wglobal$jscomp$5$$);$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$main$data$persistence$initialize_persistence$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$plugins$update_plugins_permissions_peek$$()]))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($layout_name$$)],function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$workspace$initialize_workspace_layout$$($layout_name$$))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_name$jscomp$13$$)],
function(){return $APP.$cljs$core$truth_$$($file_name$jscomp$13$$)?$APP.$app$util$dom$set_html_title$$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.workspace",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$file_name$jscomp$13$$]))):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($team_id$jscomp$139$$),$APP.$rumext$v2$adapt$$($file_id__$1$jscomp$10$$)],function(){$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$workspace$initialize_workspace$$($team_id$jscomp$139$$,
$file_id__$1$jscomp$10$$));return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$cst$2491$app_DOT_main_DOT_data_DOT_persistence_SLASH_force_persist$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$app$main$data$workspace$finalize_workspace$$($team_id$jscomp$139$$,$file_id__$1$jscomp$10$$)]))}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id__$1$jscomp$10$$),$APP.$rumext$v2$adapt$$($page_id__$1$jscomp$22$$),
$APP.$rumext$v2$adapt$$($file_loaded_QMARK_$$)],function(){return $APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($file_loaded_QMARK_$$)?$APP.$cljs$core$not$$($page_id__$1$jscomp$22$$):$file_loaded_QMARK_$$)?$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__$1$jscomp$10$$,$APP.$cljs$cst$2412$app_DOT_main_DOT_router_SLASH_replace$$,
!0]))):null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id__$1$jscomp$10$$),$APP.$rumext$v2$adapt$$($page_id__$1$jscomp$22$$)],function(){return $APP.$cljs$core$reset_BANG_$$($first_frame_rendered_QMARK_$$,!1)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){var $listener_key$$=$APP.$goog$events$listen$$($APP.$app$util$globals$document$$,"penpot:wasm:render",function(){return $APP.$cljs$core$reset_BANG_$$($first_frame_rendered_QMARK_$$,
!0)});return function(){return $APP.$goog$events$unlistenByKey$$($listener_key$$)}});return(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_project_id$$),{value:$project_id$jscomp$37$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_file_id$$),{value:$file_id__$1$jscomp$10$$,children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_page_id$$),{value:$page_id__$1$jscomp$22$$,
children:(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$design_tokens$$),{value:$design_tokens_QMARK_$jscomp$1_read_only_QMARK_$jscomp$38$$,children:(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$workspace_read_only_QMARK_$$),{value:$permissions$jscomp$36_read_only_QMARK___$1_team$jscomp$44_team_ref$$,children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$modal$modal_container_STAR_$$,{}),(0,$APP.$rumext$v2$jsxs$$)("section",{style:{backgroundColor:$background_color$jscomp$4$$,
touchAction:"none",position:"relative"},className:"main_ui_workspace__workspace",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$context_menu$context_menu_STAR_$$,{}),$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($file_loaded_QMARK_$$)?$page_id__$1$jscomp$22$$:$file_loaded_QMARK_$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$workspace_inner_STAR_$$,{pageId:$page_id__$1$jscomp$22$$,fileId:$file_id__$1$jscomp$10$$,file:$file$jscomp$182_file_ref$$,wglobal:$page_id$jscomp$431_wglobal$jscomp$5$$,
layout:$layout$jscomp$34_props_79072$$}):null,$APP.$cljs$core$not$$($APP.$cljs$core$truth_$$($file_loaded_QMARK_$$)?$page_id__$1$jscomp$22$$:$file_loaded_QMARK_$$)||$wasm_renderer_enabled_QMARK_$jscomp$2$$&&$APP.$cljs$core$not$$($file_loaded_QMARK_$$)&&$APP.$cljs$core$not$$($APP.$cljs$core$_deref$$($first_frame_rendered_QMARK_$$))?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$workspace$workspace_loader_STAR_$$,{}):null]})]})})})})})});
//# sourceMappingURL=main-workspace.js.map
