import { $APP, shadow$provide } from "./shared.js";
import "./main-auth.js";
const shadow_esm_import = function(x) { return import(x) };
var $app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$,$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$,$app$main$ui$viewer$comments$update_thread_position$$,$app$main$data$common$share_link_created$$,$app$main$data$viewer$set_viewport_size$$,$app$main$data$viewer$exit_fullscreen$$,$app$main$data$viewer$toggle_selection$$,$app$main$data$viewer$complete_animation$$,$app$main$data$viewer$finalize$$,$app$main$data$viewer$reset_nav_scroll$$,$app$main$data$viewer$hover_shape$$,
$app$main$data$viewer$toggle_collapse$$,$app$main$data$common$create_share_link$$,$app$main$data$common$delete_share_link$$,$app$main$data$comments$created_thread_on_viewer$$,$app$main$data$viewer$fetch_comment_threads$$,$app$main$ui$inspect$selection_feedback$selection_rect$$,$app$main$data$comments$create_thread_on_viewer$$,$app$main$ui$viewer$interactions$animate_close_overlay$$,$app$main$ui$viewer$interactions$animate_open_overlay$$,$app$main$ui$viewer$interactions$animate_go_to_frame$$,$app$util$dom$fullscreen_QMARK_$$,
$app$util$webapi$exit_fullscreen$$,$app$util$webapi$request_fullscreen$$,$app$main$ui$inspect$selection_feedback$selection_feedback$$,$app$main$data$viewer$select_shape$$,$app$main$data$viewer$shift_select_to$$,$app$main$data$viewer$go_to_frame_auto$$,$app$main$data$viewer$go_to_frame$$,$app$main$data$viewer$bundle_fetched$$,$app$main$ui$viewer$comments$comments_layer$$,$app$main$data$viewer$fetch_bundle$$,$app$main$data$viewer$initialize$$,$app$main$ui$viewer$comments$comments_sidebar_STAR_$$,$app$main$ui$inspect$left_sidebar$make_collapsed_iref$$,
$app$main$ui$inspect$left_sidebar$left_sidebar$$,$app$main$ui$inspect$render$handle_hover_shape$$,$app$main$ui$inspect$render$select_shape$$,$app$main$ui$inspect$render$shape_wrapper_factory$$,$app$main$ui$inspect$render$frame_container_factory$$,$app$main$ui$inspect$render$group_container_factory$$,$app$main$ui$inspect$render$bool_container_factory$$,$app$main$ui$inspect$render$svg_raw_container_factory$$,$app$main$ui$inspect$render$shape_container_factory$$,$app$main$ui$inspect$render$render_frame_svg$$,
$app$main$ui$viewer$inspect$handle_select_frame$$,$app$main$ui$viewer$inspect$viewport$$,$app$main$ui$viewer$login$login_register_modal$$,$app$main$ui$viewer$share_link$prepare_params$$,$app$main$ui$viewer$share_link$share_link_dialog$$,$app$main$ui$viewer$thumbnails$thumbnails_content$$,$app$main$ui$viewer$thumbnails$thumbnails_summary$$,$app$main$ui$viewer$thumbnails$thumbnails_panel$$,$app$main$ui$viewer$calculate_size$$,$app$main$ui$viewer$calculate_delta$$,$app$main$ui$viewer$calculate_wrapper$$,
$app$main$ui$viewer$viewer_pagination$$,$app$main$ui$viewer$viewer_overlay$$,$app$main$ui$viewer$viewer_wrapper$$,$app$main$ui$viewer$viewer_content_STAR_$$,$app$main$ui$viewer$viewer_STAR_$$,$app$main$data$common$share_link_created_51994$$,$app$main$data$common$create_share_link_52013$$,$app$main$data$common$delete_share_link_52037$$,$app$main$data$comments$created_thread_on_viewer_65076$$,$app$main$data$comments$create_thread_on_viewer_65098$$,$app$main$data$viewer$initialize_72051$$,$app$main$data$viewer$finalize_72062$$,
$app$main$data$viewer$fetch_bundle_72068$$,$app$main$data$viewer$bundle_fetched_72119$$,$app$main$data$viewer$fetch_comment_threads_72160$$,$app$main$data$viewer$exit_fullscreen_72290$$,$app$main$data$viewer$set_viewport_size_72295$$,$app$main$data$viewer$reset_nav_scroll_72388$$,$app$main$data$viewer$complete_animation_72395$$,$app$main$data$viewer$go_to_frame_auto_72418$$,$app$main$data$viewer$select_shape_72457$$,$app$main$data$viewer$toggle_selection_72460$$,$app$main$data$viewer$shift_select_to_72464$$,
$app$main$data$viewer$toggle_collapse_72480$$,$app$main$data$viewer$hover_shape_72486$$,$cljs$cst$6094$left_bar$$,$cljs$cst$6090$thumbnail_data$$,$cljs$cst$6084$email_sent$$,$cljs$cst$6095$right_bar$$,$cljs$cst$6086$all_pages$$,$cljs$cst$6089$expanded_QMARK_$$,$cljs$cst$6085$pages_mode$$,$cljs$cst$6093$num_frames$$,$cljs$cst$6083$register$$,$cljs$cst$6088$can_inspect_code$$,$cljs$cst$6098$app_DOT_main_DOT_ui_DOT_viewer_SLASH_viewer$$,$cljs$cst$6091$base_width$$,$cljs$cst$6097$wrapper_size$$,$cljs$cst$6096$comment_sidebar$$,
$cljs$cst$6081$hide_toggle_QMARK_$$,$cljs$cst$6092$base_height$$,$cljs$cst$6080$component_child_QMARK_$$,$cljs$cst$6087$can_comment$$,$cljs$cst$6079$item$$,$cljs$cst$6082$viewer_pagination$$;
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$=function($animation_item$jscomp$38$$,$keyframes$jscomp$2$$,$duration$jscomp$3$$,$onfinish$$){$animation_item$jscomp$38$$=$animation_item$jscomp$38$$.animate($keyframes$jscomp$2$$,$duration$jscomp$3$$);return $APP.$cljs$core$truth_$$($onfinish$$)?$animation_item$jscomp$38$$.onfinish=$onfinish$$:null};
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$=function($item$jscomp$37$$,$keyframes$jscomp$1$$,$duration$jscomp$2$$){return $app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($item$jscomp$37$$,$keyframes$jscomp$1$$,$duration$jscomp$2$$,null)};
$app$main$ui$viewer$comments$update_thread_position$$=function($positions$jscomp$3_temp__5823__auto__$jscomp$201$$,$map__73397__$1_p__73396$$){$map__73397__$1_p__73396$$=$APP.$cljs$core$__destructure_map$$($map__73397__$1_p__73396$$);var $id$jscomp$869$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73397__$1_p__73396$$,$APP.$cljs$cst$266$id$$);$positions$jscomp$3_temp__5823__auto__$jscomp$201$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($positions$jscomp$3_temp__5823__auto__$jscomp$201$$,
$id$jscomp$869$$);return $APP.$cljs$core$truth_$$($positions$jscomp$3_temp__5823__auto__$jscomp$201$$)?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__73397__$1_p__73396$$,$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($positions$jscomp$3_temp__5823__auto__$jscomp$201$$)),$APP.$cljs$cst$1591$frame_id$$,$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($positions$jscomp$3_temp__5823__auto__$jscomp$201$$)):
$map__73397__$1_p__73396$$};
$app$main$data$common$share_link_created$$=function($link$jscomp$5$$){typeof $app$main$data$common$share_link_created_51994$$==="undefined"&&($app$main$data$common$share_link_created_51994$$=function($link$jscomp$6$$,$meta51995$$){this.link=$link$jscomp$6$$;this.$meta51995$=$meta51995$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$share_link_created_51994$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$share_link_created_51994$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$2422$app_DOT_main_DOT_data_DOT_common_SLASH_share_link_created$$},$app$main$data$common$share_link_created_51994$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_51996$$,$meta51995__$1$$){return new $app$main$data$common$share_link_created_51994$$(this.link,$meta51995__$1$$)},$app$main$data$common$share_link_created_51994$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta51995$},$app$main$data$common$share_link_created_51994$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$share_link_created_51994$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1528$$,$state$jscomp$119$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$119$$,$APP.$cljs$cst$2136$share_links$$,$APP.$cljs$core$fnil$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$core$conj$$,$APP.$cljs$core$PersistentVector$EMPTY$$),this.link)});return new $app$main$data$common$share_link_created_51994$$($link$jscomp$5$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$set_viewport_size$$=function($p__72293$$){var $map__72294__$1$$=$APP.$cljs$core$__destructure_map$$($p__72293$$),$size$jscomp$135$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72294__$1$$,$APP.$cljs$cst$872$size$$);typeof $app$main$data$viewer$set_viewport_size_72295$$==="undefined"&&($app$main$data$viewer$set_viewport_size_72295$$=function($p__72293$jscomp$1$$,$map__72294$jscomp$1$$,$size$jscomp$136$$,$meta72296$$){this.$p__72293$=$p__72293$jscomp$1$$;this.$map__72294$=
$map__72294$jscomp$1$$;this.size=$size$jscomp$136$$;this.$meta72296$=$meta72296$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$set_viewport_size_72295$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$set_viewport_size_72295$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$5003$app_DOT_main_DOT_data_DOT_viewer_SLASH_set_viewport_size$$},$app$main$data$viewer$set_viewport_size_72295$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_72297$$,$meta72296__$1$$){return new $app$main$data$viewer$set_viewport_size_72295$$(this.$p__72293$,this.$map__72294$,this.size,$meta72296__$1$$)},$app$main$data$viewer$set_viewport_size_72295$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72296$},$app$main$data$viewer$set_viewport_size_72295$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$set_viewport_size_72295$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$2763$$,$state$jscomp$1005$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$1005$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$4997$viewport_size$$],null),this.size)});return new $app$main$data$viewer$set_viewport_size_72295$$($p__72293$$,$map__72294__$1$$,$size$jscomp$135$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$exit_fullscreen$$=function(){typeof $app$main$data$viewer$exit_fullscreen_72290$$==="undefined"&&($app$main$data$viewer$exit_fullscreen_72290$$=function($meta72291$$){this.$meta72291$=$meta72291$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5002$app_DOT_main_DOT_data_DOT_viewer_SLASH_exit_fullscreen$$},$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72292$$,$meta72291__$1$$){return new $app$main$data$viewer$exit_fullscreen_72290$$($meta72291__$1$$)},$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72291$},$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$exit_fullscreen_72290$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2762$$,$state$jscomp$1004$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$1004$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$2196$fullscreen_QMARK_$$],null),!1)});return new $app$main$data$viewer$exit_fullscreen_72290$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$toggle_selection$$=function($id$jscomp$847$$){typeof $app$main$data$viewer$toggle_selection_72460$$==="undefined"&&($app$main$data$viewer$toggle_selection_72460$$=function($id$jscomp$848$$,$meta72461$$){this.id=$id$jscomp$848$$;this.$meta72461$=$meta72461$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$toggle_selection_72460$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$toggle_selection_72460$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5032$app_DOT_main_DOT_data_DOT_viewer_SLASH_toggle_selection$$},$app$main$data$viewer$toggle_selection_72460$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72462$$,$meta72461__$1$$){return new $app$main$data$viewer$toggle_selection_72460$$(this.id,$meta72461__$1$$)},$app$main$data$viewer$toggle_selection_72460$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72461$},$app$main$data$viewer$toggle_selection_72460$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$toggle_selection_72460$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2792_selected$jscomp$124$$,$G__72463__$1_state$jscomp$1034$$){$_$jscomp$2792_selected$jscomp$124$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($G__72463__$1_state$jscomp$1034$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$1906$selected$$],
null));$G__72463__$1_state$jscomp$1034$$=$APP.$cljs$core$not$$($_$jscomp$2792_selected$jscomp$124$$.$cljs$core$IFn$_invoke$arity$1$?$_$jscomp$2792_selected$jscomp$124$$.$cljs$core$IFn$_invoke$arity$1$(this.id):$_$jscomp$2792_selected$jscomp$124$$(this.id))?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__72463__$1_state$jscomp$1034$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$1906$selected$$],
null),$APP.$cljs$core$conj$$,this.id):$G__72463__$1_state$jscomp$1034$$;return $APP.$cljs$core$truth_$$($_$jscomp$2792_selected$jscomp$124$$.$cljs$core$IFn$_invoke$arity$1$?$_$jscomp$2792_selected$jscomp$124$$.$cljs$core$IFn$_invoke$arity$1$(this.id):$_$jscomp$2792_selected$jscomp$124$$(this.id))?$APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($G__72463__$1_state$jscomp$1034$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,
$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$disj$$,this.id):$G__72463__$1_state$jscomp$1034$$});return new $app$main$data$viewer$toggle_selection_72460$$($id$jscomp$847$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$complete_animation$$=function(){typeof $app$main$data$viewer$complete_animation_72395$$==="undefined"&&($app$main$data$viewer$complete_animation_72395$$=function($meta72396$$){this.$meta72396$=$meta72396$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$complete_animation_72395$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$complete_animation_72395$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5017$app_DOT_main_DOT_data_DOT_viewer_SLASH_complete_animation$$},$app$main$data$viewer$complete_animation_72395$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72397$$,$meta72396__$1$$){return new $app$main$data$viewer$complete_animation_72395$$($meta72396__$1$$)},$app$main$data$viewer$complete_animation_72395$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72396$},$app$main$data$viewer$complete_animation_72395$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$complete_animation_72395$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2778$$,$state$jscomp$1019$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1019$$,$APP.$cljs$cst$5008$viewer_animations$$)});return new $app$main$data$viewer$complete_animation_72395$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$finalize$$=function($_$jscomp$2744$$){typeof $app$main$data$viewer$finalize_72062$$==="undefined"&&($app$main$data$viewer$finalize_72062$$=function($_$jscomp$2745$$,$meta72063$$){this.$_$=$_$jscomp$2745$$;this.$meta72063$=$meta72063$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$finalize_72062$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$finalize_72062$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$4981$app_DOT_main_DOT_data_DOT_viewer_SLASH_finalize$$},$app$main$data$viewer$finalize_72062$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72064$$,$meta72063__$1$$){return new $app$main$data$viewer$finalize_72062$$(this.$_$,$meta72063__$1$$)},$app$main$data$viewer$finalize_72062$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72063$},$app$main$data$viewer$finalize_72062$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$viewer$finalize_72062$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($___$1$jscomp$1920$$,$state$jscomp$990$$){return $APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$990$$,$APP.$cljs$cst$1576$viewer$$)});return new $app$main$data$viewer$finalize_72062$$($_$jscomp$2744$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$reset_nav_scroll$$=function(){typeof $app$main$data$viewer$reset_nav_scroll_72388$$==="undefined"&&($app$main$data$viewer$reset_nav_scroll_72388$$=function($meta72389$$){this.$meta72389$=$meta72389$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5016$app_DOT_main_DOT_data_DOT_viewer_SLASH_reset_nav_scroll$$},$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72390$$,$meta72389__$1$$){return new $app$main$data$viewer$reset_nav_scroll_72388$$($meta72389__$1$$)},$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72389$},$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$reset_nav_scroll_72388$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2777$$,$state$jscomp$1018$$){return $APP.$app$common$data$dissoc_in$$($state$jscomp$1018$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$5015$nav_scroll$$],null))});return new $app$main$data$viewer$reset_nav_scroll_72388$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$hover_shape$$=function($id$jscomp$853$$,$hover_QMARK_$jscomp$4$$){typeof $app$main$data$viewer$hover_shape_72486$$==="undefined"&&($app$main$data$viewer$hover_shape_72486$$=function($id$jscomp$854$$,$hover_QMARK_$jscomp$5$$,$meta72487$$){this.id=$id$jscomp$854$$;this.$hover_QMARK_$=$hover_QMARK_$jscomp$5$$;this.$meta72487$=$meta72487$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$hover_shape_72486$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$hover_shape_72486$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$5036$app_DOT_main_DOT_data_DOT_viewer_SLASH_hover_shape$$},$app$main$data$viewer$hover_shape_72486$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72488$$,$meta72487__$1$$){return new $app$main$data$viewer$hover_shape_72486$$(this.id,this.$hover_QMARK_$,$meta72487__$1$$)},$app$main$data$viewer$hover_shape_72486$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta72487$},$app$main$data$viewer$hover_shape_72486$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$hover_shape_72486$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2796$$,$state$jscomp$1038$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$1038$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$2166$hover$$],
null),$APP.$cljs$core$truth_$$(this.$hover_QMARK_$)?this.id:null)});return new $app$main$data$viewer$hover_shape_72486$$($id$jscomp$853$$,$hover_QMARK_$jscomp$4$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$toggle_collapse$$=function($id$jscomp$851$$){typeof $app$main$data$viewer$toggle_collapse_72480$$==="undefined"&&($app$main$data$viewer$toggle_collapse_72480$$=function($id$jscomp$852$$,$meta72481$$){this.id=$id$jscomp$852$$;this.$meta72481$=$meta72481$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$toggle_collapse_72480$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$toggle_collapse_72480$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5035$app_DOT_main_DOT_data_DOT_viewer_SLASH_toggle_collapse$$},$app$main$data$viewer$toggle_collapse_72480$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72482$$,$meta72481__$1$$){return new $app$main$data$viewer$toggle_collapse_72480$$(this.id,$meta72481__$1$$)},$app$main$data$viewer$toggle_collapse_72480$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72481$},$app$main$data$viewer$toggle_collapse_72480$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$toggle_collapse_72480$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2795_toggled_QMARK_$$,$state$jscomp$1037$$){$_$jscomp$2795_toggled_QMARK_$$=$APP.$cljs$core$contains_QMARK_$$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1037$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$2033$collapsed$$],
null)),this.id);return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$4$($state$jscomp$1037$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$2033$collapsed$$],null),$_$jscomp$2795_toggled_QMARK_$$?$APP.$cljs$core$disj$$:$APP.$cljs$core$conj$$,this.id)});return new $app$main$data$viewer$toggle_collapse_72480$$($id$jscomp$851$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$create_share_link$$=function($params$jscomp$145$$){typeof $app$main$data$common$create_share_link_52013$$==="undefined"&&($app$main$data$common$create_share_link_52013$$=function($params$jscomp$146$$,$meta52014$$){this.params=$params$jscomp$146$$;this.$meta52014$=$meta52014$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$create_share_link_52013$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$common$create_share_link_52013$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$2423$app_DOT_main_DOT_data_DOT_common_SLASH_create_share_link$$},$app$main$data$common$create_share_link_52013$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52015$$,$meta52014__$1$$){return new $app$main$data$common$create_share_link_52013$$(this.params,$meta52014__$1$$)},$app$main$data$common$create_share_link_52013$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta52014$},$app$main$data$common$create_share_link_52013$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$create_share_link_52013$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return $APP.$beicon$v2$core$map$$($app$main$data$common$share_link_created$$,$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2424$create_share_link$$,this.params))});return new $app$main$data$common$create_share_link_52013$$($params$jscomp$145$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$common$delete_share_link$$=function($p__52035$$){var $map__52036__$1$$=$APP.$cljs$core$__destructure_map$$($p__52035$$),$id$jscomp$241$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__52036__$1$$,$APP.$cljs$cst$266$id$$);typeof $app$main$data$common$delete_share_link_52037$$==="undefined"&&($app$main$data$common$delete_share_link_52037$$=function($p__52035$jscomp$1$$,$map__52036$jscomp$1$$,$link$jscomp$8$$,$id$jscomp$242$$,$meta52038$$){this.$p__52035$=$p__52035$jscomp$1$$;
this.$map__52036$=$map__52036$jscomp$1$$;this.link=$link$jscomp$8$$;this.id=$id$jscomp$242$$;this.$meta52038$=$meta52038$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$common$delete_share_link_52037$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$delete_share_link_52037$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$2425$app_DOT_main_DOT_data_DOT_common_SLASH_delete_share_link$$},
$app$main$data$common$delete_share_link_52037$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_52039$$,$meta52038__$1$$){return new $app$main$data$common$delete_share_link_52037$$(this.$p__52035$,this.$map__52036$,this.link,this.id,$meta52038__$1$$)},$app$main$data$common$delete_share_link_52037$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta52038$},$app$main$data$common$delete_share_link_52037$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$common$delete_share_link_52037$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$1530$$,$state$jscomp$120$$){var $self__$jscomp$3202$$=this;return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$120$$,$APP.$cljs$cst$2136$share_links$$,function($links$jscomp$2$$){return $APP.$cljs$core$filterv$$(function($p1__52023_SHARP_$$){return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($self__$jscomp$3202$$.id,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__52023_SHARP_$$))},
$links$jscomp$2$$)})},$app$main$data$common$delete_share_link_52037$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$common$delete_share_link_52037$$.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$2426$delete_share_link$$,new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$266$id$$,this.id],null)))});return new $app$main$data$common$delete_share_link_52037$$($p__52035$$,
$map__52036__$1$$,$map__52036__$1$$,$id$jscomp$241$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$comments$created_thread_on_viewer$$=function($p__65073$$){var $map__65074__$1$$=$APP.$cljs$core$__destructure_map$$($p__65073$$),$id$jscomp$418$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__65074__$1$$,$APP.$cljs$cst$266$id$$),$comment$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__65074__$1$$,$APP.$cljs$cst$3309$comment$$),$page_id$jscomp$89$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__65074__$1$$,$APP.$cljs$cst$2028$page_id$$);
typeof $app$main$data$comments$created_thread_on_viewer_65076$$==="undefined"&&($app$main$data$comments$created_thread_on_viewer_65076$$=function($p__65073$jscomp$1$$,$map__65074$jscomp$1$$,$thread$jscomp$4$$,$id$jscomp$419$$,$comment$jscomp$3$$,$page_id$jscomp$90$$,$meta65077$$){this.$p__65073$=$p__65073$jscomp$1$$;this.$map__65074$=$map__65074$jscomp$1$$;this.thread=$thread$jscomp$4$$;this.id=$id$jscomp$419$$;this.comment=$comment$jscomp$3$$;this.$page_id$=$page_id$jscomp$90$$;this.$meta65077$=
$meta65077$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3320$app_DOT_main_DOT_data_DOT_comments_SLASH_created_thread_on_viewer$$},$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=
function($_65078$$,$meta65077__$1$$){return new $app$main$data$comments$created_thread_on_viewer_65076$$(this.$p__65073$,this.$map__65074$,this.thread,this.id,this.comment,this.$page_id$,$meta65077__$1$$)},$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta65077$},$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=
function($_$jscomp$1733_position$jscomp$58$$,$state$jscomp$228$$){$_$jscomp$1733_position$jscomp$58$$=$APP.$cljs$core$select_keys$$(this.thread,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1660$position$$,$APP.$cljs$cst$1591$frame_id$$],null));return $APP.$cljs$core$update_in$$.$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$5$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($state$jscomp$228$$,
$APP.$cljs$cst$2135$comment_threads$$,$APP.$cljs$core$assoc$$,this.id,$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$(this.thread,$APP.$cljs$cst$3309$comment$$)),new $APP.$cljs$core$PersistentVector$$(null,4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1576$viewer$$,$APP.$cljs$cst$2190$pages$$,this.$page_id$,$APP.$cljs$cst$2044$comment_thread_positions$$],null),$APP.$cljs$core$assoc$$,this.id,$_$jscomp$1733_position$jscomp$58$$),$APP.$cljs$cst$2195$comments_local$$,$APP.$cljs$core$assoc$$,
$APP.$cljs$cst$3311$open$$,this.id),$APP.$cljs$cst$2195$comments_local$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$871$options$$,null),$APP.$cljs$cst$2195$comments_local$$,$APP.$cljs$core$dissoc$$,$APP.$cljs$cst$3312$draft$$),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$3313$comments$$,this.id],null),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.comment),this.comment)},$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$comments$created_thread_on_viewer_65076$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){return(0,$APP.$beicon$v2$core$of$$)($APP.$potok$v2$core$data_event$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-comment-thread",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"viewer",$APP.$cljs$cst$266$id$$,this.id,$APP.$cljs$cst$3314$content_size$$,$APP.$cljs$core$count$$($APP.$cljs$cst$1621$content$$.$cljs$core$IFn$_invoke$arity$1$(this.comment))],null)))});return new $app$main$data$comments$created_thread_on_viewer_65076$$($p__65073$$,$map__65074__$1$$,$map__65074__$1$$,$id$jscomp$418$$,$comment$jscomp$2$$,$page_id$jscomp$89$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$fetch_comment_threads$$=function($p__72141$$){var $map__72142__$1$$=$APP.$cljs$core$__destructure_map$$($p__72141$$),$file_id$jscomp$310$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72142__$1$$,$APP.$cljs$cst$1628$file_id$$),$page_id$jscomp$361$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72142__$1$$,$APP.$cljs$cst$2028$page_id$$),$share_id$jscomp$20$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72142__$1$$,$APP.$cljs$cst$3216$share_id$$);
typeof $app$main$data$viewer$fetch_comment_threads_72160$$==="undefined"&&($app$main$data$viewer$fetch_comment_threads_72160$$=function($p__72141$jscomp$1$$,$map__72142$jscomp$1$$,$params$jscomp$374$$,$file_id$jscomp$311$$,$page_id$jscomp$362$$,$share_id$jscomp$21$$,$fetched$jscomp$7$$,$on_error$jscomp$63$$,$meta72161$$){this.$p__72141$=$p__72141$jscomp$1$$;this.$map__72142$=$map__72142$jscomp$1$$;this.params=$params$jscomp$374$$;this.$file_id$=$file_id$jscomp$311$$;this.$page_id$=$page_id$jscomp$362$$;
this.$share_id$=$share_id$jscomp$21$$;this.$fetched$=$fetched$jscomp$7$$;this.$on_error$=$on_error$jscomp$63$$;this.$meta72161$=$meta72161$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4989$app_DOT_main_DOT_data_DOT_viewer_SLASH_fetch_comment_threads$$},
$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72162$$,$meta72161__$1$$){return new $app$main$data$viewer$fetch_comment_threads_72160$$(this.$p__72141$,this.$map__72142$,this.params,this.$file_id$,this.$page_id$,this.$share_id$,this.$fetched$,this.$on_error$,$meta72161__$1$$)},$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72161$},$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$fetch_comment_threads_72160$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){var $self__$jscomp$6792$$=this;return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$6792$$.$on_error$,$APP.$beicon$v2$core$map$$(function($p1__72140_SHARP_$$){return $APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($self__$jscomp$6792$$.$fetched$,$p1__72140_SHARP_$$)},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3339$get_comment_threads$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$self__$jscomp$6792$$.$file_id$,$APP.$cljs$cst$3216$share_id$$,$self__$jscomp$6792$$.$share_id$],null))))});return new $app$main$data$viewer$fetch_comment_threads_72160$$($p__72141$$,$map__72142__$1$$,$map__72142__$1$$,$file_id$jscomp$310$$,$page_id$jscomp$361$$,$share_id$jscomp$20$$,function($data$jscomp$434$$,$state$jscomp$993$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$993$$,$APP.$cljs$cst$2135$comment_threads$$,
$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__72139_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($page_id$jscomp$361$$,$APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__72139_SHARP_$$))},$data$jscomp$434$$)))},function($map__72155__$1_p__72153$$){$map__72155__$1_p__72153$$=$APP.$cljs$core$__destructure_map$$($map__72155__$1_p__72153$$);var $type$jscomp$567$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72155__$1_p__72153$$,$APP.$cljs$cst$139$type$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3108$authentication$$,$type$jscomp$567$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2615$not_found$$,$type$jscomp$567$$)?$APP.$beicon$v2$core$empty$$():$APP.$beicon$v2$core$throw$0$$($map__72155__$1_p__72153$$)},$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$inspect$selection_feedback$selection_rect$$=function($map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$){$map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$=$APP.$rumext$v2$util$wrap_props$$($map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$);$map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$=$APP.$cljs$core$__destructure_map$$($map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$);var $selrect$jscomp$75_x$jscomp$1233$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$,
$APP.$cljs$cst$1589$selrect$$);$map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$,$APP.$cljs$cst$2158$zoom$$);var $height$jscomp$153_map__73136__$1$$=$APP.$cljs$core$__destructure_map$$($selrect$jscomp$75_x$jscomp$1233$$);$selrect$jscomp$75_x$jscomp$1233$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$153_map__73136__$1$$,$APP.$cljs$cst$1499$x$$);var $y$jscomp$454$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$153_map__73136__$1$$,$APP.$cljs$cst$1500$y$$),$width$jscomp$176$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$153_map__73136__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$153_map__73136__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$153_map__73136__$1$$,$APP.$cljs$cst$1511$height$$);return(0,$APP.$rumext$v2$jsx$$)("g",{className:"selection-rect",children:(0,$APP.$rumext$v2$jsx$$)("rect",
{x:$selrect$jscomp$75_x$jscomp$1233$$,y:$y$jscomp$454$$,width:$width$jscomp$176$$,height:$height$jscomp$153_map__73136__$1$$,style:{fill:"none",stroke:"var(--color-accent-tertiary)",strokeWidth:1/$map__73135_map__73135__$1_props_73134_zoom$jscomp$57$$}})})};
$app$main$data$comments$create_thread_on_viewer$$=function($params$jscomp$233$$){typeof $app$main$data$comments$create_thread_on_viewer_65098$$==="undefined"&&($app$main$data$comments$create_thread_on_viewer_65098$$=function($params$jscomp$234$$,$meta65099$$){this.params=$params$jscomp$234$$;this.$meta65099$=$meta65099$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$potok$v2$core$Event$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$3321$app_DOT_main_DOT_data_DOT_comments_SLASH_create_thread_on_viewer$$},$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_65100$$,$meta65099__$1$$){return new $app$main$data$comments$create_thread_on_viewer_65098$$(this.params,$meta65099__$1$$)},$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta65099$},$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$comments$create_thread_on_viewer_65098$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($_$jscomp$1735_frame_id$jscomp$37_params__$1$jscomp$34$$,$state$jscomp$229$$){var $share_id$jscomp$1$$=$APP.$cljs$cst$3216$share_id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$2193$viewer_local$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$229$$));
$_$jscomp$1735_frame_id$jscomp$37_params__$1$jscomp$34$$=$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$(this.params);$_$jscomp$1735_frame_id$jscomp$37_params__$1$jscomp$34$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$comments$update_mentions$$(this.params),$APP.$cljs$cst$3216$share_id$$,$share_id$jscomp$1$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1591$frame_id$$,$_$jscomp$1735_frame_id$jscomp$37_params__$1$jscomp$34$$]));
return $APP.$beicon$v2$core$catch$0$cljs$0core$0IFn$0_invoke$0arity$02$$(function($map__65139__$1_p__65136$$){$map__65139__$1_p__65136$$=$APP.$cljs$core$__destructure_map$$($map__65139__$1_p__65136$$);var $type$jscomp$444$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__65139__$1_p__65136$$,$APP.$cljs$cst$139$type$$),$code$jscomp$30$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__65139__$1_p__65136$$,$APP.$cljs$cst$271$code$$);return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($type$jscomp$444$$,
$APP.$cljs$cst$2513$restriction$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($code$jscomp$30$$,$APP.$cljs$cst$3316$max_quote_reached$$)?$APP.$beicon$v2$core$throw$0$$($map__65139__$1_p__65136$$):$APP.$beicon$v2$core$throw$0$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$3317$comment_error$$],null))},$APP.$beicon$v2$core$map$$($app$main$data$comments$created_thread_on_viewer$$,$APP.$beicon$v2$core$mapcat$$(function($p1__65097_SHARP_$$){return $APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3318$get_comment_thread$$,
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$1628$file_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__65097_SHARP_$$),$APP.$cljs$cst$266$id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__65097_SHARP_$$),$APP.$cljs$cst$3216$share_id$$,$share_id$jscomp$1$$],null))},$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3319$create_comment_thread$$,$_$jscomp$1735_frame_id$jscomp$37_params__$1$jscomp$34$$))))});return new $app$main$data$comments$create_thread_on_viewer_65098$$($params$jscomp$233$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$viewer$interactions$animate_close_overlay$$=function($animation$jscomp$14$$,$overlay_viewport$jscomp$1$$,$wrapper_size$jscomp$2$$,$overlay_size$jscomp$3$$,$overlay_position$jscomp$4$$,$overlay_id$$){if($overlay_viewport$jscomp$1$$!=null){var $G__73636_G__73636__$1_G__73637_G__73637__$1$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$);$G__73636_G__73636__$1_G__73637_G__73637__$1$$=$G__73636_G__73636__$1_G__73637_G__73637__$1$$ instanceof $APP.$cljs$core$Keyword$$?
$G__73636_G__73636__$1_G__73637_G__73637__$1$$.$fqn$:null;switch($G__73636_G__73636__$1_G__73637_G__73637__$1$$){case "dissolve":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{opacity:"100"},{opacity:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$))},
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$viewer$complete_animation$$(),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($overlay_id$$,null)]))});break;case "slide":switch($G__73636_G__73636__$1_G__73637_G__73637__$1$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),$G__73636_G__73636__$1_G__73637_G__73637__$1$$=
$G__73636_G__73636__$1_G__73637_G__73637__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73636_G__73636__$1_G__73637_G__73637__$1$$.$fqn$:null,$G__73636_G__73636__$1_G__73637_G__73637__$1$$){case "right":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$4$$)),
"px"].join("")},{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$2$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$viewer$complete_animation$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($overlay_id$$,null)]))});return;case "left":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$4$$)),
"px"].join("")},{left:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($overlay_size$jscomp$3$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$viewer$complete_animation$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($overlay_id$$,null)]))});return;case "up":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$4$$)),
"px"].join("")},{top:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($overlay_size$jscomp$3$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$viewer$complete_animation$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($overlay_id$$,null)]))});return;case "down":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$jscomp$1$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$4$$)),
"px"].join("")},{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$2$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$14$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$viewer$complete_animation$$(),
$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($overlay_id$$,null)]))});return;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73636_G__73636__$1_G__73637_G__73637__$1$$)].join(""));}default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73636_G__73636__$1_G__73637_G__73637__$1$$)].join(""));}}};
$app$main$ui$viewer$interactions$animate_open_overlay$$=function($animation$jscomp$13$$,$overlay_viewport$$,$wrapper_size$jscomp$1$$,$overlay_size$jscomp$2$$,$overlay_position$jscomp$3$$){if($overlay_viewport$$!=null){var $G__73630_G__73630__$1_G__73631_G__73631__$1$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$);$G__73630_G__73630__$1_G__73631_G__73631__$1$$=$G__73630_G__73630__$1_G__73631_G__73631__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73630_G__73630__$1_G__73631_G__73631__$1$$.$fqn$:
null;switch($G__73630_G__73630__$1_G__73631_G__73631__$1$$){case "dissolve":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{opacity:"0"},{opacity:"100"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$))},
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});break;case "slide":switch($G__73630_G__73630__$1_G__73631_G__73631__$1$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),$G__73630_G__73630__$1_G__73631_G__73631__$1$$=$G__73630_G__73630__$1_G__73631_G__73631__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73630_G__73630__$1_G__73631_G__73631__$1$$.$fqn$:null,$G__73630_G__73630__$1_G__73631_G__73631__$1$$){case "right":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($overlay_size$jscomp$2$$)),"px"].join("")},{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$3$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});return;case "left":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$1$$)),
"px"].join("")},{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$3$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});
return;case "up":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$1$$)),"px"].join("")},{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$3$$)),
"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});return;case "down":$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($overlay_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($overlay_size$jscomp$2$$)),"px"].join("")},{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$3$$)),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$13$$))},
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});return;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73630_G__73630__$1_G__73631_G__73631__$1$$)].join(""));}default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73630_G__73630__$1_G__73631_G__73631__$1$$)].join(""));}}};
$app$main$ui$viewer$interactions$animate_go_to_frame$$=function($animation$jscomp$12$$,$current_viewport$$,$orig_viewport$$,$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$,$G__73623_G__73623__$1_orig_size$$,$offset$jscomp$190_wrapper_size$$){var $G__73621_G__73621__$1_G__73622_G__73622__$1$$=$APP.$cljs$cst$1944$animation_type$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$);$G__73621_G__73621__$1_G__73622_G__73622__$1$$=$G__73621_G__73621__$1_G__73622_G__73622__$1$$ instanceof
$APP.$cljs$core$Keyword$$?$G__73621_G__73621__$1_G__73622_G__73622__$1$$.$fqn$:null;switch($G__73621_G__73621__$1_G__73622_G__73622__$1$$){case "dissolve":return $app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{opacity:"100%"},{opacity:"0%"},{opacity:"0%"}],null),{delay:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$)/3,duration:2*$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$)/
3,easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{opacity:"0%"},{opacity:"100%"},{opacity:"100%"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())});case "slide":$G__73621_G__73621__$1_G__73622_G__73622__$1$$=$APP.$cljs$cst$1947$way$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$);$G__73621_G__73621__$1_G__73622_G__73622__$1$$=$G__73621_G__73621__$1_G__73622_G__73622__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73621_G__73621__$1_G__73622_G__73622__$1$$.$fqn$:null;switch($G__73621_G__73621__$1_G__73622_G__73622__$1$$){case "in":switch($G__73623_G__73623__$1_orig_size$$=
$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),$G__73623_G__73623__$1_orig_size$$=$G__73623_G__73623__$1_orig_size$$ instanceof $APP.$cljs$core$Keyword$$?$G__73623_G__73623__$1_orig_size$$.$fqn$:null,$G__73623_G__73623__$1_orig_size$$){case "right":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$))/2,$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{left:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[{left:"0",opacity:"100%"},{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;case "left":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)+
($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$))/2,$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),
"px"].join("")},{right:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:"0",opacity:"100%"},{right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;case "up":return $offset$jscomp$190_wrapper_size$$=
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$))/2,$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[{bottom:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{bottom:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{bottom:"0",opacity:"100%"},{bottom:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):
null;case "down":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$))/2,$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{top:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),
$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:"0",opacity:"100%"},{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$)].join(""));}case "out":switch($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$=
$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$.$fqn$:null,$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$){case "right":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$)+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$))/
2,$APP.$app$util$dom$set_css_property_BANG_$$($orig_viewport$$,"z-index",1E4),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:"0"},{right:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*
.2),"px"].join(""),opacity:"0"},{right:"0",opacity:"100%"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;case "left":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$)+($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$))/2,$APP.$app$util$dom$set_css_property_BANG_$$($orig_viewport$$,"z-index",1E4),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:"0"},{left:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"},{left:"0",opacity:"100%"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;case "up":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$)+
($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$))/2,$APP.$app$util$dom$set_css_property_BANG_$$($orig_viewport$$,"z-index",1E4),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:"0"},{top:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),
"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($current_viewport$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"},{top:"0",opacity:"100%"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):null;case "down":return $offset$jscomp$190_wrapper_size$$=
$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$)+($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($G__73623_G__73623__$1_orig_size$$))/2,$APP.$app$util$dom$set_css_property_BANG_$$($orig_viewport$$,"z-index",1E4),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[{bottom:"0"},{bottom:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$APP.$cljs$core$truth_$$($APP.$cljs$cst$1949$offset_effect$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))?
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{bottom:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$*.2),"px"].join(""),opacity:"0"},{bottom:"0",opacity:"100%"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))}):
null;default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)].join(""));}default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73621_G__73621__$1_G__73622_G__73622__$1$$)].join(""));}break;case "push":switch($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$=$APP.$cljs$cst$1948$direction$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$=$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$.$fqn$:null,$G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$){case "right":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,
new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{left:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{left:"0"},{left:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))});
case "left":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{right:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{right:"0"},{right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),
"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))});case "up":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{bottom:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{bottom:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),
$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{bottom:"0"},{bottom:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))});
case "down":return $offset$jscomp$190_wrapper_size$$=$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$04$$($current_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:["-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),"px"].join("")},{top:"0"}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),
easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))},function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$complete_animation$$())}),$app$util$dom$animate_BANG_$cljs$0core$0IFn$0_invoke$0arity$03$$($orig_viewport$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[{top:"0"},{top:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($offset$jscomp$190_wrapper_size$$),
"px"].join("")}],null),{duration:$APP.$cljs$cst$1945$duration$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$),easing:$APP.$cljs$core$name$$($APP.$cljs$cst$1946$easing$$.$cljs$core$IFn$_invoke$arity$1$($animation$jscomp$12$$))});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73624_G__73624__$1_G__73629_G__73629__$1_current_size$jscomp$1$$)].join(""));}default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__73621_G__73621__$1_G__73622_G__73622__$1$$)].join(""));
}};
$app$util$dom$fullscreen_QMARK_$$=function(){if("webkitFullscreenElement"in $APP.$app$util$globals$document$$)return $APP.$cljs$core$boolean$0$$($APP.$app$util$globals$document$$.webkitFullscreenElement);if("mozFullScreen"in $APP.$app$util$globals$document$$)return $APP.$cljs$core$boolean$0$$($APP.$app$util$globals$document$$.mozFullScreen);if("msFullscreenElement"in $APP.$app$util$globals$document$$)return $APP.$cljs$core$boolean$0$$($APP.$app$util$globals$document$$.msFullscreenElement);if("fullscreenElement"in $APP.$app$util$globals$document$$)return $APP.$cljs$core$boolean$0$$($APP.$app$util$globals$document$$.fullscreenElement);
$APP.$app$common$logging$enabled_QMARK_$$("app.util.dom",$APP.$cljs$cst$847$error$$)&&$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$$,"Seems like the current browser does not support fullscreen api."],null)],null)}),null,"app.util.dom",$APP.$cljs$cst$847$error$$,
!1);return!1};
$app$util$webapi$exit_fullscreen$$=function(){if("exitFullscreen"in document)return document.exitFullscreen();if("webkitExitFullscreen"in document)return document.webkitExitFullscreen();$APP.$app$common$logging$enabled_QMARK_$$("app.util.webapi",$APP.$cljs$cst$847$error$$)&&$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$$,"Seems like the current browser does not support fullscreen api."],null)],null)}),null,"app.util.webapi",$APP.$cljs$cst$847$error$$,!1);return!1};
$app$util$webapi$request_fullscreen$$=function($el$jscomp$5$$){if("requestFullscreen"in $el$jscomp$5$$)return $el$jscomp$5$$.requestFullscreen();if("webkitRequestFullscreen"in $el$jscomp$5$$)return $el$jscomp$5$$.webkitRequestFullscreen();$APP.$app$common$logging$enabled_QMARK_$$("app.util.webapi",$APP.$cljs$cst$847$error$$)&&$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$$,"Seems like the current browser does not support fullscreen api."],null)],null)}),null,"app.util.webapi",$APP.$cljs$cst$847$error$$,!1);return!1};
$app$main$ui$inspect$selection_feedback$selection_feedback$$=function($map__73138_map__73138__$1_props_73137_size$jscomp$137$$){$map__73138_map__73138__$1_props_73137_size$jscomp$137$$=$APP.$rumext$v2$util$wrap_props$$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$);$map__73138_map__73138__$1_props_73137_size$jscomp$137$$=$APP.$cljs$core$__destructure_map$$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$);var $frame$jscomp$53_hover_shape$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$,
$APP.$cljs$cst$1590$frame$$),$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$,$APP.$cljs$cst$2842$local$$),$objects$jscomp$707_selected_shapes$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$,$APP.$cljs$cst$1615$objects$$);$map__73138_map__73138__$1_props_73137_size$jscomp$137$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$,
$APP.$cljs$cst$872$size$$);$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$=$APP.$cljs$core$__destructure_map$$($local$jscomp$24_map__73139__$1_zoom$jscomp$58$$);var $hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$24_map__73139__$1_zoom$jscomp$58$$,$APP.$cljs$cst$2166$hover$$),$selected$jscomp$130_selrect$jscomp$76$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$24_map__73139__$1_zoom$jscomp$58$$,
$APP.$cljs$cst$1906$selected$$);$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$24_map__73139__$1_zoom$jscomp$58$$,$APP.$cljs$cst$2158$zoom$$);$hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$=$APP.$app$main$ui$inspect$selection_feedback$resolve_shapes$$($objects$jscomp$707_selected_shapes$jscomp$10$$,new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$],
null));$hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$=$APP.$cljs$core$first$$($hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$);$frame$jscomp$53_hover_shape$jscomp$1$$=$APP.$cljs$core$truth_$$($hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$)?$hover_or__5025__auto__$jscomp$inline_9212_shapes$jscomp$163$$:$frame$jscomp$53_hover_shape$jscomp$1$$;$objects$jscomp$707_selected_shapes$jscomp$10$$=$APP.$app$main$ui$inspect$selection_feedback$resolve_shapes$$($objects$jscomp$707_selected_shapes$jscomp$10$$,
$selected$jscomp$130_selrect$jscomp$76$$);$selected$jscomp$130_selrect$jscomp$76$$=$APP.$app$common$geom$shapes$common$shapes__GT_rect$$($objects$jscomp$707_selected_shapes$jscomp$10$$);return $APP.$app$common$data$not_empty_QMARK_$$($objects$jscomp$707_selected_shapes$jscomp$10$$)?(0,$APP.$rumext$v2$jsxs$$)("g",{className:"selection-feedback",pointerEvents:"none",children:[(0,$APP.$rumext$v2$jsxs$$)("g",{className:"selected-shapes",children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$selection_feedback$selection_rect$$,
{selrect:$selected$jscomp$130_selrect$jscomp$76$$,zoom:$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$size_display$$,{selrect:$selected$jscomp$130_selrect$jscomp$76$$,zoom:$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$measurements$measurement$$,{bounds:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$($map__73138_map__73138__$1_props_73137_size$jscomp$137$$,$APP.$cljs$cst$1499$x$$,
0,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$1500$y$$,0])),"selected-shapes":$objects$jscomp$707_selected_shapes$jscomp$10$$,"hover-shape":$frame$jscomp$53_hover_shape$jscomp$1$$,zoom:$local$jscomp$24_map__73139__$1_zoom$jscomp$58$$})]}):null};
$app$main$data$viewer$select_shape$$=function($id$jscomp$845$$){typeof $app$main$data$viewer$select_shape_72457$$==="undefined"&&($app$main$data$viewer$select_shape_72457$$=function($id$jscomp$846$$,$meta72458$$){this.id=$id$jscomp$846$$;this.$meta72458$=$meta72458$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$select_shape_72457$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$select_shape_72457$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5031$app_DOT_main_DOT_data_DOT_viewer_SLASH_select_shape$$},$app$main$data$viewer$select_shape_72457$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72459$$,$meta72458__$1$$){return new $app$main$data$viewer$select_shape_72457$$(this.id,$meta72458__$1$$)},$app$main$data$viewer$select_shape_72457$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72458$},$app$main$data$viewer$select_shape_72457$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$select_shape_72457$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2791$$,$state$jscomp$1033$$){return $APP.$cljs$core$assoc_in$$($state$jscomp$1033$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([this.id]))});return new $app$main$data$viewer$select_shape_72457$$($id$jscomp$845$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$shift_select_to$$=function($id$jscomp$849$$){typeof $app$main$data$viewer$shift_select_to_72464$$==="undefined"&&($app$main$data$viewer$shift_select_to_72464$$=function($id$jscomp$850$$,$meta72465$$){this.id=$id$jscomp$850$$;this.$meta72465$=$meta72465$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$shift_select_to_72464$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$shift_select_to_72464$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5033$app_DOT_main_DOT_data_DOT_viewer_SLASH_shift_select_to$$},$app$main$data$viewer$shift_select_to_72464$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72466$$,$meta72465__$1$$){return new $app$main$data$viewer$shift_select_to_72464$$(this.id,$meta72465__$1$$)},$app$main$data$viewer$shift_select_to_72464$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72465$},$app$main$data$viewer$shift_select_to_72464$$.prototype.$potok$v2$core$UpdateEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$shift_select_to_72464$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$,$state$jscomp$1035$$){$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$=$APP.$cljs$cst$2131$route$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1035$$);$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$=
$APP.$cljs$cst$2229$query_params$$.$cljs$core$IFn$_invoke$arity$1$($G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$);$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$=$APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$);$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$=
$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$==null?null:$APP.$app$common$uuid$parse$$($G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$);$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($state$jscomp$1035$$,new $APP.$cljs$core$PersistentVector$$(null,
4,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1576$viewer$$,$APP.$cljs$cst$2190$pages$$,$G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$,$APP.$cljs$cst$1615$objects$$],null));var $selection$jscomp$11$$=$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1035$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$1906$selected$$],null),$APP.$cljs$core$PersistentHashSet$EMPTY$$),this.id);return $APP.$cljs$core$assoc_in$$($state$jscomp$1035$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$1906$selected$$],null),$APP.$app$common$files$helpers$expand_region_selection$$($G__72469$jscomp$inline_9214__$jscomp$2793_objects$jscomp$678_page_id$jscomp$371_qparams$jscomp$6_route$jscomp$16$$,
$selection$jscomp$11$$))});return new $app$main$data$viewer$shift_select_to_72464$$($id$jscomp$849$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$go_to_frame_auto$$=function(){typeof $app$main$data$viewer$go_to_frame_auto_72418$$==="undefined"&&($app$main$data$viewer$go_to_frame_auto_72418$$=function($meta72419$$){this.$meta72419$=$meta72419$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$potok$v2$core$Event$_type$arity$1$=
function(){return $APP.$cljs$cst$5022$app_DOT_main_DOT_data_DOT_viewer_SLASH_go_to_frame_auto$$},$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72420$$,$meta72419__$1$$){return new $app$main$data$viewer$go_to_frame_auto_72418$$($meta72419__$1$$)},$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72419$},$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$go_to_frame_auto_72418$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$,$flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$){$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$=$APP.$cljs$cst$2131$route$$.$cljs$core$IFn$_invoke$arity$1$($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$);
$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$=$APP.$cljs$cst$2229$query_params$$.$cljs$core$IFn$_invoke$arity$1$($G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$);$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$=$APP.$cljs$cst$2028$page_id$$.$cljs$core$IFn$_invoke$arity$1$($G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$);
$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$=$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$==null?null:$APP.$app$common$uuid$parse$$($G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$);$flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$,
new $APP.$cljs$core$PersistentVector$$(null,5,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1576$viewer$$,$APP.$cljs$cst$2190$pages$$,$G__72422$jscomp$inline_9216__$jscomp$2783_page_id$jscomp$368_qparams$jscomp$3_route$jscomp$13$$,$APP.$cljs$cst$871$options$$,$APP.$cljs$cst$2041$flows$$],null));return $APP.$cljs$core$seq$$($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$)?($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$=$APP.$cljs$cst$2038$starting_frame$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$first$$($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$)),
(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$viewer$go_to_frame$cljs$0core$0IFn$0_invoke$0arity$01$$($flows$jscomp$6_frame_id$jscomp$115_state$jscomp$1024$$))):(0,$APP.$beicon$v2$core$of$$)($APP.$app$main$data$viewer$go_to_frame_by_index$$(0))});return new $app$main$data$viewer$go_to_frame_auto_72418$$($APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$go_to_frame$$=function($var_args$jscomp$1373$$){switch(arguments.length){case 1:return $APP.$app$main$data$viewer$go_to_frame$cljs$0core$0IFn$0_invoke$0arity$01$$(arguments[0]);case 2:return $APP.$app$main$data$viewer$go_to_frame$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(""));}};
$app$main$data$viewer$bundle_fetched$$=function($p__72114$$){var $map__72115__$1$$=$APP.$cljs$core$__destructure_map$$($p__72114$$),$project$jscomp$15$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$2192$project$$),$file$jscomp$138$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$208$file$$),$team$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$2449$team$$),$share_links$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$2136$share_links$$),$libraries$jscomp$120$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$4984$libraries$$),$users$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$4985$users$$),$permissions$jscomp$25$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$1706$permissions$$),$thumbnails$jscomp$14$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72115__$1$$,$APP.$cljs$cst$2191$thumbnails$$),$pages$jscomp$7$$=$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($page_id$jscomp$360$$){var $data$jscomp$433$$=$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$138$$,new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,
[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$1614$pages_index$$,$page_id$jscomp$360$$],null)),$JSCompiler_temp_const$jscomp$1959$$=$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,$JSCompiler_temp_const$jscomp$1957$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$variadic$;var $JSCompiler_inline_result$jscomp$1960_objects$jscomp$inline_9218$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$433$$);$JSCompiler_inline_result$jscomp$1960_objects$jscomp$inline_9218$$=$APP.$app$common$types$shape_tree$get_viewer_frames$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_inline_result$jscomp$1960_objects$jscomp$inline_9218$$,
null);return new $APP.$cljs$core$PersistentVector$$(null,2,5,$JSCompiler_temp_const$jscomp$1959$$,[$page_id$jscomp$360$$,$JSCompiler_temp_const$jscomp$1957$$.call($APP.$cljs$core$assoc$$,$data$jscomp$433$$,$APP.$cljs$cst$4986$frames$$,$JSCompiler_inline_result$jscomp$1960_objects$jscomp$inline_9218$$,$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$cljs$cst$4987$all_frames$$,$APP.$app$common$types$shape_tree$get_viewer_frames$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$433$$),
new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$2070$all_frames_QMARK_$$,!0],null))]))],null)},$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$138$$,$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2190$pages$$)));typeof $app$main$data$viewer$bundle_fetched_72119$$==="undefined"&&($app$main$data$viewer$bundle_fetched_72119$$=function($p__72114$jscomp$1$$,$users$jscomp$2$$,$permissions$jscomp$26$$,$libraries$jscomp$121$$,
$map__72115$jscomp$1$$,$file$jscomp$139$$,$bundle$jscomp$6$$,$thumbnails$jscomp$15$$,$pages$jscomp$8$$,$project$jscomp$16$$,$team$jscomp$29$$,$share_links$jscomp$1$$,$meta72120$$){this.$p__72114$=$p__72114$jscomp$1$$;this.users=$users$jscomp$2$$;this.permissions=$permissions$jscomp$26$$;this.libraries=$libraries$jscomp$121$$;this.$map__72115$=$map__72115$jscomp$1$$;this.file=$file$jscomp$139$$;this.$bundle$=$bundle$jscomp$6$$;this.$thumbnails$=$thumbnails$jscomp$15$$;this.$pages$=$pages$jscomp$8$$;
this.project=$project$jscomp$16$$;this.team=$team$jscomp$29$$;this.$share_links$=$share_links$jscomp$1$$;this.$meta72120$=$meta72120$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4988$app_DOT_main_DOT_data_DOT_viewer_SLASH_bundle_fetched$$},
$app$main$data$viewer$bundle_fetched_72119$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72121$$,$meta72120__$1$$){return new $app$main$data$viewer$bundle_fetched_72119$$(this.$p__72114$,this.users,this.permissions,this.libraries,this.$map__72115$,this.file,this.$bundle$,this.$thumbnails$,this.$pages$,this.project,this.team,this.$share_links$,$meta72120__$1$$)},$app$main$data$viewer$bundle_fetched_72119$$.prototype.$cljs$core$IMeta$_meta$arity$1$=function(){return this.$meta72120$},
$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2747_team_id$jscomp$122$$,$state$jscomp$991$$){$_$jscomp$2747_team_id$jscomp$122$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.team);var $team__$1$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$(this.team,$APP.$cljs$cst$3239$members$$,this.users);
return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$991$$,$APP.$cljs$cst$2136$share_links$$,this.$share_links$),$APP.$cljs$cst$1911$current_team_id$$,$_$jscomp$2747_team_id$jscomp$122$$),$APP.$cljs$cst$2133$teams$$,$APP.$cljs$core$PersistentArrayMap$createAsIfByAssoc$$([$_$jscomp$2747_team_id$jscomp$122$$,
$team__$1$$])),$APP.$cljs$cst$1901$files$$,$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,this.libraries),$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$(this.file),this.file)),$APP.$cljs$cst$1576$viewer$$,new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$APP.$cljs$cst$4984$libraries$$,$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,this.libraries),
$APP.$cljs$cst$4985$users$$,$APP.$app$common$data$index_by$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$,this.users),$APP.$cljs$cst$1706$permissions$$,this.permissions,$APP.$cljs$cst$2192$project$$,this.project,$APP.$cljs$cst$2190$pages$$,this.$pages$,$APP.$cljs$cst$2191$thumbnails$$,this.$thumbnails$,$APP.$cljs$cst$208$file$$,this.file],null))},$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$bundle_fetched_72119$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=
function($_$jscomp$2748_index$jscomp$381_route$jscomp$10$$,$frame_id$jscomp$111_state$jscomp$992$$){$_$jscomp$2748_index$jscomp$381_route$jscomp$10$$=$APP.$cljs$cst$2131$route$$.$cljs$core$IFn$_invoke$arity$1$($frame_id$jscomp$111_state$jscomp$992$$);var $qparams$$=$APP.$cljs$cst$2229$query_params$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2748_index$jscomp$381_route$jscomp$10$$);$_$jscomp$2748_index$jscomp$381_route$jscomp$10$$=function(){var $G__72134$$=$APP.$app$main$router$get_query_param$$($qparams$$);
return $G__72134$$==null?null:$APP.$cljs$core$parse_long$$($G__72134$$)}();$frame_id$jscomp$111_state$jscomp$992$$=function(){var $G__72135$$=$APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($qparams$$);return $G__72135$$==null?null:$APP.$app$common$uuid$parse$$($G__72135$$)}();return $APP.$beicon$v2$core$merge$$((0,$APP.$beicon$v2$core$of$$)(function(){switch($APP.$cljs$cst$2158$zoom$$.$cljs$core$IFn$_invoke$arity$1$($qparams$$)){case "fit":return $APP.$app$main$data$viewer$zoom_to_fit$$;
case "fill":return $APP.$app$main$data$viewer$zoom_to_fill$$;default:return null}}()),(0,$APP.$beicon$v2$core$of$$)($frame_id$jscomp$111_state$jscomp$992$$!=null?$APP.$app$main$data$viewer$go_to_frame$cljs$0core$0IFn$0_invoke$0arity$01$$?$APP.$app$main$data$viewer$go_to_frame$cljs$0core$0IFn$0_invoke$0arity$01$$($frame_id$jscomp$111_state$jscomp$992$$):$app$main$data$viewer$go_to_frame$$($frame_id$jscomp$111_state$jscomp$992$$):$_$jscomp$2748_index$jscomp$381_route$jscomp$10$$!=null?$APP.$app$main$data$viewer$go_to_frame_by_index$$.$cljs$core$IFn$_invoke$arity$1$?
$APP.$app$main$data$viewer$go_to_frame_by_index$$.$cljs$core$IFn$_invoke$arity$1$($_$jscomp$2748_index$jscomp$381_route$jscomp$10$$):$APP.$app$main$data$viewer$go_to_frame_by_index$$($_$jscomp$2748_index$jscomp$381_route$jscomp$10$$):$app$main$data$viewer$go_to_frame_auto$$.$cljs$core$IFn$_invoke$arity$0$?$app$main$data$viewer$go_to_frame_auto$$.$cljs$core$IFn$_invoke$arity$0$():$app$main$data$viewer$go_to_frame_auto$$()))});return new $app$main$data$viewer$bundle_fetched_72119$$($p__72114$$,$users$jscomp$1$$,
$permissions$jscomp$25$$,$libraries$jscomp$120$$,$map__72115__$1$$,$file$jscomp$138$$,$map__72115__$1$$,$thumbnails$jscomp$14$$,$pages$jscomp$7$$,$project$jscomp$15$$,$team$jscomp$28$$,$share_links$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$viewer$comments$comments_layer$$=function($cursor$jscomp$1_props_73401$$){var $zoom$jscomp$59$$=$cursor$jscomp$1_props_73401$$.zoom,$frame$jscomp$55$$=$cursor$jscomp$1_props_73401$$.frame,$file$jscomp$147$$=$cursor$jscomp$1_props_73401$$.file,$page$jscomp$141$$=$cursor$jscomp$1_props_73401$$.page,$profile$jscomp$50$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$local$jscomp$27$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comments_local$$);$cursor$jscomp$1_props_73401$$=$APP.$app$main$ui$workspace$viewport$utils$get_cursor$$($APP.$cljs$cst$3313$comments$$);
var $open_thread_id$$=$APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$27$$),$page_id$jscomp$385$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$141$$),$file_id$jscomp$330_on_click$jscomp$28$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$147$$),$frame_id$jscomp$126$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$55$$),$vsize$$=$APP.$cljs$cst$4997$viewport_size$$.$cljs$core$IFn$_invoke$arity$1$($APP.$rumext$v2$deref$$($APP.$app$main$refs$viewer_local$$)),
$threads$jscomp$10_tpos_ref$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page_id$jscomp$385$$)],function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2190$pages$$,$page_id$jscomp$385$$,$APP.$cljs$cst$2044$comment_thread_positions$$],null)),$APP.$app$main$refs$viewer_data$$)}),$positions$jscomp$4$$=
$APP.$rumext$v2$deref$$($threads$jscomp$10_tpos_ref$$),$threads_map$jscomp$4$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comment_threads$$),$frame_corner$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame$jscomp$55$$)],function(){return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$geom$rect$points__GT_rect$$($APP.$cljs$cst$1588$points$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$55$$)))}),$modifier1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_corner$$)],
function(){return $APP.$app$common$geom$matrix$translate$$($APP.$app$common$geom$matrix$matrix$$.$cljs$core$IFn$_invoke$arity$0$(),$APP.$app$common$geom$point$negate$$($frame_corner$$))}),$modifier2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_corner$$)],function(){return $APP.$app$common$geom$matrix$translate_matrix$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$1$($frame_corner$$))});$threads$jscomp$10_tpos_ref$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($threads_map$jscomp$4$$),$APP.$rumext$v2$adapt$$($positions$jscomp$4$$),$APP.$rumext$v2$adapt$$($frame$jscomp$55$$),$APP.$rumext$v2$adapt$$($local$jscomp$27$$),$APP.$rumext$v2$adapt$$($profile$jscomp$50$$)],function(){return $APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($map__73404__$1_p__73403_position$jscomp$178$$){$map__73404__$1_p__73403_position$jscomp$178$$=$APP.$cljs$core$__destructure_map$$($map__73404__$1_p__73403_position$jscomp$178$$);
$map__73404__$1_p__73403_position$jscomp$178$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73404__$1_p__73403_position$jscomp$178$$,$APP.$cljs$cst$1660$position$$);return $APP.$app$common$geom$shapes$intersect$has_point_QMARK_$$($frame$jscomp$55$$,$map__73404__$1_p__73403_position$jscomp$178$$)},$APP.$app$main$data$comments$apply_filters$$($local$jscomp$27$$,$profile$jscomp$50$$,$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__73398_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1591$frame_id$$.$cljs$core$IFn$_invoke$arity$1$($p1__73398_SHARP_$$),
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$55$$))},$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$partial$cljs$0core$0IFn$0_invoke$0arity$02$$($app$main$ui$viewer$comments$update_thread_position$$,$positions$jscomp$4$$),$APP.$cljs$core$vals$$($threads_map$jscomp$4$$)))))});var $on_bubble_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_thread_id$$)],function($map__73407__$1_p__73406$$){$map__73407__$1_p__73406$$=
$APP.$cljs$core$__destructure_map$$($map__73407__$1_p__73406$$);var $id$jscomp$870$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73407__$1_p__73406$$,$APP.$cljs$cst$266$id$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($open_thread_id$$,$id$jscomp$870$$)?$APP.$app$main$data$comments$close_thread$$():$APP.$cljs$core$with_meta$$($APP.$app$main$data$comments$open_thread$$($map__73407__$1_p__73406$$),new $APP.$cljs$core$PersistentArrayMap$$(null,
1,[$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"viewer"],null)))});$file_id$jscomp$330_on_click$jscomp$28$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($open_thread_id$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$59$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$385$$),$APP.$rumext$v2$adapt$$($file_id$jscomp$330_on_click$jscomp$28$$),$APP.$rumext$v2$adapt$$($modifier2$$)],function($event$jscomp$246_params$jscomp$402_position$jscomp$179$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$246_params$jscomp$402_position$jscomp$179$$);
if($open_thread_id$$!=null)return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$comments$close_thread$$());$event$jscomp$246_params$jscomp$402_position$jscomp$179$$=$APP.$app$common$geom$point$transform$$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$util$dom$get_offset_position$$($event$jscomp$246_params$jscomp$402_position$jscomp$179$$.nativeEvent),$APP.$cljs$cst$1499$x$$,function($p1__73399_SHARP_$$){return $p1__73399_SHARP_$$/
$zoom$jscomp$59$$}),$APP.$cljs$cst$1500$y$$,function($p1__73400_SHARP_$$){return $p1__73400_SHARP_$$/$zoom$jscomp$59$$}),$modifier2$$);$event$jscomp$246_params$jscomp$402_position$jscomp$179$$=new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1660$position$$,$event$jscomp$246_params$jscomp$402_position$jscomp$179$$,$APP.$cljs$cst$2028$page_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$141$$),$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$147$$)],
null);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$comments$create_draft$$($event$jscomp$246_params$jscomp$402_position$jscomp$179$$))});var $on_draft_cancel$$=$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$comments$close_thread$$())}),$on_draft_submit$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame_id$jscomp$126$$),
$APP.$rumext$v2$adapt$$($modifier2$$)],function($draft$jscomp$1_params$jscomp$403$$){$draft$jscomp$1_params$jscomp$403$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($draft$jscomp$1_params$jscomp$403$$,$APP.$cljs$cst$1591$frame_id$$,$frame_id$jscomp$126$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$comments$create_thread_on_viewer$$($draft$jscomp$1_params$jscomp$403$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$main$data$comments$close_thread$$()]))});
return(0,$APP.$rumext$v2$jsx$$)("div",{onClick:$file_id$jscomp$330_on_click$jscomp$28$$,className:"main_ui_viewer_comments__comments-section",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:""+($cursor$jscomp$1_props_73401$$??"")+" main_ui_viewer_comments__viewer-comments-container",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_comments__threads",children:[$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$105$$,$item$jscomp$114$$){$out_arr__44057__auto__$jscomp$105$$.push((0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$comments$comment_floating_bubble_STAR_$$,
{thread:$item$jscomp$114$$,positionModifier:$modifier1$$,zoom:$zoom$jscomp$59$$,onClick:$on_bubble_click$$,isOpen:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$114$$),$APP.$cljs$cst$3311$open$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$27$$)),origin:$APP.$cljs$cst$1576$viewer$$},$APP.$cljs$cst$3303$seqn$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$114$$)));return $out_arr__44057__auto__$jscomp$105$$},[],$threads$jscomp$10_tpos_ref$$),
function(){var $temp__5825__auto__$jscomp$298$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($threads_map$jscomp$4$$,$open_thread_id$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$298$$)?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$comments$comment_floating_thread_STAR_$$,{thread:$temp__5825__auto__$jscomp$298$$,positionModifier:$modifier1$$,viewport:new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$1634$offset_x$$,0,$APP.$cljs$cst$1635$offset_y$$,0,$APP.$cljs$cst$288$width$$,
$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($vsize$$),$APP.$cljs$cst$1511$height$$,$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($vsize$$)],null),zoom:$zoom$jscomp$59$$}):null}(),function(){var $temp__5825__auto__$jscomp$299$$=$APP.$cljs$cst$3312$draft$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$27$$);return $APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$299$$)?$APP.$rumext$v2$jsx$$($APP.$app$main$ui$comments$comment_floating_thread_draft_STAR_$$,{draft:$temp__5825__auto__$jscomp$299$$,
positionModifier:$modifier1$$,onCancel:$on_draft_cancel$$,onSubmit:$on_draft_submit$$,viewport:null,zoom:$zoom$jscomp$59$$}):null}()]})})})};
$app$main$data$viewer$fetch_bundle$$=function($p__72066$$){var $map__72067__$1$$=$APP.$cljs$core$__destructure_map$$($p__72066$$),$file_id$jscomp$308$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72067__$1$$,$APP.$cljs$cst$1628$file_id$$),$share_id$jscomp$18$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72067__$1$$,$APP.$cljs$cst$3216$share_id$$);typeof $app$main$data$viewer$fetch_bundle_72068$$==="undefined"&&($app$main$data$viewer$fetch_bundle_72068$$=function($p__72066$jscomp$1$$,
$map__72067$jscomp$1$$,$params$jscomp$372$$,$file_id$jscomp$309$$,$share_id$jscomp$19$$,$meta72069$$){this.$p__72066$=$p__72066$jscomp$1$$;this.$map__72067$=$map__72067$jscomp$1$$;this.params=$params$jscomp$372$$;this.$file_id$=$file_id$jscomp$309$$;this.$share_id$=$share_id$jscomp$19$$;this.$meta72069$=$meta72069$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$fetch_bundle_72068$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$viewer$fetch_bundle_72068$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4982$app_DOT_main_DOT_data_DOT_viewer_SLASH_fetch_bundle$$},$app$main$data$viewer$fetch_bundle_72068$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72070$$,$meta72069__$1$$){return new $app$main$data$viewer$fetch_bundle_72068$$(this.$p__72066$,this.$map__72067$,this.params,this.$file_id$,this.$share_id$,$meta72069__$1$$)},$app$main$data$viewer$fetch_bundle_72068$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta72069$},$app$main$data$viewer$fetch_bundle_72068$$.prototype.$potok$v2$core$WatchEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$fetch_bundle_72068$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function(){function $resolve$jscomp$35$$($p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$){var $key$jscomp$393$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$,0,null);$p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$,1,null);$p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$self__$jscomp$6783$$.$file_id$,$APP.$cljs$cst$3741$fragment_id$$,$APP.$cljs$core$_deref$$($p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$)],null);$p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$=$APP.$cljs$core$uuid_QMARK_$$($self__$jscomp$6783$$.$share_id$)?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$,$APP.$cljs$cst$3216$share_id$$,$self__$jscomp$6783$$.$share_id$):$p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$;return $APP.$beicon$v2$core$map$$(function($p1__72065_SHARP_$$){return new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$key$jscomp$393$$,$p1__72065_SHARP_$$],null)},$APP.$beicon$v2$core$map$$($APP.$cljs$cst$142$data$$,
$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3740$get_file_fragment$$,$p__72080_params__$1$jscomp$48_params__$2$jscomp$4_pointer$$)))}var $self__$jscomp$6783$$=this,$params_SINGLEQUOTE_$$=function(){var $G__72075$$=new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1628$file_id$$,$self__$jscomp$6783$$.$file_id$,$APP.$cljs$cst$227$features$$,$APP.$app$common$features$supported_features$$],null);return $APP.$cljs$core$uuid_QMARK_$$($self__$jscomp$6783$$.$share_id$)?
$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($G__72075$$,$APP.$cljs$cst$3216$share_id$$,$self__$jscomp$6783$$.$share_id$):$G__72075$$}();return $APP.$beicon$v2$core$mapcat$$(function($JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$){var $G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$=$APP.$cljs$core$__destructure_map$$($JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$);$JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$,$APP.$cljs$cst$2987$fonts$$);var $JSCompiler_temp_const$jscomp$1961_team$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$,$APP.$cljs$cst$2449$team$$);$JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$=$APP.$app$main$data$fonts$fonts_fetched$$($JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$);
$JSCompiler_temp_const$jscomp$1961_team$jscomp$27$$=$APP.$app$main$features$initialize$$($APP.$cljs$cst$227$features$$.$cljs$core$IFn$_invoke$arity$1$($JSCompiler_temp_const$jscomp$1961_team$jscomp$27$$));$G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$=$APP.$cljs$core$merge$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$,$self__$jscomp$6783$$.params]));
$G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$=$app$main$data$viewer$bundle_fetched$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$data$viewer$bundle_fetched$$.$cljs$core$IFn$_invoke$arity$1$($G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$):$app$main$data$viewer$bundle_fetched$$($G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$);return(0,$APP.$beicon$v2$core$of$$)($JSCompiler_temp_const$jscomp$1962_fonts$jscomp$24_p__72091$$,
$JSCompiler_temp_const$jscomp$1961_team$jscomp$27$$,$G__72094$jscomp$inline_9220_JSCompiler_inline_result$jscomp$1963_map__72092__$1$$)},$APP.$beicon$v2$core$mapcat$$(function($bundle$jscomp$3$$){return $APP.$beicon$v2$core$map$$(function($data$jscomp$432$$){return $APP.$cljs$core$update$$.$cljs$core$IFn$_invoke$arity$5$($bundle$jscomp$3$$,$APP.$cljs$cst$208$file$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$142$data$$,$data$jscomp$432$$)},$APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$conj$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$beicon$v2$core$merge_map$$(function($p__72098$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72098$$,0,null);var $object$jscomp$36$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72098$$,1,null);return $APP.$app$common$transit$pointer_QMARK_$$($object$jscomp$36$$)?$resolve$jscomp$35$$($p__72098$$):(0,$APP.$beicon$v2$core$of$$)($p__72098$$)},$APP.$beicon$v2$core$from$$($APP.$cljs$core$seq$$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$208$file$$.$cljs$core$IFn$_invoke$arity$1$($bundle$jscomp$3$$)))))))},
$APP.$beicon$v2$core$mapcat$$(function($bundle$jscomp$4$$){return $APP.$beicon$v2$core$map$$(function($pages_index$jscomp$2$$){return $APP.$cljs$core$update_in$$.$cljs$core$IFn$_invoke$arity$5$($bundle$jscomp$4$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$208$file$$,$APP.$cljs$cst$142$data$$],null),$APP.$cljs$core$assoc$$,$APP.$cljs$cst$1614$pages_index$$,$pages_index$jscomp$2$$)},$APP.$beicon$v2$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$($APP.$cljs$core$conj$$,
$APP.$cljs$core$PersistentArrayMap$EMPTY$$,$APP.$beicon$v2$core$merge_map$$(function($p__72106$$){$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72106$$,0,null);var $page$jscomp$137$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($p__72106$$,1,null);return $APP.$app$common$transit$pointer_QMARK_$$($page$jscomp$137$$)?$resolve$jscomp$35$$($p__72106$$):(0,$APP.$beicon$v2$core$of$$)($p__72106$$)},$APP.$beicon$v2$core$from$$($APP.$cljs$core$seq$$($APP.$cljs$cst$1614$pages_index$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$208$file$$.$cljs$core$IFn$_invoke$arity$1$($bundle$jscomp$4$$))))))))},
$APP.$app$main$repo$cmd_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$4983$get_view_only_bundle$$,$params_SINGLEQUOTE_$$))))});return new $app$main$data$viewer$fetch_bundle_72068$$($p__72066$$,$map__72067__$1$$,$map__72067__$1$$,$file_id$jscomp$308$$,$share_id$jscomp$18$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$data$viewer$initialize$$=function($p__72045$$){var $map__72046__$1$$=$APP.$cljs$core$__destructure_map$$($p__72045$$),$file_id$jscomp$306$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72046__$1$$,$APP.$cljs$cst$1628$file_id$$),$share_id$jscomp$16$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__72046__$1$$,$APP.$cljs$cst$3216$share_id$$);typeof $app$main$data$viewer$initialize_72051$$==="undefined"&&($app$main$data$viewer$initialize_72051$$=function($p__72045$jscomp$1$$,
$map__72046$jscomp$1$$,$params$jscomp$370$$,$file_id$jscomp$307$$,$share_id$jscomp$17$$,$meta72052$$){this.$p__72045$=$p__72045$jscomp$1$$;this.$map__72046$=$map__72046$jscomp$1$$;this.params=$params$jscomp$370$$;this.$file_id$=$file_id$jscomp$307$$;this.$share_id$=$share_id$jscomp$17$$;this.$meta72052$=$meta72052$$;this.$cljs$lang$protocol_mask$partition0$$=393216;this.$cljs$lang$protocol_mask$partition1$$=0},$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$Event$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,
$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$Event$_type$arity$1$=function(){return $APP.$cljs$cst$4980$app_DOT_main_DOT_data_DOT_viewer_SLASH_initialize$$},$app$main$data$viewer$initialize_72051$$.prototype.$cljs$core$IWithMeta$_with_meta$arity$2$=function($_72053$$,$meta72052__$1$$){return new $app$main$data$viewer$initialize_72051$$(this.$p__72045$,this.$map__72046$,this.params,this.$file_id$,this.$share_id$,$meta72052__$1$$)},$app$main$data$viewer$initialize_72051$$.prototype.$cljs$core$IMeta$_meta$arity$1$=
function(){return this.$meta72052$},$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$UpdateEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$UpdateEvent$update$arity$2$=function($_$jscomp$2741$$,$state$jscomp$988$$){return $APP.$cljs$core$assoc_in$$($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$($state$jscomp$988$$,
$APP.$cljs$cst$1902$current_file_id$$,this.$file_id$),$APP.$cljs$cst$3363$current_share_id$$,this.$share_id$),$APP.$cljs$cst$2193$viewer_local$$,function($lstate$jscomp$1$$){return $lstate$jscomp$1$$==null?$APP.$app$main$data$viewer$default_local_state$$:$lstate$jscomp$1$$}),new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$3216$share_id$$],null),this.$share_id$)},$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$WatchEvent$$=
$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$WatchEvent$watch$arity$3$=function($G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$,$state$jscomp$989$$){$G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$=$APP.$app$common$data$without_nils$$.$cljs$core$IFn$_invoke$arity$1$(this.params);$G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$=$app$main$data$viewer$fetch_bundle$$.$cljs$core$IFn$_invoke$arity$1$?
$app$main$data$viewer$fetch_bundle$$.$cljs$core$IFn$_invoke$arity$1$($G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$):$app$main$data$viewer$fetch_bundle$$($G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$);return(0,$APP.$beicon$v2$core$of$$)($G__72057$jscomp$inline_9222_JSCompiler_inline_result$jscomp$1964__$jscomp$2742$$,$APP.$cljs$cst$1899$profile$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$989$$)!=null?$app$main$data$viewer$fetch_comment_threads$$.$cljs$core$IFn$_invoke$arity$1$?
$app$main$data$viewer$fetch_comment_threads$$.$cljs$core$IFn$_invoke$arity$1$(this.params):$app$main$data$viewer$fetch_comment_threads$$(this.params):null,$APP.$cljs$core$truth_$$($APP.$cljs$cst$3216$share_id$$.$cljs$core$IFn$_invoke$arity$1$(this.params))?(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$$,
"shared-prototipe-visited"],null))):null)},$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$EffectEvent$$=$APP.$cljs$core$PROTOCOL_SENTINEL$$,$app$main$data$viewer$initialize_72051$$.prototype.$potok$v2$core$EffectEvent$effect$arity$3$=function(){var $name$jscomp$399$$=["viewer-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$(this.$file_id$)].join("");return $APP.$app$util$globals$global$$.name=$name$jscomp$399$$});return new $app$main$data$viewer$initialize_72051$$($p__72045$$,
$map__72046__$1$$,$map__72046__$1$$,$file_id$jscomp$306$$,$share_id$jscomp$16$$,$APP.$cljs$core$PersistentArrayMap$EMPTY$$)};
$app$main$ui$viewer$comments$comments_sidebar_STAR_$$=function($page$jscomp$142_props_73416$$){var $profiles$jscomp$2$$=$page$jscomp$142_props_73416$$.profiles,$frame$jscomp$56$$=$page$jscomp$142_props_73416$$.frame;$page$jscomp$142_props_73416$$=$page$jscomp$142_props_73416$$.page;var $profile$jscomp$51_threads$jscomp$11$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$profile$$),$local$jscomp$28$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comments_local$$),$threads_map$jscomp$5$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comment_threads$$);
$profile$jscomp$51_threads$jscomp$11$$=$APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$(function($map__73430__$1_p__73427_position$jscomp$180$$){$map__73430__$1_p__73427_position$jscomp$180$$=$APP.$cljs$core$__destructure_map$$($map__73430__$1_p__73427_position$jscomp$180$$);$map__73430__$1_p__73427_position$jscomp$180$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__73430__$1_p__73427_position$jscomp$180$$,$APP.$cljs$cst$1660$position$$);return $APP.$app$common$geom$shapes$intersect$has_point_QMARK_$$($frame$jscomp$56$$,
$map__73430__$1_p__73427_position$jscomp$180$$)},$APP.$app$main$data$comments$apply_filters$$($local$jscomp$28$$,$profile$jscomp$51_threads$jscomp$11$$,$APP.$cljs$core$vals$$($threads_map$jscomp$5$$)));return(0,$APP.$rumext$v2$jsx$$)("aside",{className:"main_ui_viewer_comments__comments-sidebar",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_comments__settings-bar-inside",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$workspace$comments$comments_sidebar_STAR_$$,{fromViewer:!0,
profiles:$profiles$jscomp$2$$,threads:$profile$jscomp$51_threads$jscomp$11$$,pageId:$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$142_props_73416$$)})})})};
$app$main$ui$inspect$left_sidebar$make_collapsed_iref$$=function($id$jscomp$1016$$){return function(){return $APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$okulary$core$in$0$$(new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2193$viewer_local$$,$APP.$cljs$cst$2033$collapsed$$,$id$jscomp$1016$$],null)),$APP.$app$main$store$state$$)}};
$app$main$ui$inspect$left_sidebar$left_sidebar$$=function($frame$jscomp$98_map__80803_props_80799$$){$frame$jscomp$98_map__80803_props_80799$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$98_map__80803_props_80799$$);var $local$jscomp$33_map__80803__$1_selected$jscomp$208$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$98_map__80803_props_80799$$);$frame$jscomp$98_map__80803_props_80799$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$33_map__80803__$1_selected$jscomp$208$$,
$APP.$cljs$cst$1590$frame$$);var $objects$jscomp$813_page$jscomp$162$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$33_map__80803__$1_selected$jscomp$208$$,$APP.$cljs$cst$1608$page$$);$local$jscomp$33_map__80803__$1_selected$jscomp$208$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$33_map__80803__$1_selected$jscomp$208$$,$APP.$cljs$cst$2842$local$$);$local$jscomp$33_map__80803__$1_selected$jscomp$208$$=$APP.$cljs$cst$1906$selected$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$33_map__80803__$1_selected$jscomp$208$$);
$objects$jscomp$813_page$jscomp$162$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$813_page$jscomp$162$$);return(0,$APP.$rumext$v2$jsx$$)("aside",{className:"main_ui_inspect_left_sidebar__settings-bar-left",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_inspect_left_sidebar__settings-bar-inside",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_inspect_left_sidebar__element-list",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$left_sidebar$layer_item$$,
{item:$frame$jscomp$98_map__80803_props_80799$$,selected:$local$jscomp$33_map__80803__$1_selected$jscomp$208$$,index:0,objects:$objects$jscomp$813_page$jscomp$162$$,"sortable?":!1,"filtered?":!1,depth:-2,"hide-toggle?":!0})})})})};
$app$main$ui$inspect$render$handle_hover_shape$$=function($shape$jscomp$1074$$,$hover_QMARK_$jscomp$15$$){return function($event$jscomp$704$$){if($APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1074$$)||$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1074$$))return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$704$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$704$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$hover_shape$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1074$$),
$hover_QMARK_$jscomp$15$$))}};
$app$main$ui$inspect$render$select_shape$$=function($shape$jscomp$1075$$){return function($event$jscomp$705$$){if($APP.$app$common$files$helpers$group_shape_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1075$$)||$APP.$app$common$files$helpers$root_frame_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1075$$))return null;$APP.$app$util$dom$stop_propagation$$($event$jscomp$705$$);$APP.$app$util$dom$prevent_default$$($event$jscomp$705$$);return $APP.$cljs$core$truth_$$($event$jscomp$705$$.shiftKey)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$toggle_selection$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1075$$))):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$select_shape$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1075$$)))}};
$app$main$ui$inspect$render$shape_wrapper_factory$$=function($component$jscomp$133$$){return function($frame$jscomp$99_props_80807$$){var $shape$jscomp$1076$$=$frame$jscomp$99_props_80807$$.shape,$childs$jscomp$26$$=$frame$jscomp$99_props_80807$$.childs;$frame$jscomp$99_props_80807$$=$frame$jscomp$99_props_80807$$.frame;return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1597$svg_raw$$,$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1076$$))||$APP.$cljs$core$contains_QMARK_$$($APP.$app$main$ui$shapes$svg_raw$graphic_element$$,
$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($shape$jscomp$1076$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$1621$content$$,$APP.$cljs$cst$78$tag$$],null)))?(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$shapes$shape$shape_container$$,{shape:$shape$jscomp$1076$$,onPointerEnter:$app$main$ui$inspect$render$handle_hover_shape$$($shape$jscomp$1076$$,!0),onPointerLeave:$app$main$ui$inspect$render$handle_hover_shape$$($shape$jscomp$1076$$,
!1),onClick:$app$main$ui$inspect$render$select_shape$$($shape$jscomp$1076$$),children:(0,$APP.$rumext$v2$jsx$$)($component$jscomp$133$$,{shape:$shape$jscomp$1076$$,frame:$frame$jscomp$99_props_80807$$,childs:$childs$jscomp$26$$,"is-child-selected?":!0})}):(0,$APP.$rumext$v2$jsx$$)($component$jscomp$133$$,{shape:$shape$jscomp$1076$$,frame:$frame$jscomp$99_props_80807$$,childs:$childs$jscomp$26$$})}};
$app$main$ui$inspect$render$frame_container_factory$$=function($objects$jscomp$814$$){var $shape_container$jscomp$8$$=$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$814$$):$app$main$ui$inspect$render$shape_container_factory$$($objects$jscomp$814$$),$frame_wrapper$jscomp$3$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$frame$frame_shape$$($shape_container$jscomp$8$$));
return $APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($props_80812_props__$1$jscomp$106$$){var $shape$jscomp$1077$$=$props_80812_props__$1$jscomp$106$$.shape,$childs$jscomp$27$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80809_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$814$$,$p1__80809_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($shape$jscomp$1077$$));$props_80812_props__$1$jscomp$106$$=
$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({},$props_80812_props__$1$jscomp$106$$),{shape:$shape$jscomp$1077$$,childs:$childs$jscomp$27$$});return(0,$APP.$rumext$v2$create_element$$)($frame_wrapper$jscomp$3$$,$props_80812_props__$1$jscomp$106$$)})};
$app$main$ui$inspect$render$group_container_factory$$=function($objects$jscomp$815$$){var $shape_container$jscomp$9$$=$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$815$$):$app$main$ui$inspect$render$shape_container_factory$$($objects$jscomp$815$$),$group_wrapper$jscomp$3$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$group$group_shape$$($shape_container$jscomp$9$$));
return function($props_80815_props__$1$jscomp$107$$){var $childs$jscomp$28$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80814_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$815$$,$p1__80814_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($props_80815_props__$1$jscomp$107$$.shape));$props_80815_props__$1$jscomp$107$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({},
$props_80815_props__$1$jscomp$107$$),{childs:$childs$jscomp$28$$});return(0,$APP.$rumext$v2$create_element$$)($group_wrapper$jscomp$3$$,$props_80815_props__$1$jscomp$107$$)}};
$app$main$ui$inspect$render$bool_container_factory$$=function($objects$jscomp$816$$){var $shape_container$jscomp$10$$=$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$816$$):$app$main$ui$inspect$render$shape_container_factory$$($objects$jscomp$816$$),$bool_wrapper$jscomp$2$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$bool$bool_shape$$($shape_container$jscomp$10$$));
return function($props_80817_props__$1$jscomp$108$$){var $children$jscomp$320$$=$APP.$cljs$core$select_keys$$($objects$jscomp$816$$,$APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$816$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($props_80817_props__$1$jscomp$108$$.shape)));$props_80817_props__$1$jscomp$108$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({},
$props_80817_props__$1$jscomp$108$$),{childs:$children$jscomp$320$$});return(0,$APP.$rumext$v2$create_element$$)($bool_wrapper$jscomp$2$$,$props_80817_props__$1$jscomp$108$$)}};
$app$main$ui$inspect$render$svg_raw_container_factory$$=function($objects$jscomp$817$$){var $shape_container$jscomp$11$$=$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$?$app$main$ui$inspect$render$shape_container_factory$$.$cljs$core$IFn$_invoke$arity$1$($objects$jscomp$817$$):$app$main$ui$inspect$render$shape_container_factory$$($objects$jscomp$817$$),$svg_raw_wrapper$jscomp$2$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$svg_raw$svg_raw_shape$$($shape_container$jscomp$11$$));
return function($props_80820_props__$1$jscomp$109$$){var $childs$jscomp$29$$=$APP.$cljs$core$mapv$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80819_SHARP_$$){return $APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$817$$,$p1__80819_SHARP_$$)},$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($props_80820_props__$1$jscomp$109$$.shape));$props_80820_props__$1$jscomp$109$$=$APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$util$object$merge_BANG_$$.$cljs$core$IFn$_invoke$arity$2$({},
$props_80820_props__$1$jscomp$109$$),{childs:$childs$jscomp$29$$});return(0,$APP.$rumext$v2$create_element$$)($svg_raw_wrapper$jscomp$2$$,$props_80820_props__$1$jscomp$109$$)}};
$app$main$ui$inspect$render$shape_container_factory$$=function($objects$jscomp$818$$){var $path_wrapper$jscomp$1$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$path$path_shape$$),$text_wrapper$jscomp$1$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$text$text_shape$$),$rect_wrapper$jscomp$1$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$rect$rect_shape$$),$image_wrapper$jscomp$1$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$image$image_shape$$),
$circle_wrapper$jscomp$1$$=$app$main$ui$inspect$render$shape_wrapper_factory$$($APP.$app$main$ui$shapes$circle$circle_shape$$);return function($frame_container$jscomp$1_props_80824$$){var $opts$jscomp$310_shape$jscomp$1081$$=$frame_container$jscomp$1_props_80824$$.shape,$G__80830_G__80830__$1_frame$jscomp$100$$=$frame_container$jscomp$1_props_80824$$.frame;$frame_container$jscomp$1_props_80824$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$818$$)],
function(){return $app$main$ui$inspect$render$frame_container_factory$$($objects$jscomp$818$$)});var $group_container$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$818$$)],function(){return $app$main$ui$inspect$render$group_container_factory$$($objects$jscomp$818$$)}),$bool_container$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$818$$)],function(){return $app$main$ui$inspect$render$bool_container_factory$$($objects$jscomp$818$$)}),
$svg_raw_container$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$818$$)],function(){return $app$main$ui$inspect$render$svg_raw_container_factory$$($objects$jscomp$818$$)});if($APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($opts$jscomp$310_shape$jscomp$1081$$)?$APP.$cljs$core$not$$($APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($opts$jscomp$310_shape$jscomp$1081$$)):$opts$jscomp$310_shape$jscomp$1081$$)){var $shape__$1$jscomp$120$$=
$APP.$cljs$core$truth_$$($G__80830_G__80830__$1_frame$jscomp$100$$)?$APP.$app$common$geom$shapes$translate_to_frame$$($opts$jscomp$310_shape$jscomp$1081$$,$G__80830_G__80830__$1_frame$jscomp$100$$):$opts$jscomp$310_shape$jscomp$1081$$;$opts$jscomp$310_shape$jscomp$1081$$={shape:$shape__$1$jscomp$120$$,frame:$G__80830_G__80830__$1_frame$jscomp$100$$};$G__80830_G__80830__$1_frame$jscomp$100$$=$APP.$cljs$cst$139$type$$.$cljs$core$IFn$_invoke$arity$1$($shape__$1$jscomp$120$$);$G__80830_G__80830__$1_frame$jscomp$100$$=
$G__80830_G__80830__$1_frame$jscomp$100$$ instanceof $APP.$cljs$core$Keyword$$?$G__80830_G__80830__$1_frame$jscomp$100$$.$fqn$:null;switch($G__80830_G__80830__$1_frame$jscomp$100$$){case "frame":return(0,$APP.$rumext$v2$create_element$$)($frame_container$jscomp$1_props_80824$$,$opts$jscomp$310_shape$jscomp$1081$$);case "text":return(0,$APP.$rumext$v2$create_element$$)($text_wrapper$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);case "rect":return(0,$APP.$rumext$v2$create_element$$)($rect_wrapper$jscomp$1$$,
$opts$jscomp$310_shape$jscomp$1081$$);case "path":return(0,$APP.$rumext$v2$create_element$$)($path_wrapper$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);case "image":return(0,$APP.$rumext$v2$create_element$$)($image_wrapper$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);case "circle":return(0,$APP.$rumext$v2$create_element$$)($circle_wrapper$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);case "group":return(0,$APP.$rumext$v2$create_element$$)($group_container$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);
case "bool":return(0,$APP.$rumext$v2$create_element$$)($bool_container$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);case "svg-raw":return(0,$APP.$rumext$v2$create_element$$)($svg_raw_container$jscomp$1$$,$opts$jscomp$310_shape$jscomp$1081$$);default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__80830_G__80830__$1_frame$jscomp$100$$)].join(""));}}else return null}};
$app$main$ui$inspect$render$render_frame_svg$$=function($local$jscomp$34_map__80832_props_80831$$){$local$jscomp$34_map__80832_props_80831$$=$APP.$rumext$v2$util$wrap_props$$($local$jscomp$34_map__80832_props_80831$$);var $frame__$1$jscomp$9_map__80832__$1$$=$APP.$cljs$core$__destructure_map$$($local$jscomp$34_map__80832_props_80831$$),$page$jscomp$163$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame__$1$jscomp$9_map__80832__$1$$,$APP.$cljs$cst$1608$page$$),$frame$jscomp$101$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame__$1$jscomp$9_map__80832__$1$$,
$APP.$cljs$cst$1590$frame$$);$local$jscomp$34_map__80832_props_80831$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame__$1$jscomp$9_map__80832__$1$$,$APP.$cljs$cst$2842$local$$);var $size$jscomp$162$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frame__$1$jscomp$9_map__80832__$1$$,$APP.$cljs$cst$872$size$$),$objects$jscomp$819$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page$jscomp$163$$),$APP.$rumext$v2$adapt$$($frame$jscomp$101$$),
$APP.$rumext$v2$adapt$$($size$jscomp$162$$)],function(){return $APP.$app$main$ui$viewer$interactions$prepare_objects$$($frame$jscomp$101$$,$size$jscomp$162$$,$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0),$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$163$$))});$frame__$1$jscomp$9_map__80832__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$819$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$101$$));
var $render$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($objects$jscomp$819$$)],function(){return $app$main$ui$inspect$render$frame_container_factory$$($objects$jscomp$819$$)});return(0,$APP.$rumext$v2$jsxs$$)("svg",{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$162$$),xmlns:"http://www.w3.org/2000/svg",height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$162$$),children:[(0,$APP.$rumext$v2$jsx$$)($render$jscomp$2$$,
{shape:$frame__$1$jscomp$9_map__80832__$1$$,"view-box":$APP.$cljs$cst$1910$vbox$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$162$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$selection_feedback$selection_feedback$$,{frame:$frame__$1$jscomp$9_map__80832__$1$$,objects:$objects$jscomp$819$$,local:$local$jscomp$34_map__80832_props_80831$$,size:$size$jscomp$162$$})],id:"svg-frame",viewBox:$APP.$cljs$cst$1910$vbox$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$162$$),xmlnsXlink:"http://www.w3.org/1999/xlink",
fill:"none",version:"1.1"})};
$app$main$ui$viewer$inspect$handle_select_frame$$=function($event$jscomp$706$$){var $frame_id$jscomp$152$$=$APP.$app$common$data$read_string$$($APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_current_target$$($event$jscomp$706$$),"value")),$over_section_QMARK_$$=$APP.$app$util$dom$class_QMARK_$$($APP.$app$util$dom$get_target$$($event$jscomp$706$$),"inspect-svg-container"),$layout$jscomp$35$$=$APP.$goog$dom$getElement$$("viewer-layout"),$has_force_QMARK_$$=$APP.$app$util$dom$class_QMARK_$$($layout$jscomp$35$$,"force-visible");
$APP.$app$util$dom$prevent_default$$($event$jscomp$706$$);$APP.$app$util$dom$stop_propagation$$($event$jscomp$706$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$select_shape$$($frame_id$jscomp$152$$));return $over_section_QMARK_$$?$has_force_QMARK_$$?$layout$jscomp$35$$!=null?$layout$jscomp$35$$.classList.remove("force-visible"):null:$APP.$app$util$dom$add_class_BANG_$$($layout$jscomp$35$$,"force-visible"):null};
$app$main$ui$viewer$inspect$viewport$$=function($local$jscomp$35_map__80845_props_80843$$){function $on_mouse_wheel$jscomp$3$$($event$jscomp$707_event__$1$jscomp$8$$){return $APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$707_event__$1$jscomp$8$$)?($APP.$app$util$dom$prevent_default$$($event$jscomp$707_event__$1$jscomp$8$$),$event$jscomp$707_event__$1$jscomp$8$$=$event$jscomp$707_event__$1$jscomp$8$$.getBrowserEvent(),$event$jscomp$707_event__$1$jscomp$8$$.deltaY+$event$jscomp$707_event__$1$jscomp$8$$.deltaX>
0?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$decrease_zoom$$):$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$increase_zoom$$)):null}$local$jscomp$35_map__80845_props_80843$$=$APP.$rumext$v2$util$wrap_props$$($local$jscomp$35_map__80845_props_80843$$);var $map__80845__$1_share_id$jscomp$28$$=$APP.$cljs$core$__destructure_map$$($local$jscomp$35_map__80845_props_80843$$);$local$jscomp$35_map__80845_props_80843$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$APP.$cljs$cst$2842$local$$);var $file$jscomp$194$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$APP.$cljs$cst$208$file$$),$page$jscomp$164$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$APP.$cljs$cst$1608$page$$),$frame$jscomp$102$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,
$APP.$cljs$cst$1590$frame$$),$index$jscomp$579$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$APP.$cljs$cst$1779$index$$),$viewer_pagination$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$cljs$cst$6082$viewer_pagination$$),$size$jscomp$163$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,$APP.$cljs$cst$872$size$$);$map__80845__$1_share_id$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80845__$1_share_id$jscomp$28$$,
$APP.$cljs$cst$3216$share_id$$);var $inspect_svg_container_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$current_section_STAR_$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1159$info$$),$can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$=$APP.$cljs$core$_deref$$($current_section_STAR_$jscomp$1$$);$can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$,
$APP.$cljs$cst$271$code$$);var $map__80846_on_pointer_down$jscomp$23$$=$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),$map__80846__$1_on_pointer_move$jscomp$17$$=$APP.$cljs$core$__destructure_map$$($map__80846_on_pointer_down$jscomp$23$$),$set_right_size$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80846__$1_on_pointer_move$jscomp$17$$,$APP.$cljs$cst$4382$set_size$$),
$right_size$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80846__$1_on_pointer_move$jscomp$17$$,$APP.$cljs$cst$872$size$$);$map__80846_on_pointer_down$jscomp$23$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80846__$1_on_pointer_move$jscomp$17$$,$APP.$cljs$cst$4378$on_pointer_down$$);var $on_lost_pointer_capture$jscomp$12$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80846__$1_on_pointer_move$jscomp$17$$,$APP.$cljs$cst$4379$on_lost_pointer_capture$$);
$map__80846__$1_on_pointer_move$jscomp$17$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80846__$1_on_pointer_move$jscomp$17$$,$APP.$cljs$cst$4380$on_pointer_move$$);var $handle_change_section$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$01$$(function($section$jscomp$46$$){return $APP.$cljs$core$reset_BANG_$$($current_section_STAR_$jscomp$1$$,$section$jscomp$46$$)}),$handle_expand$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($right_size$$)],
function(){var $G__80847$$=$right_size$$>318?318:768;return $set_right_size$$.$cljs$core$IFn$_invoke$arity$1$?$set_right_size$$.$cljs$core$IFn$_invoke$arity$1$($G__80847$$):$set_right_size$$($G__80847$$)});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $key1$jscomp$10$$=$APP.$goog$events$listen$$($APP.$goog$global$$,"wheel",$on_mouse_wheel$jscomp$3$$,{passive:!1});return function(){return $APP.$goog$events$unlistenByKey$$($key1$jscomp$10$$)}});$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$($frame$jscomp$102$$))],
function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$select_shape$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$102$$)))});return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$left_sidebar$left_sidebar$$,{frame:$frame$jscomp$102$$,local:$local$jscomp$35_map__80845_props_80843$$,page:$page$jscomp$164$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{id:"inspect-svg-wrapper",
"data-value":$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$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$102$$)])),onClick:$app$main$ui$viewer$inspect$handle_select_frame$$,className:"main_ui_viewer_inspect__inspect-svg-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)($viewer_pagination$$,{index:$index$jscomp$579$$,"num-frames":$APP.$cljs$core$count$$($APP.$cljs$cst$4986$frames$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$164$$)),
"left-bar":!0,"right-bar":!0}),(0,$APP.$rumext$v2$jsx$$)("div",{id:"inspect-svg-container",ref:$inspect_svg_container_ref$$,className:"main_ui_viewer_inspect__inspect-svg-container",children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$render$render_frame_svg$$,{frame:$frame$jscomp$102$$,page:$page$jscomp$164$$,local:$local$jscomp$35_map__80845_props_80843$$,size:$size$jscomp$163$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{style:{"--right-sidebar-width":$can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$?
""+($right_size$$??"")+"px":null},className:"main_ui_viewer_inspect__sidebar-container "+($can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$?"":"main_ui_viewer_inspect__not-expand")+" "+($can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$?"main_ui_viewer_inspect__expanded":""),children:[$can_be_expanded_QMARK_$jscomp$1_current_section$jscomp$2$$?(0,$APP.$rumext$v2$jsx$$)("div",{onPointerDown:$map__80846_on_pointer_down$jscomp$23$$,onLostPointerCapture:$on_lost_pointer_capture$jscomp$12$$,
onPointerMove:$map__80846__$1_on_pointer_move$jscomp$17$$,className:"main_ui_viewer_inspect__resize-area"}):null,$APP.$rumext$v2$jsx$$($APP.$app$main$ui$inspect$right_sidebar$right_sidebar_STAR_$$,{frame:$frame$jscomp$102$$,selected:$APP.$cljs$cst$1906$selected$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$35_map__80845_props_80843$$),page:$page$jscomp$164$$,file:$file$jscomp$194$$,onChangeSection:$handle_change_section$$,onExpand:$handle_expand$jscomp$1$$,shareId:$map__80845__$1_share_id$jscomp$28$$})]})]})};
$app$main$ui$viewer$login$login_register_modal$$=function($main_section_props_80844$$){function $success_register$jscomp$1$$($data$jscomp$497$$){$APP.$cljs$core$reset_BANG_$$($register_token$jscomp$1$$,$APP.$cljs$cst$1134$token$$.$cljs$core$IFn$_invoke$arity$1$($data$jscomp$497$$));return $set_current_section$$.$cljs$core$IFn$_invoke$arity$1$?$set_current_section$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$5152$register_validate$$):$set_current_section$$($APP.$cljs$cst$5152$register_validate$$)}
function $success_login$jscomp$1$$(){return window.location.reload(!0)}function $success_email_sent$$($email$jscomp$20$$){$APP.$cljs$core$reset_BANG_$$($user_email$jscomp$1$$,$email$jscomp$20$$);return $set_current_section$$.$cljs$core$IFn$_invoke$arity$1$?$set_current_section$$.$cljs$core$IFn$_invoke$arity$1$($cljs$cst$6084$email_sent$$):$set_current_section$$($cljs$cst$6084$email_sent$$)}$APP.$rumext$v2$util$wrap_props$$($main_section_props_80844$$);var $user_email$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),
$register_token$jscomp$1$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(""),$current_section_STAR_$jscomp$2$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$($APP.$cljs$cst$1170$login$$),$current_section$jscomp$3$$=$APP.$cljs$core$_deref$$($current_section_STAR_$jscomp$2$$),$set_current_section$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($p1__80842_SHARP_$$){return $APP.$cljs$core$reset_BANG_$$($current_section_STAR_$jscomp$2$$,$p1__80842_SHARP_$$)}),
$set_section$jscomp$1$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$708_section$jscomp$47$$){$event$jscomp$708_section$jscomp$47$$=$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$708_section$jscomp$47$$),"value"));return $set_current_section$$.$cljs$core$IFn$_invoke$arity$1$?$set_current_section$$.$cljs$core$IFn$_invoke$arity$1$($event$jscomp$708_section$jscomp$47$$):
$set_current_section$$($event$jscomp$708_section$jscomp$47$$)}),$go_back_to_login$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $set_current_section$$.$cljs$core$IFn$_invoke$arity$1$?$set_current_section$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1170$login$$):$set_current_section$$($APP.$cljs$cst$1170$login$$)});$main_section_props_80844$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_section$jscomp$3$$,$APP.$cljs$cst$1170$login$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_section$jscomp$3$$,
$cljs$cst$6083$register$$)||$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_section$jscomp$3$$,$APP.$cljs$cst$5152$register_validate$$);return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__modal-overlay",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__modal-container",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__modal-header",children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_viewer_login__modal-title",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.continue-with-penpot")}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),onClick:function($event$jscomp$709$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$709$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$hide$$())},className:"main_ui_viewer_login__modal-close-btn",children:$APP.$app$main$ui$icons$close$$})]}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__modal-content",children:[function(){var $G__80848__$1$$=$current_section$jscomp$3$$ instanceof $APP.$cljs$core$Keyword$$?$current_section$jscomp$3$$.$fqn$:null;switch($G__80848__$1$$){case "login":return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__form-container",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$login$login_dialog_STAR_$$,{onSuccessCallback:$success_login$jscomp$1$$,origin:$APP.$cljs$cst$1576$viewer$$}),
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__links",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__recovery-request",children:(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$set_section$jscomp$1$$,"data-value":"recovery-request",className:"main_ui_viewer_login__recovery-link",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.forgot-password")})}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__register",children:[(0,$APP.$rumext$v2$jsxs$$)("span",
{className:"main_ui_viewer_login__register-text",children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.register")," "]}),(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$set_section$jscomp$1$$,"data-value":"register",className:"main_ui_viewer_login__register-link",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.register-submit")})]})]})]});case "register":return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__form-container",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$register$register_methods_STAR_$$,
{onSuccessCallback:$success_register$jscomp$1$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__links",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__account",children:[(0,$APP.$rumext$v2$jsxs$$)("span",{children:[$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.already-have-account")," "]}),(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$set_section$jscomp$1$$,"data-value":"login",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("auth.login-here")})]})})]});
case "register-validate":return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_login__form-container",children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$register$register_validate_form_STAR_$$,{params:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$1134$token$$,$APP.$cljs$core$_deref$$($register_token$jscomp$1$$)],null),onSuccessCallback:$success_email_sent$$}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__links",children:(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_viewer_login__register",children:(0,$APP.$rumext$v2$jsx$$)("a",{onClick:$set_section$jscomp$1$$,"data-value":"register",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.go-back")})})})]});case "recovery-request":return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$recovery_request$recovery_request_page$$,{"go-back-callback":$go_back_to_login$$,"on-success-callback":$success_email_sent$$});case "email-sent":return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__form-container",
children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$register$register_success_page_STAR_$$,{params:new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$3176$email$$,$APP.$cljs$core$_deref$$($user_email$jscomp$1$$)],null)})});default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__80848__$1$$)].join(""));}}(),$main_section_props_80844$$?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_login__links",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$auth$register$terms_register_STAR_$$,
{})}):null]})]})})};
$app$main$ui$viewer$share_link$prepare_params$$=function($p__80854_pages$jscomp$10$$){var $map__80855__$1_who_inspect$$=$APP.$cljs$core$__destructure_map$$($p__80854_pages$jscomp$10$$);$p__80854_pages$jscomp$10$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80855__$1_who_inspect$$,$APP.$cljs$cst$2190$pages$$);var $who_comment$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80855__$1_who_inspect$$,$APP.$cljs$cst$5149$who_comment$$);$map__80855__$1_who_inspect$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80855__$1_who_inspect$$,
$APP.$cljs$cst$5150$who_inspect$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$2190$pages$$,$p__80854_pages$jscomp$10$$,$APP.$cljs$cst$5149$who_comment$$,$who_comment$$,$APP.$cljs$cst$5150$who_inspect$$,$map__80855__$1_who_inspect$$],null)};
$app$main$ui$viewer$share_link$share_link_dialog$$=function($perms_visible_QMARK__props_80860$$){function $on_comment_change$$($value$jscomp$979$$){$APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($options_STAR_$$,$APP.$cljs$core$assoc$$,$APP.$cljs$cst$5149$who_comment$$,$value$jscomp$979$$)}function $on_inspect_change$$($value$jscomp$978$$){$APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$4$($options_STAR_$$,
$APP.$cljs$core$assoc$$,$APP.$cljs$cst$5150$who_inspect$$,$value$jscomp$978$$)}function $toggle_perms_visibility$$(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($perms_visible_STAR_$$,$APP.$cljs$core$not$$)}function $delete_link$$(){var $params$jscomp$440$$=$app$main$ui$viewer$share_link$prepare_params$$($options$jscomp$632$$),$slink$jscomp$1$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__80858_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$1456$flags$$.$cljs$core$IFn$_invoke$arity$1$($p1__80858_SHARP_$$),
$APP.$cljs$cst$1456$flags$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$440$$))},$slinks$$);$APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$common$delete_share_link$$($slink$jscomp$1$$))}function $try_delete_link$$(){return $APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!0)}function $copy_link$$(){$APP.$app$util$clipboard$to_clipboard$$($current_link$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($APP.$app$main$data$notifications$show$$(new $APP.$cljs$core$PersistentArrayMap$$(null,
4,[$APP.$cljs$cst$282$level$$,$APP.$cljs$cst$1159$info$$,$APP.$cljs$cst$139$type$$,$APP.$cljs$cst$2306$toast$$,$APP.$cljs$cst$1621$content$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.link-copied-success"),$APP.$cljs$cst$2310$timeout$$,1E3],null)),$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$$,"copy-share-link",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,"viewer"],null))]))}function $create_link$$(){var $params$jscomp$439_params__$1$jscomp$63$$=$app$main$ui$viewer$share_link$prepare_params$$($options$jscomp$632$$);$params$jscomp$439_params__$1$jscomp$63$$=$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($params$jscomp$439_params__$1$jscomp$63$$,$APP.$cljs$cst$1628$file_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$195$$));
return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$variadic$($app$main$data$common$create_share_link$$($params$jscomp$439_params__$1$jscomp$63$$),$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$potok$v2$core$event$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2293$app_DOT_main_DOT_data_DOT_event_SLASH_event$$,new $APP.$cljs$core$PersistentArrayMap$$(null,4,[$APP.$cljs$cst$2269$app_DOT_main_DOT_data_DOT_event_SLASH_name$$,"create-share-link",$APP.$cljs$cst$2236$app_DOT_main_DOT_data_DOT_event_SLASH_origin$$,
"viewer",$cljs$cst$6087$can_comment$$,$APP.$cljs$cst$5149$who_comment$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$439_params__$1$jscomp$63$$),$cljs$cst$6088$can_inspect_code$$,$APP.$cljs$cst$5150$who_inspect$$.$cljs$core$IFn$_invoke$arity$1$($params$jscomp$439_params__$1$jscomp$63$$)],null))]))}function $on_mark_checked_page$$($dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$){$dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$=$APP.$app$util$dom$get_target$$($dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$);
var $checked_QMARK_$jscomp$7$$=$APP.$app$util$dom$checked_QMARK_$$($dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$),$page_id$jscomp$438$$=$APP.$app$common$uuid$parse$$($APP.$app$util$dom$get_data$$($dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$,"page-id"));$dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$=$APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($page_id$jscomp$438$$,$APP.$cljs$core$first$$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$)));
return 1<$APP.$cljs$core$count$$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$))||$dif_pages_QMARK__event$jscomp$711_target$jscomp$167$$?($APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1),$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($options_STAR_$$,function($map__80863__$1_p__80862$$){$map__80863__$1_p__80862$$=$APP.$cljs$core$__destructure_map$$($map__80863__$1_p__80862$$);var $pages$jscomp$12_pages__$1$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80863__$1_p__80862$$,
$APP.$cljs$cst$2190$pages$$);$pages$jscomp$12_pages__$1$jscomp$1$$=$APP.$cljs$core$truth_$$($checked_QMARK_$jscomp$7$$)?$APP.$cljs$core$conj$$.$cljs$core$IFn$_invoke$arity$2$($pages$jscomp$12_pages__$1$jscomp$1$$,$page_id$jscomp$438$$):$APP.$cljs$core$disj$$.$cljs$core$IFn$_invoke$arity$2$($pages$jscomp$12_pages__$1$jscomp$1$$,$page_id$jscomp$438$$);return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($map__80863__$1_p__80862$$,$APP.$cljs$cst$2190$pages$$,
$pages$jscomp$12_pages__$1$jscomp$1$$),$cljs$cst$6086$all_pages$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($pages$jscomp$12_pages__$1$jscomp$1$$),$APP.$cljs$core$count$$($page_ids$$)))})):null}function $on_toggle_all$$(){$APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1);return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($options_STAR_$$,function($state$jscomp$1125$$){return $cljs$cst$6086$all_pages$$.$cljs$core$IFn$_invoke$arity$1$($state$jscomp$1125$$)===
!0?$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1125$$,$cljs$cst$6086$all_pages$$,!1),$APP.$cljs$cst$2190$pages$$,$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$165$$)])):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state$jscomp$1125$$,$cljs$cst$6086$all_pages$$,!0),$APP.$cljs$cst$2190$pages$$,
$APP.$cljs$core$into$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$PersistentHashSet$EMPTY$$,$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$195$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$2190$pages$$],null))))})}var $file$jscomp$195$$=$perms_visible_QMARK__props_80860$$.file,$page$jscomp$165$$=$perms_visible_QMARK__props_80860$$.page,$current_page_id$jscomp$8$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$165$$),
$slinks$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$share_links$$),$router$jscomp$8$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$router$$),$route$jscomp$23$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$route$$),$zoom_type$jscomp$2$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$viewer_zoom_type$$),$page_ids$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$195$$,$APP.$cljs$cst$142$data$$),$APP.$cljs$cst$2190$pages$$),$perms_visible_STAR_$$=
$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1);$perms_visible_QMARK__props_80860$$=$APP.$cljs$core$_deref$$($perms_visible_STAR_$$);var $confirm_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$confirm_QMARK_$$=$APP.$cljs$core$_deref$$($confirm_STAR_$$),$options_STAR_$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(new $APP.$cljs$core$PersistentArrayMap$$(null,5,[$cljs$cst$6085$pages_mode$$,"current",$cljs$cst$6086$all_pages$$,!1,$APP.$cljs$cst$2190$pages$$,
$APP.$cljs$core$PersistentHashSet$createAsIfByAssoc$$([$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$165$$)]),$APP.$cljs$cst$5149$who_comment$$,"team",$APP.$cljs$cst$5150$who_inspect$$,"team"],null)),$options$jscomp$632$$=$APP.$cljs$core$_deref$$($options_STAR_$$),$current_link$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($slinks$$),$APP.$rumext$v2$adapt$$($options$jscomp$632$$),$APP.$rumext$v2$adapt$$($page_ids$$)],function(){var $href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=
$app$main$ui$viewer$share_link$prepare_params$$($options$jscomp$632$$);$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=$APP.$cljs$core$__destructure_map$$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$);var $pages$jscomp$11$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$,$APP.$cljs$cst$2190$pages$$),
$who_comment$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$,$APP.$cljs$cst$5149$who_comment$$),$who_inspect$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$,$APP.$cljs$cst$5150$who_inspect$$),$slink$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__80856_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5150$who_inspect$$.$cljs$core$IFn$_invoke$arity$1$($p1__80856_SHARP_$$),
$who_inspect$jscomp$1$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5149$who_comment$$.$cljs$core$IFn$_invoke$arity$1$($p1__80856_SHARP_$$),$who_comment$jscomp$1$$)&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($p1__80856_SHARP_$$),$pages$jscomp$11$$)},$slinks$$);return $APP.$cljs$core$truth_$$($slink$$)?($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=
$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__80857_SHARP_$$){return $APP.$cljs$core$contains_QMARK_$$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($slink$$),$p1__80857_SHARP_$$)},$page_ids$$),$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=$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$cst$2229$query_params$$.$cljs$core$IFn$_invoke$arity$1$($route$jscomp$23$$),
$APP.$cljs$cst$3216$share_id$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($slink$$)),$APP.$cljs$cst$2028$page_id$$,$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$),$APP.$cljs$cst$1779$index$$,"0"),$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=$zoom_type$jscomp$2$$==null?$APP.$cljs$core$dissoc$$.$cljs$core$IFn$_invoke$arity$2$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$,
$APP.$cljs$cst$2158$zoom$$):$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$,$APP.$cljs$cst$2158$zoom$$,$zoom_type$jscomp$2$$),$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$=$APP.$app$main$router$resolve$cljs$0core$0IFn$0_invoke$0arity$03$$($router$jscomp$8$$,$APP.$cljs$cst$1576$viewer$$,$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$),
""+($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$app$config$public_uri$$,$APP.$cljs$cst$736$fragment$$,$href$jscomp$19_map__80861_map__80861__$1_page_id$jscomp$437_params__$1$jscomp$62_params__$2$jscomp$8$$)??"")):null});return(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__share-modal",children:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__share-link-dialog",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__share-link-header",
children:[(0,$APP.$rumext$v2$jsx$$)("h2",{className:"main_ui_viewer_share_link__share-link-title",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.title")}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:function($event$jscomp$710$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$710$$);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$modal$hide$$());return $APP.$app$main$data$modal$disallow_click_outside_BANG_$$()},title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.close"),
className:"main_ui_viewer_share_link__modal-close-button",children:$APP.$app$main$ui$icons$close$$})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__modal-content",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__share-link-section",children:[$APP.$cljs$core$not$$($confirm_QMARK_$$)&&$current_link$$!=null?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__custon-input-wrapper",children:[(0,$APP.$rumext$v2$jsx$$)("input",
{type:"text",value:$APP.$cljs$core$truth_$$($current_link$$)?$current_link$$:"",placeholder:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.placeholder"),readOnly:!0,className:"main_ui_viewer_share_link__input-text"}),(0,$APP.$rumext$v2$jsx$$)("button",{title:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("viewer.header.share.copy-link"),onClick:$copy_link$$,className:"main_ui_viewer_share_link__copy-button",children:$APP.$app$main$ui$icons$clipboard$$})]}):null,
(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__hint-wrapper",children:[$confirm_QMARK_$$?null:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__hint",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.permissions-hint")}),$confirm_QMARK_$$===!0?(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__confirm-dialog",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__description",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.confirm-deletion-link-description")}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__actions",children:[(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",onClick:function(){return $APP.$cljs$core$reset_BANG_$$($confirm_STAR_$$,!1)},value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.cancel"),className:"main_ui_viewer_share_link__button-cancel"}),(0,$APP.$rumext$v2$jsx$$)("input",
{type:"button",onClick:$delete_link$$,value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.destroy-link"),className:"main_ui_viewer_share_link__button-danger"})]})]}):$current_link$$!=null?(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",onClick:$try_delete_link$$,value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.destroy-link"),className:"main_ui_viewer_share_link__button-danger"}):(0,$APP.$rumext$v2$jsx$$)("input",{type:"button",onClick:$create_link$$,
value:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.get-link"),className:"main_ui_viewer_share_link__button-active"})]})]}),$confirm_QMARK_$$?null:(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__permissions-section",children:[(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:$toggle_perms_visibility$$,className:"main_ui_viewer_share_link__manage-permissions",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_viewer_share_link__icon "+($APP.$cljs$core$truth_$$($perms_visible_QMARK__props_80860$$)?
"main_ui_viewer_share_link__rotated":""),children:$APP.$app$main$ui$icons$arrow$$}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.manage-ops")]}),$perms_visible_QMARK__props_80860$$?(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[function(){var $all_selected_QMARK_$jscomp$2$$=$cljs$cst$6086$all_pages$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$),$pages$jscomp$13$$=$APP.$cljs$core$map$$.$cljs$core$IFn$_invoke$arity$2$(function($p1__80859_SHARP_$$){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$195$$,
new $APP.$cljs$core$PersistentVector$$(null,3,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$1614$pages_index$$,$p1__80859_SHARP_$$],null))},$APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($file$jscomp$195$$,new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$142$data$$,$APP.$cljs$cst$2190$pages$$],null))),$selected$jscomp$209$$=$APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$);
return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__view-mode",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.permissions-pages")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__items",children:$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$(1,$APP.$cljs$core$count$$($pages$jscomp$13$$))?(0,$APP.$rumext$v2$jsxs$$)("div",
{className:"main_ui_viewer_share_link__checkbox-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:["page-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($current_page_id$jscomp$8$$)].join(""),className:"checked",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_viewer_share_link__checked",children:$APP.$app$main$ui$icons$status_tick$$}),$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$165$$)]}),(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",
id:"page-"+($current_page_id$jscomp$8$$??""),"data-page-id":""+($current_page_id$jscomp$8$$??""),onChange:$on_mark_checked_page$$,checked:!0}),(0,$APP.$rumext$v2$jsx$$)("span",{children:[" ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.current-tag"))].join("")})]}):(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__select-all-row",
children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__checkbox-wrapper",children:(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:"view-all",className:"main_ui_viewer_share_link__select-all-label",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:$APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$2$$)?"checked":"",children:$APP.$cljs$core$truth_$$($all_selected_QMARK_$jscomp$2$$)?$APP.$app$main$ui$icons$status_tick$$:null}),$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.view-all"),
(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"view-all",checked:$all_selected_QMARK_$jscomp$2$$,name:"pages-mode",onChange:$on_toggle_all$$})]})}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_viewer_share_link__count-pages",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("common.share-link.page-shared",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($APP.$cljs$core$count$$($selected$jscomp$209$$))]))})]}),(0,$APP.$rumext$v2$jsx$$)("ul",
{className:"main_ui_viewer_share_link__pages-selection",children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$263$$,$id$jscomp$1018_p__80864$$){var $map__80865__$1_name$jscomp$477$$=$APP.$cljs$core$__destructure_map$$($id$jscomp$1018_p__80864$$);$id$jscomp$1018_p__80864$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80865__$1_name$jscomp$477$$,$APP.$cljs$cst$266$id$$);$map__80865__$1_name$jscomp$477$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80865__$1_name$jscomp$477$$,
$APP.$cljs$cst$723$name$$);$out_arr__44057__auto__$jscomp$263$$.push((0,$APP.$rumext$v2$jsx$$)("li",{className:"main_ui_viewer_share_link__checkbox-wrapper",children:(0,$APP.$rumext$v2$jsxs$$)("label",{htmlFor:"page-"+($id$jscomp$1018_p__80864$$??""),children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$209$$,$id$jscomp$1018_p__80864$$)?"checked":"",children:$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$209$$,$id$jscomp$1018_p__80864$$)?$APP.$app$main$ui$icons$status_tick$$:
null}),$map__80865__$1_name$jscomp$477$$,$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($current_page_id$jscomp$8$$,$id$jscomp$1018_p__80864$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__current-tag",children:" "+($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.current-tag")??"")}):null,(0,$APP.$rumext$v2$jsx$$)("input",{type:"checkbox",id:"page-"+($id$jscomp$1018_p__80864$$??""),"data-page-id":""+($id$jscomp$1018_p__80864$$??""),onChange:$on_mark_checked_page$$,
checked:$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$209$$,$id$jscomp$1018_p__80864$$)})]})},""+($id$jscomp$1018_p__80864$$??"")));return $out_arr__44057__auto__$jscomp$263$$},[],$pages$jscomp$13$$)})]})})]})}(),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__access-mode",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.permissions-can-comment")}),
(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__items",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_viewer_share_link__who-comment-select","default-value":""+($APP.$cljs$cst$5149$who_comment$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$)??""),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$$,
"team",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.team-members")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"all",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.all-users")],null)],null),"on-change":$on_comment_change$$})})]}),(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_share_link__inspect-mode",children:[(0,$APP.$rumext$v2$jsx$$)("div",
{className:"main_ui_viewer_share_link__subtitle",children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.permissions-can-inspect")}),(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_share_link__items",children:$APP.$rumext$v2$jsx$$($APP.$app$main$ui$components$select$select$$,{"class":"main_ui_viewer_share_link__who-inspect-select","default-value":""+($APP.$cljs$cst$5150$who_inspect$$.$cljs$core$IFn$_invoke$arity$1$($options$jscomp$632$$)??""),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$$,"team",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.team-members")],null),new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$260$value$$,"all",$APP.$cljs$cst$2245$label$$,$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("common.share-link.all-users")],null)],null),"on-change":$on_inspect_change$$})})]})]}):
null]})]})]})})};
$app$main$ui$viewer$thumbnails$thumbnails_content$$=function($map__80867_map__80867__$1_props_80866$$){function $on_scroll$jscomp$3$$($event$jscomp$712_event__$1$jscomp$9$$){$event$jscomp$712_event__$1$jscomp$9$$=$event$jscomp$712_event__$1$jscomp$9$$.nativeEvent;return $event$jscomp$712_event__$1$jscomp$9$$.deltaY>0?$on_right_arrow_click$jscomp$2$$($event$jscomp$712_event__$1$jscomp$9$$):$on_left_arrow_click$jscomp$2$$($event$jscomp$712_event__$1$jscomp$9$$)}function $on_right_arrow_click$jscomp$2$$(){var $visible$jscomp$5$$=$APP.$cljs$core$_deref$$($width$jscomp$248$$)/
$APP.$cljs$core$_deref$$($element_width$$),$max_val$jscomp$7$$=$total$jscomp$27$$-$visible$jscomp$5$$;return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$213$$,function($v$jscomp$688$$){return $v$jscomp$688$$<$max_val$jscomp$7$$?$v$jscomp$688$$+1:$v$jscomp$688$$})}function $on_left_arrow_click$jscomp$2$$(){return $APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($offset$jscomp$213$$,function($v$jscomp$687$$){return $v$jscomp$687$$>0?$v$jscomp$687$$-1:$v$jscomp$687$$})}
$map__80867_map__80867__$1_props_80866$$=$APP.$rumext$v2$util$wrap_props$$($map__80867_map__80867__$1_props_80866$$);$map__80867_map__80867__$1_props_80866$$=$APP.$cljs$core$__destructure_map$$($map__80867_map__80867__$1_props_80866$$);var $children$jscomp$321$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80867_map__80867__$1_props_80866$$,$APP.$cljs$cst$340$children$$),$expanded_QMARK_$jscomp$5$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80867_map__80867__$1_props_80866$$,
$cljs$cst$6089$expanded_QMARK_$$),$total$jscomp$27$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80867_map__80867__$1_props_80866$$,$APP.$cljs$cst$2286$total$$),$container$jscomp$97$$=(0,$APP.$rumext$v2$use_ref$$)(),$width$jscomp$248$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(document.documentElement.clientWidth),$element_width$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(152),$offset$jscomp$213$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(0);
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $APP.$cljs$core$reset_BANG_$$($width$jscomp$248$$,$APP.$app$util$object$get$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($container$jscomp$97$$),"clientWidth"))});return $APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$5$$)?(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_thumbnails__thumbnails-content",children:(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_thumbnails__thumbnails-list-expanded",
children:$children$jscomp$321$$})}):(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_thumbnails__thumbnails-content",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_left_arrow_click$jscomp$2$$,className:"main_ui_viewer_thumbnails__left-scroll-handler",children:$APP.$app$main$ui$icons$arrow$$}),(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_right_arrow_click$jscomp$2$$,className:"main_ui_viewer_thumbnails__right-scroll-handler",children:$APP.$app$main$ui$icons$arrow$$}),(0,$APP.$rumext$v2$jsx$$)("div",
{ref:$container$jscomp$97$$,onWheel:$on_scroll$jscomp$3$$,className:"main_ui_viewer_thumbnails__thumbnails-list",children:(0,$APP.$rumext$v2$jsx$$)("div",{style:{right:[$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$core$_deref$$($offset$jscomp$213$$)*152),"px"].join("")},className:"main_ui_viewer_thumbnails__thumbnails-list-inside",children:$children$jscomp$321$$})})]})};
$app$main$ui$viewer$thumbnails$thumbnails_summary$$=function($map__80869_on_toggle_expand$jscomp$2_props_80868$$){$map__80869_on_toggle_expand$jscomp$2_props_80868$$=$APP.$rumext$v2$util$wrap_props$$($map__80869_on_toggle_expand$jscomp$2_props_80868$$);var $map__80869__$1_total$jscomp$28$$=$APP.$cljs$core$__destructure_map$$($map__80869_on_toggle_expand$jscomp$2_props_80868$$);$map__80869_on_toggle_expand$jscomp$2_props_80868$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80869__$1_total$jscomp$28$$,
$APP.$cljs$cst$5523$on_toggle_expand$$);var $on_close$jscomp$47$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80869__$1_total$jscomp$28$$,$APP.$cljs$cst$4799$on_close$$);$map__80869__$1_total$jscomp$28$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80869__$1_total$jscomp$28$$,$APP.$cljs$cst$2286$total$$);return(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer_thumbnails__thumbnails-summary",children:[(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_viewer_thumbnails__counter",
children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("labels.num-of-frames",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$app$util$i18n$c$$($map__80869__$1_total$jscomp$28$$)]))}),(0,$APP.$rumext$v2$jsxs$$)("span",{className:"main_ui_viewer_thumbnails__actions",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$map__80869_on_toggle_expand$jscomp$2_props_80868$$,className:"main_ui_viewer_thumbnails__expand-btn",children:$APP.$app$main$ui$icons$arrow$$}),
(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_close$jscomp$47$$,className:"main_ui_viewer_thumbnails__close-btn",children:$APP.$app$main$ui$icons$close$$})]})]})};
$app$main$ui$viewer$thumbnails$thumbnails_panel$$=function($frames$jscomp$35_map__80875_props_80874$$){function $on_close$jscomp$48$$(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$toggle_thumbnails_panel$$)}$frames$jscomp$35_map__80875_props_80874$$=$APP.$rumext$v2$util$wrap_props$$($frames$jscomp$35_map__80875_props_80874$$);var $container$jscomp$98_map__80875__$1$$=$APP.$cljs$core$__destructure_map$$($frames$jscomp$35_map__80875_props_80874$$);
$frames$jscomp$35_map__80875_props_80874$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($container$jscomp$98_map__80875__$1$$,$APP.$cljs$cst$4986$frames$$);var $page$jscomp$166$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($container$jscomp$98_map__80875__$1$$,$APP.$cljs$cst$1608$page$$),$index$jscomp$581$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($container$jscomp$98_map__80875__$1$$,$APP.$cljs$cst$1779$index$$),$show_QMARK_$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($container$jscomp$98_map__80875__$1$$,
$APP.$cljs$cst$5112$show_QMARK_$$),$thumbnail_data$jscomp$2$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($container$jscomp$98_map__80875__$1$$,$cljs$cst$6090$thumbnail_data$$),$expanded_state$$=$APP.$rumext$v2$use_state$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$expanded_QMARK_$jscomp$6$$=$APP.$cljs$core$_deref$$($expanded_state$$);$container$jscomp$98_map__80875__$1$$=(0,$APP.$rumext$v2$use_ref$$)();var $objects$jscomp$821$$=$APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$166$$),
$selected$jscomp$210$$=$APP.$rumext$v2$use_var$cljs$0core$0IFn$0_invoke$0arity$01$$(!1),$on_item_click$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($expanded_QMARK_$jscomp$6$$)],function($_$jscomp$3014$$,$index__$1$jscomp$26$$){$APP.$cljs$core$compare_and_set_BANG_$$($selected$jscomp$210$$,!1,!0);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$go_to_frame_by_index$$($index__$1$jscomp$26$$));return $APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$6$$)?
$on_close$jscomp$48$$():null}),$toggle_expand$$=$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$($expanded_state$$,$APP.$cljs$core$not$$)});return(0,$APP.$rumext$v2$jsxs$$)("section",{style:{display:$APP.$cljs$core$not$$($show_QMARK_$jscomp$6$$)?"none":null},ref:$container$jscomp$98_map__80875__$1$$,className:"main_ui_viewer_thumbnails__viewer-thumbnails "+($APP.$cljs$core$truth_$$($expanded_QMARK_$jscomp$6$$)?
"main_ui_viewer_thumbnails__expanded":""),children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$thumbnails$thumbnails_summary$$,{"on-toggle-expand":$toggle_expand$$,"on-close":$on_close$jscomp$48$$,total:$APP.$cljs$core$count$$($frames$jscomp$35_map__80875_props_80874$$)}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$thumbnails$thumbnails_content$$,{"expanded?":$expanded_QMARK_$jscomp$6$$,total:$APP.$cljs$core$count$$($frames$jscomp$35_map__80875_props_80874$$),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$264$$,
$frame$jscomp$104_p__80876$$){var $i$jscomp$542$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame$jscomp$104_p__80876$$,0,null);$frame$jscomp$104_p__80876$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($frame$jscomp$104_p__80876$$,1,null);$out_arr__44057__auto__$jscomp$264$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$thumbnails$thumbnail_item$$,{index:$i$jscomp$542$$,frame:$frame$jscomp$104_p__80876$$,"page-id":$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$166$$),
objects:$objects$jscomp$821$$,"on-click":$on_item_click$$,"selected?":$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($i$jscomp$542$$,$index$jscomp$581$$),"thumbnail-data":$thumbnail_data$jscomp$2$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$104_p__80876$$)??"")+"-"+($i$jscomp$542$$??"")));return $out_arr__44057__auto__$jscomp$264$$},[],$APP.$app$common$data$enumerate$cljs$0core$0IFn$0_invoke$0arity$02$$($frames$jscomp$35_map__80875_props_80874$$))})]})};
$app$main$ui$viewer$calculate_size$$=function($map__80880_objects$jscomp$822_x$jscomp$1360$$,$frame$jscomp$105_y$jscomp$544$$,$zoom$jscomp$169$$){$map__80880_objects$jscomp$822_x$jscomp$1360$$=$APP.$app$common$geom$shapes$bounds$get_object_bounds$$.$cljs$core$IFn$_invoke$arity$2$($map__80880_objects$jscomp$822_x$jscomp$1360$$,$frame$jscomp$105_y$jscomp$544$$);var $height$jscomp$215_map__80880__$1$$=$APP.$cljs$core$__destructure_map$$($map__80880_objects$jscomp$822_x$jscomp$1360$$);$map__80880_objects$jscomp$822_x$jscomp$1360$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$215_map__80880__$1$$,$APP.$cljs$cst$1499$x$$);$frame$jscomp$105_y$jscomp$544$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$215_map__80880__$1$$,$APP.$cljs$cst$1500$y$$);var $width$jscomp$249$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$215_map__80880__$1$$,$APP.$cljs$cst$288$width$$);$height$jscomp$215_map__80880__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($height$jscomp$215_map__80880__$1$$,
$APP.$cljs$cst$1511$height$$);return new $APP.$cljs$core$PersistentArrayMap$$(null,7,[$cljs$cst$6091$base_width$$,$width$jscomp$249$$,$cljs$cst$6092$base_height$$,$height$jscomp$215_map__80880__$1$$,$APP.$cljs$cst$1499$x$$,$map__80880_objects$jscomp$822_x$jscomp$1360$$,$APP.$cljs$cst$1500$y$$,$frame$jscomp$105_y$jscomp$544$$,$APP.$cljs$cst$288$width$$,$width$jscomp$249$$*$zoom$jscomp$169$$,$APP.$cljs$cst$1511$height$$,$height$jscomp$215_map__80880__$1$$*$zoom$jscomp$169$$,$APP.$cljs$cst$1910$vbox$$,
"0 0 "+($width$jscomp$249$$??"")+" "+($height$jscomp$215_map__80880__$1$$??"")],null)};
$app$main$ui$viewer$calculate_delta$$=function($size$jscomp$164$$,$selrect$jscomp$93$$,$delta_x$jscomp$7_p__80881$$,$zoom$jscomp$170$$){var $snap_v$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($delta_x$jscomp$7_p__80881$$,0,null),$snap_h$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($delta_x$jscomp$7_p__80881$$,1,null);$delta_x$jscomp$7_p__80881$$=function(){var $G__80885__$1$$=$snap_h$$ instanceof $APP.$cljs$core$Keyword$$?$snap_h$$.$fqn$:null;switch($G__80885__$1$$){case "left":return $APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-
$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$);case "right":return $APP.$cljs$cst$1514$x2$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)+$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)/$zoom$jscomp$170$$);case "center":return($APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)/
$zoom$jscomp$170$$)/2-($APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)-$APP.$cljs$cst$1512$x1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__80885__$1$$)].join(""));}}();var $delta_y$jscomp$6$$=function(){var $G__80886__$1$$=$snap_v$$ instanceof $APP.$cljs$core$Keyword$$?$snap_v$$.$fqn$:null;switch($G__80886__$1$$){case "top":return $APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-
$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$);case "bottom":return $APP.$cljs$cst$1515$y2$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)+$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)/$zoom$jscomp$170$$);case "center":return($APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$)-$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)/
$zoom$jscomp$170$$)/2-($APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$164$$)-$APP.$cljs$cst$1513$y1$$.$cljs$core$IFn$_invoke$arity$1$($selrect$jscomp$93$$));default:throw Error(["No matching clause: ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($G__80886__$1$$)].join(""));}}();return $APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$($delta_x$jscomp$7_p__80881$$*$zoom$jscomp$170$$,$delta_y$jscomp$6$$*$zoom$jscomp$170$$)};
$app$main$ui$viewer$calculate_wrapper$$=function($size1$$,$size2$$,$zoom$jscomp$171$$){if($size1$$==null)return $size2$$;if($size2$$==null)return $size1$$;var $width$jscomp$250$$=function(){var $x__5110__auto__$jscomp$190$$=$cljs$cst$6091$base_width$$.$cljs$core$IFn$_invoke$arity$1$($size1$$),$y__5111__auto__$jscomp$190$$=$cljs$cst$6091$base_width$$.$cljs$core$IFn$_invoke$arity$1$($size2$$);return $x__5110__auto__$jscomp$190$$>$y__5111__auto__$jscomp$190$$?$x__5110__auto__$jscomp$190$$:$y__5111__auto__$jscomp$190$$}(),
$height$jscomp$216$$=function(){var $x__5110__auto__$jscomp$191$$=$cljs$cst$6092$base_height$$.$cljs$core$IFn$_invoke$arity$1$($size1$$),$y__5111__auto__$jscomp$191$$=$cljs$cst$6092$base_height$$.$cljs$core$IFn$_invoke$arity$1$($size2$$);return $x__5110__auto__$jscomp$191$$>$y__5111__auto__$jscomp$191$$?$x__5110__auto__$jscomp$191$$:$y__5111__auto__$jscomp$191$$}();return new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$288$width$$,$width$jscomp$250$$*$zoom$jscomp$171$$,$APP.$cljs$cst$1511$height$$,
$height$jscomp$216$$*$zoom$jscomp$171$$,$APP.$cljs$cst$1910$vbox$$,["0 0 ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($width$jscomp$250$$)," ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($height$jscomp$216$$)].join("")],null)};
$app$main$ui$viewer$viewer_pagination$$=function($index$jscomp$582_map__80888_props_80887$$){$index$jscomp$582_map__80888_props_80887$$=$APP.$rumext$v2$util$wrap_props$$($index$jscomp$582_map__80888_props_80887$$);var $comment_sidebar_map__80888__$1$$=$APP.$cljs$core$__destructure_map$$($index$jscomp$582_map__80888_props_80887$$);$index$jscomp$582_map__80888_props_80887$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($comment_sidebar_map__80888__$1$$,$APP.$cljs$cst$1779$index$$);var $num_frames$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($comment_sidebar_map__80888__$1$$,$cljs$cst$6093$num_frames$$),$left_bar$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($comment_sidebar_map__80888__$1$$,$cljs$cst$6094$left_bar$$),$right_bar$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($comment_sidebar_map__80888__$1$$,$cljs$cst$6095$right_bar$$);$comment_sidebar_map__80888__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($comment_sidebar_map__80888__$1$$,$cljs$cst$6096$comment_sidebar$$);
var $go_prev_frame$$=$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$viewer$select_prev_frame$$)}),$go_next_frame$$=$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$viewer$select_next_frame$$)}),$go_first_frame$$=$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$viewer$select_first_frame$$)});
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$index$jscomp$582_map__80888_props_80887$$>0?(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$go_prev_frame$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.previous"),className:"main_ui_viewer__viewer-go-prev "+($APP.$cljs$core$truth_$$($left_bar$$)?"main_ui_viewer__left-bar":""),children:$APP.$app$main$ui$icons$arrow$$}):null,$index$jscomp$582_map__80888_props_80887$$+1<$num_frames$$?(0,$APP.$rumext$v2$jsx$$)("button",
{onClick:$go_next_frame$$,"aria-label":$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("labels.next"),className:"main_ui_viewer__viewer-go-next "+($APP.$cljs$core$truth_$$($comment_sidebar_map__80888__$1$$)?"main_ui_viewer__comment-sidebar":"")+" "+($APP.$cljs$core$truth_$$($right_bar$$)?"main_ui_viewer__right-bar":""),children:$APP.$app$main$ui$icons$arrow$$}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer__viewer-bottom "+($APP.$cljs$core$truth_$$($left_bar$$)?"main_ui_viewer__left-bar":
""),children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$go_first_frame$$,className:"main_ui_viewer__reset-button",children:$APP.$app$main$ui$icons$reload$$}),(0,$APP.$rumext$v2$jsx$$)("span",{className:"main_ui_viewer__counter",children:$APP.$cuerdas$core$join$$.$cljs$core$IFn$_invoke$arity$2$(" / ",new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$index$jscomp$582_map__80888_props_80887$$+1,$num_frames$$],null))}),(0,$APP.$rumext$v2$jsx$$)("span",
{})]})]})};
$app$main$ui$viewer$viewer_overlay$$=function($frame$jscomp$107_map__80892_props_80891$$){$frame$jscomp$107_map__80892_props_80891$$=$APP.$rumext$v2$util$wrap_props$$($frame$jscomp$107_map__80892_props_80891$$);var $interactions_mode$jscomp$3_map__80892__$1$$=$APP.$cljs$core$__destructure_map$$($frame$jscomp$107_map__80892_props_80891$$),$overlay$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,$APP.$cljs$cst$2009$overlay$$),$page$jscomp$168$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,$APP.$cljs$cst$1608$page$$);$frame$jscomp$107_map__80892_props_80891$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,$APP.$cljs$cst$1590$frame$$);var $zoom$jscomp$172$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,$APP.$cljs$cst$2158$zoom$$),$wrapper_size$jscomp$3$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,
$cljs$cst$6097$wrapper_size$$);$interactions_mode$jscomp$3_map__80892__$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($interactions_mode$jscomp$3_map__80892__$1$$,$APP.$cljs$cst$4975$interactions_mode$$);var $close_click_outside_QMARK_$jscomp$1$$=$APP.$cljs$cst$1957$close_click_outside$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$background_overlay_QMARK_$jscomp$1$$=$APP.$cljs$cst$1958$background_overlay$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$overlay_frame$$=
$APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$overlay_position$jscomp$5$$=$APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$fixed_base_QMARK_$jscomp$2$$=$APP.$cljs$cst$5025$fixed_source_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$size$jscomp$165$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($page$jscomp$168$$),$APP.$rumext$v2$adapt$$($overlay$jscomp$1$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$172$$)],
function(){return $app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$168$$),$APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$zoom$jscomp$172$$)}),$delta$jscomp$70$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($size$jscomp$165$$),$APP.$rumext$v2$adapt$$($overlay_frame$$),$APP.$rumext$v2$adapt$$($overlay$jscomp$1$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$172$$)],function(){return $app$main$ui$viewer$calculate_delta$$($size$jscomp$165$$,
$APP.$cljs$cst$1589$selrect$$.$cljs$core$IFn$_invoke$arity$1$($overlay_frame$$),$APP.$cljs$cst$5024$snap_to$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),$zoom$jscomp$172$$)}),$on_click$jscomp$68$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($overlay$jscomp$1$$),$APP.$rumext$v2$adapt$$($close_click_outside_QMARK_$jscomp$1$$)],function(){if($APP.$cljs$core$truth_$$($close_click_outside_QMARK_$jscomp$1$$)){var $JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$=
$APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$);if($APP.$cljs$core$truth_$$($JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$))$JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$),
$APP.$app$common$types$shape$interactions$invert_direction$$($JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$)));else{$JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$=$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$;var $JSCompiler_inline_result$jscomp$1351_frame_id$jscomp$inline_9230$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$1$$);$JSCompiler_inline_result$jscomp$1351_frame_id$jscomp$inline_9230$$=
$APP.$app$main$data$viewer$close_overlay$cljs$0core$0IFn$0_invoke$0arity$02$$($JSCompiler_inline_result$jscomp$1351_frame_id$jscomp$inline_9230$$,null);$JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$=$JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$.call($APP.$app$main$store$emit_BANG_$$,$JSCompiler_inline_result$jscomp$1351_frame_id$jscomp$inline_9230$$)}return $JSCompiler_temp$jscomp$1348_JSCompiler_temp_const$jscomp$1349_temp__5823__auto__$jscomp$250$$}return null});
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$cljs$core$truth_$$($APP.$cljs$core$truth_$$($close_click_outside_QMARK_$jscomp$1$$)?$close_click_outside_QMARK_$jscomp$1$$:$background_overlay_QMARK_$jscomp$1$$)?(0,$APP.$rumext$v2$jsx$$)("div",{style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$3$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$3$$),position:"absolute",left:0,top:0},onClick:$on_click$jscomp$68$$,
className:"main_ui_viewer__viewer-overlay-background "+($APP.$cljs$core$truth_$$($background_overlay_QMARK_$jscomp$1$$)?"main_ui_viewer__visible":"")}):null,$APP.$cljs$core$truth_$$($fixed_base_QMARK_$jscomp$2$$)?(0,$APP.$rumext$v2$jsx$$)("div",{style:{position:"absolute",left:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$5$$)*$zoom$jscomp$172$$,top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$5$$)*$zoom$jscomp$172$$,width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),
height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),zIndex:2},className:"main_ui_viewer__viewport-container-wrapper",children:(0,$APP.$rumext$v2$jsx$$)("div",{id:"overlay-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($overlay_frame$$)??""),style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),position:"fixed"},className:"main_ui_viewer__viewer-overlay main_ui_viewer__viewport-container",
children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$viewer$interactions$viewport$$,{frame:$overlay_frame$$,"base-frame":$frame$jscomp$107_map__80892_props_80891$$,"frame-offset":$overlay_position$jscomp$5$$,size:$size$jscomp$165$$,delta:$delta$jscomp$70$$,page:$page$jscomp$168$$,"interactions-mode":$interactions_mode$jscomp$3_map__80892__$1$$})})}):(0,$APP.$rumext$v2$jsx$$)("div",{id:"overlay-"+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($overlay_frame$$)??""),style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),
height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$165$$),left:$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$5$$)*$zoom$jscomp$172$$,top:$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($overlay_position$jscomp$5$$)*$zoom$jscomp$172$$},className:"main_ui_viewer__viewer-overlay main_ui_viewer__viewport-container",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$viewer$interactions$viewport$$,{frame:$overlay_frame$$,"base-frame":$frame$jscomp$107_map__80892_props_80891$$,
"frame-offset":$overlay_position$jscomp$5$$,size:$size$jscomp$165$$,delta:$delta$jscomp$70$$,page:$page$jscomp$168$$,"interactions-mode":$interactions_mode$jscomp$3_map__80892__$1$$})})]})};
$app$main$ui$viewer$viewer_wrapper$$=function($props_80894$$){var $users$jscomp$5$$=$props_80894$$.users,$overlays$jscomp$11$$=$props_80894$$.overlays,$zoom$jscomp$173$$=$props_80894$$.zoom,$wrapper_size$jscomp$4$$=$props_80894$$["wrapper-size"],$frame$jscomp$108$$=$props_80894$$.frame,$orig_frame$jscomp$3$$=$props_80894$$["orig-frame"],$file$jscomp$196$$=$props_80894$$.file,$orig_viewport_ref$$=$props_80894$$["orig-viewport-ref"],$section$jscomp$49$$=$props_80894$$.section,$orig_size$jscomp$1$$=
$props_80894$$["orig-size"],$current_viewport_ref$$=$props_80894$$["current-viewport-ref"],$page$jscomp$169$$=$props_80894$$.page,$interactions_mode$jscomp$4$$=$props_80894$$["interactions-mode"],$size$jscomp$166$$=$props_80894$$.size;return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$viewer_pagination_and_sidebar$$,{section:$section$jscomp$49$$,index:$props_80894$$.index,page:$page$jscomp$169$$,users:$users$jscomp$5$$,frame:$frame$jscomp$108$$,
"interactions-mode":$interactions_mode$jscomp$4$$}),(0,$APP.$rumext$v2$jsxs$$)("div",{style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$4$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($wrapper_size$jscomp$4$$)},className:"main_ui_viewer__viewer-wrapper",children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer__viewer-clipper",children:[$APP.$cljs$core$truth_$$($orig_frame$jscomp$3$$)?(0,$APP.$rumext$v2$jsx$$)("div",{ref:$orig_viewport_ref$$,
style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($orig_size$jscomp$1$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($orig_size$jscomp$1$$),position:"relative"},className:"main_ui_viewer__viewport-container",children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$viewer$interactions$viewport$$,{frame:$orig_frame$jscomp$3$$,"base-frame":$orig_frame$jscomp$3$$,"frame-offset":$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0),size:$orig_size$jscomp$1$$,
page:$page$jscomp$169$$,users:$users$jscomp$5$$,"interactions-mode":$interactions_mode$jscomp$4$$})}):null,(0,$APP.$rumext$v2$jsxs$$)("div",{ref:$current_viewport_ref$$,style:{width:$APP.$cljs$cst$288$width$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$166$$),height:$APP.$cljs$cst$1511$height$$.$cljs$core$IFn$_invoke$arity$1$($size$jscomp$166$$),position:"relative"},className:"main_ui_viewer__viewport-container",children:[(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$ui$viewer$interactions$viewport$$,
{frame:$frame$jscomp$108$$,"base-frame":$frame$jscomp$108$$,"frame-offset":$APP.$app$common$geom$point$point$$.$cljs$core$IFn$_invoke$arity$2$(0,0),size:$size$jscomp$166$$,page:$page$jscomp$169$$,"interactions-mode":$interactions_mode$jscomp$4$$}),$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$265$$,$overlay$jscomp$2$$){$out_arr__44057__auto__$jscomp$265$$.push((0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$viewer_overlay$$,{overlay:$overlay$jscomp$2$$,
page:$page$jscomp$169$$,frame:$frame$jscomp$108$$,zoom:$zoom$jscomp$173$$,"wrapper-size":$wrapper_size$jscomp$4$$,"interactions-mode":$interactions_mode$jscomp$4$$},""+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($overlay$jscomp$2$$)??"")));return $out_arr__44057__auto__$jscomp$265$$},[],$overlays$jscomp$11$$)]})]}),$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$49$$,$APP.$cljs$cst$3313$comments$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$comments$comments_layer$$,
{file:$file$jscomp$196$$,users:$users$jscomp$5$$,frame:$frame$jscomp$108$$,page:$page$jscomp$169$$,zoom:$zoom$jscomp$173$$}):null]})]})};
$app$main$ui$viewer$viewer_content_STAR_$$=function($props_80901$$){var $data$jscomp$498$$=$props_80901$$.data,$index$jscomp$585$$=$props_80901$$.index,$section$jscomp$50$$=$props_80901$$.section,$interactions_mode$jscomp$5$$=$props_80901$$.interactionsMode,$page_id$jscomp$440$$=$props_80901$$.pageId,$share$jscomp$2$$=$props_80901$$.share,$share_id$jscomp$29$$=$props_80901$$.shareId,$map__80902__$1$$=$APP.$cljs$core$__destructure_map$$($data$jscomp$498$$),$file$jscomp$197$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80902__$1$$,
$APP.$cljs$cst$208$file$$),$users$jscomp$6$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80902__$1$$,$APP.$cljs$cst$4985$users$$),$project$jscomp$45$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80902__$1$$,$APP.$cljs$cst$2192$project$$),$permissions$jscomp$41$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80902__$1$$,$APP.$cljs$cst$1706$permissions$$),$allowed$jscomp$1$$=function(){var $and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=
$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$2036$interactions$$);if($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$)return $and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$;
if($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$3313$comments$$))$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=
$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$),$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$)?
$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$:$APP.$cljs$cst$5146$is_logged$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$)===!0&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5149$who_comment$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$),"all");return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$)?
$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$:($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$3600$inspect$$))?
($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$=$APP.$cljs$cst$1580$can_edit$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$)?
$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$:$APP.$cljs$cst$5146$is_logged$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$)===!0&&$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$5150$who_inspect$$.$cljs$core$IFn$_invoke$arity$1$($permissions$jscomp$41$$),"all")):$and__5023__auto__$jscomp$971_and__5023__auto__$jscomp$inline_9232_or__5025__auto__$jscomp$1302_or__5025__auto____$1$jscomp$144_or__5025__auto____$1$jscomp$inline_9233_or__5025__auto____$2$jscomp$41$$}(),
$local$jscomp$36$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$viewer_local$$),$nav_scroll$$=$APP.$cljs$cst$5015$nav_scroll$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$),$orig_viewport_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$current_viewport_ref$jscomp$1$$=(0,$APP.$rumext$v2$use_ref$$)(null),$viewer_section_ref$$=(0,$APP.$rumext$v2$use_ref$$)(null),$current_animations$$=$APP.$rumext$v2$deref$$($app$main$ui$viewer$current_animations_ref$$),$page_id__$1$jscomp$23$$=$APP.$cljs$core$truth_$$($page_id$jscomp$440$$)?
$page_id$jscomp$440$$:$APP.$cljs$core$first$$($APP.$cljs$cst$2190$pages$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$142$data$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$197$$))),$page$jscomp$170$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($data$jscomp$498$$),$APP.$rumext$v2$adapt$$($page_id__$1$jscomp$23$$)],function(){return $APP.$cljs$core$get_in$$.$cljs$core$IFn$_invoke$arity$2$($data$jscomp$498$$,new $APP.$cljs$core$PersistentVector$$(null,
2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$cljs$cst$2190$pages$$,$page_id__$1$jscomp$23$$],null))}),$text_shapes$jscomp$5$$=$APP.$app$main$ui$hooks$use_equal_memo$$($APP.$cljs$core$filter$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$common$files$helpers$text_shape_QMARK_$$,$APP.$cljs$core$vals$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$)))),$zoom$jscomp$174$$=$APP.$cljs$cst$2158$zoom$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$),$zoom_type$jscomp$3$$=
$APP.$cljs$cst$2197$zoom_type$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$),$frames$jscomp$36$$=$APP.$cljs$cst$4986$frames$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$frame$jscomp$109$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($frames$jscomp$36$$,$index$jscomp$585$$),$fullscreen_QMARK_$jscomp$1$$=$APP.$rumext$v2$deref$$($APP.$app$main$ui$viewer$header$fullscreen_ref$$),$overlays$jscomp$12$$=$APP.$rumext$v2$deref$$($app$main$ui$viewer$current_overlays_ref$$),$orig_frame$jscomp$4$$=
$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_animations$$)],function(){var $animation_with_origin$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$5021$orig_frame_id$$,$APP.$cljs$core$vals$$($current_animations$$));return $APP.$cljs$core$truth_$$($animation_with_origin$$)?$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__80896_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80896_SHARP_$$),
$APP.$cljs$cst$5021$orig_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($animation_with_origin$$))},$frames$jscomp$36$$):null}),$size$jscomp$167$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($frame$jscomp$109$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$174$$)],function(){return $APP.$cljs$core$truth_$$($frame$jscomp$109$$)?$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$frame$jscomp$109$$,$zoom$jscomp$174$$):
null}),$orig_size$jscomp$2$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($orig_frame$jscomp$4$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$174$$)],function(){return $APP.$cljs$core$truth_$$($orig_frame$jscomp$4$$)?$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$orig_frame$jscomp$4$$,$zoom$jscomp$174$$):null}),$wrapper_size$jscomp$5$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($size$jscomp$167$$),
$APP.$rumext$v2$adapt$$($orig_size$jscomp$2$$),$APP.$rumext$v2$adapt$$($zoom$jscomp$174$$)],function(){return $app$main$ui$viewer$calculate_wrapper$$($size$jscomp$167$$,$orig_size$jscomp$2$$,$zoom$jscomp$174$$)}),$click_on_screen$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$713_over_section_QMARK_$jscomp$1$$){$event$jscomp$713_over_section_QMARK_$jscomp$1$$=$APP.$app$util$dom$get_data$$($APP.$app$util$dom$get_target$$($event$jscomp$713_over_section_QMARK_$jscomp$1$$),
"viewer-section");var $layout$jscomp$36$$=$APP.$goog$dom$getElement$$("viewer-layout"),$has_force_QMARK_$jscomp$1$$=$APP.$app$util$dom$get_data$$($layout$jscomp$36$$,"force-visible");return $APP.$cljs$core$truth_$$($event$jscomp$713_over_section_QMARK_$jscomp$1$$)?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($has_force_QMARK_$jscomp$1$$,"true")?$APP.$app$util$dom$set_data_BANG_$$($layout$jscomp$36$$,"force-visible",!1):$APP.$app$util$dom$set_data_BANG_$$($layout$jscomp$36$$,"force-visible",
!0):null}),$on_click$jscomp$69$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($section$jscomp$50$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$3313$comments$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$comments$close_thread$$()):null}),$set_up_new_size$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){var $size__$1$jscomp$9_viewer_section$jscomp$1$$=
$APP.$goog$dom$getElement$$("viewer-section");$size__$1$jscomp$9_viewer_section$jscomp$1$$=$APP.$app$util$dom$get_client_size$$($size__$1$jscomp$9_viewer_section$jscomp$1$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$set_viewport_size$$(new $APP.$cljs$core$PersistentArrayMap$$(null,1,[$APP.$cljs$cst$872$size$$,$size__$1$jscomp$9_viewer_section$jscomp$1$$],null)))}),$on_wheel$jscomp$2$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function($event$jscomp$714_event__$1$jscomp$10$$){$event$jscomp$714_event__$1$jscomp$10$$=
$event$jscomp$714_event__$1$jscomp$10$$.getBrowserEvent();var $or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$=$APP.$goog$dom$getElement$$("inspect-svg-wrapper"),$section__$1$jscomp$3$$=$APP.$goog$dom$getElement$$("inspect-svg-container"),$JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$=$event$jscomp$714_event__$1$jscomp$10$$.target;$or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$=$APP.$app$util$dom$child_QMARK_$$($JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$,
$or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$);$JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$=$APP.$cljs$core$truth_$$($or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$)?$or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$:$JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$!=null?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$.id,
"inspect-svg-container"):null;if($APP.$cljs$core$truth_$$($JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$)){var $new_scroll_pos_norm_event$jscomp$1$$=$APP.$$jscomp$scope$1820006746$3$normalizeWheel$$($event$jscomp$714_event__$1$jscomp$10$$);$JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$=$APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$714_event__$1$jscomp$10$$);$or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$=
$event$jscomp$714_event__$1$jscomp$10$$.shiftKey;$new_scroll_pos_norm_event$jscomp$1$$=($or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$?$section__$1$jscomp$3$$!=null?$section__$1$jscomp$3$$.scrollLeft:null:$section__$1$jscomp$3$$!=null?$section__$1$jscomp$3$$.scrollTop:null)+$new_scroll_pos_norm_event$jscomp$1$$.pixelY;if($JSCompiler_inline_result$jscomp$1968_mod_QMARK_$jscomp$16_target$jscomp$168$$)return null;$APP.$app$util$dom$prevent_default$$($event$jscomp$714_event__$1$jscomp$10$$);
$APP.$app$util$dom$stop_propagation$$($event$jscomp$714_event__$1$jscomp$10$$);return $or__5025__auto__$jscomp$inline_9235_shift_QMARK_$jscomp$48_wrapper$jscomp$10$$?$section__$1$jscomp$3$$!=null?$APP.$app$util$object$set_BANG_$$($section__$1$jscomp$3$$,"scrollLeft",$new_scroll_pos_norm_event$jscomp$1$$):null:$section__$1$jscomp$3$$!=null?$APP.$app$util$object$set_BANG_$$($section__$1$jscomp$3$$,"scrollTop",$new_scroll_pos_norm_event$jscomp$1$$):null}return null}),$on_thumbnails_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$viewer$close_thumbnails_panel$$)}),
$on_exit_fullscreen$$=$APP.$rumext$v2$use_fn$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){return $app$util$dom$fullscreen_QMARK_$$()?null:$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$exit_fullscreen$$())});$APP.$app$main$ui$hooks$use_shortcuts$$($cljs$cst$6098$app_DOT_main_DOT_ui_DOT_viewer_SLASH_viewer$$,$APP.$app$main$data$viewer$shortcuts$shortcuts$$);if($page$jscomp$170$$==null)throw $APP.$cljs$core$ex_info$cljs$0core$0IFn$0_invoke$0arity$03$$("not-found",
$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$2615$not_found$$],null),null])),null);$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){return $APP.$cljs$core$not$$($allowed$jscomp$1$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$go_to_section$$($APP.$cljs$cst$2036$interactions$$)):
null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$197$$))],function(){var $name$jscomp$478$$=$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$197$$);return $APP.$app$util$dom$set_html_title$$(["▶ ",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$variadic$("title.viewer",$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$name$jscomp$478$$])))].join(""))});
$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([],function(){for(var $events$jscomp$5$$=new $APP.$cljs$core$PersistentVector$$(null,2,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$APP.$goog$events$listen$$($APP.$app$util$globals$window$$,"click",$on_click$jscomp$69$$),$APP.$goog$events$listen$$($APP.$rumext$v2$ref_val$$($viewer_section_ref$$),"wheel",$on_wheel$jscomp$2$$,{passive:!1})],null),$c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=$APP.$cljs$core$seq$$($APP.$app$util$dom$fullscreen_events$$),
$G__80991_chunk__80909_80979_seq__80908_80988__$1$$=null,$G__80992_count__80910_80980$$=0,$G__80990_i__80911_80981$$=0;;)if($G__80990_i__80911_80981$$<$G__80992_count__80910_80980$$){var $event_80982$$=$G__80991_chunk__80909_80979_seq__80908_80988__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__80990_i__80911_80981$$);$APP.$app$util$globals$document$$.addEventListener($event_80982$$,$on_exit_fullscreen$$,!1);$G__80990_i__80911_80981$$+=1}else if($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=
$APP.$cljs$core$seq$$($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$))$G__80991_chunk__80909_80979_seq__80908_80988__$1$$=$c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__80991_chunk__80909_80979_seq__80908_80988__$1$$)?($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=$APP.$cljs$core$_chunked_first$$($G__80991_chunk__80909_80979_seq__80908_80988__$1$$),$G__80990_i__80911_80981$$=
$APP.$cljs$core$_chunked_rest$$($G__80991_chunk__80909_80979_seq__80908_80988__$1$$),$G__80991_chunk__80909_80979_seq__80908_80988__$1$$=$c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$,$G__80992_count__80910_80980$$=$APP.$cljs$core$count$$($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$),$c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=$G__80990_i__80911_80981$$):($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=
$APP.$cljs$core$first$$($G__80991_chunk__80909_80979_seq__80908_80988__$1$$),$APP.$app$util$globals$document$$.addEventListener($c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$,$on_exit_fullscreen$$,!1),$c__5548__auto___80989_event_80994_seq__80908_80978_temp__5825__auto___80987$$=$APP.$cljs$core$next$$($G__80991_chunk__80909_80979_seq__80908_80988__$1$$),$G__80991_chunk__80909_80979_seq__80908_80988__$1$$=null,$G__80992_count__80910_80980$$=0),$G__80990_i__80911_80981$$=
0;else break;return function(){for(var $c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$seq$$($events$jscomp$5$$),$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=null,$G__81013_G__81026_count__80914_81001_event$jscomp$715$$=0,$G__81011_G__81024_count__80921_i__80915_81002$$=0;;)if($G__81011_G__81024_count__80921_i__80915_81002$$<$G__81013_G__81026_count__80914_81001_event$jscomp$715$$){var $i__80922_key_81003$$=
$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$G__81011_G__81024_count__80921_i__80915_81002$$);$APP.$goog$events$unlistenByKey$$($i__80922_key_81003$$);$G__81011_G__81024_count__80921_i__80915_81002$$+=1}else if($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$))$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=
$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$)?($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$_chunked_first$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),
$G__81011_G__81024_count__80921_i__80915_81002$$=$APP.$cljs$core$_chunked_rest$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$,$G__81013_G__81026_count__80914_81001_event$jscomp$715$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$),
$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$G__81011_G__81024_count__80921_i__80915_81002$$):($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$first$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$APP.$goog$events$unlistenByKey$$($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$),
$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$next$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=null,$G__81013_G__81026_count__80914_81001_event$jscomp$715$$=0),$G__81011_G__81024_count__80921_i__80915_81002$$=0;else break;$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=
$APP.$cljs$core$seq$$($APP.$app$util$dom$fullscreen_events$$);$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=null;for($i__80922_key_81003$$=$G__81011_G__81024_count__80921_i__80915_81002$$=0;;)if($i__80922_key_81003$$<$G__81011_G__81024_count__80921_i__80915_81002$$)$G__81013_G__81026_count__80914_81001_event$jscomp$715$$=$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__80922_key_81003$$),
$APP.$app$util$globals$document$$.removeEventListener($G__81013_G__81026_count__80914_81001_event$jscomp$715$$,$on_exit_fullscreen$$),$i__80922_key_81003$$+=1;else if($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$))$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=
$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$,$APP.$cljs$core$chunked_seq_QMARK_$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$)?($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$_chunked_first$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),
$G__81011_G__81024_count__80921_i__80915_81002$$=$APP.$cljs$core$_chunked_rest$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$,$G__81013_G__81026_count__80914_81001_event$jscomp$715$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$),
$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$G__81011_G__81024_count__80921_i__80915_81002$$,$G__81011_G__81024_count__80921_i__80915_81002$$=$G__81013_G__81026_count__80914_81001_event$jscomp$715$$):($G__81013_G__81026_count__80914_81001_event$jscomp$715$$=$APP.$cljs$core$first$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$APP.$app$util$globals$document$$.removeEventListener($G__81013_G__81026_count__80914_81001_event$jscomp$715$$,
$on_exit_fullscreen$$),$c__5548__auto__$jscomp$47_c__5548__auto___81010_key_81015_seq__80912_80999_seq__80919_temp__5825__auto__$jscomp$429_temp__5825__auto___81008$$=$APP.$cljs$core$next$$($G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$),$G__81012_G__81025_chunk__80913_81000_chunk__80920_seq__80912_81009__$1_seq__80919__$1$$=null,$G__81011_G__81024_count__80921_i__80915_81002$$=0),$i__80922_key_81003$$=0;else return null}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$01$$(function(){$set_up_new_size$$.$cljs$core$IFn$_invoke$arity$0$?
$set_up_new_size$$.$cljs$core$IFn$_invoke$arity$0$():$set_up_new_size$$();window.addEventListener("resize",$set_up_new_size$$);return function(){return window.removeEventListener("resize",$set_up_new_size$$)}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($nav_scroll$$)],function(){if(typeof $nav_scroll$$==="number"){var $viewer_section$jscomp$2$$=$APP.$goog$dom$getElement$$("viewer-section");$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$reset_nav_scroll$$());
return $viewer_section$jscomp$2$$!=null?$APP.$app$util$object$set_BANG_$$($viewer_section$jscomp$2$$,"scrollTop",$nav_scroll$$):null}return null});$APP.$rumext$v2$use_layout_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($fullscreen_QMARK_$jscomp$1$$)],function(){var $wrapper$jscomp$11$$=$APP.$goog$dom$getElement$$("viewer-layout"),$fullscreen_dom_QMARK__layout$jscomp$37$$=$app$util$dom$fullscreen_QMARK_$$();return $APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($fullscreen_QMARK_$jscomp$1$$,
$fullscreen_dom_QMARK__layout$jscomp$37$$)?$APP.$cljs$core$truth_$$($fullscreen_QMARK_$jscomp$1$$)?($fullscreen_dom_QMARK__layout$jscomp$37$$=$APP.$goog$dom$getElement$$("viewer-layout"),$APP.$app$util$dom$set_data_BANG_$$($fullscreen_dom_QMARK__layout$jscomp$37$$,"force-visible",!1),$app$util$webapi$request_fullscreen$$($wrapper$jscomp$11$$)):$app$util$webapi$exit_fullscreen$$():null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($zoom_type$jscomp$3$$)],
function(){switch($zoom_type$jscomp$3$$ instanceof $APP.$cljs$core$Keyword$$?$zoom_type$jscomp$3$$.$fqn$:null){case "fit":return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$zoom_to_fit$$);case "fill":return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$zoom_to_fill$$);default:return null}});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($index$jscomp$585$$),$APP.$rumext$v2$adapt$$($current_animations$$),
$APP.$rumext$v2$adapt$$($zoom_type$jscomp$3$$)],function(){switch($zoom_type$jscomp$3$$ instanceof $APP.$cljs$core$Keyword$$?$zoom_type$jscomp$3$$.$fqn$:null){case "fit":$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$zoom_to_fit$$);break;case "fill":$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($APP.$app$main$data$viewer$zoom_to_fill$$)}var $nav_animation$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($p1__80897_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$945$kind$$.$cljs$core$IFn$_invoke$arity$1$($p1__80897_SHARP_$$),
$APP.$cljs$cst$5020$go_to_frame$$)},$APP.$cljs$core$vals$$($current_animations$$));if($APP.$cljs$core$truth_$$($nav_animation$$)){var $orig_viewport$jscomp$1$$=$APP.$rumext$v2$ref_val$$($orig_viewport_ref$jscomp$1$$),$current_viewport$jscomp$1$$=$APP.$rumext$v2$ref_val$$($current_viewport_ref$jscomp$1$$);return $app$main$ui$viewer$interactions$animate_go_to_frame$$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($nav_animation$$),$current_viewport$jscomp$1$$,$orig_viewport$jscomp$1$$,
$size$jscomp$167$$,$orig_size$jscomp$2$$,$wrapper_size$jscomp$5$$)}return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($current_animations$$)],function(){if($APP.$cljs$core$truth_$$($current_animations$$))for(var $c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$APP.$cljs$core$seq$$($current_animations$$),$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=null,$G__81053_count__80931$$=0,$i__80932$$=
0;;)if($i__80932$$<$G__81053_count__80931$$){var $G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$=$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$.$cljs$core$IIndexed$_nth$arity$2$(null,$i__80932$$),$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,0,null),$G__81052_animation_vals$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,1,null),$overlay_viewport_81036_seq__80929__$1$$=$APP.$app$util$dom$get_element$$(["overlay-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$5026$overlay_id$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$))].join("")),$overlay_81037_overlay_viewport_81055$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($seq__80929$jscomp$1$$,
$chunk__80930$jscomp$1$$,$count__80931$jscomp$1$$,$i__80932$jscomp$1$$,$overlay_viewport_81036$jscomp$1$$,$vec__80941$jscomp$1$$,$overlay_frame_id$jscomp$1$$){return function($p1__80898_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$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($p1__80898_SHARP_$$)),$overlay_frame_id$jscomp$1$$)}}($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,
$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$G__81053_count__80931$$,$i__80932$$,$overlay_viewport_81036_seq__80929__$1$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$G__81052_animation_vals$$,$data$jscomp$498$$,$map__80902__$1$$,$file$jscomp$197$$,$users$jscomp$6$$,$project$jscomp$45$$,$permissions$jscomp$41$$,$allowed$jscomp$1$$,$local$jscomp$36$$,$nav_scroll$$,
$orig_viewport_ref$jscomp$1$$,$current_viewport_ref$jscomp$1$$,$viewer_section_ref$$,$current_animations$$,$page_id__$1$jscomp$23$$,$page$jscomp$170$$,$text_shapes$jscomp$5$$,$zoom$jscomp$174$$,$zoom_type$jscomp$3$$,$frames$jscomp$36$$,$frame$jscomp$109$$,$fullscreen_QMARK_$jscomp$1$$,$overlays$jscomp$12$$,$orig_frame$jscomp$4$$,$size$jscomp$167$$,$orig_size$jscomp$2$$,$wrapper_size$jscomp$5$$,$click_on_screen$$,$on_click$jscomp$69$$,$set_up_new_size$$,$on_wheel$jscomp$2$$,$on_thumbnails_close$$,
$on_exit_fullscreen$$,$data$jscomp$498$$,$index$jscomp$585$$,$section$jscomp$50$$,$interactions_mode$jscomp$5$$,$page_id$jscomp$440$$,$share$jscomp$2$$,$share_id$jscomp$29$$),$overlays$jscomp$12$$),$overlay_81056_overlay_size_81038$$=$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81037_overlay_viewport_81055$$),$zoom$jscomp$174$$),$overlay_position_81039_overlay_size_81057$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81037_overlay_viewport_81055$$))*$zoom$jscomp$174$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81037_overlay_viewport_81055$$))*$zoom$jscomp$174$$],null);$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$=
$APP.$cljs$core$truth_$$($APP.$cljs$cst$5021$orig_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$))?$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($seq__80929$jscomp$2$$,$chunk__80930$jscomp$2$$,$count__80931$jscomp$2$$,$i__80932$jscomp$2$$,$overlay_viewport_81036$jscomp$2$$,$overlay_81037$jscomp$1$$,$overlay_size_81038$jscomp$1$$,$overlay_position_81039$jscomp$1$$,$vec__80941$jscomp$2$$,$overlay_frame_id$jscomp$2$$,$animation_vals$jscomp$2$$){return function($p1__80899_SHARP_$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80899_SHARP_$$),
$APP.$cljs$cst$5021$orig_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($animation_vals$jscomp$2$$))}}($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$G__81053_count__80931$$,$i__80932$$,$overlay_viewport_81036_seq__80929__$1$$,$overlay_81037_overlay_viewport_81055$$,$overlay_81056_overlay_size_81038$$,$overlay_position_81039_overlay_size_81057$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,
$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$G__81052_animation_vals$$,$data$jscomp$498$$,$map__80902__$1$$,$file$jscomp$197$$,$users$jscomp$6$$,$project$jscomp$45$$,$permissions$jscomp$41$$,$allowed$jscomp$1$$,$local$jscomp$36$$,$nav_scroll$$,$orig_viewport_ref$jscomp$1$$,$current_viewport_ref$jscomp$1$$,$viewer_section_ref$$,$current_animations$$,$page_id__$1$jscomp$23$$,$page$jscomp$170$$,$text_shapes$jscomp$5$$,$zoom$jscomp$174$$,$zoom_type$jscomp$3$$,$frames$jscomp$36$$,$frame$jscomp$109$$,
$fullscreen_QMARK_$jscomp$1$$,$overlays$jscomp$12$$,$orig_frame$jscomp$4$$,$size$jscomp$167$$,$orig_size$jscomp$2$$,$wrapper_size$jscomp$5$$,$click_on_screen$$,$on_click$jscomp$69$$,$set_up_new_size$$,$on_wheel$jscomp$2$$,$on_thumbnails_close$$,$on_exit_fullscreen$$,$data$jscomp$498$$,$index$jscomp$585$$,$section$jscomp$50$$,$interactions_mode$jscomp$5$$,$page_id$jscomp$440$$,$share$jscomp$2$$,$share_id$jscomp$29$$),$frames$jscomp$36$$):null;$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$=
$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$frame$jscomp$109$$,$zoom$jscomp$174$$);$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$=$APP.$cljs$core$truth_$$($G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$)?$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,
$zoom$jscomp$174$$):null;$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$=$app$main$ui$viewer$calculate_wrapper$$($overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,$zoom$jscomp$174$$);$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$=$APP.$cljs$cst$945$kind$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$);switch($G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$ instanceof
$APP.$cljs$core$Keyword$$?$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$.$fqn$:null){case "open-overlay":$app$main$ui$viewer$interactions$animate_open_overlay$$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$),$overlay_viewport_81036_seq__80929__$1$$,$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$overlay_81056_overlay_size_81038$$,$overlay_position_81039_overlay_size_81057$$);break;case "close-overlay":$app$main$ui$viewer$interactions$animate_close_overlay$$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$),
$overlay_viewport_81036_seq__80929__$1$$,$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$overlay_81056_overlay_size_81038$$,$overlay_position_81039_overlay_size_81057$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81037_overlay_viewport_81055$$)))}$i__80932$$+=1}else{var $temp__5825__auto__$jscomp$430$$=$APP.$cljs$core$seq$$($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$);if($temp__5825__auto__$jscomp$430$$){$overlay_viewport_81036_seq__80929__$1$$=
$temp__5825__auto__$jscomp$430$$;if($APP.$cljs$core$chunked_seq_QMARK_$$($overlay_viewport_81036_seq__80929__$1$$))$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$APP.$cljs$core$_chunked_first$$($overlay_viewport_81036_seq__80929__$1$$),$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=$APP.$cljs$core$_chunked_rest$$($overlay_viewport_81036_seq__80929__$1$$),$G__81052_animation_vals$$=$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,
$G__81053_count__80931$$=$APP.$cljs$core$count$$($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$),$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=$G__81052_animation_vals$$;else{var $vec__80946$$=$APP.$cljs$core$first$$($overlay_viewport_81036_seq__80929__$1$$);$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$=
$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__80946$$,0,null);$G__81052_animation_vals$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($vec__80946$$,1,null);$overlay_81037_overlay_viewport_81055$$=$APP.$app$util$dom$get_element$$(["overlay-",$APP.$cljs$core$str$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$5026$overlay_id$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$))].join(""));$overlay_81056_overlay_size_81038$$=$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($seq__80929$jscomp$3$$,
$chunk__80930$jscomp$3$$,$count__80931$jscomp$3$$,$i__80932$jscomp$3$$,$overlay_viewport_81055$jscomp$1$$,$vec__80946$jscomp$1$$,$overlay_frame_id$jscomp$3$$){return function($p1__80898_SHARP_$jscomp$1$$){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$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($p1__80898_SHARP_$jscomp$1$$)),$overlay_frame_id$jscomp$3$$)}}($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,
$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$G__81053_count__80931$$,$i__80932$$,$overlay_81037_overlay_viewport_81055$$,$vec__80946$$,$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$G__81052_animation_vals$$,$overlay_viewport_81036_seq__80929__$1$$,$temp__5825__auto__$jscomp$430$$,$data$jscomp$498$$,$map__80902__$1$$,$file$jscomp$197$$,$users$jscomp$6$$,$project$jscomp$45$$,$permissions$jscomp$41$$,$allowed$jscomp$1$$,$local$jscomp$36$$,$nav_scroll$$,
$orig_viewport_ref$jscomp$1$$,$current_viewport_ref$jscomp$1$$,$viewer_section_ref$$,$current_animations$$,$page_id__$1$jscomp$23$$,$page$jscomp$170$$,$text_shapes$jscomp$5$$,$zoom$jscomp$174$$,$zoom_type$jscomp$3$$,$frames$jscomp$36$$,$frame$jscomp$109$$,$fullscreen_QMARK_$jscomp$1$$,$overlays$jscomp$12$$,$orig_frame$jscomp$4$$,$size$jscomp$167$$,$orig_size$jscomp$2$$,$wrapper_size$jscomp$5$$,$click_on_screen$$,$on_click$jscomp$69$$,$set_up_new_size$$,$on_wheel$jscomp$2$$,$on_thumbnails_close$$,
$on_exit_fullscreen$$,$data$jscomp$498$$,$index$jscomp$585$$,$section$jscomp$50$$,$interactions_mode$jscomp$5$$,$page_id$jscomp$440$$,$share$jscomp$2$$,$share_id$jscomp$29$$),$overlays$jscomp$12$$);$overlay_position_81039_overlay_size_81057$$=$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81056_overlay_size_81038$$),$zoom$jscomp$174$$);$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,2,[$APP.$cljs$cst$1499$x$$,$APP.$cljs$cst$1499$x$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81056_overlay_size_81038$$))*$zoom$jscomp$174$$,$APP.$cljs$cst$1500$y$$,$APP.$cljs$cst$1500$y$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1660$position$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81056_overlay_size_81038$$))*$zoom$jscomp$174$$],null);$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=
$APP.$cljs$core$truth_$$($APP.$cljs$cst$5021$orig_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$))?$APP.$app$common$data$seek$cljs$0core$0IFn$0_invoke$0arity$02$$(function($seq__80929$jscomp$4$$,$chunk__80930$jscomp$4$$,$count__80931$jscomp$4$$,$i__80932$jscomp$4$$,$overlay_viewport_81055$jscomp$2$$,$overlay_81056$jscomp$1$$,$overlay_size_81057$jscomp$1$$,$overlay_position_81058$jscomp$1$$,$vec__80946$jscomp$2$$,$overlay_frame_id$jscomp$4$$,$animation_vals$jscomp$4$$){return function($p1__80899_SHARP_$jscomp$1$$){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($p1__80899_SHARP_$jscomp$1$$),
$APP.$cljs$cst$5021$orig_frame_id$$.$cljs$core$IFn$_invoke$arity$1$($animation_vals$jscomp$4$$))}}($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$G__81053_count__80931$$,$i__80932$$,$overlay_81037_overlay_viewport_81055$$,$overlay_81056_overlay_size_81038$$,$overlay_position_81039_overlay_size_81057$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,
$vec__80946$$,$overlay_frame_id_size_81041__$1_wrapper_size_81043__$1$$,$G__81052_animation_vals$$,$overlay_viewport_81036_seq__80929__$1$$,$temp__5825__auto__$jscomp$430$$,$data$jscomp$498$$,$map__80902__$1$$,$file$jscomp$197$$,$users$jscomp$6$$,$project$jscomp$45$$,$permissions$jscomp$41$$,$allowed$jscomp$1$$,$local$jscomp$36$$,$nav_scroll$$,$orig_viewport_ref$jscomp$1$$,$current_viewport_ref$jscomp$1$$,$viewer_section_ref$$,$current_animations$$,$page_id__$1$jscomp$23$$,$page$jscomp$170$$,$text_shapes$jscomp$5$$,
$zoom$jscomp$174$$,$zoom_type$jscomp$3$$,$frames$jscomp$36$$,$frame$jscomp$109$$,$fullscreen_QMARK_$jscomp$1$$,$overlays$jscomp$12$$,$orig_frame$jscomp$4$$,$size$jscomp$167$$,$orig_size$jscomp$2$$,$wrapper_size$jscomp$5$$,$click_on_screen$$,$on_click$jscomp$69$$,$set_up_new_size$$,$on_wheel$jscomp$2$$,$on_thumbnails_close$$,$on_exit_fullscreen$$,$data$jscomp$498$$,$index$jscomp$585$$,$section$jscomp$50$$,$interactions_mode$jscomp$5$$,$page_id$jscomp$440$$,$share$jscomp$2$$,$share_id$jscomp$29$$),
$frames$jscomp$36$$):null;$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),$frame$jscomp$109$$,$zoom$jscomp$174$$);$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=$APP.$cljs$core$truth_$$($G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$)?$app$main$ui$viewer$calculate_size$$($APP.$cljs$cst$1615$objects$$.$cljs$core$IFn$_invoke$arity$1$($page$jscomp$170$$),
$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$zoom$jscomp$174$$):null;$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$app$main$ui$viewer$calculate_wrapper$$($c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$,$zoom$jscomp$174$$);$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=$APP.$cljs$cst$945$kind$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$);
switch($G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$ instanceof $APP.$cljs$core$Keyword$$?$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$.$fqn$:null){case "open-overlay":$app$main$ui$viewer$interactions$animate_open_overlay$$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$),$overlay_81037_overlay_viewport_81055$$,$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,
$overlay_position_81039_overlay_size_81057$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$);break;case "close-overlay":$app$main$ui$viewer$interactions$animate_close_overlay$$($APP.$cljs$cst$1954$animation$$.$cljs$core$IFn$_invoke$arity$1$($G__81052_animation_vals$$),$overlay_81037_overlay_viewport_81055$$,$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$,$overlay_position_81039_overlay_size_81057$$,$G__80944_81044_orig_frame_81040__$1_orig_size_81042__$1_overlay_position_81058_vec__80941$$,
$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($APP.$cljs$cst$1590$frame$$.$cljs$core$IFn$_invoke$arity$1$($overlay_81056_overlay_size_81038$$)))}$c__5548__auto__$jscomp$48_seq__80929_size_81060__$1_wrapper_size_81062__$1$$=$APP.$cljs$core$next$$($overlay_viewport_81036_seq__80929__$1$$);$G__80950_81063_G__81051_chunk__80930_orig_frame_81059__$1_orig_size_81061__$1$$=null;$G__81053_count__80931$$=0}$i__80932$$=0}else return null}else return null});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($text_shapes$jscomp$5$$)],
function(){var $fonts$jscomp$42_text_nodes$jscomp$2$$=$APP.$cljs$core$mapcat$cljs$0core$0IFn$0_invoke$0arity$0variadic$$(function($p1__80900_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__80900_SHARP_$$))},$APP.$cljs$core$prim_seq$cljs$0core$0IFn$0_invoke$0arity$02$$([$text_shapes$jscomp$5$$]));$fonts$jscomp$42_text_nodes$jscomp$2$$=$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$42_text_nodes$jscomp$2$$);return $APP.$cljs$core$run_BANG_$$($APP.$app$main$fonts$ensure_loaded_BANG_$$,$fonts$jscomp$42_text_nodes$jscomp$2$$)});return(0,$APP.$rumext$v2$jsxs$$)("div",{id:"viewer-layout","data-fullscreen":$fullscreen_QMARK_$jscomp$1$$,"data-force-visible":$APP.$cljs$cst$5005$show_thumbnails$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$),className:($APP.$cljs$core$truth_$$($APP.$cljs$cst$5005$show_thumbnails$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$))?
"main_ui_viewer__force-visible":"")+" "+($APP.$cljs$core$not_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$3600$inspect$$)?"main_ui_viewer__viewer-layout":"")+" "+($APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($section$jscomp$50$$,$APP.$cljs$cst$3600$inspect$$)?"main_ui_viewer__inspect-layout":""),children:[(0,$APP.$rumext$v2$jsxs$$)("div",{className:"main_ui_viewer__viewer-content",children:[(0,$APP.$rumext$v2$jsx$$)("button",{onClick:$on_thumbnails_close$$,className:"main_ui_viewer__thumbnails-close "+
($APP.$cljs$core$not$$($APP.$cljs$cst$5005$show_thumbnails$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$36$$,!1))?"main_ui_viewer__invisible":"")}),(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$thumbnails$thumbnails_panel$$,{frames:$frames$jscomp$36$$,"show?":$APP.$cljs$cst$5005$show_thumbnails$$.$cljs$core$IFn$_invoke$arity$2$($local$jscomp$36$$,!1),page:$page$jscomp$170$$,index:$index$jscomp$585$$,"thumbnail-data":$APP.$cljs$cst$2191$thumbnails$$.$cljs$core$IFn$_invoke$arity$1$($file$jscomp$197$$)}),
(0,$APP.$rumext$v2$jsx$$)("section",{id:"viewer-section",ref:$viewer_section_ref$$,"data-viewer-section":!0,onClick:$click_on_screen$$,className:"main_ui_viewer__viewer-section "+($APP.$cljs$core$truth_$$($fullscreen_QMARK_$jscomp$1$$)?"main_ui_viewer__fullscreen":""),children:$APP.$cljs$core$empty_QMARK_$$($frames$jscomp$36$$)?(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_viewer__empty-state",children:(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("viewer.empty-state")})}):
$frame$jscomp$109$$==null?(0,$APP.$rumext$v2$jsx$$)("section",{className:"main_ui_viewer__empty-state",children:$index$jscomp$585$$!=null?(0,$APP.$rumext$v2$jsx$$)("span",{children:$APP.$app$util$i18n$tr$$.$cljs$core$IFn$_invoke$arity$1$("viewer.frame-not-found")}):null}):$frame$jscomp$109$$!=null?$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$cst$3600$inspect$$,$section$jscomp$50$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$inspect$viewport$$,{"viewer-pagination":$app$main$ui$viewer$viewer_pagination$$,
frame:$frame$jscomp$109$$,index:$index$jscomp$585$$,section:$section$jscomp$50$$,file:$file$jscomp$197$$,page:$page$jscomp$170$$,size:$size$jscomp$167$$,"interactions-mode":$interactions_mode$jscomp$5$$,"share-id":$share_id$jscomp$29$$,local:$local$jscomp$36$$}):(0,$APP.$rumext$v2$jsx$$)($APP.$rumext$v2$provider$$($APP.$app$main$ui$context$current_zoom$$),{value:$zoom$jscomp$174$$,children:(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$viewer_wrapper$$,{overlays:$overlays$jscomp$12$$,"wrapper-size":$wrapper_size$jscomp$5$$,
zoom:$zoom$jscomp$174$$,"orig-frame":$orig_frame$jscomp$4$$,frame:$frame$jscomp$109$$,index:$index$jscomp$585$$,section:$section$jscomp$50$$,file:$file$jscomp$197$$,"orig-viewport-ref":$orig_viewport_ref$jscomp$1$$,"orig-size":$orig_size$jscomp$2$$,"current-viewport-ref":$current_viewport_ref$jscomp$1$$,page:$page$jscomp$170$$,size:$size$jscomp$167$$,"interactions-mode":$interactions_mode$jscomp$5$$,users:$users$jscomp$6$$})}):null})]}),$APP.$rumext$v2$jsx$$($APP.$app$main$ui$viewer$header$header$$,
{zoom:$zoom$jscomp$174$$,permissions:$permissions$jscomp$41$$,frame:$frame$jscomp$109$$,index:$index$jscomp$585$$,section:$section$jscomp$50$$,file:$file$jscomp$197$$,"shown-thumbnails":$APP.$cljs$cst$5005$show_thumbnails$$.$cljs$core$IFn$_invoke$arity$1$($local$jscomp$36$$),page:$page$jscomp$170$$,"interactions-mode":$interactions_mode$jscomp$5$$,project:$project$jscomp$45$$,share:$share$jscomp$2$$})]})};
$app$main$ui$viewer$viewer_STAR_$$=function($props_80954_props__$1$jscomp$110$$){var $file_id$jscomp$417$$=$props_80954_props__$1$jscomp$110$$.fileId,$page_id$jscomp$445$$=$props_80954_props__$1$jscomp$110$$.pageId,$share_id$jscomp$34$$=$props_80954_props__$1$jscomp$110$$.shareId;$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($file_id$jscomp$417$$),$APP.$rumext$v2$adapt$$($page_id$jscomp$445$$),$APP.$rumext$v2$adapt$$($share_id$jscomp$34$$)],function(){var $params$jscomp$441$$=
new $APP.$cljs$core$PersistentArrayMap$$(null,3,[$APP.$cljs$cst$1628$file_id$$,$file_id$jscomp$417$$,$APP.$cljs$cst$2028$page_id$$,$page_id$jscomp$445$$,$APP.$cljs$cst$3216$share_id$$,$share_id$jscomp$34$$],null);$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$initialize$$($params$jscomp$441$$));return function(){return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$finalize$$($params$jscomp$441$$))}});var $temp__5823__auto__$jscomp$251$$=
$APP.$rumext$v2$deref$$($APP.$app$main$refs$viewer_data$$);return $APP.$cljs$core$truth_$$($temp__5823__auto__$jscomp$251$$)?($props_80954_props__$1$jscomp$110$$=$APP.$app$util$object$merge$cljs$0core$0IFn$0_invoke$0arity$02$$($props_80954_props__$1$jscomp$110$$,{data:$temp__5823__auto__$jscomp$251$$,key:""+($file_id$jscomp$417$$??"")}),(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[$APP.$rumext$v2$jsx$$($APP.$app$main$ui$modal$modal_container_STAR_$$,{}),(0,$APP.$rumext$v2$create_element$$)($app$main$ui$viewer$viewer_content_STAR_$$,
$props_80954_props__$1$jscomp$110$$)]})):$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"),overlay:!0})};$APP.$app$main$ui$viewer$viewer_page_STAR_$$=function($props_80955$$){return(0,$APP.$rumext$v2$create_element$$)($app$main$ui$viewer$viewer_STAR_$$,$props_80955$$)};$cljs$cst$6094$left_bar$$=new $APP.$cljs$core$Keyword$$(null,"left-bar","left-bar",569281306);
$cljs$cst$6090$thumbnail_data$$=new $APP.$cljs$core$Keyword$$(null,"thumbnail-data","thumbnail-data",-924635553);$cljs$cst$6084$email_sent$$=new $APP.$cljs$core$Keyword$$(null,"email-sent","email-sent",-1405729778);$cljs$cst$6095$right_bar$$=new $APP.$cljs$core$Keyword$$(null,"right-bar","right-bar",149870584);$cljs$cst$6086$all_pages$$=new $APP.$cljs$core$Keyword$$(null,"all-pages","all-pages",1017563062);
$cljs$cst$6089$expanded_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"expanded?","expanded?",2055832296);$cljs$cst$6085$pages_mode$$=new $APP.$cljs$core$Keyword$$(null,"pages-mode","pages-mode",1390854462);$cljs$cst$6093$num_frames$$=new $APP.$cljs$core$Keyword$$(null,"num-frames","num-frames",1569426540);$cljs$cst$6083$register$$=new $APP.$cljs$core$Keyword$$(null,"register","register",1968522516);
$cljs$cst$6088$can_inspect_code$$=new $APP.$cljs$core$Keyword$$(null,"can-inspect-code","can-inspect-code",-411585714);$cljs$cst$6098$app_DOT_main_DOT_ui_DOT_viewer_SLASH_viewer$$=new $APP.$cljs$core$Keyword$$("app.main.ui.viewer","viewer","app.main.ui.viewer/viewer",-223008833);$cljs$cst$6091$base_width$$=new $APP.$cljs$core$Keyword$$(null,"base-width","base-width",127450703);$cljs$cst$6097$wrapper_size$$=new $APP.$cljs$core$Keyword$$(null,"wrapper-size","wrapper-size",-1999142846);
$cljs$cst$6096$comment_sidebar$$=new $APP.$cljs$core$Keyword$$(null,"comment-sidebar","comment-sidebar",-717905737);$cljs$cst$6081$hide_toggle_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"hide-toggle?","hide-toggle?",-1874012773);$cljs$cst$6092$base_height$$=new $APP.$cljs$core$Keyword$$(null,"base-height","base-height",1012620781);$cljs$cst$6080$component_child_QMARK_$$=new $APP.$cljs$core$Keyword$$(null,"component-child?","component-child?",166589243);
$cljs$cst$6087$can_comment$$=new $APP.$cljs$core$Keyword$$(null,"can-comment","can-comment",718623455);$cljs$cst$6079$item$$=new $APP.$cljs$core$Keyword$$(null,"item","item",249373802);$cljs$cst$6082$viewer_pagination$$=new $APP.$cljs$core$Keyword$$(null,"viewer-pagination","viewer-pagination",-181925280);var $app$main$ui$inspect$left_sidebar$layer_item$$=function $app$main$ui$inspect$left_sidebar$layer_item$$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$){$hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$=$APP.$rumext$v2$util$wrap_props$$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$);$hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$=$APP.$cljs$core$__destructure_map$$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$);
var $item$jscomp$142$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,$cljs$cst$6079$item$$),$selected$jscomp$207$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,$APP.$cljs$cst$1906$selected$$),$objects$jscomp$812$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,$APP.$cljs$cst$1615$objects$$),
$collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,$APP.$cljs$cst$837$depth$$),$component_child_QMARK_$jscomp$1_select_shape$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,$cljs$cst$6080$component_child_QMARK_$$);$hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,
$cljs$cst$6081$hide_toggle_QMARK_$$);var $id$jscomp$1017$$=$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$142$$),$hidden_QMARK_$jscomp$8$$=$APP.$cljs$cst$1604$hidden$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$142$$),$selected_QMARK_$jscomp$32$$=$APP.$cljs$core$contains_QMARK_$$($selected$jscomp$207$$,$id$jscomp$1017$$),$item_ref$jscomp$8$$=(0,$APP.$rumext$v2$use_ref$$)(null),$depth__$1$jscomp$1$$=$collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$+1,$component_tree_QMARK_$jscomp$2$$=
$APP.$cljs$core$truth_$$($component_child_QMARK_$jscomp$1_select_shape$jscomp$1$$)?$component_child_QMARK_$jscomp$1_select_shape$jscomp$1$$:$APP.$app$common$types$component$instance_root_QMARK_$$($item$jscomp$142$$)||$APP.$app$common$types$component$instance_head_QMARK_$$($item$jscomp$142$$);$collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$=$APP.$rumext$v2$use_memo$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$1017$$)],$app$main$ui$inspect$left_sidebar$make_collapsed_iref$$($id$jscomp$1017$$));
var $expanded_QMARK_$jscomp$4$$=$APP.$cljs$core$not$$($APP.$rumext$v2$deref$$($collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$));$collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$1017$$)],function($event$jscomp$702$$){$APP.$app$util$dom$stop_propagation$$($event$jscomp$702$$);return $APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$toggle_collapse$$($id$jscomp$1017$$))});
$component_child_QMARK_$jscomp$1_select_shape$jscomp$1$$=$APP.$rumext$v2$use_callback$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($id$jscomp$1017$$)],function($event$jscomp$703$$){$APP.$app$util$dom$prevent_default$$($event$jscomp$703$$);return $APP.$app$util$keyboard$mod_QMARK_$$($event$jscomp$703$$)?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$toggle_selection$$($id$jscomp$1017$$)):$event$jscomp$703$$.shiftKey?$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$shift_select_to$$($id$jscomp$1017$$)):
$APP.$app$main$store$emit_BANG_$$.$cljs$core$IFn$_invoke$arity$1$($app$main$data$viewer$select_shape$$($id$jscomp$1017$$))});$APP.$rumext$v2$use_effect$cljs$0core$0IFn$0_invoke$0arity$02$$([$APP.$rumext$v2$adapt$$($selected$jscomp$207$$)],function(){return $APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$cljs$core$count$$($selected$jscomp$207$$),1)&&$selected_QMARK_$jscomp$32$$?$APP.$app$util$dom$scroll_into_view_if_needed_BANG_$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$rumext$v2$ref_val$$($item_ref$jscomp$8$$),
!0):null});return $APP.$rumext$v2$jsx$$($APP.$app$main$ui$workspace$sidebar$layer_item$layer_item_inner$$,{children:$APP.$cljs$core$truth_$$(function(){var $and__5023__auto__$jscomp$968$$=$APP.$cljs$cst$1598$shapes$$.$cljs$core$IFn$_invoke$arity$1$($item$jscomp$142$$);return $APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$968$$)?$expanded_QMARK_$jscomp$4$$:$and__5023__auto__$jscomp$968$$}())?(0,$APP.$rumext$v2$jsx$$)("div",{"data-testid":"children-"+($id$jscomp$1017$$??""),className:"main_ui_inspect_left_sidebar__element-children "+
($selected_QMARK_$jscomp$32$$?"main_ui_inspect_left_sidebar__parent-selected":""),children:$APP.$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$(function($out_arr__44057__auto__$jscomp$262$$,$JSCompiler_temp_const$jscomp$1965_p__80795$$){var $JSCompiler_inline_result$jscomp$1967_index$jscomp$578$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1965_p__80795$$,0,null),$id__$1$jscomp$22$$=$APP.$cljs$core$nth$cljs$0core$0IFn$0_invoke$0arity$03$$($JSCompiler_temp_const$jscomp$1965_p__80795$$,
1,null);$JSCompiler_temp_const$jscomp$1965_p__80795$$=$out_arr__44057__auto__$jscomp$262$$.push;var $temp__5825__auto__$jscomp$inline_9224$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$812$$,$id__$1$jscomp$22$$);$JSCompiler_inline_result$jscomp$1967_index$jscomp$578$$=$APP.$cljs$core$truth_$$($temp__5825__auto__$jscomp$inline_9224$$)?(0,$APP.$rumext$v2$jsx$$)($app$main$ui$inspect$left_sidebar$layer_item$$,{item:$temp__5825__auto__$jscomp$inline_9224$$,selected:$selected$jscomp$207$$,
index:$JSCompiler_inline_result$jscomp$1967_index$jscomp$578$$,objects:$objects$jscomp$812$$,depth:$depth__$1$jscomp$1$$,"component-child?":$component_tree_QMARK_$jscomp$2$$},""+($id__$1$jscomp$22$$??"")):null;$JSCompiler_temp_const$jscomp$1965_p__80795$$.call($out_arr__44057__auto__$jscomp$262$$,$JSCompiler_inline_result$jscomp$1967_index$jscomp$578$$);return $out_arr__44057__auto__$jscomp$262$$},[],$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$($item$jscomp$142$$))))}):
null,"on-select-shape":$component_child_QMARK_$jscomp$1_select_shape$jscomp$1$$,ref:$item_ref$jscomp$8$$,"expanded?":$expanded_QMARK_$jscomp$4$$,item:$item$jscomp$142$$,"highlighted?":!1,"on-toggle-collapse":$collapsed_iref_depth$jscomp$21_toggle_collapse$jscomp$1$$,"hidden?":$hidden_QMARK_$jscomp$8$$,"read-only?":!0,depth:$depth__$1$jscomp$1$$,"filtered?":!1,"hide-toggle?":$hide_toggle_QMARK_$jscomp$1_map__80792_map__80792__$1_props_80791$$,"selected?":$selected_QMARK_$jscomp$32$$,"component-tree?":$component_tree_QMARK_$jscomp$2$$})};$APP.$app$common$logging$loggers$$.set("app.main.ui.viewer.login",$APP.$app$common$logging$level__GT_int$$($APP.$cljs$cst$1160$warn$$));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$44$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$44$$,$APP.$cljs$cst$5142$login_register$$,$app$main$ui$viewer$login$login_register_modal$$)});$APP.$app$common$logging$loggers$$.set("app.main.ui.viewer.share-link",$APP.$app$common$logging$level__GT_int$$($APP.$cljs$cst$1160$warn$$));$APP.$cljs$core$swap_BANG_$$.$cljs$core$IFn$_invoke$arity$2$($APP.$app$main$data$modal$components$$,function($state__44543__auto__$jscomp$45$$){return $APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($state__44543__auto__$jscomp$45$$,$APP.$cljs$cst$5144$share_link$$,$app$main$ui$viewer$share_link$share_link_dialog$$)});var $app$main$ui$viewer$thumbnails$thumbnail_item$$,$p1__80870_SHARP_$jscomp$inline_9226$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($map__80873_props_80872_selected_QMARK_$jscomp$33$$){$map__80873_props_80872_selected_QMARK_$jscomp$33$$=$APP.$rumext$v2$util$wrap_props$$($map__80873_props_80872_selected_QMARK_$jscomp$33$$);var $map__80873__$1_thumbnail_data$jscomp$1$$=$APP.$cljs$core$__destructure_map$$($map__80873_props_80872_selected_QMARK_$jscomp$33$$);$map__80873_props_80872_selected_QMARK_$jscomp$33$$=
$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$APP.$cljs$cst$5510$selected_QMARK_$$);var $frame$jscomp$103$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$APP.$cljs$cst$1590$frame$$),$on_click$jscomp$67$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$APP.$cljs$cst$3934$on_click$$),$index$jscomp$580$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,
$APP.$cljs$cst$1779$index$$),$objects$jscomp$820$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$APP.$cljs$cst$1615$objects$$),$page_id$jscomp$439$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$APP.$cljs$cst$2028$page_id$$);$map__80873__$1_thumbnail_data$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,$cljs$cst$6090$thumbnail_data$$);var $children_bounds$jscomp$3_children_ids$jscomp$18$$=
$APP.$app$common$files$helpers$get_children_ids$$.$cljs$core$IFn$_invoke$arity$2$($objects$jscomp$820$$,$APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$103$$));$children_bounds$jscomp$3_children_ids$jscomp$18$$=$APP.$app$common$geom$shapes$shapes__GT_rect$$($APP.$cljs$core$concat$$.$cljs$core$IFn$_invoke$arity$2$(new $APP.$cljs$core$PersistentVector$$(null,1,5,$APP.$cljs$core$PersistentVector$EMPTY_NODE$$,[$frame$jscomp$103$$],null),$APP.$cljs$core$keep$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$app$common$data$getf$$($objects$jscomp$820$$),
$children_bounds$jscomp$3_children_ids$jscomp$18$$)));return(0,$APP.$rumext$v2$jsxs$$)("button",{onClick:function($p1__80871_SHARP_$$){return $on_click$jscomp$67$$.$cljs$core$IFn$_invoke$arity$2$?$on_click$jscomp$67$$.$cljs$core$IFn$_invoke$arity$2$($p1__80871_SHARP_$$,$index$jscomp$580$$):$on_click$jscomp$67$$($p1__80871_SHARP_$$,$index$jscomp$580$$)},className:"main_ui_viewer_thumbnails__thumbnail-item",children:[(0,$APP.$rumext$v2$jsx$$)("div",{className:"main_ui_viewer_thumbnails__thumbnail-preview "+
($APP.$cljs$core$truth_$$($map__80873_props_80872_selected_QMARK_$jscomp$33$$)?"main_ui_viewer_thumbnails__selected":""),children:(0,$APP.$rumext$v2$jsx$$)($APP.$app$main$render$frame_svg$$,{frame:$APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($APP.$cljs$core$assoc$$.$cljs$core$IFn$_invoke$arity$3$($frame$jscomp$103$$,$APP.$cljs$cst$4909$thumbnail$$,$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80873__$1_thumbnail_data$jscomp$1$$,""+($page_id$jscomp$439$$??"")+($APP.$cljs$cst$266$id$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$103$$)??
""))),$APP.$cljs$cst$1898$children_bounds$$,$children_bounds$jscomp$3_children_ids$jscomp$18$$),objects:$objects$jscomp$820$$,"use-thumbnails":!0})}),(0,$APP.$rumext$v2$jsx$$)("div",{title:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$103$$),className:"main_ui_viewer_thumbnails__thumbnail-info",children:$APP.$cljs$cst$723$name$$.$cljs$core$IFn$_invoke$arity$1$($frame$jscomp$103$$)})]})});
$app$main$ui$viewer$thumbnails$thumbnail_item$$=$APP.$rumext$v2$deferred$cljs$0core$0IFn$0_invoke$0arity$02$$($p1__80870_SHARP_$jscomp$inline_9226$$,$APP.$app$util$timers$idle_then_raf$$);var $app$main$ui$viewer$current_animations_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$5008$viewer_animations$$,$APP.$app$main$store$state$$),$app$main$ui$viewer$current_overlays_ref$$=$APP.$okulary$core$derived$cljs$0core$0IFn$0_invoke$0arity$02$$($APP.$cljs$cst$2194$viewer_overlays$$,$APP.$app$main$store$state$$),$app$main$ui$viewer$viewer_pagination_and_sidebar$$=$APP.$rumext$v2$memo$cljs$0core$0IFn$0_invoke$0arity$01$$(function($index$jscomp$583_map__80890_props_80889$$){$index$jscomp$583_map__80890_props_80889$$=
$APP.$rumext$v2$util$wrap_props$$($index$jscomp$583_map__80890_props_80889$$);var $map__80890__$1_page$jscomp$167$$=$APP.$cljs$core$__destructure_map$$($index$jscomp$583_map__80890_props_80889$$),$and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80890__$1_page$jscomp$167$$,$APP.$cljs$cst$1355$section$$);$index$jscomp$583_map__80890_props_80889$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80890__$1_page$jscomp$167$$,
$APP.$cljs$cst$1779$index$$);var $users$jscomp$4$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80890__$1_page$jscomp$167$$,$APP.$cljs$cst$4985$users$$),$frame$jscomp$106$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80890__$1_page$jscomp$167$$,$APP.$cljs$cst$1590$frame$$);$map__80890__$1_page$jscomp$167$$=$APP.$cljs$core$get$$.$cljs$core$IFn$_invoke$arity$2$($map__80890__$1_page$jscomp$167$$,$APP.$cljs$cst$1608$page$$);var $comments_local$$=$APP.$rumext$v2$deref$$($APP.$app$main$refs$comments_local$$);
$and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$=($and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$=$APP.$cljs$core$_EQ_$$.$cljs$core$IFn$_invoke$arity$2$($and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$,$APP.$cljs$cst$3313$comments$$))?$APP.$cljs$cst$4818$show_sidebar_QMARK_$$.$cljs$core$IFn$_invoke$arity$1$($comments_local$$):$and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$;
return(0,$APP.$rumext$v2$jsxs$$)($APP.$rumext$v2$Fragment$$,{children:[(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$viewer_pagination$$,{index:$index$jscomp$583_map__80890_props_80889$$,"num-frames":$APP.$cljs$core$count$$($APP.$cljs$cst$4986$frames$$.$cljs$core$IFn$_invoke$arity$1$($map__80890__$1_page$jscomp$167$$)),"comment-sidebar":$and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$}),$APP.$cljs$core$truth_$$($and__5023__auto__$jscomp$inline_9228_section$jscomp$48_show_sidebar_QMARK_$jscomp$1$$)?
(0,$APP.$rumext$v2$jsx$$)($app$main$ui$viewer$comments$comments_sidebar_STAR_$$,{profiles:$users$jscomp$4$$,frame:$frame$jscomp$106$$,page:$map__80890__$1_page$jscomp$167$$}):null]})});
//# sourceMappingURL=main-viewer.js.map
